1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/build.proto 19 20 package io.grafeas.v1; 21 22 public interface BuildOccurrenceOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.BuildOccurrence) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * The actual provenance for the build. 32 * </pre> 33 * 34 * <code>.grafeas.v1.BuildProvenance provenance = 1;</code> 35 * 36 * @return Whether the provenance field is set. 37 */ hasProvenance()38 boolean hasProvenance(); 39 /** 40 * 41 * 42 * <pre> 43 * The actual provenance for the build. 44 * </pre> 45 * 46 * <code>.grafeas.v1.BuildProvenance provenance = 1;</code> 47 * 48 * @return The provenance. 49 */ getProvenance()50 io.grafeas.v1.BuildProvenance getProvenance(); 51 /** 52 * 53 * 54 * <pre> 55 * The actual provenance for the build. 56 * </pre> 57 * 58 * <code>.grafeas.v1.BuildProvenance provenance = 1;</code> 59 */ getProvenanceOrBuilder()60 io.grafeas.v1.BuildProvenanceOrBuilder getProvenanceOrBuilder(); 61 62 /** 63 * 64 * 65 * <pre> 66 * Serialized JSON representation of the provenance, used in generating the 67 * build signature in the corresponding build note. After verifying the 68 * signature, `provenance_bytes` can be unmarshalled and compared to the 69 * provenance to confirm that it is unchanged. A base64-encoded string 70 * representation of the provenance bytes is used for the signature in order 71 * to interoperate with openssl which expects this format for signature 72 * verification. 73 * The serialized form is captured both to avoid ambiguity in how the 74 * provenance is marshalled to json as well to prevent incompatibilities with 75 * future changes. 76 * </pre> 77 * 78 * <code>string provenance_bytes = 2;</code> 79 * 80 * @return The provenanceBytes. 81 */ getProvenanceBytes()82 java.lang.String getProvenanceBytes(); 83 /** 84 * 85 * 86 * <pre> 87 * Serialized JSON representation of the provenance, used in generating the 88 * build signature in the corresponding build note. After verifying the 89 * signature, `provenance_bytes` can be unmarshalled and compared to the 90 * provenance to confirm that it is unchanged. A base64-encoded string 91 * representation of the provenance bytes is used for the signature in order 92 * to interoperate with openssl which expects this format for signature 93 * verification. 94 * The serialized form is captured both to avoid ambiguity in how the 95 * provenance is marshalled to json as well to prevent incompatibilities with 96 * future changes. 97 * </pre> 98 * 99 * <code>string provenance_bytes = 2;</code> 100 * 101 * @return The bytes for provenanceBytes. 102 */ getProvenanceBytesBytes()103 com.google.protobuf.ByteString getProvenanceBytesBytes(); 104 105 /** 106 * 107 * 108 * <pre> 109 * Deprecated. See InTotoStatement for the replacement. 110 * In-toto Provenance representation as defined in spec. 111 * </pre> 112 * 113 * <code>.grafeas.v1.InTotoProvenance intoto_provenance = 3;</code> 114 * 115 * @return Whether the intotoProvenance field is set. 116 */ hasIntotoProvenance()117 boolean hasIntotoProvenance(); 118 /** 119 * 120 * 121 * <pre> 122 * Deprecated. See InTotoStatement for the replacement. 123 * In-toto Provenance representation as defined in spec. 124 * </pre> 125 * 126 * <code>.grafeas.v1.InTotoProvenance intoto_provenance = 3;</code> 127 * 128 * @return The intotoProvenance. 129 */ getIntotoProvenance()130 io.grafeas.v1.InTotoProvenance getIntotoProvenance(); 131 /** 132 * 133 * 134 * <pre> 135 * Deprecated. See InTotoStatement for the replacement. 136 * In-toto Provenance representation as defined in spec. 137 * </pre> 138 * 139 * <code>.grafeas.v1.InTotoProvenance intoto_provenance = 3;</code> 140 */ getIntotoProvenanceOrBuilder()141 io.grafeas.v1.InTotoProvenanceOrBuilder getIntotoProvenanceOrBuilder(); 142 143 /** 144 * 145 * 146 * <pre> 147 * In-toto Statement representation as defined in spec. 148 * The intoto_statement can contain any type of provenance. The serialized 149 * payload of the statement can be stored and signed in the Occurrence's 150 * envelope. 151 * </pre> 152 * 153 * <code>.grafeas.v1.InTotoStatement intoto_statement = 4;</code> 154 * 155 * @return Whether the intotoStatement field is set. 156 */ hasIntotoStatement()157 boolean hasIntotoStatement(); 158 /** 159 * 160 * 161 * <pre> 162 * In-toto Statement representation as defined in spec. 163 * The intoto_statement can contain any type of provenance. The serialized 164 * payload of the statement can be stored and signed in the Occurrence's 165 * envelope. 166 * </pre> 167 * 168 * <code>.grafeas.v1.InTotoStatement intoto_statement = 4;</code> 169 * 170 * @return The intotoStatement. 171 */ getIntotoStatement()172 io.grafeas.v1.InTotoStatement getIntotoStatement(); 173 /** 174 * 175 * 176 * <pre> 177 * In-toto Statement representation as defined in spec. 178 * The intoto_statement can contain any type of provenance. The serialized 179 * payload of the statement can be stored and signed in the Occurrence's 180 * envelope. 181 * </pre> 182 * 183 * <code>.grafeas.v1.InTotoStatement intoto_statement = 4;</code> 184 */ getIntotoStatementOrBuilder()185 io.grafeas.v1.InTotoStatementOrBuilder getIntotoStatementOrBuilder(); 186 } 187