• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/slsa_provenance.proto
19 
20 package io.grafeas.v1;
21 
22 /** Protobuf type {@code grafeas.v1.SlsaProvenance} */
23 public final class SlsaProvenance extends com.google.protobuf.GeneratedMessageV3
24     implements
25     // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance)
26     SlsaProvenanceOrBuilder {
27   private static final long serialVersionUID = 0L;
28   // Use SlsaProvenance.newBuilder() to construct.
SlsaProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)29   private SlsaProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
30     super(builder);
31   }
32 
SlsaProvenance()33   private SlsaProvenance() {
34     materials_ = java.util.Collections.emptyList();
35   }
36 
37   @java.lang.Override
38   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)39   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
40     return new SlsaProvenance();
41   }
42 
43   @java.lang.Override
getUnknownFields()44   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
45     return this.unknownFields;
46   }
47 
getDescriptor()48   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
49     return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
50   }
51 
52   @java.lang.Override
53   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()54       internalGetFieldAccessorTable() {
55     return io.grafeas.v1.SlsaProvenanceProto
56         .internal_static_grafeas_v1_SlsaProvenance_fieldAccessorTable
57         .ensureFieldAccessorsInitialized(
58             io.grafeas.v1.SlsaProvenance.class, io.grafeas.v1.SlsaProvenance.Builder.class);
59   }
60 
61   public interface SlsaRecipeOrBuilder
62       extends
63       // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaRecipe)
64       com.google.protobuf.MessageOrBuilder {
65 
66     /**
67      *
68      *
69      * <pre>
70      * URI indicating what type of recipe was performed. It determines the
71      * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
72      * materials.
73      * </pre>
74      *
75      * <code>string type = 1;</code>
76      *
77      * @return The type.
78      */
getType()79     java.lang.String getType();
80     /**
81      *
82      *
83      * <pre>
84      * URI indicating what type of recipe was performed. It determines the
85      * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
86      * materials.
87      * </pre>
88      *
89      * <code>string type = 1;</code>
90      *
91      * @return The bytes for type.
92      */
getTypeBytes()93     com.google.protobuf.ByteString getTypeBytes();
94 
95     /**
96      *
97      *
98      * <pre>
99      * Index in materials containing the recipe steps that are not implied by
100      * recipe.type. For example, if the recipe type were "make", then this would
101      * point to the source containing the Makefile, not the make program itself.
102      * Set to -1 if the recipe doesn't come from a material, as zero is default
103      * unset value for int64.
104      * </pre>
105      *
106      * <code>int64 defined_in_material = 2;</code>
107      *
108      * @return The definedInMaterial.
109      */
getDefinedInMaterial()110     long getDefinedInMaterial();
111 
112     /**
113      *
114      *
115      * <pre>
116      * String identifying the entry point into the build.
117      * This is often a path to a configuration file and/or a target label within
118      * that file. The syntax and meaning are defined by recipe.type. For
119      * example, if the recipe type were "make", then this would reference the
120      * directory in which to run make as well as which target to use.
121      * </pre>
122      *
123      * <code>string entry_point = 3;</code>
124      *
125      * @return The entryPoint.
126      */
getEntryPoint()127     java.lang.String getEntryPoint();
128     /**
129      *
130      *
131      * <pre>
132      * String identifying the entry point into the build.
133      * This is often a path to a configuration file and/or a target label within
134      * that file. The syntax and meaning are defined by recipe.type. For
135      * example, if the recipe type were "make", then this would reference the
136      * directory in which to run make as well as which target to use.
137      * </pre>
138      *
139      * <code>string entry_point = 3;</code>
140      *
141      * @return The bytes for entryPoint.
142      */
getEntryPointBytes()143     com.google.protobuf.ByteString getEntryPointBytes();
144 
145     /**
146      *
147      *
148      * <pre>
149      * Collection of all external inputs that influenced the build on top of
150      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
151      * recipe type were "make", then this might be the flags passed to make
152      * aside from the target, which is captured in recipe.entryPoint. Depending
153      * on the recipe Type, the structure may be different.
154      * </pre>
155      *
156      * <code>.google.protobuf.Any arguments = 4;</code>
157      *
158      * @return Whether the arguments field is set.
159      */
hasArguments()160     boolean hasArguments();
161     /**
162      *
163      *
164      * <pre>
165      * Collection of all external inputs that influenced the build on top of
166      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
167      * recipe type were "make", then this might be the flags passed to make
168      * aside from the target, which is captured in recipe.entryPoint. Depending
169      * on the recipe Type, the structure may be different.
170      * </pre>
171      *
172      * <code>.google.protobuf.Any arguments = 4;</code>
173      *
174      * @return The arguments.
175      */
getArguments()176     com.google.protobuf.Any getArguments();
177     /**
178      *
179      *
180      * <pre>
181      * Collection of all external inputs that influenced the build on top of
182      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
183      * recipe type were "make", then this might be the flags passed to make
184      * aside from the target, which is captured in recipe.entryPoint. Depending
185      * on the recipe Type, the structure may be different.
186      * </pre>
187      *
188      * <code>.google.protobuf.Any arguments = 4;</code>
189      */
getArgumentsOrBuilder()190     com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder();
191 
192     /**
193      *
194      *
195      * <pre>
196      * Any other builder-controlled inputs necessary for correctly evaluating
197      * the recipe. Usually only needed for reproducing the build but not
198      * evaluated as part of policy. Depending on the recipe Type, the structure
199      * may be different.
200      * </pre>
201      *
202      * <code>.google.protobuf.Any environment = 5;</code>
203      *
204      * @return Whether the environment field is set.
205      */
hasEnvironment()206     boolean hasEnvironment();
207     /**
208      *
209      *
210      * <pre>
211      * Any other builder-controlled inputs necessary for correctly evaluating
212      * the recipe. Usually only needed for reproducing the build but not
213      * evaluated as part of policy. Depending on the recipe Type, the structure
214      * may be different.
215      * </pre>
216      *
217      * <code>.google.protobuf.Any environment = 5;</code>
218      *
219      * @return The environment.
220      */
getEnvironment()221     com.google.protobuf.Any getEnvironment();
222     /**
223      *
224      *
225      * <pre>
226      * Any other builder-controlled inputs necessary for correctly evaluating
227      * the recipe. Usually only needed for reproducing the build but not
228      * evaluated as part of policy. Depending on the recipe Type, the structure
229      * may be different.
230      * </pre>
231      *
232      * <code>.google.protobuf.Any environment = 5;</code>
233      */
getEnvironmentOrBuilder()234     com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder();
235   }
236   /**
237    *
238    *
239    * <pre>
240    * Steps taken to build the artifact.
241    * For a TaskRun, typically each container corresponds to one step in the
242    * recipe.
243    * </pre>
244    *
245    * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe}
246    */
247   public static final class SlsaRecipe extends com.google.protobuf.GeneratedMessageV3
248       implements
249       // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaRecipe)
250       SlsaRecipeOrBuilder {
251     private static final long serialVersionUID = 0L;
252     // Use SlsaRecipe.newBuilder() to construct.
SlsaRecipe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)253     private SlsaRecipe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
254       super(builder);
255     }
256 
SlsaRecipe()257     private SlsaRecipe() {
258       type_ = "";
259       entryPoint_ = "";
260     }
261 
262     @java.lang.Override
263     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)264     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
265       return new SlsaRecipe();
266     }
267 
268     @java.lang.Override
getUnknownFields()269     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
270       return this.unknownFields;
271     }
272 
getDescriptor()273     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
274       return io.grafeas.v1.SlsaProvenanceProto
275           .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
276     }
277 
278     @java.lang.Override
279     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()280         internalGetFieldAccessorTable() {
281       return io.grafeas.v1.SlsaProvenanceProto
282           .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_fieldAccessorTable
283           .ensureFieldAccessorsInitialized(
284               io.grafeas.v1.SlsaProvenance.SlsaRecipe.class,
285               io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder.class);
286     }
287 
288     public static final int TYPE_FIELD_NUMBER = 1;
289 
290     @SuppressWarnings("serial")
291     private volatile java.lang.Object type_ = "";
292     /**
293      *
294      *
295      * <pre>
296      * URI indicating what type of recipe was performed. It determines the
297      * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
298      * materials.
299      * </pre>
300      *
301      * <code>string type = 1;</code>
302      *
303      * @return The type.
304      */
305     @java.lang.Override
getType()306     public java.lang.String getType() {
307       java.lang.Object ref = type_;
308       if (ref instanceof java.lang.String) {
309         return (java.lang.String) ref;
310       } else {
311         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
312         java.lang.String s = bs.toStringUtf8();
313         type_ = s;
314         return s;
315       }
316     }
317     /**
318      *
319      *
320      * <pre>
321      * URI indicating what type of recipe was performed. It determines the
322      * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
323      * materials.
324      * </pre>
325      *
326      * <code>string type = 1;</code>
327      *
328      * @return The bytes for type.
329      */
330     @java.lang.Override
getTypeBytes()331     public com.google.protobuf.ByteString getTypeBytes() {
332       java.lang.Object ref = type_;
333       if (ref instanceof java.lang.String) {
334         com.google.protobuf.ByteString b =
335             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
336         type_ = b;
337         return b;
338       } else {
339         return (com.google.protobuf.ByteString) ref;
340       }
341     }
342 
343     public static final int DEFINED_IN_MATERIAL_FIELD_NUMBER = 2;
344     private long definedInMaterial_ = 0L;
345     /**
346      *
347      *
348      * <pre>
349      * Index in materials containing the recipe steps that are not implied by
350      * recipe.type. For example, if the recipe type were "make", then this would
351      * point to the source containing the Makefile, not the make program itself.
352      * Set to -1 if the recipe doesn't come from a material, as zero is default
353      * unset value for int64.
354      * </pre>
355      *
356      * <code>int64 defined_in_material = 2;</code>
357      *
358      * @return The definedInMaterial.
359      */
360     @java.lang.Override
getDefinedInMaterial()361     public long getDefinedInMaterial() {
362       return definedInMaterial_;
363     }
364 
365     public static final int ENTRY_POINT_FIELD_NUMBER = 3;
366 
367     @SuppressWarnings("serial")
368     private volatile java.lang.Object entryPoint_ = "";
369     /**
370      *
371      *
372      * <pre>
373      * String identifying the entry point into the build.
374      * This is often a path to a configuration file and/or a target label within
375      * that file. The syntax and meaning are defined by recipe.type. For
376      * example, if the recipe type were "make", then this would reference the
377      * directory in which to run make as well as which target to use.
378      * </pre>
379      *
380      * <code>string entry_point = 3;</code>
381      *
382      * @return The entryPoint.
383      */
384     @java.lang.Override
getEntryPoint()385     public java.lang.String getEntryPoint() {
386       java.lang.Object ref = entryPoint_;
387       if (ref instanceof java.lang.String) {
388         return (java.lang.String) ref;
389       } else {
390         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
391         java.lang.String s = bs.toStringUtf8();
392         entryPoint_ = s;
393         return s;
394       }
395     }
396     /**
397      *
398      *
399      * <pre>
400      * String identifying the entry point into the build.
401      * This is often a path to a configuration file and/or a target label within
402      * that file. The syntax and meaning are defined by recipe.type. For
403      * example, if the recipe type were "make", then this would reference the
404      * directory in which to run make as well as which target to use.
405      * </pre>
406      *
407      * <code>string entry_point = 3;</code>
408      *
409      * @return The bytes for entryPoint.
410      */
411     @java.lang.Override
getEntryPointBytes()412     public com.google.protobuf.ByteString getEntryPointBytes() {
413       java.lang.Object ref = entryPoint_;
414       if (ref instanceof java.lang.String) {
415         com.google.protobuf.ByteString b =
416             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
417         entryPoint_ = b;
418         return b;
419       } else {
420         return (com.google.protobuf.ByteString) ref;
421       }
422     }
423 
424     public static final int ARGUMENTS_FIELD_NUMBER = 4;
425     private com.google.protobuf.Any arguments_;
426     /**
427      *
428      *
429      * <pre>
430      * Collection of all external inputs that influenced the build on top of
431      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
432      * recipe type were "make", then this might be the flags passed to make
433      * aside from the target, which is captured in recipe.entryPoint. Depending
434      * on the recipe Type, the structure may be different.
435      * </pre>
436      *
437      * <code>.google.protobuf.Any arguments = 4;</code>
438      *
439      * @return Whether the arguments field is set.
440      */
441     @java.lang.Override
hasArguments()442     public boolean hasArguments() {
443       return arguments_ != null;
444     }
445     /**
446      *
447      *
448      * <pre>
449      * Collection of all external inputs that influenced the build on top of
450      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
451      * recipe type were "make", then this might be the flags passed to make
452      * aside from the target, which is captured in recipe.entryPoint. Depending
453      * on the recipe Type, the structure may be different.
454      * </pre>
455      *
456      * <code>.google.protobuf.Any arguments = 4;</code>
457      *
458      * @return The arguments.
459      */
460     @java.lang.Override
getArguments()461     public com.google.protobuf.Any getArguments() {
462       return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
463     }
464     /**
465      *
466      *
467      * <pre>
468      * Collection of all external inputs that influenced the build on top of
469      * recipe.definedInMaterial and recipe.entryPoint. For example, if the
470      * recipe type were "make", then this might be the flags passed to make
471      * aside from the target, which is captured in recipe.entryPoint. Depending
472      * on the recipe Type, the structure may be different.
473      * </pre>
474      *
475      * <code>.google.protobuf.Any arguments = 4;</code>
476      */
477     @java.lang.Override
getArgumentsOrBuilder()478     public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
479       return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
480     }
481 
482     public static final int ENVIRONMENT_FIELD_NUMBER = 5;
483     private com.google.protobuf.Any environment_;
484     /**
485      *
486      *
487      * <pre>
488      * Any other builder-controlled inputs necessary for correctly evaluating
489      * the recipe. Usually only needed for reproducing the build but not
490      * evaluated as part of policy. Depending on the recipe Type, the structure
491      * may be different.
492      * </pre>
493      *
494      * <code>.google.protobuf.Any environment = 5;</code>
495      *
496      * @return Whether the environment field is set.
497      */
498     @java.lang.Override
hasEnvironment()499     public boolean hasEnvironment() {
500       return environment_ != null;
501     }
502     /**
503      *
504      *
505      * <pre>
506      * Any other builder-controlled inputs necessary for correctly evaluating
507      * the recipe. Usually only needed for reproducing the build but not
508      * evaluated as part of policy. Depending on the recipe Type, the structure
509      * may be different.
510      * </pre>
511      *
512      * <code>.google.protobuf.Any environment = 5;</code>
513      *
514      * @return The environment.
515      */
516     @java.lang.Override
getEnvironment()517     public com.google.protobuf.Any getEnvironment() {
518       return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
519     }
520     /**
521      *
522      *
523      * <pre>
524      * Any other builder-controlled inputs necessary for correctly evaluating
525      * the recipe. Usually only needed for reproducing the build but not
526      * evaluated as part of policy. Depending on the recipe Type, the structure
527      * may be different.
528      * </pre>
529      *
530      * <code>.google.protobuf.Any environment = 5;</code>
531      */
532     @java.lang.Override
getEnvironmentOrBuilder()533     public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
534       return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
535     }
536 
537     private byte memoizedIsInitialized = -1;
538 
539     @java.lang.Override
isInitialized()540     public final boolean isInitialized() {
541       byte isInitialized = memoizedIsInitialized;
542       if (isInitialized == 1) return true;
543       if (isInitialized == 0) return false;
544 
545       memoizedIsInitialized = 1;
546       return true;
547     }
548 
549     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)550     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
551       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
552         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
553       }
554       if (definedInMaterial_ != 0L) {
555         output.writeInt64(2, definedInMaterial_);
556       }
557       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
558         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entryPoint_);
559       }
560       if (arguments_ != null) {
561         output.writeMessage(4, getArguments());
562       }
563       if (environment_ != null) {
564         output.writeMessage(5, getEnvironment());
565       }
566       getUnknownFields().writeTo(output);
567     }
568 
569     @java.lang.Override
getSerializedSize()570     public int getSerializedSize() {
571       int size = memoizedSize;
572       if (size != -1) return size;
573 
574       size = 0;
575       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
576         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
577       }
578       if (definedInMaterial_ != 0L) {
579         size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, definedInMaterial_);
580       }
581       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryPoint_)) {
582         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, entryPoint_);
583       }
584       if (arguments_ != null) {
585         size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArguments());
586       }
587       if (environment_ != null) {
588         size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEnvironment());
589       }
590       size += getUnknownFields().getSerializedSize();
591       memoizedSize = size;
592       return size;
593     }
594 
595     @java.lang.Override
equals(final java.lang.Object obj)596     public boolean equals(final java.lang.Object obj) {
597       if (obj == this) {
598         return true;
599       }
600       if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe)) {
601         return super.equals(obj);
602       }
603       io.grafeas.v1.SlsaProvenance.SlsaRecipe other = (io.grafeas.v1.SlsaProvenance.SlsaRecipe) obj;
604 
605       if (!getType().equals(other.getType())) return false;
606       if (getDefinedInMaterial() != other.getDefinedInMaterial()) return false;
607       if (!getEntryPoint().equals(other.getEntryPoint())) return false;
608       if (hasArguments() != other.hasArguments()) return false;
609       if (hasArguments()) {
610         if (!getArguments().equals(other.getArguments())) return false;
611       }
612       if (hasEnvironment() != other.hasEnvironment()) return false;
613       if (hasEnvironment()) {
614         if (!getEnvironment().equals(other.getEnvironment())) return false;
615       }
616       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
617       return true;
618     }
619 
620     @java.lang.Override
hashCode()621     public int hashCode() {
622       if (memoizedHashCode != 0) {
623         return memoizedHashCode;
624       }
625       int hash = 41;
626       hash = (19 * hash) + getDescriptor().hashCode();
627       hash = (37 * hash) + TYPE_FIELD_NUMBER;
628       hash = (53 * hash) + getType().hashCode();
629       hash = (37 * hash) + DEFINED_IN_MATERIAL_FIELD_NUMBER;
630       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDefinedInMaterial());
631       hash = (37 * hash) + ENTRY_POINT_FIELD_NUMBER;
632       hash = (53 * hash) + getEntryPoint().hashCode();
633       if (hasArguments()) {
634         hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
635         hash = (53 * hash) + getArguments().hashCode();
636       }
637       if (hasEnvironment()) {
638         hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
639         hash = (53 * hash) + getEnvironment().hashCode();
640       }
641       hash = (29 * hash) + getUnknownFields().hashCode();
642       memoizedHashCode = hash;
643       return hash;
644     }
645 
parseFrom(java.nio.ByteBuffer data)646     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.nio.ByteBuffer data)
647         throws com.google.protobuf.InvalidProtocolBufferException {
648       return PARSER.parseFrom(data);
649     }
650 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)651     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
652         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
653         throws com.google.protobuf.InvalidProtocolBufferException {
654       return PARSER.parseFrom(data, extensionRegistry);
655     }
656 
parseFrom( com.google.protobuf.ByteString data)657     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
658         com.google.protobuf.ByteString data)
659         throws com.google.protobuf.InvalidProtocolBufferException {
660       return PARSER.parseFrom(data);
661     }
662 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)663     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
664         com.google.protobuf.ByteString data,
665         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
666         throws com.google.protobuf.InvalidProtocolBufferException {
667       return PARSER.parseFrom(data, extensionRegistry);
668     }
669 
parseFrom(byte[] data)670     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(byte[] data)
671         throws com.google.protobuf.InvalidProtocolBufferException {
672       return PARSER.parseFrom(data);
673     }
674 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)675     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
676         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
677         throws com.google.protobuf.InvalidProtocolBufferException {
678       return PARSER.parseFrom(data, extensionRegistry);
679     }
680 
parseFrom(java.io.InputStream input)681     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(java.io.InputStream input)
682         throws java.io.IOException {
683       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
684     }
685 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)686     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
687         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
688         throws java.io.IOException {
689       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
690           PARSER, input, extensionRegistry);
691     }
692 
parseDelimitedFrom( java.io.InputStream input)693     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
694         java.io.InputStream input) throws java.io.IOException {
695       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
696     }
697 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)698     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseDelimitedFrom(
699         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
700         throws java.io.IOException {
701       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
702           PARSER, input, extensionRegistry);
703     }
704 
parseFrom( com.google.protobuf.CodedInputStream input)705     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
706         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
707       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
708     }
709 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)710     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe parseFrom(
711         com.google.protobuf.CodedInputStream input,
712         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
713         throws java.io.IOException {
714       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
715           PARSER, input, extensionRegistry);
716     }
717 
718     @java.lang.Override
newBuilderForType()719     public Builder newBuilderForType() {
720       return newBuilder();
721     }
722 
newBuilder()723     public static Builder newBuilder() {
724       return DEFAULT_INSTANCE.toBuilder();
725     }
726 
newBuilder(io.grafeas.v1.SlsaProvenance.SlsaRecipe prototype)727     public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaRecipe prototype) {
728       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
729     }
730 
731     @java.lang.Override
toBuilder()732     public Builder toBuilder() {
733       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
734     }
735 
736     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)737     protected Builder newBuilderForType(
738         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
739       Builder builder = new Builder(parent);
740       return builder;
741     }
742     /**
743      *
744      *
745      * <pre>
746      * Steps taken to build the artifact.
747      * For a TaskRun, typically each container corresponds to one step in the
748      * recipe.
749      * </pre>
750      *
751      * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaRecipe}
752      */
753     public static final class Builder
754         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
755         implements
756         // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaRecipe)
757         io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder {
getDescriptor()758       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
759         return io.grafeas.v1.SlsaProvenanceProto
760             .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
761       }
762 
763       @java.lang.Override
764       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()765           internalGetFieldAccessorTable() {
766         return io.grafeas.v1.SlsaProvenanceProto
767             .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_fieldAccessorTable
768             .ensureFieldAccessorsInitialized(
769                 io.grafeas.v1.SlsaProvenance.SlsaRecipe.class,
770                 io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder.class);
771       }
772 
773       // Construct using io.grafeas.v1.SlsaProvenance.SlsaRecipe.newBuilder()
Builder()774       private Builder() {}
775 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)776       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
777         super(parent);
778       }
779 
780       @java.lang.Override
clear()781       public Builder clear() {
782         super.clear();
783         bitField0_ = 0;
784         type_ = "";
785         definedInMaterial_ = 0L;
786         entryPoint_ = "";
787         arguments_ = null;
788         if (argumentsBuilder_ != null) {
789           argumentsBuilder_.dispose();
790           argumentsBuilder_ = null;
791         }
792         environment_ = null;
793         if (environmentBuilder_ != null) {
794           environmentBuilder_.dispose();
795           environmentBuilder_ = null;
796         }
797         return this;
798       }
799 
800       @java.lang.Override
getDescriptorForType()801       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
802         return io.grafeas.v1.SlsaProvenanceProto
803             .internal_static_grafeas_v1_SlsaProvenance_SlsaRecipe_descriptor;
804       }
805 
806       @java.lang.Override
getDefaultInstanceForType()807       public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() {
808         return io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance();
809       }
810 
811       @java.lang.Override
build()812       public io.grafeas.v1.SlsaProvenance.SlsaRecipe build() {
813         io.grafeas.v1.SlsaProvenance.SlsaRecipe result = buildPartial();
814         if (!result.isInitialized()) {
815           throw newUninitializedMessageException(result);
816         }
817         return result;
818       }
819 
820       @java.lang.Override
buildPartial()821       public io.grafeas.v1.SlsaProvenance.SlsaRecipe buildPartial() {
822         io.grafeas.v1.SlsaProvenance.SlsaRecipe result =
823             new io.grafeas.v1.SlsaProvenance.SlsaRecipe(this);
824         if (bitField0_ != 0) {
825           buildPartial0(result);
826         }
827         onBuilt();
828         return result;
829       }
830 
buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaRecipe result)831       private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaRecipe result) {
832         int from_bitField0_ = bitField0_;
833         if (((from_bitField0_ & 0x00000001) != 0)) {
834           result.type_ = type_;
835         }
836         if (((from_bitField0_ & 0x00000002) != 0)) {
837           result.definedInMaterial_ = definedInMaterial_;
838         }
839         if (((from_bitField0_ & 0x00000004) != 0)) {
840           result.entryPoint_ = entryPoint_;
841         }
842         if (((from_bitField0_ & 0x00000008) != 0)) {
843           result.arguments_ = argumentsBuilder_ == null ? arguments_ : argumentsBuilder_.build();
844         }
845         if (((from_bitField0_ & 0x00000010) != 0)) {
846           result.environment_ =
847               environmentBuilder_ == null ? environment_ : environmentBuilder_.build();
848         }
849       }
850 
851       @java.lang.Override
clone()852       public Builder clone() {
853         return super.clone();
854       }
855 
856       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)857       public Builder setField(
858           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
859         return super.setField(field, value);
860       }
861 
862       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)863       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
864         return super.clearField(field);
865       }
866 
867       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)868       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
869         return super.clearOneof(oneof);
870       }
871 
872       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)873       public Builder setRepeatedField(
874           com.google.protobuf.Descriptors.FieldDescriptor field,
875           int index,
876           java.lang.Object value) {
877         return super.setRepeatedField(field, index, value);
878       }
879 
880       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)881       public Builder addRepeatedField(
882           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
883         return super.addRepeatedField(field, value);
884       }
885 
886       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)887       public Builder mergeFrom(com.google.protobuf.Message other) {
888         if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaRecipe) {
889           return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaRecipe) other);
890         } else {
891           super.mergeFrom(other);
892           return this;
893         }
894       }
895 
mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaRecipe other)896       public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaRecipe other) {
897         if (other == io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()) return this;
898         if (!other.getType().isEmpty()) {
899           type_ = other.type_;
900           bitField0_ |= 0x00000001;
901           onChanged();
902         }
903         if (other.getDefinedInMaterial() != 0L) {
904           setDefinedInMaterial(other.getDefinedInMaterial());
905         }
906         if (!other.getEntryPoint().isEmpty()) {
907           entryPoint_ = other.entryPoint_;
908           bitField0_ |= 0x00000004;
909           onChanged();
910         }
911         if (other.hasArguments()) {
912           mergeArguments(other.getArguments());
913         }
914         if (other.hasEnvironment()) {
915           mergeEnvironment(other.getEnvironment());
916         }
917         this.mergeUnknownFields(other.getUnknownFields());
918         onChanged();
919         return this;
920       }
921 
922       @java.lang.Override
isInitialized()923       public final boolean isInitialized() {
924         return true;
925       }
926 
927       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)928       public Builder mergeFrom(
929           com.google.protobuf.CodedInputStream input,
930           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
931           throws java.io.IOException {
932         if (extensionRegistry == null) {
933           throw new java.lang.NullPointerException();
934         }
935         try {
936           boolean done = false;
937           while (!done) {
938             int tag = input.readTag();
939             switch (tag) {
940               case 0:
941                 done = true;
942                 break;
943               case 10:
944                 {
945                   type_ = input.readStringRequireUtf8();
946                   bitField0_ |= 0x00000001;
947                   break;
948                 } // case 10
949               case 16:
950                 {
951                   definedInMaterial_ = input.readInt64();
952                   bitField0_ |= 0x00000002;
953                   break;
954                 } // case 16
955               case 26:
956                 {
957                   entryPoint_ = input.readStringRequireUtf8();
958                   bitField0_ |= 0x00000004;
959                   break;
960                 } // case 26
961               case 34:
962                 {
963                   input.readMessage(getArgumentsFieldBuilder().getBuilder(), extensionRegistry);
964                   bitField0_ |= 0x00000008;
965                   break;
966                 } // case 34
967               case 42:
968                 {
969                   input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry);
970                   bitField0_ |= 0x00000010;
971                   break;
972                 } // case 42
973               default:
974                 {
975                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
976                     done = true; // was an endgroup tag
977                   }
978                   break;
979                 } // default:
980             } // switch (tag)
981           } // while (!done)
982         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
983           throw e.unwrapIOException();
984         } finally {
985           onChanged();
986         } // finally
987         return this;
988       }
989 
990       private int bitField0_;
991 
992       private java.lang.Object type_ = "";
993       /**
994        *
995        *
996        * <pre>
997        * URI indicating what type of recipe was performed. It determines the
998        * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
999        * materials.
1000        * </pre>
1001        *
1002        * <code>string type = 1;</code>
1003        *
1004        * @return The type.
1005        */
getType()1006       public java.lang.String getType() {
1007         java.lang.Object ref = type_;
1008         if (!(ref instanceof java.lang.String)) {
1009           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1010           java.lang.String s = bs.toStringUtf8();
1011           type_ = s;
1012           return s;
1013         } else {
1014           return (java.lang.String) ref;
1015         }
1016       }
1017       /**
1018        *
1019        *
1020        * <pre>
1021        * URI indicating what type of recipe was performed. It determines the
1022        * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
1023        * materials.
1024        * </pre>
1025        *
1026        * <code>string type = 1;</code>
1027        *
1028        * @return The bytes for type.
1029        */
getTypeBytes()1030       public com.google.protobuf.ByteString getTypeBytes() {
1031         java.lang.Object ref = type_;
1032         if (ref instanceof String) {
1033           com.google.protobuf.ByteString b =
1034               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1035           type_ = b;
1036           return b;
1037         } else {
1038           return (com.google.protobuf.ByteString) ref;
1039         }
1040       }
1041       /**
1042        *
1043        *
1044        * <pre>
1045        * URI indicating what type of recipe was performed. It determines the
1046        * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
1047        * materials.
1048        * </pre>
1049        *
1050        * <code>string type = 1;</code>
1051        *
1052        * @param value The type to set.
1053        * @return This builder for chaining.
1054        */
setType(java.lang.String value)1055       public Builder setType(java.lang.String value) {
1056         if (value == null) {
1057           throw new NullPointerException();
1058         }
1059         type_ = value;
1060         bitField0_ |= 0x00000001;
1061         onChanged();
1062         return this;
1063       }
1064       /**
1065        *
1066        *
1067        * <pre>
1068        * URI indicating what type of recipe was performed. It determines the
1069        * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
1070        * materials.
1071        * </pre>
1072        *
1073        * <code>string type = 1;</code>
1074        *
1075        * @return This builder for chaining.
1076        */
clearType()1077       public Builder clearType() {
1078         type_ = getDefaultInstance().getType();
1079         bitField0_ = (bitField0_ & ~0x00000001);
1080         onChanged();
1081         return this;
1082       }
1083       /**
1084        *
1085        *
1086        * <pre>
1087        * URI indicating what type of recipe was performed. It determines the
1088        * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and
1089        * materials.
1090        * </pre>
1091        *
1092        * <code>string type = 1;</code>
1093        *
1094        * @param value The bytes for type to set.
1095        * @return This builder for chaining.
1096        */
setTypeBytes(com.google.protobuf.ByteString value)1097       public Builder setTypeBytes(com.google.protobuf.ByteString value) {
1098         if (value == null) {
1099           throw new NullPointerException();
1100         }
1101         checkByteStringIsUtf8(value);
1102         type_ = value;
1103         bitField0_ |= 0x00000001;
1104         onChanged();
1105         return this;
1106       }
1107 
1108       private long definedInMaterial_;
1109       /**
1110        *
1111        *
1112        * <pre>
1113        * Index in materials containing the recipe steps that are not implied by
1114        * recipe.type. For example, if the recipe type were "make", then this would
1115        * point to the source containing the Makefile, not the make program itself.
1116        * Set to -1 if the recipe doesn't come from a material, as zero is default
1117        * unset value for int64.
1118        * </pre>
1119        *
1120        * <code>int64 defined_in_material = 2;</code>
1121        *
1122        * @return The definedInMaterial.
1123        */
1124       @java.lang.Override
getDefinedInMaterial()1125       public long getDefinedInMaterial() {
1126         return definedInMaterial_;
1127       }
1128       /**
1129        *
1130        *
1131        * <pre>
1132        * Index in materials containing the recipe steps that are not implied by
1133        * recipe.type. For example, if the recipe type were "make", then this would
1134        * point to the source containing the Makefile, not the make program itself.
1135        * Set to -1 if the recipe doesn't come from a material, as zero is default
1136        * unset value for int64.
1137        * </pre>
1138        *
1139        * <code>int64 defined_in_material = 2;</code>
1140        *
1141        * @param value The definedInMaterial to set.
1142        * @return This builder for chaining.
1143        */
setDefinedInMaterial(long value)1144       public Builder setDefinedInMaterial(long value) {
1145 
1146         definedInMaterial_ = value;
1147         bitField0_ |= 0x00000002;
1148         onChanged();
1149         return this;
1150       }
1151       /**
1152        *
1153        *
1154        * <pre>
1155        * Index in materials containing the recipe steps that are not implied by
1156        * recipe.type. For example, if the recipe type were "make", then this would
1157        * point to the source containing the Makefile, not the make program itself.
1158        * Set to -1 if the recipe doesn't come from a material, as zero is default
1159        * unset value for int64.
1160        * </pre>
1161        *
1162        * <code>int64 defined_in_material = 2;</code>
1163        *
1164        * @return This builder for chaining.
1165        */
clearDefinedInMaterial()1166       public Builder clearDefinedInMaterial() {
1167         bitField0_ = (bitField0_ & ~0x00000002);
1168         definedInMaterial_ = 0L;
1169         onChanged();
1170         return this;
1171       }
1172 
1173       private java.lang.Object entryPoint_ = "";
1174       /**
1175        *
1176        *
1177        * <pre>
1178        * String identifying the entry point into the build.
1179        * This is often a path to a configuration file and/or a target label within
1180        * that file. The syntax and meaning are defined by recipe.type. For
1181        * example, if the recipe type were "make", then this would reference the
1182        * directory in which to run make as well as which target to use.
1183        * </pre>
1184        *
1185        * <code>string entry_point = 3;</code>
1186        *
1187        * @return The entryPoint.
1188        */
getEntryPoint()1189       public java.lang.String getEntryPoint() {
1190         java.lang.Object ref = entryPoint_;
1191         if (!(ref instanceof java.lang.String)) {
1192           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1193           java.lang.String s = bs.toStringUtf8();
1194           entryPoint_ = s;
1195           return s;
1196         } else {
1197           return (java.lang.String) ref;
1198         }
1199       }
1200       /**
1201        *
1202        *
1203        * <pre>
1204        * String identifying the entry point into the build.
1205        * This is often a path to a configuration file and/or a target label within
1206        * that file. The syntax and meaning are defined by recipe.type. For
1207        * example, if the recipe type were "make", then this would reference the
1208        * directory in which to run make as well as which target to use.
1209        * </pre>
1210        *
1211        * <code>string entry_point = 3;</code>
1212        *
1213        * @return The bytes for entryPoint.
1214        */
getEntryPointBytes()1215       public com.google.protobuf.ByteString getEntryPointBytes() {
1216         java.lang.Object ref = entryPoint_;
1217         if (ref instanceof String) {
1218           com.google.protobuf.ByteString b =
1219               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1220           entryPoint_ = b;
1221           return b;
1222         } else {
1223           return (com.google.protobuf.ByteString) ref;
1224         }
1225       }
1226       /**
1227        *
1228        *
1229        * <pre>
1230        * String identifying the entry point into the build.
1231        * This is often a path to a configuration file and/or a target label within
1232        * that file. The syntax and meaning are defined by recipe.type. For
1233        * example, if the recipe type were "make", then this would reference the
1234        * directory in which to run make as well as which target to use.
1235        * </pre>
1236        *
1237        * <code>string entry_point = 3;</code>
1238        *
1239        * @param value The entryPoint to set.
1240        * @return This builder for chaining.
1241        */
setEntryPoint(java.lang.String value)1242       public Builder setEntryPoint(java.lang.String value) {
1243         if (value == null) {
1244           throw new NullPointerException();
1245         }
1246         entryPoint_ = value;
1247         bitField0_ |= 0x00000004;
1248         onChanged();
1249         return this;
1250       }
1251       /**
1252        *
1253        *
1254        * <pre>
1255        * String identifying the entry point into the build.
1256        * This is often a path to a configuration file and/or a target label within
1257        * that file. The syntax and meaning are defined by recipe.type. For
1258        * example, if the recipe type were "make", then this would reference the
1259        * directory in which to run make as well as which target to use.
1260        * </pre>
1261        *
1262        * <code>string entry_point = 3;</code>
1263        *
1264        * @return This builder for chaining.
1265        */
clearEntryPoint()1266       public Builder clearEntryPoint() {
1267         entryPoint_ = getDefaultInstance().getEntryPoint();
1268         bitField0_ = (bitField0_ & ~0x00000004);
1269         onChanged();
1270         return this;
1271       }
1272       /**
1273        *
1274        *
1275        * <pre>
1276        * String identifying the entry point into the build.
1277        * This is often a path to a configuration file and/or a target label within
1278        * that file. The syntax and meaning are defined by recipe.type. For
1279        * example, if the recipe type were "make", then this would reference the
1280        * directory in which to run make as well as which target to use.
1281        * </pre>
1282        *
1283        * <code>string entry_point = 3;</code>
1284        *
1285        * @param value The bytes for entryPoint to set.
1286        * @return This builder for chaining.
1287        */
setEntryPointBytes(com.google.protobuf.ByteString value)1288       public Builder setEntryPointBytes(com.google.protobuf.ByteString value) {
1289         if (value == null) {
1290           throw new NullPointerException();
1291         }
1292         checkByteStringIsUtf8(value);
1293         entryPoint_ = value;
1294         bitField0_ |= 0x00000004;
1295         onChanged();
1296         return this;
1297       }
1298 
1299       private com.google.protobuf.Any arguments_;
1300       private com.google.protobuf.SingleFieldBuilderV3<
1301               com.google.protobuf.Any,
1302               com.google.protobuf.Any.Builder,
1303               com.google.protobuf.AnyOrBuilder>
1304           argumentsBuilder_;
1305       /**
1306        *
1307        *
1308        * <pre>
1309        * Collection of all external inputs that influenced the build on top of
1310        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1311        * recipe type were "make", then this might be the flags passed to make
1312        * aside from the target, which is captured in recipe.entryPoint. Depending
1313        * on the recipe Type, the structure may be different.
1314        * </pre>
1315        *
1316        * <code>.google.protobuf.Any arguments = 4;</code>
1317        *
1318        * @return Whether the arguments field is set.
1319        */
hasArguments()1320       public boolean hasArguments() {
1321         return ((bitField0_ & 0x00000008) != 0);
1322       }
1323       /**
1324        *
1325        *
1326        * <pre>
1327        * Collection of all external inputs that influenced the build on top of
1328        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1329        * recipe type were "make", then this might be the flags passed to make
1330        * aside from the target, which is captured in recipe.entryPoint. Depending
1331        * on the recipe Type, the structure may be different.
1332        * </pre>
1333        *
1334        * <code>.google.protobuf.Any arguments = 4;</code>
1335        *
1336        * @return The arguments.
1337        */
getArguments()1338       public com.google.protobuf.Any getArguments() {
1339         if (argumentsBuilder_ == null) {
1340           return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
1341         } else {
1342           return argumentsBuilder_.getMessage();
1343         }
1344       }
1345       /**
1346        *
1347        *
1348        * <pre>
1349        * Collection of all external inputs that influenced the build on top of
1350        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1351        * recipe type were "make", then this might be the flags passed to make
1352        * aside from the target, which is captured in recipe.entryPoint. Depending
1353        * on the recipe Type, the structure may be different.
1354        * </pre>
1355        *
1356        * <code>.google.protobuf.Any arguments = 4;</code>
1357        */
setArguments(com.google.protobuf.Any value)1358       public Builder setArguments(com.google.protobuf.Any value) {
1359         if (argumentsBuilder_ == null) {
1360           if (value == null) {
1361             throw new NullPointerException();
1362           }
1363           arguments_ = value;
1364         } else {
1365           argumentsBuilder_.setMessage(value);
1366         }
1367         bitField0_ |= 0x00000008;
1368         onChanged();
1369         return this;
1370       }
1371       /**
1372        *
1373        *
1374        * <pre>
1375        * Collection of all external inputs that influenced the build on top of
1376        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1377        * recipe type were "make", then this might be the flags passed to make
1378        * aside from the target, which is captured in recipe.entryPoint. Depending
1379        * on the recipe Type, the structure may be different.
1380        * </pre>
1381        *
1382        * <code>.google.protobuf.Any arguments = 4;</code>
1383        */
setArguments(com.google.protobuf.Any.Builder builderForValue)1384       public Builder setArguments(com.google.protobuf.Any.Builder builderForValue) {
1385         if (argumentsBuilder_ == null) {
1386           arguments_ = builderForValue.build();
1387         } else {
1388           argumentsBuilder_.setMessage(builderForValue.build());
1389         }
1390         bitField0_ |= 0x00000008;
1391         onChanged();
1392         return this;
1393       }
1394       /**
1395        *
1396        *
1397        * <pre>
1398        * Collection of all external inputs that influenced the build on top of
1399        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1400        * recipe type were "make", then this might be the flags passed to make
1401        * aside from the target, which is captured in recipe.entryPoint. Depending
1402        * on the recipe Type, the structure may be different.
1403        * </pre>
1404        *
1405        * <code>.google.protobuf.Any arguments = 4;</code>
1406        */
mergeArguments(com.google.protobuf.Any value)1407       public Builder mergeArguments(com.google.protobuf.Any value) {
1408         if (argumentsBuilder_ == null) {
1409           if (((bitField0_ & 0x00000008) != 0)
1410               && arguments_ != null
1411               && arguments_ != com.google.protobuf.Any.getDefaultInstance()) {
1412             getArgumentsBuilder().mergeFrom(value);
1413           } else {
1414             arguments_ = value;
1415           }
1416         } else {
1417           argumentsBuilder_.mergeFrom(value);
1418         }
1419         bitField0_ |= 0x00000008;
1420         onChanged();
1421         return this;
1422       }
1423       /**
1424        *
1425        *
1426        * <pre>
1427        * Collection of all external inputs that influenced the build on top of
1428        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1429        * recipe type were "make", then this might be the flags passed to make
1430        * aside from the target, which is captured in recipe.entryPoint. Depending
1431        * on the recipe Type, the structure may be different.
1432        * </pre>
1433        *
1434        * <code>.google.protobuf.Any arguments = 4;</code>
1435        */
clearArguments()1436       public Builder clearArguments() {
1437         bitField0_ = (bitField0_ & ~0x00000008);
1438         arguments_ = null;
1439         if (argumentsBuilder_ != null) {
1440           argumentsBuilder_.dispose();
1441           argumentsBuilder_ = null;
1442         }
1443         onChanged();
1444         return this;
1445       }
1446       /**
1447        *
1448        *
1449        * <pre>
1450        * Collection of all external inputs that influenced the build on top of
1451        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1452        * recipe type were "make", then this might be the flags passed to make
1453        * aside from the target, which is captured in recipe.entryPoint. Depending
1454        * on the recipe Type, the structure may be different.
1455        * </pre>
1456        *
1457        * <code>.google.protobuf.Any arguments = 4;</code>
1458        */
getArgumentsBuilder()1459       public com.google.protobuf.Any.Builder getArgumentsBuilder() {
1460         bitField0_ |= 0x00000008;
1461         onChanged();
1462         return getArgumentsFieldBuilder().getBuilder();
1463       }
1464       /**
1465        *
1466        *
1467        * <pre>
1468        * Collection of all external inputs that influenced the build on top of
1469        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1470        * recipe type were "make", then this might be the flags passed to make
1471        * aside from the target, which is captured in recipe.entryPoint. Depending
1472        * on the recipe Type, the structure may be different.
1473        * </pre>
1474        *
1475        * <code>.google.protobuf.Any arguments = 4;</code>
1476        */
getArgumentsOrBuilder()1477       public com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder() {
1478         if (argumentsBuilder_ != null) {
1479           return argumentsBuilder_.getMessageOrBuilder();
1480         } else {
1481           return arguments_ == null ? com.google.protobuf.Any.getDefaultInstance() : arguments_;
1482         }
1483       }
1484       /**
1485        *
1486        *
1487        * <pre>
1488        * Collection of all external inputs that influenced the build on top of
1489        * recipe.definedInMaterial and recipe.entryPoint. For example, if the
1490        * recipe type were "make", then this might be the flags passed to make
1491        * aside from the target, which is captured in recipe.entryPoint. Depending
1492        * on the recipe Type, the structure may be different.
1493        * </pre>
1494        *
1495        * <code>.google.protobuf.Any arguments = 4;</code>
1496        */
1497       private com.google.protobuf.SingleFieldBuilderV3<
1498               com.google.protobuf.Any,
1499               com.google.protobuf.Any.Builder,
1500               com.google.protobuf.AnyOrBuilder>
getArgumentsFieldBuilder()1501           getArgumentsFieldBuilder() {
1502         if (argumentsBuilder_ == null) {
1503           argumentsBuilder_ =
1504               new com.google.protobuf.SingleFieldBuilderV3<
1505                   com.google.protobuf.Any,
1506                   com.google.protobuf.Any.Builder,
1507                   com.google.protobuf.AnyOrBuilder>(
1508                   getArguments(), getParentForChildren(), isClean());
1509           arguments_ = null;
1510         }
1511         return argumentsBuilder_;
1512       }
1513 
1514       private com.google.protobuf.Any environment_;
1515       private com.google.protobuf.SingleFieldBuilderV3<
1516               com.google.protobuf.Any,
1517               com.google.protobuf.Any.Builder,
1518               com.google.protobuf.AnyOrBuilder>
1519           environmentBuilder_;
1520       /**
1521        *
1522        *
1523        * <pre>
1524        * Any other builder-controlled inputs necessary for correctly evaluating
1525        * the recipe. Usually only needed for reproducing the build but not
1526        * evaluated as part of policy. Depending on the recipe Type, the structure
1527        * may be different.
1528        * </pre>
1529        *
1530        * <code>.google.protobuf.Any environment = 5;</code>
1531        *
1532        * @return Whether the environment field is set.
1533        */
hasEnvironment()1534       public boolean hasEnvironment() {
1535         return ((bitField0_ & 0x00000010) != 0);
1536       }
1537       /**
1538        *
1539        *
1540        * <pre>
1541        * Any other builder-controlled inputs necessary for correctly evaluating
1542        * the recipe. Usually only needed for reproducing the build but not
1543        * evaluated as part of policy. Depending on the recipe Type, the structure
1544        * may be different.
1545        * </pre>
1546        *
1547        * <code>.google.protobuf.Any environment = 5;</code>
1548        *
1549        * @return The environment.
1550        */
getEnvironment()1551       public com.google.protobuf.Any getEnvironment() {
1552         if (environmentBuilder_ == null) {
1553           return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
1554         } else {
1555           return environmentBuilder_.getMessage();
1556         }
1557       }
1558       /**
1559        *
1560        *
1561        * <pre>
1562        * Any other builder-controlled inputs necessary for correctly evaluating
1563        * the recipe. Usually only needed for reproducing the build but not
1564        * evaluated as part of policy. Depending on the recipe Type, the structure
1565        * may be different.
1566        * </pre>
1567        *
1568        * <code>.google.protobuf.Any environment = 5;</code>
1569        */
setEnvironment(com.google.protobuf.Any value)1570       public Builder setEnvironment(com.google.protobuf.Any value) {
1571         if (environmentBuilder_ == null) {
1572           if (value == null) {
1573             throw new NullPointerException();
1574           }
1575           environment_ = value;
1576         } else {
1577           environmentBuilder_.setMessage(value);
1578         }
1579         bitField0_ |= 0x00000010;
1580         onChanged();
1581         return this;
1582       }
1583       /**
1584        *
1585        *
1586        * <pre>
1587        * Any other builder-controlled inputs necessary for correctly evaluating
1588        * the recipe. Usually only needed for reproducing the build but not
1589        * evaluated as part of policy. Depending on the recipe Type, the structure
1590        * may be different.
1591        * </pre>
1592        *
1593        * <code>.google.protobuf.Any environment = 5;</code>
1594        */
setEnvironment(com.google.protobuf.Any.Builder builderForValue)1595       public Builder setEnvironment(com.google.protobuf.Any.Builder builderForValue) {
1596         if (environmentBuilder_ == null) {
1597           environment_ = builderForValue.build();
1598         } else {
1599           environmentBuilder_.setMessage(builderForValue.build());
1600         }
1601         bitField0_ |= 0x00000010;
1602         onChanged();
1603         return this;
1604       }
1605       /**
1606        *
1607        *
1608        * <pre>
1609        * Any other builder-controlled inputs necessary for correctly evaluating
1610        * the recipe. Usually only needed for reproducing the build but not
1611        * evaluated as part of policy. Depending on the recipe Type, the structure
1612        * may be different.
1613        * </pre>
1614        *
1615        * <code>.google.protobuf.Any environment = 5;</code>
1616        */
mergeEnvironment(com.google.protobuf.Any value)1617       public Builder mergeEnvironment(com.google.protobuf.Any value) {
1618         if (environmentBuilder_ == null) {
1619           if (((bitField0_ & 0x00000010) != 0)
1620               && environment_ != null
1621               && environment_ != com.google.protobuf.Any.getDefaultInstance()) {
1622             getEnvironmentBuilder().mergeFrom(value);
1623           } else {
1624             environment_ = value;
1625           }
1626         } else {
1627           environmentBuilder_.mergeFrom(value);
1628         }
1629         bitField0_ |= 0x00000010;
1630         onChanged();
1631         return this;
1632       }
1633       /**
1634        *
1635        *
1636        * <pre>
1637        * Any other builder-controlled inputs necessary for correctly evaluating
1638        * the recipe. Usually only needed for reproducing the build but not
1639        * evaluated as part of policy. Depending on the recipe Type, the structure
1640        * may be different.
1641        * </pre>
1642        *
1643        * <code>.google.protobuf.Any environment = 5;</code>
1644        */
clearEnvironment()1645       public Builder clearEnvironment() {
1646         bitField0_ = (bitField0_ & ~0x00000010);
1647         environment_ = null;
1648         if (environmentBuilder_ != null) {
1649           environmentBuilder_.dispose();
1650           environmentBuilder_ = null;
1651         }
1652         onChanged();
1653         return this;
1654       }
1655       /**
1656        *
1657        *
1658        * <pre>
1659        * Any other builder-controlled inputs necessary for correctly evaluating
1660        * the recipe. Usually only needed for reproducing the build but not
1661        * evaluated as part of policy. Depending on the recipe Type, the structure
1662        * may be different.
1663        * </pre>
1664        *
1665        * <code>.google.protobuf.Any environment = 5;</code>
1666        */
getEnvironmentBuilder()1667       public com.google.protobuf.Any.Builder getEnvironmentBuilder() {
1668         bitField0_ |= 0x00000010;
1669         onChanged();
1670         return getEnvironmentFieldBuilder().getBuilder();
1671       }
1672       /**
1673        *
1674        *
1675        * <pre>
1676        * Any other builder-controlled inputs necessary for correctly evaluating
1677        * the recipe. Usually only needed for reproducing the build but not
1678        * evaluated as part of policy. Depending on the recipe Type, the structure
1679        * may be different.
1680        * </pre>
1681        *
1682        * <code>.google.protobuf.Any environment = 5;</code>
1683        */
getEnvironmentOrBuilder()1684       public com.google.protobuf.AnyOrBuilder getEnvironmentOrBuilder() {
1685         if (environmentBuilder_ != null) {
1686           return environmentBuilder_.getMessageOrBuilder();
1687         } else {
1688           return environment_ == null ? com.google.protobuf.Any.getDefaultInstance() : environment_;
1689         }
1690       }
1691       /**
1692        *
1693        *
1694        * <pre>
1695        * Any other builder-controlled inputs necessary for correctly evaluating
1696        * the recipe. Usually only needed for reproducing the build but not
1697        * evaluated as part of policy. Depending on the recipe Type, the structure
1698        * may be different.
1699        * </pre>
1700        *
1701        * <code>.google.protobuf.Any environment = 5;</code>
1702        */
1703       private com.google.protobuf.SingleFieldBuilderV3<
1704               com.google.protobuf.Any,
1705               com.google.protobuf.Any.Builder,
1706               com.google.protobuf.AnyOrBuilder>
getEnvironmentFieldBuilder()1707           getEnvironmentFieldBuilder() {
1708         if (environmentBuilder_ == null) {
1709           environmentBuilder_ =
1710               new com.google.protobuf.SingleFieldBuilderV3<
1711                   com.google.protobuf.Any,
1712                   com.google.protobuf.Any.Builder,
1713                   com.google.protobuf.AnyOrBuilder>(
1714                   getEnvironment(), getParentForChildren(), isClean());
1715           environment_ = null;
1716         }
1717         return environmentBuilder_;
1718       }
1719 
1720       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1721       public final Builder setUnknownFields(
1722           final com.google.protobuf.UnknownFieldSet unknownFields) {
1723         return super.setUnknownFields(unknownFields);
1724       }
1725 
1726       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1727       public final Builder mergeUnknownFields(
1728           final com.google.protobuf.UnknownFieldSet unknownFields) {
1729         return super.mergeUnknownFields(unknownFields);
1730       }
1731 
1732       // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
1733     }
1734 
1735     // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaRecipe)
1736     private static final io.grafeas.v1.SlsaProvenance.SlsaRecipe DEFAULT_INSTANCE;
1737 
1738     static {
1739       DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaRecipe();
1740     }
1741 
getDefaultInstance()1742     public static io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstance() {
1743       return DEFAULT_INSTANCE;
1744     }
1745 
1746     private static final com.google.protobuf.Parser<SlsaRecipe> PARSER =
1747         new com.google.protobuf.AbstractParser<SlsaRecipe>() {
1748           @java.lang.Override
1749           public SlsaRecipe parsePartialFrom(
1750               com.google.protobuf.CodedInputStream input,
1751               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1752               throws com.google.protobuf.InvalidProtocolBufferException {
1753             Builder builder = newBuilder();
1754             try {
1755               builder.mergeFrom(input, extensionRegistry);
1756             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1757               throw e.setUnfinishedMessage(builder.buildPartial());
1758             } catch (com.google.protobuf.UninitializedMessageException e) {
1759               throw e.asInvalidProtocolBufferException()
1760                   .setUnfinishedMessage(builder.buildPartial());
1761             } catch (java.io.IOException e) {
1762               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1763                   .setUnfinishedMessage(builder.buildPartial());
1764             }
1765             return builder.buildPartial();
1766           }
1767         };
1768 
parser()1769     public static com.google.protobuf.Parser<SlsaRecipe> parser() {
1770       return PARSER;
1771     }
1772 
1773     @java.lang.Override
getParserForType()1774     public com.google.protobuf.Parser<SlsaRecipe> getParserForType() {
1775       return PARSER;
1776     }
1777 
1778     @java.lang.Override
getDefaultInstanceForType()1779     public io.grafeas.v1.SlsaProvenance.SlsaRecipe getDefaultInstanceForType() {
1780       return DEFAULT_INSTANCE;
1781     }
1782   }
1783 
1784   public interface SlsaCompletenessOrBuilder
1785       extends
1786       // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaCompleteness)
1787       com.google.protobuf.MessageOrBuilder {
1788 
1789     /**
1790      *
1791      *
1792      * <pre>
1793      * If true, the builder claims that recipe.arguments is complete, meaning
1794      * that all external inputs are properly captured in the recipe.
1795      * </pre>
1796      *
1797      * <code>bool arguments = 1;</code>
1798      *
1799      * @return The arguments.
1800      */
getArguments()1801     boolean getArguments();
1802 
1803     /**
1804      *
1805      *
1806      * <pre>
1807      * If true, the builder claims that recipe.environment is claimed to be
1808      * complete.
1809      * </pre>
1810      *
1811      * <code>bool environment = 2;</code>
1812      *
1813      * @return The environment.
1814      */
getEnvironment()1815     boolean getEnvironment();
1816 
1817     /**
1818      *
1819      *
1820      * <pre>
1821      * If true, the builder claims that materials are complete, usually through
1822      * some controls to prevent network access. Sometimes called "hermetic".
1823      * </pre>
1824      *
1825      * <code>bool materials = 3;</code>
1826      *
1827      * @return The materials.
1828      */
getMaterials()1829     boolean getMaterials();
1830   }
1831   /**
1832    *
1833    *
1834    * <pre>
1835    * Indicates that the builder claims certain fields in this message to be
1836    * complete.
1837    * </pre>
1838    *
1839    * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness}
1840    */
1841   public static final class SlsaCompleteness extends com.google.protobuf.GeneratedMessageV3
1842       implements
1843       // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness)
1844       SlsaCompletenessOrBuilder {
1845     private static final long serialVersionUID = 0L;
1846     // Use SlsaCompleteness.newBuilder() to construct.
SlsaCompleteness(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1847     private SlsaCompleteness(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1848       super(builder);
1849     }
1850 
SlsaCompleteness()1851     private SlsaCompleteness() {}
1852 
1853     @java.lang.Override
1854     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)1855     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
1856       return new SlsaCompleteness();
1857     }
1858 
1859     @java.lang.Override
getUnknownFields()1860     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
1861       return this.unknownFields;
1862     }
1863 
getDescriptor()1864     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1865       return io.grafeas.v1.SlsaProvenanceProto
1866           .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
1867     }
1868 
1869     @java.lang.Override
1870     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1871         internalGetFieldAccessorTable() {
1872       return io.grafeas.v1.SlsaProvenanceProto
1873           .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_fieldAccessorTable
1874           .ensureFieldAccessorsInitialized(
1875               io.grafeas.v1.SlsaProvenance.SlsaCompleteness.class,
1876               io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder.class);
1877     }
1878 
1879     public static final int ARGUMENTS_FIELD_NUMBER = 1;
1880     private boolean arguments_ = false;
1881     /**
1882      *
1883      *
1884      * <pre>
1885      * If true, the builder claims that recipe.arguments is complete, meaning
1886      * that all external inputs are properly captured in the recipe.
1887      * </pre>
1888      *
1889      * <code>bool arguments = 1;</code>
1890      *
1891      * @return The arguments.
1892      */
1893     @java.lang.Override
getArguments()1894     public boolean getArguments() {
1895       return arguments_;
1896     }
1897 
1898     public static final int ENVIRONMENT_FIELD_NUMBER = 2;
1899     private boolean environment_ = false;
1900     /**
1901      *
1902      *
1903      * <pre>
1904      * If true, the builder claims that recipe.environment is claimed to be
1905      * complete.
1906      * </pre>
1907      *
1908      * <code>bool environment = 2;</code>
1909      *
1910      * @return The environment.
1911      */
1912     @java.lang.Override
getEnvironment()1913     public boolean getEnvironment() {
1914       return environment_;
1915     }
1916 
1917     public static final int MATERIALS_FIELD_NUMBER = 3;
1918     private boolean materials_ = false;
1919     /**
1920      *
1921      *
1922      * <pre>
1923      * If true, the builder claims that materials are complete, usually through
1924      * some controls to prevent network access. Sometimes called "hermetic".
1925      * </pre>
1926      *
1927      * <code>bool materials = 3;</code>
1928      *
1929      * @return The materials.
1930      */
1931     @java.lang.Override
getMaterials()1932     public boolean getMaterials() {
1933       return materials_;
1934     }
1935 
1936     private byte memoizedIsInitialized = -1;
1937 
1938     @java.lang.Override
isInitialized()1939     public final boolean isInitialized() {
1940       byte isInitialized = memoizedIsInitialized;
1941       if (isInitialized == 1) return true;
1942       if (isInitialized == 0) return false;
1943 
1944       memoizedIsInitialized = 1;
1945       return true;
1946     }
1947 
1948     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1949     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1950       if (arguments_ != false) {
1951         output.writeBool(1, arguments_);
1952       }
1953       if (environment_ != false) {
1954         output.writeBool(2, environment_);
1955       }
1956       if (materials_ != false) {
1957         output.writeBool(3, materials_);
1958       }
1959       getUnknownFields().writeTo(output);
1960     }
1961 
1962     @java.lang.Override
getSerializedSize()1963     public int getSerializedSize() {
1964       int size = memoizedSize;
1965       if (size != -1) return size;
1966 
1967       size = 0;
1968       if (arguments_ != false) {
1969         size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, arguments_);
1970       }
1971       if (environment_ != false) {
1972         size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, environment_);
1973       }
1974       if (materials_ != false) {
1975         size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, materials_);
1976       }
1977       size += getUnknownFields().getSerializedSize();
1978       memoizedSize = size;
1979       return size;
1980     }
1981 
1982     @java.lang.Override
equals(final java.lang.Object obj)1983     public boolean equals(final java.lang.Object obj) {
1984       if (obj == this) {
1985         return true;
1986       }
1987       if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness)) {
1988         return super.equals(obj);
1989       }
1990       io.grafeas.v1.SlsaProvenance.SlsaCompleteness other =
1991           (io.grafeas.v1.SlsaProvenance.SlsaCompleteness) obj;
1992 
1993       if (getArguments() != other.getArguments()) return false;
1994       if (getEnvironment() != other.getEnvironment()) return false;
1995       if (getMaterials() != other.getMaterials()) return false;
1996       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1997       return true;
1998     }
1999 
2000     @java.lang.Override
hashCode()2001     public int hashCode() {
2002       if (memoizedHashCode != 0) {
2003         return memoizedHashCode;
2004       }
2005       int hash = 41;
2006       hash = (19 * hash) + getDescriptor().hashCode();
2007       hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
2008       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getArguments());
2009       hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
2010       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnvironment());
2011       hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
2012       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMaterials());
2013       hash = (29 * hash) + getUnknownFields().hashCode();
2014       memoizedHashCode = hash;
2015       return hash;
2016     }
2017 
parseFrom(java.nio.ByteBuffer data)2018     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.nio.ByteBuffer data)
2019         throws com.google.protobuf.InvalidProtocolBufferException {
2020       return PARSER.parseFrom(data);
2021     }
2022 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2023     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2024         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2025         throws com.google.protobuf.InvalidProtocolBufferException {
2026       return PARSER.parseFrom(data, extensionRegistry);
2027     }
2028 
parseFrom( com.google.protobuf.ByteString data)2029     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2030         com.google.protobuf.ByteString data)
2031         throws com.google.protobuf.InvalidProtocolBufferException {
2032       return PARSER.parseFrom(data);
2033     }
2034 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2035     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2036         com.google.protobuf.ByteString data,
2037         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2038         throws com.google.protobuf.InvalidProtocolBufferException {
2039       return PARSER.parseFrom(data, extensionRegistry);
2040     }
2041 
parseFrom(byte[] data)2042     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(byte[] data)
2043         throws com.google.protobuf.InvalidProtocolBufferException {
2044       return PARSER.parseFrom(data);
2045     }
2046 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2047     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2048         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2049         throws com.google.protobuf.InvalidProtocolBufferException {
2050       return PARSER.parseFrom(data, extensionRegistry);
2051     }
2052 
parseFrom(java.io.InputStream input)2053     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(java.io.InputStream input)
2054         throws java.io.IOException {
2055       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2056     }
2057 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2058     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2059         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2060         throws java.io.IOException {
2061       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2062           PARSER, input, extensionRegistry);
2063     }
2064 
parseDelimitedFrom( java.io.InputStream input)2065     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
2066         java.io.InputStream input) throws java.io.IOException {
2067       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2068     }
2069 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2070     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseDelimitedFrom(
2071         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2072         throws java.io.IOException {
2073       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2074           PARSER, input, extensionRegistry);
2075     }
2076 
parseFrom( com.google.protobuf.CodedInputStream input)2077     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2078         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2079       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2080     }
2081 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2082     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness parseFrom(
2083         com.google.protobuf.CodedInputStream input,
2084         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2085         throws java.io.IOException {
2086       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2087           PARSER, input, extensionRegistry);
2088     }
2089 
2090     @java.lang.Override
newBuilderForType()2091     public Builder newBuilderForType() {
2092       return newBuilder();
2093     }
2094 
newBuilder()2095     public static Builder newBuilder() {
2096       return DEFAULT_INSTANCE.toBuilder();
2097     }
2098 
newBuilder(io.grafeas.v1.SlsaProvenance.SlsaCompleteness prototype)2099     public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaCompleteness prototype) {
2100       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2101     }
2102 
2103     @java.lang.Override
toBuilder()2104     public Builder toBuilder() {
2105       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2106     }
2107 
2108     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2109     protected Builder newBuilderForType(
2110         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2111       Builder builder = new Builder(parent);
2112       return builder;
2113     }
2114     /**
2115      *
2116      *
2117      * <pre>
2118      * Indicates that the builder claims certain fields in this message to be
2119      * complete.
2120      * </pre>
2121      *
2122      * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaCompleteness}
2123      */
2124     public static final class Builder
2125         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2126         implements
2127         // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaCompleteness)
2128         io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder {
getDescriptor()2129       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2130         return io.grafeas.v1.SlsaProvenanceProto
2131             .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
2132       }
2133 
2134       @java.lang.Override
2135       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2136           internalGetFieldAccessorTable() {
2137         return io.grafeas.v1.SlsaProvenanceProto
2138             .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_fieldAccessorTable
2139             .ensureFieldAccessorsInitialized(
2140                 io.grafeas.v1.SlsaProvenance.SlsaCompleteness.class,
2141                 io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder.class);
2142       }
2143 
2144       // Construct using io.grafeas.v1.SlsaProvenance.SlsaCompleteness.newBuilder()
Builder()2145       private Builder() {}
2146 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2147       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2148         super(parent);
2149       }
2150 
2151       @java.lang.Override
clear()2152       public Builder clear() {
2153         super.clear();
2154         bitField0_ = 0;
2155         arguments_ = false;
2156         environment_ = false;
2157         materials_ = false;
2158         return this;
2159       }
2160 
2161       @java.lang.Override
getDescriptorForType()2162       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2163         return io.grafeas.v1.SlsaProvenanceProto
2164             .internal_static_grafeas_v1_SlsaProvenance_SlsaCompleteness_descriptor;
2165       }
2166 
2167       @java.lang.Override
getDefaultInstanceForType()2168       public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() {
2169         return io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance();
2170       }
2171 
2172       @java.lang.Override
build()2173       public io.grafeas.v1.SlsaProvenance.SlsaCompleteness build() {
2174         io.grafeas.v1.SlsaProvenance.SlsaCompleteness result = buildPartial();
2175         if (!result.isInitialized()) {
2176           throw newUninitializedMessageException(result);
2177         }
2178         return result;
2179       }
2180 
2181       @java.lang.Override
buildPartial()2182       public io.grafeas.v1.SlsaProvenance.SlsaCompleteness buildPartial() {
2183         io.grafeas.v1.SlsaProvenance.SlsaCompleteness result =
2184             new io.grafeas.v1.SlsaProvenance.SlsaCompleteness(this);
2185         if (bitField0_ != 0) {
2186           buildPartial0(result);
2187         }
2188         onBuilt();
2189         return result;
2190       }
2191 
buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaCompleteness result)2192       private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaCompleteness result) {
2193         int from_bitField0_ = bitField0_;
2194         if (((from_bitField0_ & 0x00000001) != 0)) {
2195           result.arguments_ = arguments_;
2196         }
2197         if (((from_bitField0_ & 0x00000002) != 0)) {
2198           result.environment_ = environment_;
2199         }
2200         if (((from_bitField0_ & 0x00000004) != 0)) {
2201           result.materials_ = materials_;
2202         }
2203       }
2204 
2205       @java.lang.Override
clone()2206       public Builder clone() {
2207         return super.clone();
2208       }
2209 
2210       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2211       public Builder setField(
2212           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2213         return super.setField(field, value);
2214       }
2215 
2216       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2217       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2218         return super.clearField(field);
2219       }
2220 
2221       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2222       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2223         return super.clearOneof(oneof);
2224       }
2225 
2226       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2227       public Builder setRepeatedField(
2228           com.google.protobuf.Descriptors.FieldDescriptor field,
2229           int index,
2230           java.lang.Object value) {
2231         return super.setRepeatedField(field, index, value);
2232       }
2233 
2234       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2235       public Builder addRepeatedField(
2236           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2237         return super.addRepeatedField(field, value);
2238       }
2239 
2240       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2241       public Builder mergeFrom(com.google.protobuf.Message other) {
2242         if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaCompleteness) {
2243           return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaCompleteness) other);
2244         } else {
2245           super.mergeFrom(other);
2246           return this;
2247         }
2248       }
2249 
mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaCompleteness other)2250       public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaCompleteness other) {
2251         if (other == io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance())
2252           return this;
2253         if (other.getArguments() != false) {
2254           setArguments(other.getArguments());
2255         }
2256         if (other.getEnvironment() != false) {
2257           setEnvironment(other.getEnvironment());
2258         }
2259         if (other.getMaterials() != false) {
2260           setMaterials(other.getMaterials());
2261         }
2262         this.mergeUnknownFields(other.getUnknownFields());
2263         onChanged();
2264         return this;
2265       }
2266 
2267       @java.lang.Override
isInitialized()2268       public final boolean isInitialized() {
2269         return true;
2270       }
2271 
2272       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2273       public Builder mergeFrom(
2274           com.google.protobuf.CodedInputStream input,
2275           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2276           throws java.io.IOException {
2277         if (extensionRegistry == null) {
2278           throw new java.lang.NullPointerException();
2279         }
2280         try {
2281           boolean done = false;
2282           while (!done) {
2283             int tag = input.readTag();
2284             switch (tag) {
2285               case 0:
2286                 done = true;
2287                 break;
2288               case 8:
2289                 {
2290                   arguments_ = input.readBool();
2291                   bitField0_ |= 0x00000001;
2292                   break;
2293                 } // case 8
2294               case 16:
2295                 {
2296                   environment_ = input.readBool();
2297                   bitField0_ |= 0x00000002;
2298                   break;
2299                 } // case 16
2300               case 24:
2301                 {
2302                   materials_ = input.readBool();
2303                   bitField0_ |= 0x00000004;
2304                   break;
2305                 } // case 24
2306               default:
2307                 {
2308                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2309                     done = true; // was an endgroup tag
2310                   }
2311                   break;
2312                 } // default:
2313             } // switch (tag)
2314           } // while (!done)
2315         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2316           throw e.unwrapIOException();
2317         } finally {
2318           onChanged();
2319         } // finally
2320         return this;
2321       }
2322 
2323       private int bitField0_;
2324 
2325       private boolean arguments_;
2326       /**
2327        *
2328        *
2329        * <pre>
2330        * If true, the builder claims that recipe.arguments is complete, meaning
2331        * that all external inputs are properly captured in the recipe.
2332        * </pre>
2333        *
2334        * <code>bool arguments = 1;</code>
2335        *
2336        * @return The arguments.
2337        */
2338       @java.lang.Override
getArguments()2339       public boolean getArguments() {
2340         return arguments_;
2341       }
2342       /**
2343        *
2344        *
2345        * <pre>
2346        * If true, the builder claims that recipe.arguments is complete, meaning
2347        * that all external inputs are properly captured in the recipe.
2348        * </pre>
2349        *
2350        * <code>bool arguments = 1;</code>
2351        *
2352        * @param value The arguments to set.
2353        * @return This builder for chaining.
2354        */
setArguments(boolean value)2355       public Builder setArguments(boolean value) {
2356 
2357         arguments_ = value;
2358         bitField0_ |= 0x00000001;
2359         onChanged();
2360         return this;
2361       }
2362       /**
2363        *
2364        *
2365        * <pre>
2366        * If true, the builder claims that recipe.arguments is complete, meaning
2367        * that all external inputs are properly captured in the recipe.
2368        * </pre>
2369        *
2370        * <code>bool arguments = 1;</code>
2371        *
2372        * @return This builder for chaining.
2373        */
clearArguments()2374       public Builder clearArguments() {
2375         bitField0_ = (bitField0_ & ~0x00000001);
2376         arguments_ = false;
2377         onChanged();
2378         return this;
2379       }
2380 
2381       private boolean environment_;
2382       /**
2383        *
2384        *
2385        * <pre>
2386        * If true, the builder claims that recipe.environment is claimed to be
2387        * complete.
2388        * </pre>
2389        *
2390        * <code>bool environment = 2;</code>
2391        *
2392        * @return The environment.
2393        */
2394       @java.lang.Override
getEnvironment()2395       public boolean getEnvironment() {
2396         return environment_;
2397       }
2398       /**
2399        *
2400        *
2401        * <pre>
2402        * If true, the builder claims that recipe.environment is claimed to be
2403        * complete.
2404        * </pre>
2405        *
2406        * <code>bool environment = 2;</code>
2407        *
2408        * @param value The environment to set.
2409        * @return This builder for chaining.
2410        */
setEnvironment(boolean value)2411       public Builder setEnvironment(boolean value) {
2412 
2413         environment_ = value;
2414         bitField0_ |= 0x00000002;
2415         onChanged();
2416         return this;
2417       }
2418       /**
2419        *
2420        *
2421        * <pre>
2422        * If true, the builder claims that recipe.environment is claimed to be
2423        * complete.
2424        * </pre>
2425        *
2426        * <code>bool environment = 2;</code>
2427        *
2428        * @return This builder for chaining.
2429        */
clearEnvironment()2430       public Builder clearEnvironment() {
2431         bitField0_ = (bitField0_ & ~0x00000002);
2432         environment_ = false;
2433         onChanged();
2434         return this;
2435       }
2436 
2437       private boolean materials_;
2438       /**
2439        *
2440        *
2441        * <pre>
2442        * If true, the builder claims that materials are complete, usually through
2443        * some controls to prevent network access. Sometimes called "hermetic".
2444        * </pre>
2445        *
2446        * <code>bool materials = 3;</code>
2447        *
2448        * @return The materials.
2449        */
2450       @java.lang.Override
getMaterials()2451       public boolean getMaterials() {
2452         return materials_;
2453       }
2454       /**
2455        *
2456        *
2457        * <pre>
2458        * If true, the builder claims that materials are complete, usually through
2459        * some controls to prevent network access. Sometimes called "hermetic".
2460        * </pre>
2461        *
2462        * <code>bool materials = 3;</code>
2463        *
2464        * @param value The materials to set.
2465        * @return This builder for chaining.
2466        */
setMaterials(boolean value)2467       public Builder setMaterials(boolean value) {
2468 
2469         materials_ = value;
2470         bitField0_ |= 0x00000004;
2471         onChanged();
2472         return this;
2473       }
2474       /**
2475        *
2476        *
2477        * <pre>
2478        * If true, the builder claims that materials are complete, usually through
2479        * some controls to prevent network access. Sometimes called "hermetic".
2480        * </pre>
2481        *
2482        * <code>bool materials = 3;</code>
2483        *
2484        * @return This builder for chaining.
2485        */
clearMaterials()2486       public Builder clearMaterials() {
2487         bitField0_ = (bitField0_ & ~0x00000004);
2488         materials_ = false;
2489         onChanged();
2490         return this;
2491       }
2492 
2493       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2494       public final Builder setUnknownFields(
2495           final com.google.protobuf.UnknownFieldSet unknownFields) {
2496         return super.setUnknownFields(unknownFields);
2497       }
2498 
2499       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2500       public final Builder mergeUnknownFields(
2501           final com.google.protobuf.UnknownFieldSet unknownFields) {
2502         return super.mergeUnknownFields(unknownFields);
2503       }
2504 
2505       // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
2506     }
2507 
2508     // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaCompleteness)
2509     private static final io.grafeas.v1.SlsaProvenance.SlsaCompleteness DEFAULT_INSTANCE;
2510 
2511     static {
2512       DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaCompleteness();
2513     }
2514 
getDefaultInstance()2515     public static io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstance() {
2516       return DEFAULT_INSTANCE;
2517     }
2518 
2519     private static final com.google.protobuf.Parser<SlsaCompleteness> PARSER =
2520         new com.google.protobuf.AbstractParser<SlsaCompleteness>() {
2521           @java.lang.Override
2522           public SlsaCompleteness parsePartialFrom(
2523               com.google.protobuf.CodedInputStream input,
2524               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2525               throws com.google.protobuf.InvalidProtocolBufferException {
2526             Builder builder = newBuilder();
2527             try {
2528               builder.mergeFrom(input, extensionRegistry);
2529             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2530               throw e.setUnfinishedMessage(builder.buildPartial());
2531             } catch (com.google.protobuf.UninitializedMessageException e) {
2532               throw e.asInvalidProtocolBufferException()
2533                   .setUnfinishedMessage(builder.buildPartial());
2534             } catch (java.io.IOException e) {
2535               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2536                   .setUnfinishedMessage(builder.buildPartial());
2537             }
2538             return builder.buildPartial();
2539           }
2540         };
2541 
parser()2542     public static com.google.protobuf.Parser<SlsaCompleteness> parser() {
2543       return PARSER;
2544     }
2545 
2546     @java.lang.Override
getParserForType()2547     public com.google.protobuf.Parser<SlsaCompleteness> getParserForType() {
2548       return PARSER;
2549     }
2550 
2551     @java.lang.Override
getDefaultInstanceForType()2552     public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getDefaultInstanceForType() {
2553       return DEFAULT_INSTANCE;
2554     }
2555   }
2556 
2557   public interface SlsaMetadataOrBuilder
2558       extends
2559       // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaMetadata)
2560       com.google.protobuf.MessageOrBuilder {
2561 
2562     /**
2563      *
2564      *
2565      * <pre>
2566      * Identifies the particular build invocation, which can be useful for
2567      * finding associated logs or other ad-hoc analysis. The value SHOULD be
2568      * globally unique, per in-toto Provenance spec.
2569      * </pre>
2570      *
2571      * <code>string build_invocation_id = 1;</code>
2572      *
2573      * @return The buildInvocationId.
2574      */
getBuildInvocationId()2575     java.lang.String getBuildInvocationId();
2576     /**
2577      *
2578      *
2579      * <pre>
2580      * Identifies the particular build invocation, which can be useful for
2581      * finding associated logs or other ad-hoc analysis. The value SHOULD be
2582      * globally unique, per in-toto Provenance spec.
2583      * </pre>
2584      *
2585      * <code>string build_invocation_id = 1;</code>
2586      *
2587      * @return The bytes for buildInvocationId.
2588      */
getBuildInvocationIdBytes()2589     com.google.protobuf.ByteString getBuildInvocationIdBytes();
2590 
2591     /**
2592      *
2593      *
2594      * <pre>
2595      * The timestamp of when the build started.
2596      * </pre>
2597      *
2598      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2599      *
2600      * @return Whether the buildStartedOn field is set.
2601      */
hasBuildStartedOn()2602     boolean hasBuildStartedOn();
2603     /**
2604      *
2605      *
2606      * <pre>
2607      * The timestamp of when the build started.
2608      * </pre>
2609      *
2610      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2611      *
2612      * @return The buildStartedOn.
2613      */
getBuildStartedOn()2614     com.google.protobuf.Timestamp getBuildStartedOn();
2615     /**
2616      *
2617      *
2618      * <pre>
2619      * The timestamp of when the build started.
2620      * </pre>
2621      *
2622      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2623      */
getBuildStartedOnOrBuilder()2624     com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder();
2625 
2626     /**
2627      *
2628      *
2629      * <pre>
2630      * The timestamp of when the build completed.
2631      * </pre>
2632      *
2633      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2634      *
2635      * @return Whether the buildFinishedOn field is set.
2636      */
hasBuildFinishedOn()2637     boolean hasBuildFinishedOn();
2638     /**
2639      *
2640      *
2641      * <pre>
2642      * The timestamp of when the build completed.
2643      * </pre>
2644      *
2645      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2646      *
2647      * @return The buildFinishedOn.
2648      */
getBuildFinishedOn()2649     com.google.protobuf.Timestamp getBuildFinishedOn();
2650     /**
2651      *
2652      *
2653      * <pre>
2654      * The timestamp of when the build completed.
2655      * </pre>
2656      *
2657      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2658      */
getBuildFinishedOnOrBuilder()2659     com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder();
2660 
2661     /**
2662      *
2663      *
2664      * <pre>
2665      * Indicates that the builder claims certain fields in this message to be
2666      * complete.
2667      * </pre>
2668      *
2669      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2670      *
2671      * @return Whether the completeness field is set.
2672      */
hasCompleteness()2673     boolean hasCompleteness();
2674     /**
2675      *
2676      *
2677      * <pre>
2678      * Indicates that the builder claims certain fields in this message to be
2679      * complete.
2680      * </pre>
2681      *
2682      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2683      *
2684      * @return The completeness.
2685      */
getCompleteness()2686     io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness();
2687     /**
2688      *
2689      *
2690      * <pre>
2691      * Indicates that the builder claims certain fields in this message to be
2692      * complete.
2693      * </pre>
2694      *
2695      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2696      */
getCompletenessOrBuilder()2697     io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder();
2698 
2699     /**
2700      *
2701      *
2702      * <pre>
2703      * If true, the builder claims that running the recipe on materials will
2704      * produce bit-for-bit identical output.
2705      * </pre>
2706      *
2707      * <code>bool reproducible = 5;</code>
2708      *
2709      * @return The reproducible.
2710      */
getReproducible()2711     boolean getReproducible();
2712   }
2713   /**
2714    *
2715    *
2716    * <pre>
2717    * Other properties of the build.
2718    * </pre>
2719    *
2720    * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata}
2721    */
2722   public static final class SlsaMetadata extends com.google.protobuf.GeneratedMessageV3
2723       implements
2724       // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaMetadata)
2725       SlsaMetadataOrBuilder {
2726     private static final long serialVersionUID = 0L;
2727     // Use SlsaMetadata.newBuilder() to construct.
SlsaMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2728     private SlsaMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
2729       super(builder);
2730     }
2731 
SlsaMetadata()2732     private SlsaMetadata() {
2733       buildInvocationId_ = "";
2734     }
2735 
2736     @java.lang.Override
2737     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)2738     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
2739       return new SlsaMetadata();
2740     }
2741 
2742     @java.lang.Override
getUnknownFields()2743     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
2744       return this.unknownFields;
2745     }
2746 
getDescriptor()2747     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2748       return io.grafeas.v1.SlsaProvenanceProto
2749           .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
2750     }
2751 
2752     @java.lang.Override
2753     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2754         internalGetFieldAccessorTable() {
2755       return io.grafeas.v1.SlsaProvenanceProto
2756           .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_fieldAccessorTable
2757           .ensureFieldAccessorsInitialized(
2758               io.grafeas.v1.SlsaProvenance.SlsaMetadata.class,
2759               io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder.class);
2760     }
2761 
2762     public static final int BUILD_INVOCATION_ID_FIELD_NUMBER = 1;
2763 
2764     @SuppressWarnings("serial")
2765     private volatile java.lang.Object buildInvocationId_ = "";
2766     /**
2767      *
2768      *
2769      * <pre>
2770      * Identifies the particular build invocation, which can be useful for
2771      * finding associated logs or other ad-hoc analysis. The value SHOULD be
2772      * globally unique, per in-toto Provenance spec.
2773      * </pre>
2774      *
2775      * <code>string build_invocation_id = 1;</code>
2776      *
2777      * @return The buildInvocationId.
2778      */
2779     @java.lang.Override
getBuildInvocationId()2780     public java.lang.String getBuildInvocationId() {
2781       java.lang.Object ref = buildInvocationId_;
2782       if (ref instanceof java.lang.String) {
2783         return (java.lang.String) ref;
2784       } else {
2785         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2786         java.lang.String s = bs.toStringUtf8();
2787         buildInvocationId_ = s;
2788         return s;
2789       }
2790     }
2791     /**
2792      *
2793      *
2794      * <pre>
2795      * Identifies the particular build invocation, which can be useful for
2796      * finding associated logs or other ad-hoc analysis. The value SHOULD be
2797      * globally unique, per in-toto Provenance spec.
2798      * </pre>
2799      *
2800      * <code>string build_invocation_id = 1;</code>
2801      *
2802      * @return The bytes for buildInvocationId.
2803      */
2804     @java.lang.Override
getBuildInvocationIdBytes()2805     public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
2806       java.lang.Object ref = buildInvocationId_;
2807       if (ref instanceof java.lang.String) {
2808         com.google.protobuf.ByteString b =
2809             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2810         buildInvocationId_ = b;
2811         return b;
2812       } else {
2813         return (com.google.protobuf.ByteString) ref;
2814       }
2815     }
2816 
2817     public static final int BUILD_STARTED_ON_FIELD_NUMBER = 2;
2818     private com.google.protobuf.Timestamp buildStartedOn_;
2819     /**
2820      *
2821      *
2822      * <pre>
2823      * The timestamp of when the build started.
2824      * </pre>
2825      *
2826      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2827      *
2828      * @return Whether the buildStartedOn field is set.
2829      */
2830     @java.lang.Override
hasBuildStartedOn()2831     public boolean hasBuildStartedOn() {
2832       return buildStartedOn_ != null;
2833     }
2834     /**
2835      *
2836      *
2837      * <pre>
2838      * The timestamp of when the build started.
2839      * </pre>
2840      *
2841      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2842      *
2843      * @return The buildStartedOn.
2844      */
2845     @java.lang.Override
getBuildStartedOn()2846     public com.google.protobuf.Timestamp getBuildStartedOn() {
2847       return buildStartedOn_ == null
2848           ? com.google.protobuf.Timestamp.getDefaultInstance()
2849           : buildStartedOn_;
2850     }
2851     /**
2852      *
2853      *
2854      * <pre>
2855      * The timestamp of when the build started.
2856      * </pre>
2857      *
2858      * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
2859      */
2860     @java.lang.Override
getBuildStartedOnOrBuilder()2861     public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
2862       return buildStartedOn_ == null
2863           ? com.google.protobuf.Timestamp.getDefaultInstance()
2864           : buildStartedOn_;
2865     }
2866 
2867     public static final int BUILD_FINISHED_ON_FIELD_NUMBER = 3;
2868     private com.google.protobuf.Timestamp buildFinishedOn_;
2869     /**
2870      *
2871      *
2872      * <pre>
2873      * The timestamp of when the build completed.
2874      * </pre>
2875      *
2876      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2877      *
2878      * @return Whether the buildFinishedOn field is set.
2879      */
2880     @java.lang.Override
hasBuildFinishedOn()2881     public boolean hasBuildFinishedOn() {
2882       return buildFinishedOn_ != null;
2883     }
2884     /**
2885      *
2886      *
2887      * <pre>
2888      * The timestamp of when the build completed.
2889      * </pre>
2890      *
2891      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2892      *
2893      * @return The buildFinishedOn.
2894      */
2895     @java.lang.Override
getBuildFinishedOn()2896     public com.google.protobuf.Timestamp getBuildFinishedOn() {
2897       return buildFinishedOn_ == null
2898           ? com.google.protobuf.Timestamp.getDefaultInstance()
2899           : buildFinishedOn_;
2900     }
2901     /**
2902      *
2903      *
2904      * <pre>
2905      * The timestamp of when the build completed.
2906      * </pre>
2907      *
2908      * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
2909      */
2910     @java.lang.Override
getBuildFinishedOnOrBuilder()2911     public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
2912       return buildFinishedOn_ == null
2913           ? com.google.protobuf.Timestamp.getDefaultInstance()
2914           : buildFinishedOn_;
2915     }
2916 
2917     public static final int COMPLETENESS_FIELD_NUMBER = 4;
2918     private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
2919     /**
2920      *
2921      *
2922      * <pre>
2923      * Indicates that the builder claims certain fields in this message to be
2924      * complete.
2925      * </pre>
2926      *
2927      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2928      *
2929      * @return Whether the completeness field is set.
2930      */
2931     @java.lang.Override
hasCompleteness()2932     public boolean hasCompleteness() {
2933       return completeness_ != null;
2934     }
2935     /**
2936      *
2937      *
2938      * <pre>
2939      * Indicates that the builder claims certain fields in this message to be
2940      * complete.
2941      * </pre>
2942      *
2943      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2944      *
2945      * @return The completeness.
2946      */
2947     @java.lang.Override
getCompleteness()2948     public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
2949       return completeness_ == null
2950           ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
2951           : completeness_;
2952     }
2953     /**
2954      *
2955      *
2956      * <pre>
2957      * Indicates that the builder claims certain fields in this message to be
2958      * complete.
2959      * </pre>
2960      *
2961      * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
2962      */
2963     @java.lang.Override
getCompletenessOrBuilder()2964     public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
2965       return completeness_ == null
2966           ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
2967           : completeness_;
2968     }
2969 
2970     public static final int REPRODUCIBLE_FIELD_NUMBER = 5;
2971     private boolean reproducible_ = false;
2972     /**
2973      *
2974      *
2975      * <pre>
2976      * If true, the builder claims that running the recipe on materials will
2977      * produce bit-for-bit identical output.
2978      * </pre>
2979      *
2980      * <code>bool reproducible = 5;</code>
2981      *
2982      * @return The reproducible.
2983      */
2984     @java.lang.Override
getReproducible()2985     public boolean getReproducible() {
2986       return reproducible_;
2987     }
2988 
2989     private byte memoizedIsInitialized = -1;
2990 
2991     @java.lang.Override
isInitialized()2992     public final boolean isInitialized() {
2993       byte isInitialized = memoizedIsInitialized;
2994       if (isInitialized == 1) return true;
2995       if (isInitialized == 0) return false;
2996 
2997       memoizedIsInitialized = 1;
2998       return true;
2999     }
3000 
3001     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3002     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3003       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildInvocationId_)) {
3004         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildInvocationId_);
3005       }
3006       if (buildStartedOn_ != null) {
3007         output.writeMessage(2, getBuildStartedOn());
3008       }
3009       if (buildFinishedOn_ != null) {
3010         output.writeMessage(3, getBuildFinishedOn());
3011       }
3012       if (completeness_ != null) {
3013         output.writeMessage(4, getCompleteness());
3014       }
3015       if (reproducible_ != false) {
3016         output.writeBool(5, reproducible_);
3017       }
3018       getUnknownFields().writeTo(output);
3019     }
3020 
3021     @java.lang.Override
getSerializedSize()3022     public int getSerializedSize() {
3023       int size = memoizedSize;
3024       if (size != -1) return size;
3025 
3026       size = 0;
3027       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildInvocationId_)) {
3028         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildInvocationId_);
3029       }
3030       if (buildStartedOn_ != null) {
3031         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBuildStartedOn());
3032       }
3033       if (buildFinishedOn_ != null) {
3034         size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBuildFinishedOn());
3035       }
3036       if (completeness_ != null) {
3037         size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCompleteness());
3038       }
3039       if (reproducible_ != false) {
3040         size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, reproducible_);
3041       }
3042       size += getUnknownFields().getSerializedSize();
3043       memoizedSize = size;
3044       return size;
3045     }
3046 
3047     @java.lang.Override
equals(final java.lang.Object obj)3048     public boolean equals(final java.lang.Object obj) {
3049       if (obj == this) {
3050         return true;
3051       }
3052       if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata)) {
3053         return super.equals(obj);
3054       }
3055       io.grafeas.v1.SlsaProvenance.SlsaMetadata other =
3056           (io.grafeas.v1.SlsaProvenance.SlsaMetadata) obj;
3057 
3058       if (!getBuildInvocationId().equals(other.getBuildInvocationId())) return false;
3059       if (hasBuildStartedOn() != other.hasBuildStartedOn()) return false;
3060       if (hasBuildStartedOn()) {
3061         if (!getBuildStartedOn().equals(other.getBuildStartedOn())) return false;
3062       }
3063       if (hasBuildFinishedOn() != other.hasBuildFinishedOn()) return false;
3064       if (hasBuildFinishedOn()) {
3065         if (!getBuildFinishedOn().equals(other.getBuildFinishedOn())) return false;
3066       }
3067       if (hasCompleteness() != other.hasCompleteness()) return false;
3068       if (hasCompleteness()) {
3069         if (!getCompleteness().equals(other.getCompleteness())) return false;
3070       }
3071       if (getReproducible() != other.getReproducible()) return false;
3072       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3073       return true;
3074     }
3075 
3076     @java.lang.Override
hashCode()3077     public int hashCode() {
3078       if (memoizedHashCode != 0) {
3079         return memoizedHashCode;
3080       }
3081       int hash = 41;
3082       hash = (19 * hash) + getDescriptor().hashCode();
3083       hash = (37 * hash) + BUILD_INVOCATION_ID_FIELD_NUMBER;
3084       hash = (53 * hash) + getBuildInvocationId().hashCode();
3085       if (hasBuildStartedOn()) {
3086         hash = (37 * hash) + BUILD_STARTED_ON_FIELD_NUMBER;
3087         hash = (53 * hash) + getBuildStartedOn().hashCode();
3088       }
3089       if (hasBuildFinishedOn()) {
3090         hash = (37 * hash) + BUILD_FINISHED_ON_FIELD_NUMBER;
3091         hash = (53 * hash) + getBuildFinishedOn().hashCode();
3092       }
3093       if (hasCompleteness()) {
3094         hash = (37 * hash) + COMPLETENESS_FIELD_NUMBER;
3095         hash = (53 * hash) + getCompleteness().hashCode();
3096       }
3097       hash = (37 * hash) + REPRODUCIBLE_FIELD_NUMBER;
3098       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReproducible());
3099       hash = (29 * hash) + getUnknownFields().hashCode();
3100       memoizedHashCode = hash;
3101       return hash;
3102     }
3103 
parseFrom(java.nio.ByteBuffer data)3104     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.nio.ByteBuffer data)
3105         throws com.google.protobuf.InvalidProtocolBufferException {
3106       return PARSER.parseFrom(data);
3107     }
3108 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3109     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3110         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3111         throws com.google.protobuf.InvalidProtocolBufferException {
3112       return PARSER.parseFrom(data, extensionRegistry);
3113     }
3114 
parseFrom( com.google.protobuf.ByteString data)3115     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3116         com.google.protobuf.ByteString data)
3117         throws com.google.protobuf.InvalidProtocolBufferException {
3118       return PARSER.parseFrom(data);
3119     }
3120 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3121     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3122         com.google.protobuf.ByteString data,
3123         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3124         throws com.google.protobuf.InvalidProtocolBufferException {
3125       return PARSER.parseFrom(data, extensionRegistry);
3126     }
3127 
parseFrom(byte[] data)3128     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(byte[] data)
3129         throws com.google.protobuf.InvalidProtocolBufferException {
3130       return PARSER.parseFrom(data);
3131     }
3132 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3133     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3134         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3135         throws com.google.protobuf.InvalidProtocolBufferException {
3136       return PARSER.parseFrom(data, extensionRegistry);
3137     }
3138 
parseFrom(java.io.InputStream input)3139     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(java.io.InputStream input)
3140         throws java.io.IOException {
3141       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3142     }
3143 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3144     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3145         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3146         throws java.io.IOException {
3147       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3148           PARSER, input, extensionRegistry);
3149     }
3150 
parseDelimitedFrom( java.io.InputStream input)3151     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
3152         java.io.InputStream input) throws java.io.IOException {
3153       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3154     }
3155 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3156     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseDelimitedFrom(
3157         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3158         throws java.io.IOException {
3159       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3160           PARSER, input, extensionRegistry);
3161     }
3162 
parseFrom( com.google.protobuf.CodedInputStream input)3163     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3164         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3165       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3166     }
3167 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3168     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata parseFrom(
3169         com.google.protobuf.CodedInputStream input,
3170         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3171         throws java.io.IOException {
3172       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3173           PARSER, input, extensionRegistry);
3174     }
3175 
3176     @java.lang.Override
newBuilderForType()3177     public Builder newBuilderForType() {
3178       return newBuilder();
3179     }
3180 
newBuilder()3181     public static Builder newBuilder() {
3182       return DEFAULT_INSTANCE.toBuilder();
3183     }
3184 
newBuilder(io.grafeas.v1.SlsaProvenance.SlsaMetadata prototype)3185     public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaMetadata prototype) {
3186       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3187     }
3188 
3189     @java.lang.Override
toBuilder()3190     public Builder toBuilder() {
3191       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3192     }
3193 
3194     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3195     protected Builder newBuilderForType(
3196         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3197       Builder builder = new Builder(parent);
3198       return builder;
3199     }
3200     /**
3201      *
3202      *
3203      * <pre>
3204      * Other properties of the build.
3205      * </pre>
3206      *
3207      * Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaMetadata}
3208      */
3209     public static final class Builder
3210         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3211         implements
3212         // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaMetadata)
3213         io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder {
getDescriptor()3214       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3215         return io.grafeas.v1.SlsaProvenanceProto
3216             .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
3217       }
3218 
3219       @java.lang.Override
3220       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3221           internalGetFieldAccessorTable() {
3222         return io.grafeas.v1.SlsaProvenanceProto
3223             .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_fieldAccessorTable
3224             .ensureFieldAccessorsInitialized(
3225                 io.grafeas.v1.SlsaProvenance.SlsaMetadata.class,
3226                 io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder.class);
3227       }
3228 
3229       // Construct using io.grafeas.v1.SlsaProvenance.SlsaMetadata.newBuilder()
Builder()3230       private Builder() {}
3231 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3232       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3233         super(parent);
3234       }
3235 
3236       @java.lang.Override
clear()3237       public Builder clear() {
3238         super.clear();
3239         bitField0_ = 0;
3240         buildInvocationId_ = "";
3241         buildStartedOn_ = null;
3242         if (buildStartedOnBuilder_ != null) {
3243           buildStartedOnBuilder_.dispose();
3244           buildStartedOnBuilder_ = null;
3245         }
3246         buildFinishedOn_ = null;
3247         if (buildFinishedOnBuilder_ != null) {
3248           buildFinishedOnBuilder_.dispose();
3249           buildFinishedOnBuilder_ = null;
3250         }
3251         completeness_ = null;
3252         if (completenessBuilder_ != null) {
3253           completenessBuilder_.dispose();
3254           completenessBuilder_ = null;
3255         }
3256         reproducible_ = false;
3257         return this;
3258       }
3259 
3260       @java.lang.Override
getDescriptorForType()3261       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3262         return io.grafeas.v1.SlsaProvenanceProto
3263             .internal_static_grafeas_v1_SlsaProvenance_SlsaMetadata_descriptor;
3264       }
3265 
3266       @java.lang.Override
getDefaultInstanceForType()3267       public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() {
3268         return io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance();
3269       }
3270 
3271       @java.lang.Override
build()3272       public io.grafeas.v1.SlsaProvenance.SlsaMetadata build() {
3273         io.grafeas.v1.SlsaProvenance.SlsaMetadata result = buildPartial();
3274         if (!result.isInitialized()) {
3275           throw newUninitializedMessageException(result);
3276         }
3277         return result;
3278       }
3279 
3280       @java.lang.Override
buildPartial()3281       public io.grafeas.v1.SlsaProvenance.SlsaMetadata buildPartial() {
3282         io.grafeas.v1.SlsaProvenance.SlsaMetadata result =
3283             new io.grafeas.v1.SlsaProvenance.SlsaMetadata(this);
3284         if (bitField0_ != 0) {
3285           buildPartial0(result);
3286         }
3287         onBuilt();
3288         return result;
3289       }
3290 
buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaMetadata result)3291       private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaMetadata result) {
3292         int from_bitField0_ = bitField0_;
3293         if (((from_bitField0_ & 0x00000001) != 0)) {
3294           result.buildInvocationId_ = buildInvocationId_;
3295         }
3296         if (((from_bitField0_ & 0x00000002) != 0)) {
3297           result.buildStartedOn_ =
3298               buildStartedOnBuilder_ == null ? buildStartedOn_ : buildStartedOnBuilder_.build();
3299         }
3300         if (((from_bitField0_ & 0x00000004) != 0)) {
3301           result.buildFinishedOn_ =
3302               buildFinishedOnBuilder_ == null ? buildFinishedOn_ : buildFinishedOnBuilder_.build();
3303         }
3304         if (((from_bitField0_ & 0x00000008) != 0)) {
3305           result.completeness_ =
3306               completenessBuilder_ == null ? completeness_ : completenessBuilder_.build();
3307         }
3308         if (((from_bitField0_ & 0x00000010) != 0)) {
3309           result.reproducible_ = reproducible_;
3310         }
3311       }
3312 
3313       @java.lang.Override
clone()3314       public Builder clone() {
3315         return super.clone();
3316       }
3317 
3318       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3319       public Builder setField(
3320           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3321         return super.setField(field, value);
3322       }
3323 
3324       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3325       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3326         return super.clearField(field);
3327       }
3328 
3329       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3330       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3331         return super.clearOneof(oneof);
3332       }
3333 
3334       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3335       public Builder setRepeatedField(
3336           com.google.protobuf.Descriptors.FieldDescriptor field,
3337           int index,
3338           java.lang.Object value) {
3339         return super.setRepeatedField(field, index, value);
3340       }
3341 
3342       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3343       public Builder addRepeatedField(
3344           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3345         return super.addRepeatedField(field, value);
3346       }
3347 
3348       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3349       public Builder mergeFrom(com.google.protobuf.Message other) {
3350         if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaMetadata) {
3351           return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaMetadata) other);
3352         } else {
3353           super.mergeFrom(other);
3354           return this;
3355         }
3356       }
3357 
mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaMetadata other)3358       public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaMetadata other) {
3359         if (other == io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()) return this;
3360         if (!other.getBuildInvocationId().isEmpty()) {
3361           buildInvocationId_ = other.buildInvocationId_;
3362           bitField0_ |= 0x00000001;
3363           onChanged();
3364         }
3365         if (other.hasBuildStartedOn()) {
3366           mergeBuildStartedOn(other.getBuildStartedOn());
3367         }
3368         if (other.hasBuildFinishedOn()) {
3369           mergeBuildFinishedOn(other.getBuildFinishedOn());
3370         }
3371         if (other.hasCompleteness()) {
3372           mergeCompleteness(other.getCompleteness());
3373         }
3374         if (other.getReproducible() != false) {
3375           setReproducible(other.getReproducible());
3376         }
3377         this.mergeUnknownFields(other.getUnknownFields());
3378         onChanged();
3379         return this;
3380       }
3381 
3382       @java.lang.Override
isInitialized()3383       public final boolean isInitialized() {
3384         return true;
3385       }
3386 
3387       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3388       public Builder mergeFrom(
3389           com.google.protobuf.CodedInputStream input,
3390           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3391           throws java.io.IOException {
3392         if (extensionRegistry == null) {
3393           throw new java.lang.NullPointerException();
3394         }
3395         try {
3396           boolean done = false;
3397           while (!done) {
3398             int tag = input.readTag();
3399             switch (tag) {
3400               case 0:
3401                 done = true;
3402                 break;
3403               case 10:
3404                 {
3405                   buildInvocationId_ = input.readStringRequireUtf8();
3406                   bitField0_ |= 0x00000001;
3407                   break;
3408                 } // case 10
3409               case 18:
3410                 {
3411                   input.readMessage(
3412                       getBuildStartedOnFieldBuilder().getBuilder(), extensionRegistry);
3413                   bitField0_ |= 0x00000002;
3414                   break;
3415                 } // case 18
3416               case 26:
3417                 {
3418                   input.readMessage(
3419                       getBuildFinishedOnFieldBuilder().getBuilder(), extensionRegistry);
3420                   bitField0_ |= 0x00000004;
3421                   break;
3422                 } // case 26
3423               case 34:
3424                 {
3425                   input.readMessage(getCompletenessFieldBuilder().getBuilder(), extensionRegistry);
3426                   bitField0_ |= 0x00000008;
3427                   break;
3428                 } // case 34
3429               case 40:
3430                 {
3431                   reproducible_ = input.readBool();
3432                   bitField0_ |= 0x00000010;
3433                   break;
3434                 } // case 40
3435               default:
3436                 {
3437                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3438                     done = true; // was an endgroup tag
3439                   }
3440                   break;
3441                 } // default:
3442             } // switch (tag)
3443           } // while (!done)
3444         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3445           throw e.unwrapIOException();
3446         } finally {
3447           onChanged();
3448         } // finally
3449         return this;
3450       }
3451 
3452       private int bitField0_;
3453 
3454       private java.lang.Object buildInvocationId_ = "";
3455       /**
3456        *
3457        *
3458        * <pre>
3459        * Identifies the particular build invocation, which can be useful for
3460        * finding associated logs or other ad-hoc analysis. The value SHOULD be
3461        * globally unique, per in-toto Provenance spec.
3462        * </pre>
3463        *
3464        * <code>string build_invocation_id = 1;</code>
3465        *
3466        * @return The buildInvocationId.
3467        */
getBuildInvocationId()3468       public java.lang.String getBuildInvocationId() {
3469         java.lang.Object ref = buildInvocationId_;
3470         if (!(ref instanceof java.lang.String)) {
3471           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3472           java.lang.String s = bs.toStringUtf8();
3473           buildInvocationId_ = s;
3474           return s;
3475         } else {
3476           return (java.lang.String) ref;
3477         }
3478       }
3479       /**
3480        *
3481        *
3482        * <pre>
3483        * Identifies the particular build invocation, which can be useful for
3484        * finding associated logs or other ad-hoc analysis. The value SHOULD be
3485        * globally unique, per in-toto Provenance spec.
3486        * </pre>
3487        *
3488        * <code>string build_invocation_id = 1;</code>
3489        *
3490        * @return The bytes for buildInvocationId.
3491        */
getBuildInvocationIdBytes()3492       public com.google.protobuf.ByteString getBuildInvocationIdBytes() {
3493         java.lang.Object ref = buildInvocationId_;
3494         if (ref instanceof String) {
3495           com.google.protobuf.ByteString b =
3496               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3497           buildInvocationId_ = b;
3498           return b;
3499         } else {
3500           return (com.google.protobuf.ByteString) ref;
3501         }
3502       }
3503       /**
3504        *
3505        *
3506        * <pre>
3507        * Identifies the particular build invocation, which can be useful for
3508        * finding associated logs or other ad-hoc analysis. The value SHOULD be
3509        * globally unique, per in-toto Provenance spec.
3510        * </pre>
3511        *
3512        * <code>string build_invocation_id = 1;</code>
3513        *
3514        * @param value The buildInvocationId to set.
3515        * @return This builder for chaining.
3516        */
setBuildInvocationId(java.lang.String value)3517       public Builder setBuildInvocationId(java.lang.String value) {
3518         if (value == null) {
3519           throw new NullPointerException();
3520         }
3521         buildInvocationId_ = value;
3522         bitField0_ |= 0x00000001;
3523         onChanged();
3524         return this;
3525       }
3526       /**
3527        *
3528        *
3529        * <pre>
3530        * Identifies the particular build invocation, which can be useful for
3531        * finding associated logs or other ad-hoc analysis. The value SHOULD be
3532        * globally unique, per in-toto Provenance spec.
3533        * </pre>
3534        *
3535        * <code>string build_invocation_id = 1;</code>
3536        *
3537        * @return This builder for chaining.
3538        */
clearBuildInvocationId()3539       public Builder clearBuildInvocationId() {
3540         buildInvocationId_ = getDefaultInstance().getBuildInvocationId();
3541         bitField0_ = (bitField0_ & ~0x00000001);
3542         onChanged();
3543         return this;
3544       }
3545       /**
3546        *
3547        *
3548        * <pre>
3549        * Identifies the particular build invocation, which can be useful for
3550        * finding associated logs or other ad-hoc analysis. The value SHOULD be
3551        * globally unique, per in-toto Provenance spec.
3552        * </pre>
3553        *
3554        * <code>string build_invocation_id = 1;</code>
3555        *
3556        * @param value The bytes for buildInvocationId to set.
3557        * @return This builder for chaining.
3558        */
setBuildInvocationIdBytes(com.google.protobuf.ByteString value)3559       public Builder setBuildInvocationIdBytes(com.google.protobuf.ByteString value) {
3560         if (value == null) {
3561           throw new NullPointerException();
3562         }
3563         checkByteStringIsUtf8(value);
3564         buildInvocationId_ = value;
3565         bitField0_ |= 0x00000001;
3566         onChanged();
3567         return this;
3568       }
3569 
3570       private com.google.protobuf.Timestamp buildStartedOn_;
3571       private com.google.protobuf.SingleFieldBuilderV3<
3572               com.google.protobuf.Timestamp,
3573               com.google.protobuf.Timestamp.Builder,
3574               com.google.protobuf.TimestampOrBuilder>
3575           buildStartedOnBuilder_;
3576       /**
3577        *
3578        *
3579        * <pre>
3580        * The timestamp of when the build started.
3581        * </pre>
3582        *
3583        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3584        *
3585        * @return Whether the buildStartedOn field is set.
3586        */
hasBuildStartedOn()3587       public boolean hasBuildStartedOn() {
3588         return ((bitField0_ & 0x00000002) != 0);
3589       }
3590       /**
3591        *
3592        *
3593        * <pre>
3594        * The timestamp of when the build started.
3595        * </pre>
3596        *
3597        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3598        *
3599        * @return The buildStartedOn.
3600        */
getBuildStartedOn()3601       public com.google.protobuf.Timestamp getBuildStartedOn() {
3602         if (buildStartedOnBuilder_ == null) {
3603           return buildStartedOn_ == null
3604               ? com.google.protobuf.Timestamp.getDefaultInstance()
3605               : buildStartedOn_;
3606         } else {
3607           return buildStartedOnBuilder_.getMessage();
3608         }
3609       }
3610       /**
3611        *
3612        *
3613        * <pre>
3614        * The timestamp of when the build started.
3615        * </pre>
3616        *
3617        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3618        */
setBuildStartedOn(com.google.protobuf.Timestamp value)3619       public Builder setBuildStartedOn(com.google.protobuf.Timestamp value) {
3620         if (buildStartedOnBuilder_ == null) {
3621           if (value == null) {
3622             throw new NullPointerException();
3623           }
3624           buildStartedOn_ = value;
3625         } else {
3626           buildStartedOnBuilder_.setMessage(value);
3627         }
3628         bitField0_ |= 0x00000002;
3629         onChanged();
3630         return this;
3631       }
3632       /**
3633        *
3634        *
3635        * <pre>
3636        * The timestamp of when the build started.
3637        * </pre>
3638        *
3639        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3640        */
setBuildStartedOn(com.google.protobuf.Timestamp.Builder builderForValue)3641       public Builder setBuildStartedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
3642         if (buildStartedOnBuilder_ == null) {
3643           buildStartedOn_ = builderForValue.build();
3644         } else {
3645           buildStartedOnBuilder_.setMessage(builderForValue.build());
3646         }
3647         bitField0_ |= 0x00000002;
3648         onChanged();
3649         return this;
3650       }
3651       /**
3652        *
3653        *
3654        * <pre>
3655        * The timestamp of when the build started.
3656        * </pre>
3657        *
3658        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3659        */
mergeBuildStartedOn(com.google.protobuf.Timestamp value)3660       public Builder mergeBuildStartedOn(com.google.protobuf.Timestamp value) {
3661         if (buildStartedOnBuilder_ == null) {
3662           if (((bitField0_ & 0x00000002) != 0)
3663               && buildStartedOn_ != null
3664               && buildStartedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3665             getBuildStartedOnBuilder().mergeFrom(value);
3666           } else {
3667             buildStartedOn_ = value;
3668           }
3669         } else {
3670           buildStartedOnBuilder_.mergeFrom(value);
3671         }
3672         bitField0_ |= 0x00000002;
3673         onChanged();
3674         return this;
3675       }
3676       /**
3677        *
3678        *
3679        * <pre>
3680        * The timestamp of when the build started.
3681        * </pre>
3682        *
3683        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3684        */
clearBuildStartedOn()3685       public Builder clearBuildStartedOn() {
3686         bitField0_ = (bitField0_ & ~0x00000002);
3687         buildStartedOn_ = null;
3688         if (buildStartedOnBuilder_ != null) {
3689           buildStartedOnBuilder_.dispose();
3690           buildStartedOnBuilder_ = null;
3691         }
3692         onChanged();
3693         return this;
3694       }
3695       /**
3696        *
3697        *
3698        * <pre>
3699        * The timestamp of when the build started.
3700        * </pre>
3701        *
3702        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3703        */
getBuildStartedOnBuilder()3704       public com.google.protobuf.Timestamp.Builder getBuildStartedOnBuilder() {
3705         bitField0_ |= 0x00000002;
3706         onChanged();
3707         return getBuildStartedOnFieldBuilder().getBuilder();
3708       }
3709       /**
3710        *
3711        *
3712        * <pre>
3713        * The timestamp of when the build started.
3714        * </pre>
3715        *
3716        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3717        */
getBuildStartedOnOrBuilder()3718       public com.google.protobuf.TimestampOrBuilder getBuildStartedOnOrBuilder() {
3719         if (buildStartedOnBuilder_ != null) {
3720           return buildStartedOnBuilder_.getMessageOrBuilder();
3721         } else {
3722           return buildStartedOn_ == null
3723               ? com.google.protobuf.Timestamp.getDefaultInstance()
3724               : buildStartedOn_;
3725         }
3726       }
3727       /**
3728        *
3729        *
3730        * <pre>
3731        * The timestamp of when the build started.
3732        * </pre>
3733        *
3734        * <code>.google.protobuf.Timestamp build_started_on = 2;</code>
3735        */
3736       private com.google.protobuf.SingleFieldBuilderV3<
3737               com.google.protobuf.Timestamp,
3738               com.google.protobuf.Timestamp.Builder,
3739               com.google.protobuf.TimestampOrBuilder>
getBuildStartedOnFieldBuilder()3740           getBuildStartedOnFieldBuilder() {
3741         if (buildStartedOnBuilder_ == null) {
3742           buildStartedOnBuilder_ =
3743               new com.google.protobuf.SingleFieldBuilderV3<
3744                   com.google.protobuf.Timestamp,
3745                   com.google.protobuf.Timestamp.Builder,
3746                   com.google.protobuf.TimestampOrBuilder>(
3747                   getBuildStartedOn(), getParentForChildren(), isClean());
3748           buildStartedOn_ = null;
3749         }
3750         return buildStartedOnBuilder_;
3751       }
3752 
3753       private com.google.protobuf.Timestamp buildFinishedOn_;
3754       private com.google.protobuf.SingleFieldBuilderV3<
3755               com.google.protobuf.Timestamp,
3756               com.google.protobuf.Timestamp.Builder,
3757               com.google.protobuf.TimestampOrBuilder>
3758           buildFinishedOnBuilder_;
3759       /**
3760        *
3761        *
3762        * <pre>
3763        * The timestamp of when the build completed.
3764        * </pre>
3765        *
3766        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3767        *
3768        * @return Whether the buildFinishedOn field is set.
3769        */
hasBuildFinishedOn()3770       public boolean hasBuildFinishedOn() {
3771         return ((bitField0_ & 0x00000004) != 0);
3772       }
3773       /**
3774        *
3775        *
3776        * <pre>
3777        * The timestamp of when the build completed.
3778        * </pre>
3779        *
3780        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3781        *
3782        * @return The buildFinishedOn.
3783        */
getBuildFinishedOn()3784       public com.google.protobuf.Timestamp getBuildFinishedOn() {
3785         if (buildFinishedOnBuilder_ == null) {
3786           return buildFinishedOn_ == null
3787               ? com.google.protobuf.Timestamp.getDefaultInstance()
3788               : buildFinishedOn_;
3789         } else {
3790           return buildFinishedOnBuilder_.getMessage();
3791         }
3792       }
3793       /**
3794        *
3795        *
3796        * <pre>
3797        * The timestamp of when the build completed.
3798        * </pre>
3799        *
3800        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3801        */
setBuildFinishedOn(com.google.protobuf.Timestamp value)3802       public Builder setBuildFinishedOn(com.google.protobuf.Timestamp value) {
3803         if (buildFinishedOnBuilder_ == null) {
3804           if (value == null) {
3805             throw new NullPointerException();
3806           }
3807           buildFinishedOn_ = value;
3808         } else {
3809           buildFinishedOnBuilder_.setMessage(value);
3810         }
3811         bitField0_ |= 0x00000004;
3812         onChanged();
3813         return this;
3814       }
3815       /**
3816        *
3817        *
3818        * <pre>
3819        * The timestamp of when the build completed.
3820        * </pre>
3821        *
3822        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3823        */
setBuildFinishedOn(com.google.protobuf.Timestamp.Builder builderForValue)3824       public Builder setBuildFinishedOn(com.google.protobuf.Timestamp.Builder builderForValue) {
3825         if (buildFinishedOnBuilder_ == null) {
3826           buildFinishedOn_ = builderForValue.build();
3827         } else {
3828           buildFinishedOnBuilder_.setMessage(builderForValue.build());
3829         }
3830         bitField0_ |= 0x00000004;
3831         onChanged();
3832         return this;
3833       }
3834       /**
3835        *
3836        *
3837        * <pre>
3838        * The timestamp of when the build completed.
3839        * </pre>
3840        *
3841        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3842        */
mergeBuildFinishedOn(com.google.protobuf.Timestamp value)3843       public Builder mergeBuildFinishedOn(com.google.protobuf.Timestamp value) {
3844         if (buildFinishedOnBuilder_ == null) {
3845           if (((bitField0_ & 0x00000004) != 0)
3846               && buildFinishedOn_ != null
3847               && buildFinishedOn_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3848             getBuildFinishedOnBuilder().mergeFrom(value);
3849           } else {
3850             buildFinishedOn_ = value;
3851           }
3852         } else {
3853           buildFinishedOnBuilder_.mergeFrom(value);
3854         }
3855         bitField0_ |= 0x00000004;
3856         onChanged();
3857         return this;
3858       }
3859       /**
3860        *
3861        *
3862        * <pre>
3863        * The timestamp of when the build completed.
3864        * </pre>
3865        *
3866        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3867        */
clearBuildFinishedOn()3868       public Builder clearBuildFinishedOn() {
3869         bitField0_ = (bitField0_ & ~0x00000004);
3870         buildFinishedOn_ = null;
3871         if (buildFinishedOnBuilder_ != null) {
3872           buildFinishedOnBuilder_.dispose();
3873           buildFinishedOnBuilder_ = null;
3874         }
3875         onChanged();
3876         return this;
3877       }
3878       /**
3879        *
3880        *
3881        * <pre>
3882        * The timestamp of when the build completed.
3883        * </pre>
3884        *
3885        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3886        */
getBuildFinishedOnBuilder()3887       public com.google.protobuf.Timestamp.Builder getBuildFinishedOnBuilder() {
3888         bitField0_ |= 0x00000004;
3889         onChanged();
3890         return getBuildFinishedOnFieldBuilder().getBuilder();
3891       }
3892       /**
3893        *
3894        *
3895        * <pre>
3896        * The timestamp of when the build completed.
3897        * </pre>
3898        *
3899        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3900        */
getBuildFinishedOnOrBuilder()3901       public com.google.protobuf.TimestampOrBuilder getBuildFinishedOnOrBuilder() {
3902         if (buildFinishedOnBuilder_ != null) {
3903           return buildFinishedOnBuilder_.getMessageOrBuilder();
3904         } else {
3905           return buildFinishedOn_ == null
3906               ? com.google.protobuf.Timestamp.getDefaultInstance()
3907               : buildFinishedOn_;
3908         }
3909       }
3910       /**
3911        *
3912        *
3913        * <pre>
3914        * The timestamp of when the build completed.
3915        * </pre>
3916        *
3917        * <code>.google.protobuf.Timestamp build_finished_on = 3;</code>
3918        */
3919       private com.google.protobuf.SingleFieldBuilderV3<
3920               com.google.protobuf.Timestamp,
3921               com.google.protobuf.Timestamp.Builder,
3922               com.google.protobuf.TimestampOrBuilder>
getBuildFinishedOnFieldBuilder()3923           getBuildFinishedOnFieldBuilder() {
3924         if (buildFinishedOnBuilder_ == null) {
3925           buildFinishedOnBuilder_ =
3926               new com.google.protobuf.SingleFieldBuilderV3<
3927                   com.google.protobuf.Timestamp,
3928                   com.google.protobuf.Timestamp.Builder,
3929                   com.google.protobuf.TimestampOrBuilder>(
3930                   getBuildFinishedOn(), getParentForChildren(), isClean());
3931           buildFinishedOn_ = null;
3932         }
3933         return buildFinishedOnBuilder_;
3934       }
3935 
3936       private io.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness_;
3937       private com.google.protobuf.SingleFieldBuilderV3<
3938               io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
3939               io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
3940               io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
3941           completenessBuilder_;
3942       /**
3943        *
3944        *
3945        * <pre>
3946        * Indicates that the builder claims certain fields in this message to be
3947        * complete.
3948        * </pre>
3949        *
3950        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
3951        *
3952        * @return Whether the completeness field is set.
3953        */
hasCompleteness()3954       public boolean hasCompleteness() {
3955         return ((bitField0_ & 0x00000008) != 0);
3956       }
3957       /**
3958        *
3959        *
3960        * <pre>
3961        * Indicates that the builder claims certain fields in this message to be
3962        * complete.
3963        * </pre>
3964        *
3965        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
3966        *
3967        * @return The completeness.
3968        */
getCompleteness()3969       public io.grafeas.v1.SlsaProvenance.SlsaCompleteness getCompleteness() {
3970         if (completenessBuilder_ == null) {
3971           return completeness_ == null
3972               ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
3973               : completeness_;
3974         } else {
3975           return completenessBuilder_.getMessage();
3976         }
3977       }
3978       /**
3979        *
3980        *
3981        * <pre>
3982        * Indicates that the builder claims certain fields in this message to be
3983        * complete.
3984        * </pre>
3985        *
3986        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
3987        */
setCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value)3988       public Builder setCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
3989         if (completenessBuilder_ == null) {
3990           if (value == null) {
3991             throw new NullPointerException();
3992           }
3993           completeness_ = value;
3994         } else {
3995           completenessBuilder_.setMessage(value);
3996         }
3997         bitField0_ |= 0x00000008;
3998         onChanged();
3999         return this;
4000       }
4001       /**
4002        *
4003        *
4004        * <pre>
4005        * Indicates that the builder claims certain fields in this message to be
4006        * complete.
4007        * </pre>
4008        *
4009        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4010        */
setCompleteness( io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder builderForValue)4011       public Builder setCompleteness(
4012           io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder builderForValue) {
4013         if (completenessBuilder_ == null) {
4014           completeness_ = builderForValue.build();
4015         } else {
4016           completenessBuilder_.setMessage(builderForValue.build());
4017         }
4018         bitField0_ |= 0x00000008;
4019         onChanged();
4020         return this;
4021       }
4022       /**
4023        *
4024        *
4025        * <pre>
4026        * Indicates that the builder claims certain fields in this message to be
4027        * complete.
4028        * </pre>
4029        *
4030        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4031        */
mergeCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value)4032       public Builder mergeCompleteness(io.grafeas.v1.SlsaProvenance.SlsaCompleteness value) {
4033         if (completenessBuilder_ == null) {
4034           if (((bitField0_ & 0x00000008) != 0)
4035               && completeness_ != null
4036               && completeness_
4037                   != io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()) {
4038             getCompletenessBuilder().mergeFrom(value);
4039           } else {
4040             completeness_ = value;
4041           }
4042         } else {
4043           completenessBuilder_.mergeFrom(value);
4044         }
4045         bitField0_ |= 0x00000008;
4046         onChanged();
4047         return this;
4048       }
4049       /**
4050        *
4051        *
4052        * <pre>
4053        * Indicates that the builder claims certain fields in this message to be
4054        * complete.
4055        * </pre>
4056        *
4057        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4058        */
clearCompleteness()4059       public Builder clearCompleteness() {
4060         bitField0_ = (bitField0_ & ~0x00000008);
4061         completeness_ = null;
4062         if (completenessBuilder_ != null) {
4063           completenessBuilder_.dispose();
4064           completenessBuilder_ = null;
4065         }
4066         onChanged();
4067         return this;
4068       }
4069       /**
4070        *
4071        *
4072        * <pre>
4073        * Indicates that the builder claims certain fields in this message to be
4074        * complete.
4075        * </pre>
4076        *
4077        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4078        */
getCompletenessBuilder()4079       public io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder getCompletenessBuilder() {
4080         bitField0_ |= 0x00000008;
4081         onChanged();
4082         return getCompletenessFieldBuilder().getBuilder();
4083       }
4084       /**
4085        *
4086        *
4087        * <pre>
4088        * Indicates that the builder claims certain fields in this message to be
4089        * complete.
4090        * </pre>
4091        *
4092        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4093        */
getCompletenessOrBuilder()4094       public io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder getCompletenessOrBuilder() {
4095         if (completenessBuilder_ != null) {
4096           return completenessBuilder_.getMessageOrBuilder();
4097         } else {
4098           return completeness_ == null
4099               ? io.grafeas.v1.SlsaProvenance.SlsaCompleteness.getDefaultInstance()
4100               : completeness_;
4101         }
4102       }
4103       /**
4104        *
4105        *
4106        * <pre>
4107        * Indicates that the builder claims certain fields in this message to be
4108        * complete.
4109        * </pre>
4110        *
4111        * <code>.grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4;</code>
4112        */
4113       private com.google.protobuf.SingleFieldBuilderV3<
4114               io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
4115               io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
4116               io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>
getCompletenessFieldBuilder()4117           getCompletenessFieldBuilder() {
4118         if (completenessBuilder_ == null) {
4119           completenessBuilder_ =
4120               new com.google.protobuf.SingleFieldBuilderV3<
4121                   io.grafeas.v1.SlsaProvenance.SlsaCompleteness,
4122                   io.grafeas.v1.SlsaProvenance.SlsaCompleteness.Builder,
4123                   io.grafeas.v1.SlsaProvenance.SlsaCompletenessOrBuilder>(
4124                   getCompleteness(), getParentForChildren(), isClean());
4125           completeness_ = null;
4126         }
4127         return completenessBuilder_;
4128       }
4129 
4130       private boolean reproducible_;
4131       /**
4132        *
4133        *
4134        * <pre>
4135        * If true, the builder claims that running the recipe on materials will
4136        * produce bit-for-bit identical output.
4137        * </pre>
4138        *
4139        * <code>bool reproducible = 5;</code>
4140        *
4141        * @return The reproducible.
4142        */
4143       @java.lang.Override
getReproducible()4144       public boolean getReproducible() {
4145         return reproducible_;
4146       }
4147       /**
4148        *
4149        *
4150        * <pre>
4151        * If true, the builder claims that running the recipe on materials will
4152        * produce bit-for-bit identical output.
4153        * </pre>
4154        *
4155        * <code>bool reproducible = 5;</code>
4156        *
4157        * @param value The reproducible to set.
4158        * @return This builder for chaining.
4159        */
setReproducible(boolean value)4160       public Builder setReproducible(boolean value) {
4161 
4162         reproducible_ = value;
4163         bitField0_ |= 0x00000010;
4164         onChanged();
4165         return this;
4166       }
4167       /**
4168        *
4169        *
4170        * <pre>
4171        * If true, the builder claims that running the recipe on materials will
4172        * produce bit-for-bit identical output.
4173        * </pre>
4174        *
4175        * <code>bool reproducible = 5;</code>
4176        *
4177        * @return This builder for chaining.
4178        */
clearReproducible()4179       public Builder clearReproducible() {
4180         bitField0_ = (bitField0_ & ~0x00000010);
4181         reproducible_ = false;
4182         onChanged();
4183         return this;
4184       }
4185 
4186       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4187       public final Builder setUnknownFields(
4188           final com.google.protobuf.UnknownFieldSet unknownFields) {
4189         return super.setUnknownFields(unknownFields);
4190       }
4191 
4192       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4193       public final Builder mergeUnknownFields(
4194           final com.google.protobuf.UnknownFieldSet unknownFields) {
4195         return super.mergeUnknownFields(unknownFields);
4196       }
4197 
4198       // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
4199     }
4200 
4201     // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaMetadata)
4202     private static final io.grafeas.v1.SlsaProvenance.SlsaMetadata DEFAULT_INSTANCE;
4203 
4204     static {
4205       DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaMetadata();
4206     }
4207 
getDefaultInstance()4208     public static io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstance() {
4209       return DEFAULT_INSTANCE;
4210     }
4211 
4212     private static final com.google.protobuf.Parser<SlsaMetadata> PARSER =
4213         new com.google.protobuf.AbstractParser<SlsaMetadata>() {
4214           @java.lang.Override
4215           public SlsaMetadata parsePartialFrom(
4216               com.google.protobuf.CodedInputStream input,
4217               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4218               throws com.google.protobuf.InvalidProtocolBufferException {
4219             Builder builder = newBuilder();
4220             try {
4221               builder.mergeFrom(input, extensionRegistry);
4222             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4223               throw e.setUnfinishedMessage(builder.buildPartial());
4224             } catch (com.google.protobuf.UninitializedMessageException e) {
4225               throw e.asInvalidProtocolBufferException()
4226                   .setUnfinishedMessage(builder.buildPartial());
4227             } catch (java.io.IOException e) {
4228               throw new com.google.protobuf.InvalidProtocolBufferException(e)
4229                   .setUnfinishedMessage(builder.buildPartial());
4230             }
4231             return builder.buildPartial();
4232           }
4233         };
4234 
parser()4235     public static com.google.protobuf.Parser<SlsaMetadata> parser() {
4236       return PARSER;
4237     }
4238 
4239     @java.lang.Override
getParserForType()4240     public com.google.protobuf.Parser<SlsaMetadata> getParserForType() {
4241       return PARSER;
4242     }
4243 
4244     @java.lang.Override
getDefaultInstanceForType()4245     public io.grafeas.v1.SlsaProvenance.SlsaMetadata getDefaultInstanceForType() {
4246       return DEFAULT_INSTANCE;
4247     }
4248   }
4249 
4250   public interface SlsaBuilderOrBuilder
4251       extends
4252       // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.SlsaBuilder)
4253       com.google.protobuf.MessageOrBuilder {
4254 
4255     /**
4256      * <code>string id = 1;</code>
4257      *
4258      * @return The id.
4259      */
getId()4260     java.lang.String getId();
4261     /**
4262      * <code>string id = 1;</code>
4263      *
4264      * @return The bytes for id.
4265      */
getIdBytes()4266     com.google.protobuf.ByteString getIdBytes();
4267   }
4268   /** Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaBuilder} */
4269   public static final class SlsaBuilder extends com.google.protobuf.GeneratedMessageV3
4270       implements
4271       // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.SlsaBuilder)
4272       SlsaBuilderOrBuilder {
4273     private static final long serialVersionUID = 0L;
4274     // Use SlsaBuilder.newBuilder() to construct.
SlsaBuilder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4275     private SlsaBuilder(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
4276       super(builder);
4277     }
4278 
SlsaBuilder()4279     private SlsaBuilder() {
4280       id_ = "";
4281     }
4282 
4283     @java.lang.Override
4284     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)4285     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
4286       return new SlsaBuilder();
4287     }
4288 
4289     @java.lang.Override
getUnknownFields()4290     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4291       return this.unknownFields;
4292     }
4293 
getDescriptor()4294     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4295       return io.grafeas.v1.SlsaProvenanceProto
4296           .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
4297     }
4298 
4299     @java.lang.Override
4300     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4301         internalGetFieldAccessorTable() {
4302       return io.grafeas.v1.SlsaProvenanceProto
4303           .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_fieldAccessorTable
4304           .ensureFieldAccessorsInitialized(
4305               io.grafeas.v1.SlsaProvenance.SlsaBuilder.class,
4306               io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder.class);
4307     }
4308 
4309     public static final int ID_FIELD_NUMBER = 1;
4310 
4311     @SuppressWarnings("serial")
4312     private volatile java.lang.Object id_ = "";
4313     /**
4314      * <code>string id = 1;</code>
4315      *
4316      * @return The id.
4317      */
4318     @java.lang.Override
getId()4319     public java.lang.String getId() {
4320       java.lang.Object ref = id_;
4321       if (ref instanceof java.lang.String) {
4322         return (java.lang.String) ref;
4323       } else {
4324         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4325         java.lang.String s = bs.toStringUtf8();
4326         id_ = s;
4327         return s;
4328       }
4329     }
4330     /**
4331      * <code>string id = 1;</code>
4332      *
4333      * @return The bytes for id.
4334      */
4335     @java.lang.Override
getIdBytes()4336     public com.google.protobuf.ByteString getIdBytes() {
4337       java.lang.Object ref = id_;
4338       if (ref instanceof java.lang.String) {
4339         com.google.protobuf.ByteString b =
4340             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4341         id_ = b;
4342         return b;
4343       } else {
4344         return (com.google.protobuf.ByteString) ref;
4345       }
4346     }
4347 
4348     private byte memoizedIsInitialized = -1;
4349 
4350     @java.lang.Override
isInitialized()4351     public final boolean isInitialized() {
4352       byte isInitialized = memoizedIsInitialized;
4353       if (isInitialized == 1) return true;
4354       if (isInitialized == 0) return false;
4355 
4356       memoizedIsInitialized = 1;
4357       return true;
4358     }
4359 
4360     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4361     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4362       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
4363         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
4364       }
4365       getUnknownFields().writeTo(output);
4366     }
4367 
4368     @java.lang.Override
getSerializedSize()4369     public int getSerializedSize() {
4370       int size = memoizedSize;
4371       if (size != -1) return size;
4372 
4373       size = 0;
4374       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
4375         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
4376       }
4377       size += getUnknownFields().getSerializedSize();
4378       memoizedSize = size;
4379       return size;
4380     }
4381 
4382     @java.lang.Override
equals(final java.lang.Object obj)4383     public boolean equals(final java.lang.Object obj) {
4384       if (obj == this) {
4385         return true;
4386       }
4387       if (!(obj instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder)) {
4388         return super.equals(obj);
4389       }
4390       io.grafeas.v1.SlsaProvenance.SlsaBuilder other =
4391           (io.grafeas.v1.SlsaProvenance.SlsaBuilder) obj;
4392 
4393       if (!getId().equals(other.getId())) return false;
4394       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
4395       return true;
4396     }
4397 
4398     @java.lang.Override
hashCode()4399     public int hashCode() {
4400       if (memoizedHashCode != 0) {
4401         return memoizedHashCode;
4402       }
4403       int hash = 41;
4404       hash = (19 * hash) + getDescriptor().hashCode();
4405       hash = (37 * hash) + ID_FIELD_NUMBER;
4406       hash = (53 * hash) + getId().hashCode();
4407       hash = (29 * hash) + getUnknownFields().hashCode();
4408       memoizedHashCode = hash;
4409       return hash;
4410     }
4411 
parseFrom(java.nio.ByteBuffer data)4412     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.nio.ByteBuffer data)
4413         throws com.google.protobuf.InvalidProtocolBufferException {
4414       return PARSER.parseFrom(data);
4415     }
4416 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4417     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4418         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4419         throws com.google.protobuf.InvalidProtocolBufferException {
4420       return PARSER.parseFrom(data, extensionRegistry);
4421     }
4422 
parseFrom( com.google.protobuf.ByteString data)4423     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4424         com.google.protobuf.ByteString data)
4425         throws com.google.protobuf.InvalidProtocolBufferException {
4426       return PARSER.parseFrom(data);
4427     }
4428 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4429     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4430         com.google.protobuf.ByteString data,
4431         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4432         throws com.google.protobuf.InvalidProtocolBufferException {
4433       return PARSER.parseFrom(data, extensionRegistry);
4434     }
4435 
parseFrom(byte[] data)4436     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(byte[] data)
4437         throws com.google.protobuf.InvalidProtocolBufferException {
4438       return PARSER.parseFrom(data);
4439     }
4440 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4441     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4442         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4443         throws com.google.protobuf.InvalidProtocolBufferException {
4444       return PARSER.parseFrom(data, extensionRegistry);
4445     }
4446 
parseFrom(java.io.InputStream input)4447     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(java.io.InputStream input)
4448         throws java.io.IOException {
4449       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4450     }
4451 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4452     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4453         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4454         throws java.io.IOException {
4455       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4456           PARSER, input, extensionRegistry);
4457     }
4458 
parseDelimitedFrom( java.io.InputStream input)4459     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
4460         java.io.InputStream input) throws java.io.IOException {
4461       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
4462     }
4463 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4464     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseDelimitedFrom(
4465         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4466         throws java.io.IOException {
4467       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
4468           PARSER, input, extensionRegistry);
4469     }
4470 
parseFrom( com.google.protobuf.CodedInputStream input)4471     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4472         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
4473       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4474     }
4475 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4476     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder parseFrom(
4477         com.google.protobuf.CodedInputStream input,
4478         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4479         throws java.io.IOException {
4480       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4481           PARSER, input, extensionRegistry);
4482     }
4483 
4484     @java.lang.Override
newBuilderForType()4485     public Builder newBuilderForType() {
4486       return newBuilder();
4487     }
4488 
newBuilder()4489     public static Builder newBuilder() {
4490       return DEFAULT_INSTANCE.toBuilder();
4491     }
4492 
newBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder prototype)4493     public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder prototype) {
4494       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
4495     }
4496 
4497     @java.lang.Override
toBuilder()4498     public Builder toBuilder() {
4499       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
4500     }
4501 
4502     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4503     protected Builder newBuilderForType(
4504         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4505       Builder builder = new Builder(parent);
4506       return builder;
4507     }
4508     /** Protobuf type {@code grafeas.v1.SlsaProvenance.SlsaBuilder} */
4509     public static final class Builder
4510         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
4511         implements
4512         // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.SlsaBuilder)
4513         io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder {
getDescriptor()4514       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4515         return io.grafeas.v1.SlsaProvenanceProto
4516             .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
4517       }
4518 
4519       @java.lang.Override
4520       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4521           internalGetFieldAccessorTable() {
4522         return io.grafeas.v1.SlsaProvenanceProto
4523             .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_fieldAccessorTable
4524             .ensureFieldAccessorsInitialized(
4525                 io.grafeas.v1.SlsaProvenance.SlsaBuilder.class,
4526                 io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder.class);
4527       }
4528 
4529       // Construct using io.grafeas.v1.SlsaProvenance.SlsaBuilder.newBuilder()
Builder()4530       private Builder() {}
4531 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4532       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4533         super(parent);
4534       }
4535 
4536       @java.lang.Override
clear()4537       public Builder clear() {
4538         super.clear();
4539         bitField0_ = 0;
4540         id_ = "";
4541         return this;
4542       }
4543 
4544       @java.lang.Override
getDescriptorForType()4545       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
4546         return io.grafeas.v1.SlsaProvenanceProto
4547             .internal_static_grafeas_v1_SlsaProvenance_SlsaBuilder_descriptor;
4548       }
4549 
4550       @java.lang.Override
getDefaultInstanceForType()4551       public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() {
4552         return io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance();
4553       }
4554 
4555       @java.lang.Override
build()4556       public io.grafeas.v1.SlsaProvenance.SlsaBuilder build() {
4557         io.grafeas.v1.SlsaProvenance.SlsaBuilder result = buildPartial();
4558         if (!result.isInitialized()) {
4559           throw newUninitializedMessageException(result);
4560         }
4561         return result;
4562       }
4563 
4564       @java.lang.Override
buildPartial()4565       public io.grafeas.v1.SlsaProvenance.SlsaBuilder buildPartial() {
4566         io.grafeas.v1.SlsaProvenance.SlsaBuilder result =
4567             new io.grafeas.v1.SlsaProvenance.SlsaBuilder(this);
4568         if (bitField0_ != 0) {
4569           buildPartial0(result);
4570         }
4571         onBuilt();
4572         return result;
4573       }
4574 
buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaBuilder result)4575       private void buildPartial0(io.grafeas.v1.SlsaProvenance.SlsaBuilder result) {
4576         int from_bitField0_ = bitField0_;
4577         if (((from_bitField0_ & 0x00000001) != 0)) {
4578           result.id_ = id_;
4579         }
4580       }
4581 
4582       @java.lang.Override
clone()4583       public Builder clone() {
4584         return super.clone();
4585       }
4586 
4587       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4588       public Builder setField(
4589           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4590         return super.setField(field, value);
4591       }
4592 
4593       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4594       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
4595         return super.clearField(field);
4596       }
4597 
4598       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4599       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
4600         return super.clearOneof(oneof);
4601       }
4602 
4603       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4604       public Builder setRepeatedField(
4605           com.google.protobuf.Descriptors.FieldDescriptor field,
4606           int index,
4607           java.lang.Object value) {
4608         return super.setRepeatedField(field, index, value);
4609       }
4610 
4611       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4612       public Builder addRepeatedField(
4613           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4614         return super.addRepeatedField(field, value);
4615       }
4616 
4617       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)4618       public Builder mergeFrom(com.google.protobuf.Message other) {
4619         if (other instanceof io.grafeas.v1.SlsaProvenance.SlsaBuilder) {
4620           return mergeFrom((io.grafeas.v1.SlsaProvenance.SlsaBuilder) other);
4621         } else {
4622           super.mergeFrom(other);
4623           return this;
4624         }
4625       }
4626 
mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaBuilder other)4627       public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.SlsaBuilder other) {
4628         if (other == io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()) return this;
4629         if (!other.getId().isEmpty()) {
4630           id_ = other.id_;
4631           bitField0_ |= 0x00000001;
4632           onChanged();
4633         }
4634         this.mergeUnknownFields(other.getUnknownFields());
4635         onChanged();
4636         return this;
4637       }
4638 
4639       @java.lang.Override
isInitialized()4640       public final boolean isInitialized() {
4641         return true;
4642       }
4643 
4644       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4645       public Builder mergeFrom(
4646           com.google.protobuf.CodedInputStream input,
4647           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4648           throws java.io.IOException {
4649         if (extensionRegistry == null) {
4650           throw new java.lang.NullPointerException();
4651         }
4652         try {
4653           boolean done = false;
4654           while (!done) {
4655             int tag = input.readTag();
4656             switch (tag) {
4657               case 0:
4658                 done = true;
4659                 break;
4660               case 10:
4661                 {
4662                   id_ = input.readStringRequireUtf8();
4663                   bitField0_ |= 0x00000001;
4664                   break;
4665                 } // case 10
4666               default:
4667                 {
4668                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
4669                     done = true; // was an endgroup tag
4670                   }
4671                   break;
4672                 } // default:
4673             } // switch (tag)
4674           } // while (!done)
4675         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4676           throw e.unwrapIOException();
4677         } finally {
4678           onChanged();
4679         } // finally
4680         return this;
4681       }
4682 
4683       private int bitField0_;
4684 
4685       private java.lang.Object id_ = "";
4686       /**
4687        * <code>string id = 1;</code>
4688        *
4689        * @return The id.
4690        */
getId()4691       public java.lang.String getId() {
4692         java.lang.Object ref = id_;
4693         if (!(ref instanceof java.lang.String)) {
4694           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4695           java.lang.String s = bs.toStringUtf8();
4696           id_ = s;
4697           return s;
4698         } else {
4699           return (java.lang.String) ref;
4700         }
4701       }
4702       /**
4703        * <code>string id = 1;</code>
4704        *
4705        * @return The bytes for id.
4706        */
getIdBytes()4707       public com.google.protobuf.ByteString getIdBytes() {
4708         java.lang.Object ref = id_;
4709         if (ref instanceof String) {
4710           com.google.protobuf.ByteString b =
4711               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4712           id_ = b;
4713           return b;
4714         } else {
4715           return (com.google.protobuf.ByteString) ref;
4716         }
4717       }
4718       /**
4719        * <code>string id = 1;</code>
4720        *
4721        * @param value The id to set.
4722        * @return This builder for chaining.
4723        */
setId(java.lang.String value)4724       public Builder setId(java.lang.String value) {
4725         if (value == null) {
4726           throw new NullPointerException();
4727         }
4728         id_ = value;
4729         bitField0_ |= 0x00000001;
4730         onChanged();
4731         return this;
4732       }
4733       /**
4734        * <code>string id = 1;</code>
4735        *
4736        * @return This builder for chaining.
4737        */
clearId()4738       public Builder clearId() {
4739         id_ = getDefaultInstance().getId();
4740         bitField0_ = (bitField0_ & ~0x00000001);
4741         onChanged();
4742         return this;
4743       }
4744       /**
4745        * <code>string id = 1;</code>
4746        *
4747        * @param value The bytes for id to set.
4748        * @return This builder for chaining.
4749        */
setIdBytes(com.google.protobuf.ByteString value)4750       public Builder setIdBytes(com.google.protobuf.ByteString value) {
4751         if (value == null) {
4752           throw new NullPointerException();
4753         }
4754         checkByteStringIsUtf8(value);
4755         id_ = value;
4756         bitField0_ |= 0x00000001;
4757         onChanged();
4758         return this;
4759       }
4760 
4761       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4762       public final Builder setUnknownFields(
4763           final com.google.protobuf.UnknownFieldSet unknownFields) {
4764         return super.setUnknownFields(unknownFields);
4765       }
4766 
4767       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4768       public final Builder mergeUnknownFields(
4769           final com.google.protobuf.UnknownFieldSet unknownFields) {
4770         return super.mergeUnknownFields(unknownFields);
4771       }
4772 
4773       // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
4774     }
4775 
4776     // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.SlsaBuilder)
4777     private static final io.grafeas.v1.SlsaProvenance.SlsaBuilder DEFAULT_INSTANCE;
4778 
4779     static {
4780       DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.SlsaBuilder();
4781     }
4782 
getDefaultInstance()4783     public static io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstance() {
4784       return DEFAULT_INSTANCE;
4785     }
4786 
4787     private static final com.google.protobuf.Parser<SlsaBuilder> PARSER =
4788         new com.google.protobuf.AbstractParser<SlsaBuilder>() {
4789           @java.lang.Override
4790           public SlsaBuilder parsePartialFrom(
4791               com.google.protobuf.CodedInputStream input,
4792               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4793               throws com.google.protobuf.InvalidProtocolBufferException {
4794             Builder builder = newBuilder();
4795             try {
4796               builder.mergeFrom(input, extensionRegistry);
4797             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4798               throw e.setUnfinishedMessage(builder.buildPartial());
4799             } catch (com.google.protobuf.UninitializedMessageException e) {
4800               throw e.asInvalidProtocolBufferException()
4801                   .setUnfinishedMessage(builder.buildPartial());
4802             } catch (java.io.IOException e) {
4803               throw new com.google.protobuf.InvalidProtocolBufferException(e)
4804                   .setUnfinishedMessage(builder.buildPartial());
4805             }
4806             return builder.buildPartial();
4807           }
4808         };
4809 
parser()4810     public static com.google.protobuf.Parser<SlsaBuilder> parser() {
4811       return PARSER;
4812     }
4813 
4814     @java.lang.Override
getParserForType()4815     public com.google.protobuf.Parser<SlsaBuilder> getParserForType() {
4816       return PARSER;
4817     }
4818 
4819     @java.lang.Override
getDefaultInstanceForType()4820     public io.grafeas.v1.SlsaProvenance.SlsaBuilder getDefaultInstanceForType() {
4821       return DEFAULT_INSTANCE;
4822     }
4823   }
4824 
4825   public interface MaterialOrBuilder
4826       extends
4827       // @@protoc_insertion_point(interface_extends:grafeas.v1.SlsaProvenance.Material)
4828       com.google.protobuf.MessageOrBuilder {
4829 
4830     /**
4831      * <code>string uri = 1;</code>
4832      *
4833      * @return The uri.
4834      */
getUri()4835     java.lang.String getUri();
4836     /**
4837      * <code>string uri = 1;</code>
4838      *
4839      * @return The bytes for uri.
4840      */
getUriBytes()4841     com.google.protobuf.ByteString getUriBytes();
4842 
4843     /** <code>map&lt;string, string&gt; digest = 2;</code> */
getDigestCount()4844     int getDigestCount();
4845     /** <code>map&lt;string, string&gt; digest = 2;</code> */
containsDigest(java.lang.String key)4846     boolean containsDigest(java.lang.String key);
4847     /** Use {@link #getDigestMap()} instead. */
4848     @java.lang.Deprecated
getDigest()4849     java.util.Map<java.lang.String, java.lang.String> getDigest();
4850     /** <code>map&lt;string, string&gt; digest = 2;</code> */
getDigestMap()4851     java.util.Map<java.lang.String, java.lang.String> getDigestMap();
4852     /** <code>map&lt;string, string&gt; digest = 2;</code> */
4853     /* nullable */
getDigestOrDefault( java.lang.String key, java.lang.String defaultValue)4854     java.lang.String getDigestOrDefault(
4855         java.lang.String key,
4856         /* nullable */
4857         java.lang.String defaultValue);
4858     /** <code>map&lt;string, string&gt; digest = 2;</code> */
getDigestOrThrow(java.lang.String key)4859     java.lang.String getDigestOrThrow(java.lang.String key);
4860   }
4861   /** Protobuf type {@code grafeas.v1.SlsaProvenance.Material} */
4862   public static final class Material extends com.google.protobuf.GeneratedMessageV3
4863       implements
4864       // @@protoc_insertion_point(message_implements:grafeas.v1.SlsaProvenance.Material)
4865       MaterialOrBuilder {
4866     private static final long serialVersionUID = 0L;
4867     // Use Material.newBuilder() to construct.
Material(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)4868     private Material(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
4869       super(builder);
4870     }
4871 
Material()4872     private Material() {
4873       uri_ = "";
4874     }
4875 
4876     @java.lang.Override
4877     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)4878     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
4879       return new Material();
4880     }
4881 
4882     @java.lang.Override
getUnknownFields()4883     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4884       return this.unknownFields;
4885     }
4886 
getDescriptor()4887     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4888       return io.grafeas.v1.SlsaProvenanceProto
4889           .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
4890     }
4891 
4892     @SuppressWarnings({"rawtypes"})
4893     @java.lang.Override
internalGetMapField(int number)4894     protected com.google.protobuf.MapField internalGetMapField(int number) {
4895       switch (number) {
4896         case 2:
4897           return internalGetDigest();
4898         default:
4899           throw new RuntimeException("Invalid map field number: " + number);
4900       }
4901     }
4902 
4903     @java.lang.Override
4904     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4905         internalGetFieldAccessorTable() {
4906       return io.grafeas.v1.SlsaProvenanceProto
4907           .internal_static_grafeas_v1_SlsaProvenance_Material_fieldAccessorTable
4908           .ensureFieldAccessorsInitialized(
4909               io.grafeas.v1.SlsaProvenance.Material.class,
4910               io.grafeas.v1.SlsaProvenance.Material.Builder.class);
4911     }
4912 
4913     public static final int URI_FIELD_NUMBER = 1;
4914 
4915     @SuppressWarnings("serial")
4916     private volatile java.lang.Object uri_ = "";
4917     /**
4918      * <code>string uri = 1;</code>
4919      *
4920      * @return The uri.
4921      */
4922     @java.lang.Override
getUri()4923     public java.lang.String getUri() {
4924       java.lang.Object ref = uri_;
4925       if (ref instanceof java.lang.String) {
4926         return (java.lang.String) ref;
4927       } else {
4928         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4929         java.lang.String s = bs.toStringUtf8();
4930         uri_ = s;
4931         return s;
4932       }
4933     }
4934     /**
4935      * <code>string uri = 1;</code>
4936      *
4937      * @return The bytes for uri.
4938      */
4939     @java.lang.Override
getUriBytes()4940     public com.google.protobuf.ByteString getUriBytes() {
4941       java.lang.Object ref = uri_;
4942       if (ref instanceof java.lang.String) {
4943         com.google.protobuf.ByteString b =
4944             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4945         uri_ = b;
4946         return b;
4947       } else {
4948         return (com.google.protobuf.ByteString) ref;
4949       }
4950     }
4951 
4952     public static final int DIGEST_FIELD_NUMBER = 2;
4953 
4954     private static final class DigestDefaultEntryHolder {
4955       static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
4956           com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
4957               io.grafeas.v1.SlsaProvenanceProto
4958                   .internal_static_grafeas_v1_SlsaProvenance_Material_DigestEntry_descriptor,
4959               com.google.protobuf.WireFormat.FieldType.STRING,
4960               "",
4961               com.google.protobuf.WireFormat.FieldType.STRING,
4962               "");
4963     }
4964 
4965     @SuppressWarnings("serial")
4966     private com.google.protobuf.MapField<java.lang.String, java.lang.String> digest_;
4967 
internalGetDigest()4968     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDigest() {
4969       if (digest_ == null) {
4970         return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry);
4971       }
4972       return digest_;
4973     }
4974 
getDigestCount()4975     public int getDigestCount() {
4976       return internalGetDigest().getMap().size();
4977     }
4978     /** <code>map&lt;string, string&gt; digest = 2;</code> */
4979     @java.lang.Override
containsDigest(java.lang.String key)4980     public boolean containsDigest(java.lang.String key) {
4981       if (key == null) {
4982         throw new NullPointerException("map key");
4983       }
4984       return internalGetDigest().getMap().containsKey(key);
4985     }
4986     /** Use {@link #getDigestMap()} instead. */
4987     @java.lang.Override
4988     @java.lang.Deprecated
getDigest()4989     public java.util.Map<java.lang.String, java.lang.String> getDigest() {
4990       return getDigestMap();
4991     }
4992     /** <code>map&lt;string, string&gt; digest = 2;</code> */
4993     @java.lang.Override
getDigestMap()4994     public java.util.Map<java.lang.String, java.lang.String> getDigestMap() {
4995       return internalGetDigest().getMap();
4996     }
4997     /** <code>map&lt;string, string&gt; digest = 2;</code> */
4998     @java.lang.Override
getDigestOrDefault( java.lang.String key, java.lang.String defaultValue)4999     public /* nullable */ java.lang.String getDigestOrDefault(
5000         java.lang.String key,
5001         /* nullable */
5002         java.lang.String defaultValue) {
5003       if (key == null) {
5004         throw new NullPointerException("map key");
5005       }
5006       java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
5007       return map.containsKey(key) ? map.get(key) : defaultValue;
5008     }
5009     /** <code>map&lt;string, string&gt; digest = 2;</code> */
5010     @java.lang.Override
getDigestOrThrow(java.lang.String key)5011     public java.lang.String getDigestOrThrow(java.lang.String key) {
5012       if (key == null) {
5013         throw new NullPointerException("map key");
5014       }
5015       java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
5016       if (!map.containsKey(key)) {
5017         throw new java.lang.IllegalArgumentException();
5018       }
5019       return map.get(key);
5020     }
5021 
5022     private byte memoizedIsInitialized = -1;
5023 
5024     @java.lang.Override
isInitialized()5025     public final boolean isInitialized() {
5026       byte isInitialized = memoizedIsInitialized;
5027       if (isInitialized == 1) return true;
5028       if (isInitialized == 0) return false;
5029 
5030       memoizedIsInitialized = 1;
5031       return true;
5032     }
5033 
5034     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)5035     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
5036       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
5037         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
5038       }
5039       com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
5040           output, internalGetDigest(), DigestDefaultEntryHolder.defaultEntry, 2);
5041       getUnknownFields().writeTo(output);
5042     }
5043 
5044     @java.lang.Override
getSerializedSize()5045     public int getSerializedSize() {
5046       int size = memoizedSize;
5047       if (size != -1) return size;
5048 
5049       size = 0;
5050       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
5051         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
5052       }
5053       for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
5054           internalGetDigest().getMap().entrySet()) {
5055         com.google.protobuf.MapEntry<java.lang.String, java.lang.String> digest__ =
5056             DigestDefaultEntryHolder.defaultEntry
5057                 .newBuilderForType()
5058                 .setKey(entry.getKey())
5059                 .setValue(entry.getValue())
5060                 .build();
5061         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, digest__);
5062       }
5063       size += getUnknownFields().getSerializedSize();
5064       memoizedSize = size;
5065       return size;
5066     }
5067 
5068     @java.lang.Override
equals(final java.lang.Object obj)5069     public boolean equals(final java.lang.Object obj) {
5070       if (obj == this) {
5071         return true;
5072       }
5073       if (!(obj instanceof io.grafeas.v1.SlsaProvenance.Material)) {
5074         return super.equals(obj);
5075       }
5076       io.grafeas.v1.SlsaProvenance.Material other = (io.grafeas.v1.SlsaProvenance.Material) obj;
5077 
5078       if (!getUri().equals(other.getUri())) return false;
5079       if (!internalGetDigest().equals(other.internalGetDigest())) return false;
5080       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
5081       return true;
5082     }
5083 
5084     @java.lang.Override
hashCode()5085     public int hashCode() {
5086       if (memoizedHashCode != 0) {
5087         return memoizedHashCode;
5088       }
5089       int hash = 41;
5090       hash = (19 * hash) + getDescriptor().hashCode();
5091       hash = (37 * hash) + URI_FIELD_NUMBER;
5092       hash = (53 * hash) + getUri().hashCode();
5093       if (!internalGetDigest().getMap().isEmpty()) {
5094         hash = (37 * hash) + DIGEST_FIELD_NUMBER;
5095         hash = (53 * hash) + internalGetDigest().hashCode();
5096       }
5097       hash = (29 * hash) + getUnknownFields().hashCode();
5098       memoizedHashCode = hash;
5099       return hash;
5100     }
5101 
parseFrom(java.nio.ByteBuffer data)5102     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.nio.ByteBuffer data)
5103         throws com.google.protobuf.InvalidProtocolBufferException {
5104       return PARSER.parseFrom(data);
5105     }
5106 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5107     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5108         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5109         throws com.google.protobuf.InvalidProtocolBufferException {
5110       return PARSER.parseFrom(data, extensionRegistry);
5111     }
5112 
parseFrom( com.google.protobuf.ByteString data)5113     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5114         com.google.protobuf.ByteString data)
5115         throws com.google.protobuf.InvalidProtocolBufferException {
5116       return PARSER.parseFrom(data);
5117     }
5118 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5119     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5120         com.google.protobuf.ByteString data,
5121         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5122         throws com.google.protobuf.InvalidProtocolBufferException {
5123       return PARSER.parseFrom(data, extensionRegistry);
5124     }
5125 
parseFrom(byte[] data)5126     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(byte[] data)
5127         throws com.google.protobuf.InvalidProtocolBufferException {
5128       return PARSER.parseFrom(data);
5129     }
5130 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5131     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5132         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5133         throws com.google.protobuf.InvalidProtocolBufferException {
5134       return PARSER.parseFrom(data, extensionRegistry);
5135     }
5136 
parseFrom(java.io.InputStream input)5137     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(java.io.InputStream input)
5138         throws java.io.IOException {
5139       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5140     }
5141 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5142     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5143         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5144         throws java.io.IOException {
5145       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5146           PARSER, input, extensionRegistry);
5147     }
5148 
parseDelimitedFrom( java.io.InputStream input)5149     public static io.grafeas.v1.SlsaProvenance.Material parseDelimitedFrom(
5150         java.io.InputStream input) throws java.io.IOException {
5151       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
5152     }
5153 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5154     public static io.grafeas.v1.SlsaProvenance.Material parseDelimitedFrom(
5155         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5156         throws java.io.IOException {
5157       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
5158           PARSER, input, extensionRegistry);
5159     }
5160 
parseFrom( com.google.protobuf.CodedInputStream input)5161     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5162         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
5163       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5164     }
5165 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5166     public static io.grafeas.v1.SlsaProvenance.Material parseFrom(
5167         com.google.protobuf.CodedInputStream input,
5168         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5169         throws java.io.IOException {
5170       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5171           PARSER, input, extensionRegistry);
5172     }
5173 
5174     @java.lang.Override
newBuilderForType()5175     public Builder newBuilderForType() {
5176       return newBuilder();
5177     }
5178 
newBuilder()5179     public static Builder newBuilder() {
5180       return DEFAULT_INSTANCE.toBuilder();
5181     }
5182 
newBuilder(io.grafeas.v1.SlsaProvenance.Material prototype)5183     public static Builder newBuilder(io.grafeas.v1.SlsaProvenance.Material prototype) {
5184       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
5185     }
5186 
5187     @java.lang.Override
toBuilder()5188     public Builder toBuilder() {
5189       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
5190     }
5191 
5192     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5193     protected Builder newBuilderForType(
5194         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5195       Builder builder = new Builder(parent);
5196       return builder;
5197     }
5198     /** Protobuf type {@code grafeas.v1.SlsaProvenance.Material} */
5199     public static final class Builder
5200         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
5201         implements
5202         // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance.Material)
5203         io.grafeas.v1.SlsaProvenance.MaterialOrBuilder {
getDescriptor()5204       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
5205         return io.grafeas.v1.SlsaProvenanceProto
5206             .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
5207       }
5208 
5209       @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)5210       protected com.google.protobuf.MapField internalGetMapField(int number) {
5211         switch (number) {
5212           case 2:
5213             return internalGetDigest();
5214           default:
5215             throw new RuntimeException("Invalid map field number: " + number);
5216         }
5217       }
5218 
5219       @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)5220       protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
5221         switch (number) {
5222           case 2:
5223             return internalGetMutableDigest();
5224           default:
5225             throw new RuntimeException("Invalid map field number: " + number);
5226         }
5227       }
5228 
5229       @java.lang.Override
5230       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()5231           internalGetFieldAccessorTable() {
5232         return io.grafeas.v1.SlsaProvenanceProto
5233             .internal_static_grafeas_v1_SlsaProvenance_Material_fieldAccessorTable
5234             .ensureFieldAccessorsInitialized(
5235                 io.grafeas.v1.SlsaProvenance.Material.class,
5236                 io.grafeas.v1.SlsaProvenance.Material.Builder.class);
5237       }
5238 
5239       // Construct using io.grafeas.v1.SlsaProvenance.Material.newBuilder()
Builder()5240       private Builder() {}
5241 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5242       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5243         super(parent);
5244       }
5245 
5246       @java.lang.Override
clear()5247       public Builder clear() {
5248         super.clear();
5249         bitField0_ = 0;
5250         uri_ = "";
5251         internalGetMutableDigest().clear();
5252         return this;
5253       }
5254 
5255       @java.lang.Override
getDescriptorForType()5256       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
5257         return io.grafeas.v1.SlsaProvenanceProto
5258             .internal_static_grafeas_v1_SlsaProvenance_Material_descriptor;
5259       }
5260 
5261       @java.lang.Override
getDefaultInstanceForType()5262       public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() {
5263         return io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance();
5264       }
5265 
5266       @java.lang.Override
build()5267       public io.grafeas.v1.SlsaProvenance.Material build() {
5268         io.grafeas.v1.SlsaProvenance.Material result = buildPartial();
5269         if (!result.isInitialized()) {
5270           throw newUninitializedMessageException(result);
5271         }
5272         return result;
5273       }
5274 
5275       @java.lang.Override
buildPartial()5276       public io.grafeas.v1.SlsaProvenance.Material buildPartial() {
5277         io.grafeas.v1.SlsaProvenance.Material result =
5278             new io.grafeas.v1.SlsaProvenance.Material(this);
5279         if (bitField0_ != 0) {
5280           buildPartial0(result);
5281         }
5282         onBuilt();
5283         return result;
5284       }
5285 
buildPartial0(io.grafeas.v1.SlsaProvenance.Material result)5286       private void buildPartial0(io.grafeas.v1.SlsaProvenance.Material result) {
5287         int from_bitField0_ = bitField0_;
5288         if (((from_bitField0_ & 0x00000001) != 0)) {
5289           result.uri_ = uri_;
5290         }
5291         if (((from_bitField0_ & 0x00000002) != 0)) {
5292           result.digest_ = internalGetDigest();
5293           result.digest_.makeImmutable();
5294         }
5295       }
5296 
5297       @java.lang.Override
clone()5298       public Builder clone() {
5299         return super.clone();
5300       }
5301 
5302       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5303       public Builder setField(
5304           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5305         return super.setField(field, value);
5306       }
5307 
5308       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)5309       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
5310         return super.clearField(field);
5311       }
5312 
5313       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)5314       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
5315         return super.clearOneof(oneof);
5316       }
5317 
5318       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)5319       public Builder setRepeatedField(
5320           com.google.protobuf.Descriptors.FieldDescriptor field,
5321           int index,
5322           java.lang.Object value) {
5323         return super.setRepeatedField(field, index, value);
5324       }
5325 
5326       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5327       public Builder addRepeatedField(
5328           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5329         return super.addRepeatedField(field, value);
5330       }
5331 
5332       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)5333       public Builder mergeFrom(com.google.protobuf.Message other) {
5334         if (other instanceof io.grafeas.v1.SlsaProvenance.Material) {
5335           return mergeFrom((io.grafeas.v1.SlsaProvenance.Material) other);
5336         } else {
5337           super.mergeFrom(other);
5338           return this;
5339         }
5340       }
5341 
mergeFrom(io.grafeas.v1.SlsaProvenance.Material other)5342       public Builder mergeFrom(io.grafeas.v1.SlsaProvenance.Material other) {
5343         if (other == io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance()) return this;
5344         if (!other.getUri().isEmpty()) {
5345           uri_ = other.uri_;
5346           bitField0_ |= 0x00000001;
5347           onChanged();
5348         }
5349         internalGetMutableDigest().mergeFrom(other.internalGetDigest());
5350         bitField0_ |= 0x00000002;
5351         this.mergeUnknownFields(other.getUnknownFields());
5352         onChanged();
5353         return this;
5354       }
5355 
5356       @java.lang.Override
isInitialized()5357       public final boolean isInitialized() {
5358         return true;
5359       }
5360 
5361       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5362       public Builder mergeFrom(
5363           com.google.protobuf.CodedInputStream input,
5364           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5365           throws java.io.IOException {
5366         if (extensionRegistry == null) {
5367           throw new java.lang.NullPointerException();
5368         }
5369         try {
5370           boolean done = false;
5371           while (!done) {
5372             int tag = input.readTag();
5373             switch (tag) {
5374               case 0:
5375                 done = true;
5376                 break;
5377               case 10:
5378                 {
5379                   uri_ = input.readStringRequireUtf8();
5380                   bitField0_ |= 0x00000001;
5381                   break;
5382                 } // case 10
5383               case 18:
5384                 {
5385                   com.google.protobuf.MapEntry<java.lang.String, java.lang.String> digest__ =
5386                       input.readMessage(
5387                           DigestDefaultEntryHolder.defaultEntry.getParserForType(),
5388                           extensionRegistry);
5389                   internalGetMutableDigest()
5390                       .getMutableMap()
5391                       .put(digest__.getKey(), digest__.getValue());
5392                   bitField0_ |= 0x00000002;
5393                   break;
5394                 } // case 18
5395               default:
5396                 {
5397                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
5398                     done = true; // was an endgroup tag
5399                   }
5400                   break;
5401                 } // default:
5402             } // switch (tag)
5403           } // while (!done)
5404         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5405           throw e.unwrapIOException();
5406         } finally {
5407           onChanged();
5408         } // finally
5409         return this;
5410       }
5411 
5412       private int bitField0_;
5413 
5414       private java.lang.Object uri_ = "";
5415       /**
5416        * <code>string uri = 1;</code>
5417        *
5418        * @return The uri.
5419        */
getUri()5420       public java.lang.String getUri() {
5421         java.lang.Object ref = uri_;
5422         if (!(ref instanceof java.lang.String)) {
5423           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5424           java.lang.String s = bs.toStringUtf8();
5425           uri_ = s;
5426           return s;
5427         } else {
5428           return (java.lang.String) ref;
5429         }
5430       }
5431       /**
5432        * <code>string uri = 1;</code>
5433        *
5434        * @return The bytes for uri.
5435        */
getUriBytes()5436       public com.google.protobuf.ByteString getUriBytes() {
5437         java.lang.Object ref = uri_;
5438         if (ref instanceof String) {
5439           com.google.protobuf.ByteString b =
5440               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5441           uri_ = b;
5442           return b;
5443         } else {
5444           return (com.google.protobuf.ByteString) ref;
5445         }
5446       }
5447       /**
5448        * <code>string uri = 1;</code>
5449        *
5450        * @param value The uri to set.
5451        * @return This builder for chaining.
5452        */
setUri(java.lang.String value)5453       public Builder setUri(java.lang.String value) {
5454         if (value == null) {
5455           throw new NullPointerException();
5456         }
5457         uri_ = value;
5458         bitField0_ |= 0x00000001;
5459         onChanged();
5460         return this;
5461       }
5462       /**
5463        * <code>string uri = 1;</code>
5464        *
5465        * @return This builder for chaining.
5466        */
clearUri()5467       public Builder clearUri() {
5468         uri_ = getDefaultInstance().getUri();
5469         bitField0_ = (bitField0_ & ~0x00000001);
5470         onChanged();
5471         return this;
5472       }
5473       /**
5474        * <code>string uri = 1;</code>
5475        *
5476        * @param value The bytes for uri to set.
5477        * @return This builder for chaining.
5478        */
setUriBytes(com.google.protobuf.ByteString value)5479       public Builder setUriBytes(com.google.protobuf.ByteString value) {
5480         if (value == null) {
5481           throw new NullPointerException();
5482         }
5483         checkByteStringIsUtf8(value);
5484         uri_ = value;
5485         bitField0_ |= 0x00000001;
5486         onChanged();
5487         return this;
5488       }
5489 
5490       private com.google.protobuf.MapField<java.lang.String, java.lang.String> digest_;
5491 
internalGetDigest()5492       private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetDigest() {
5493         if (digest_ == null) {
5494           return com.google.protobuf.MapField.emptyMapField(DigestDefaultEntryHolder.defaultEntry);
5495         }
5496         return digest_;
5497       }
5498 
5499       private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableDigest()5500           internalGetMutableDigest() {
5501         if (digest_ == null) {
5502           digest_ = com.google.protobuf.MapField.newMapField(DigestDefaultEntryHolder.defaultEntry);
5503         }
5504         if (!digest_.isMutable()) {
5505           digest_ = digest_.copy();
5506         }
5507         bitField0_ |= 0x00000002;
5508         onChanged();
5509         return digest_;
5510       }
5511 
getDigestCount()5512       public int getDigestCount() {
5513         return internalGetDigest().getMap().size();
5514       }
5515       /** <code>map&lt;string, string&gt; digest = 2;</code> */
5516       @java.lang.Override
containsDigest(java.lang.String key)5517       public boolean containsDigest(java.lang.String key) {
5518         if (key == null) {
5519           throw new NullPointerException("map key");
5520         }
5521         return internalGetDigest().getMap().containsKey(key);
5522       }
5523       /** Use {@link #getDigestMap()} instead. */
5524       @java.lang.Override
5525       @java.lang.Deprecated
getDigest()5526       public java.util.Map<java.lang.String, java.lang.String> getDigest() {
5527         return getDigestMap();
5528       }
5529       /** <code>map&lt;string, string&gt; digest = 2;</code> */
5530       @java.lang.Override
getDigestMap()5531       public java.util.Map<java.lang.String, java.lang.String> getDigestMap() {
5532         return internalGetDigest().getMap();
5533       }
5534       /** <code>map&lt;string, string&gt; digest = 2;</code> */
5535       @java.lang.Override
getDigestOrDefault( java.lang.String key, java.lang.String defaultValue)5536       public /* nullable */ java.lang.String getDigestOrDefault(
5537           java.lang.String key,
5538           /* nullable */
5539           java.lang.String defaultValue) {
5540         if (key == null) {
5541           throw new NullPointerException("map key");
5542         }
5543         java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
5544         return map.containsKey(key) ? map.get(key) : defaultValue;
5545       }
5546       /** <code>map&lt;string, string&gt; digest = 2;</code> */
5547       @java.lang.Override
getDigestOrThrow(java.lang.String key)5548       public java.lang.String getDigestOrThrow(java.lang.String key) {
5549         if (key == null) {
5550           throw new NullPointerException("map key");
5551         }
5552         java.util.Map<java.lang.String, java.lang.String> map = internalGetDigest().getMap();
5553         if (!map.containsKey(key)) {
5554           throw new java.lang.IllegalArgumentException();
5555         }
5556         return map.get(key);
5557       }
5558 
clearDigest()5559       public Builder clearDigest() {
5560         bitField0_ = (bitField0_ & ~0x00000002);
5561         internalGetMutableDigest().getMutableMap().clear();
5562         return this;
5563       }
5564       /** <code>map&lt;string, string&gt; digest = 2;</code> */
removeDigest(java.lang.String key)5565       public Builder removeDigest(java.lang.String key) {
5566         if (key == null) {
5567           throw new NullPointerException("map key");
5568         }
5569         internalGetMutableDigest().getMutableMap().remove(key);
5570         return this;
5571       }
5572       /** Use alternate mutation accessors instead. */
5573       @java.lang.Deprecated
getMutableDigest()5574       public java.util.Map<java.lang.String, java.lang.String> getMutableDigest() {
5575         bitField0_ |= 0x00000002;
5576         return internalGetMutableDigest().getMutableMap();
5577       }
5578       /** <code>map&lt;string, string&gt; digest = 2;</code> */
putDigest(java.lang.String key, java.lang.String value)5579       public Builder putDigest(java.lang.String key, java.lang.String value) {
5580         if (key == null) {
5581           throw new NullPointerException("map key");
5582         }
5583         if (value == null) {
5584           throw new NullPointerException("map value");
5585         }
5586         internalGetMutableDigest().getMutableMap().put(key, value);
5587         bitField0_ |= 0x00000002;
5588         return this;
5589       }
5590       /** <code>map&lt;string, string&gt; digest = 2;</code> */
putAllDigest(java.util.Map<java.lang.String, java.lang.String> values)5591       public Builder putAllDigest(java.util.Map<java.lang.String, java.lang.String> values) {
5592         internalGetMutableDigest().getMutableMap().putAll(values);
5593         bitField0_ |= 0x00000002;
5594         return this;
5595       }
5596 
5597       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5598       public final Builder setUnknownFields(
5599           final com.google.protobuf.UnknownFieldSet unknownFields) {
5600         return super.setUnknownFields(unknownFields);
5601       }
5602 
5603       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5604       public final Builder mergeUnknownFields(
5605           final com.google.protobuf.UnknownFieldSet unknownFields) {
5606         return super.mergeUnknownFields(unknownFields);
5607       }
5608 
5609       // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance.Material)
5610     }
5611 
5612     // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance.Material)
5613     private static final io.grafeas.v1.SlsaProvenance.Material DEFAULT_INSTANCE;
5614 
5615     static {
5616       DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance.Material();
5617     }
5618 
getDefaultInstance()5619     public static io.grafeas.v1.SlsaProvenance.Material getDefaultInstance() {
5620       return DEFAULT_INSTANCE;
5621     }
5622 
5623     private static final com.google.protobuf.Parser<Material> PARSER =
5624         new com.google.protobuf.AbstractParser<Material>() {
5625           @java.lang.Override
5626           public Material parsePartialFrom(
5627               com.google.protobuf.CodedInputStream input,
5628               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5629               throws com.google.protobuf.InvalidProtocolBufferException {
5630             Builder builder = newBuilder();
5631             try {
5632               builder.mergeFrom(input, extensionRegistry);
5633             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5634               throw e.setUnfinishedMessage(builder.buildPartial());
5635             } catch (com.google.protobuf.UninitializedMessageException e) {
5636               throw e.asInvalidProtocolBufferException()
5637                   .setUnfinishedMessage(builder.buildPartial());
5638             } catch (java.io.IOException e) {
5639               throw new com.google.protobuf.InvalidProtocolBufferException(e)
5640                   .setUnfinishedMessage(builder.buildPartial());
5641             }
5642             return builder.buildPartial();
5643           }
5644         };
5645 
parser()5646     public static com.google.protobuf.Parser<Material> parser() {
5647       return PARSER;
5648     }
5649 
5650     @java.lang.Override
getParserForType()5651     public com.google.protobuf.Parser<Material> getParserForType() {
5652       return PARSER;
5653     }
5654 
5655     @java.lang.Override
getDefaultInstanceForType()5656     public io.grafeas.v1.SlsaProvenance.Material getDefaultInstanceForType() {
5657       return DEFAULT_INSTANCE;
5658     }
5659   }
5660 
5661   public static final int BUILDER_FIELD_NUMBER = 1;
5662   private io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_;
5663   /**
5664    *
5665    *
5666    * <pre>
5667    * required
5668    * </pre>
5669    *
5670    * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
5671    *
5672    * @return Whether the builder field is set.
5673    */
5674   @java.lang.Override
hasBuilder()5675   public boolean hasBuilder() {
5676     return builder_ != null;
5677   }
5678   /**
5679    *
5680    *
5681    * <pre>
5682    * required
5683    * </pre>
5684    *
5685    * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
5686    *
5687    * @return The builder.
5688    */
5689   @java.lang.Override
getBuilder()5690   public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
5691     return builder_ == null
5692         ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
5693         : builder_;
5694   }
5695   /**
5696    *
5697    *
5698    * <pre>
5699    * required
5700    * </pre>
5701    *
5702    * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
5703    */
5704   @java.lang.Override
getBuilderOrBuilder()5705   public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
5706     return builder_ == null
5707         ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
5708         : builder_;
5709   }
5710 
5711   public static final int RECIPE_FIELD_NUMBER = 2;
5712   private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
5713   /**
5714    *
5715    *
5716    * <pre>
5717    * Identifies the configuration used for the build.
5718    * When combined with materials, this SHOULD fully describe the build,
5719    * such that re-running this recipe results in bit-for-bit identical output
5720    * (if the build is reproducible).
5721    * </pre>
5722    *
5723    * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
5724    *
5725    * @return Whether the recipe field is set.
5726    */
5727   @java.lang.Override
hasRecipe()5728   public boolean hasRecipe() {
5729     return recipe_ != null;
5730   }
5731   /**
5732    *
5733    *
5734    * <pre>
5735    * Identifies the configuration used for the build.
5736    * When combined with materials, this SHOULD fully describe the build,
5737    * such that re-running this recipe results in bit-for-bit identical output
5738    * (if the build is reproducible).
5739    * </pre>
5740    *
5741    * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
5742    *
5743    * @return The recipe.
5744    */
5745   @java.lang.Override
getRecipe()5746   public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
5747     return recipe_ == null ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance() : recipe_;
5748   }
5749   /**
5750    *
5751    *
5752    * <pre>
5753    * Identifies the configuration used for the build.
5754    * When combined with materials, this SHOULD fully describe the build,
5755    * such that re-running this recipe results in bit-for-bit identical output
5756    * (if the build is reproducible).
5757    * </pre>
5758    *
5759    * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
5760    */
5761   @java.lang.Override
getRecipeOrBuilder()5762   public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
5763     return recipe_ == null ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance() : recipe_;
5764   }
5765 
5766   public static final int METADATA_FIELD_NUMBER = 3;
5767   private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
5768   /**
5769    * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
5770    *
5771    * @return Whether the metadata field is set.
5772    */
5773   @java.lang.Override
hasMetadata()5774   public boolean hasMetadata() {
5775     return metadata_ != null;
5776   }
5777   /**
5778    * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
5779    *
5780    * @return The metadata.
5781    */
5782   @java.lang.Override
getMetadata()5783   public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
5784     return metadata_ == null
5785         ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
5786         : metadata_;
5787   }
5788   /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
5789   @java.lang.Override
getMetadataOrBuilder()5790   public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
5791     return metadata_ == null
5792         ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
5793         : metadata_;
5794   }
5795 
5796   public static final int MATERIALS_FIELD_NUMBER = 4;
5797 
5798   @SuppressWarnings("serial")
5799   private java.util.List<io.grafeas.v1.SlsaProvenance.Material> materials_;
5800   /**
5801    *
5802    *
5803    * <pre>
5804    * The collection of artifacts that influenced the build including sources,
5805    * dependencies, build tools, base images, and so on. This is considered to be
5806    * incomplete unless metadata.completeness.materials is true. Unset or null is
5807    * equivalent to empty.
5808    * </pre>
5809    *
5810    * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
5811    */
5812   @java.lang.Override
getMaterialsList()5813   public java.util.List<io.grafeas.v1.SlsaProvenance.Material> getMaterialsList() {
5814     return materials_;
5815   }
5816   /**
5817    *
5818    *
5819    * <pre>
5820    * The collection of artifacts that influenced the build including sources,
5821    * dependencies, build tools, base images, and so on. This is considered to be
5822    * incomplete unless metadata.completeness.materials is true. Unset or null is
5823    * equivalent to empty.
5824    * </pre>
5825    *
5826    * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
5827    */
5828   @java.lang.Override
5829   public java.util.List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
getMaterialsOrBuilderList()5830       getMaterialsOrBuilderList() {
5831     return materials_;
5832   }
5833   /**
5834    *
5835    *
5836    * <pre>
5837    * The collection of artifacts that influenced the build including sources,
5838    * dependencies, build tools, base images, and so on. This is considered to be
5839    * incomplete unless metadata.completeness.materials is true. Unset or null is
5840    * equivalent to empty.
5841    * </pre>
5842    *
5843    * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
5844    */
5845   @java.lang.Override
getMaterialsCount()5846   public int getMaterialsCount() {
5847     return materials_.size();
5848   }
5849   /**
5850    *
5851    *
5852    * <pre>
5853    * The collection of artifacts that influenced the build including sources,
5854    * dependencies, build tools, base images, and so on. This is considered to be
5855    * incomplete unless metadata.completeness.materials is true. Unset or null is
5856    * equivalent to empty.
5857    * </pre>
5858    *
5859    * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
5860    */
5861   @java.lang.Override
getMaterials(int index)5862   public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
5863     return materials_.get(index);
5864   }
5865   /**
5866    *
5867    *
5868    * <pre>
5869    * The collection of artifacts that influenced the build including sources,
5870    * dependencies, build tools, base images, and so on. This is considered to be
5871    * incomplete unless metadata.completeness.materials is true. Unset or null is
5872    * equivalent to empty.
5873    * </pre>
5874    *
5875    * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
5876    */
5877   @java.lang.Override
getMaterialsOrBuilder(int index)5878   public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
5879     return materials_.get(index);
5880   }
5881 
5882   private byte memoizedIsInitialized = -1;
5883 
5884   @java.lang.Override
isInitialized()5885   public final boolean isInitialized() {
5886     byte isInitialized = memoizedIsInitialized;
5887     if (isInitialized == 1) return true;
5888     if (isInitialized == 0) return false;
5889 
5890     memoizedIsInitialized = 1;
5891     return true;
5892   }
5893 
5894   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)5895   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
5896     if (builder_ != null) {
5897       output.writeMessage(1, getBuilder());
5898     }
5899     if (recipe_ != null) {
5900       output.writeMessage(2, getRecipe());
5901     }
5902     if (metadata_ != null) {
5903       output.writeMessage(3, getMetadata());
5904     }
5905     for (int i = 0; i < materials_.size(); i++) {
5906       output.writeMessage(4, materials_.get(i));
5907     }
5908     getUnknownFields().writeTo(output);
5909   }
5910 
5911   @java.lang.Override
getSerializedSize()5912   public int getSerializedSize() {
5913     int size = memoizedSize;
5914     if (size != -1) return size;
5915 
5916     size = 0;
5917     if (builder_ != null) {
5918       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBuilder());
5919     }
5920     if (recipe_ != null) {
5921       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRecipe());
5922     }
5923     if (metadata_ != null) {
5924       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
5925     }
5926     for (int i = 0; i < materials_.size(); i++) {
5927       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, materials_.get(i));
5928     }
5929     size += getUnknownFields().getSerializedSize();
5930     memoizedSize = size;
5931     return size;
5932   }
5933 
5934   @java.lang.Override
equals(final java.lang.Object obj)5935   public boolean equals(final java.lang.Object obj) {
5936     if (obj == this) {
5937       return true;
5938     }
5939     if (!(obj instanceof io.grafeas.v1.SlsaProvenance)) {
5940       return super.equals(obj);
5941     }
5942     io.grafeas.v1.SlsaProvenance other = (io.grafeas.v1.SlsaProvenance) obj;
5943 
5944     if (hasBuilder() != other.hasBuilder()) return false;
5945     if (hasBuilder()) {
5946       if (!getBuilder().equals(other.getBuilder())) return false;
5947     }
5948     if (hasRecipe() != other.hasRecipe()) return false;
5949     if (hasRecipe()) {
5950       if (!getRecipe().equals(other.getRecipe())) return false;
5951     }
5952     if (hasMetadata() != other.hasMetadata()) return false;
5953     if (hasMetadata()) {
5954       if (!getMetadata().equals(other.getMetadata())) return false;
5955     }
5956     if (!getMaterialsList().equals(other.getMaterialsList())) return false;
5957     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
5958     return true;
5959   }
5960 
5961   @java.lang.Override
hashCode()5962   public int hashCode() {
5963     if (memoizedHashCode != 0) {
5964       return memoizedHashCode;
5965     }
5966     int hash = 41;
5967     hash = (19 * hash) + getDescriptor().hashCode();
5968     if (hasBuilder()) {
5969       hash = (37 * hash) + BUILDER_FIELD_NUMBER;
5970       hash = (53 * hash) + getBuilder().hashCode();
5971     }
5972     if (hasRecipe()) {
5973       hash = (37 * hash) + RECIPE_FIELD_NUMBER;
5974       hash = (53 * hash) + getRecipe().hashCode();
5975     }
5976     if (hasMetadata()) {
5977       hash = (37 * hash) + METADATA_FIELD_NUMBER;
5978       hash = (53 * hash) + getMetadata().hashCode();
5979     }
5980     if (getMaterialsCount() > 0) {
5981       hash = (37 * hash) + MATERIALS_FIELD_NUMBER;
5982       hash = (53 * hash) + getMaterialsList().hashCode();
5983     }
5984     hash = (29 * hash) + getUnknownFields().hashCode();
5985     memoizedHashCode = hash;
5986     return hash;
5987   }
5988 
parseFrom(java.nio.ByteBuffer data)5989   public static io.grafeas.v1.SlsaProvenance parseFrom(java.nio.ByteBuffer data)
5990       throws com.google.protobuf.InvalidProtocolBufferException {
5991     return PARSER.parseFrom(data);
5992   }
5993 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5994   public static io.grafeas.v1.SlsaProvenance parseFrom(
5995       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5996       throws com.google.protobuf.InvalidProtocolBufferException {
5997     return PARSER.parseFrom(data, extensionRegistry);
5998   }
5999 
parseFrom(com.google.protobuf.ByteString data)6000   public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.ByteString data)
6001       throws com.google.protobuf.InvalidProtocolBufferException {
6002     return PARSER.parseFrom(data);
6003   }
6004 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6005   public static io.grafeas.v1.SlsaProvenance parseFrom(
6006       com.google.protobuf.ByteString data,
6007       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6008       throws com.google.protobuf.InvalidProtocolBufferException {
6009     return PARSER.parseFrom(data, extensionRegistry);
6010   }
6011 
parseFrom(byte[] data)6012   public static io.grafeas.v1.SlsaProvenance parseFrom(byte[] data)
6013       throws com.google.protobuf.InvalidProtocolBufferException {
6014     return PARSER.parseFrom(data);
6015   }
6016 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6017   public static io.grafeas.v1.SlsaProvenance parseFrom(
6018       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6019       throws com.google.protobuf.InvalidProtocolBufferException {
6020     return PARSER.parseFrom(data, extensionRegistry);
6021   }
6022 
parseFrom(java.io.InputStream input)6023   public static io.grafeas.v1.SlsaProvenance parseFrom(java.io.InputStream input)
6024       throws java.io.IOException {
6025     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
6026   }
6027 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6028   public static io.grafeas.v1.SlsaProvenance parseFrom(
6029       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6030       throws java.io.IOException {
6031     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
6032         PARSER, input, extensionRegistry);
6033   }
6034 
parseDelimitedFrom(java.io.InputStream input)6035   public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(java.io.InputStream input)
6036       throws java.io.IOException {
6037     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
6038   }
6039 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6040   public static io.grafeas.v1.SlsaProvenance parseDelimitedFrom(
6041       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6042       throws java.io.IOException {
6043     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
6044         PARSER, input, extensionRegistry);
6045   }
6046 
parseFrom(com.google.protobuf.CodedInputStream input)6047   public static io.grafeas.v1.SlsaProvenance parseFrom(com.google.protobuf.CodedInputStream input)
6048       throws java.io.IOException {
6049     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
6050   }
6051 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6052   public static io.grafeas.v1.SlsaProvenance parseFrom(
6053       com.google.protobuf.CodedInputStream input,
6054       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6055       throws java.io.IOException {
6056     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
6057         PARSER, input, extensionRegistry);
6058   }
6059 
6060   @java.lang.Override
newBuilderForType()6061   public Builder newBuilderForType() {
6062     return newBuilder();
6063   }
6064 
newBuilder()6065   public static Builder newBuilder() {
6066     return DEFAULT_INSTANCE.toBuilder();
6067   }
6068 
newBuilder(io.grafeas.v1.SlsaProvenance prototype)6069   public static Builder newBuilder(io.grafeas.v1.SlsaProvenance prototype) {
6070     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
6071   }
6072 
6073   @java.lang.Override
toBuilder()6074   public Builder toBuilder() {
6075     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
6076   }
6077 
6078   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6079   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
6080     Builder builder = new Builder(parent);
6081     return builder;
6082   }
6083   /** Protobuf type {@code grafeas.v1.SlsaProvenance} */
6084   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
6085       implements
6086       // @@protoc_insertion_point(builder_implements:grafeas.v1.SlsaProvenance)
6087       io.grafeas.v1.SlsaProvenanceOrBuilder {
getDescriptor()6088     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
6089       return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
6090     }
6091 
6092     @java.lang.Override
6093     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()6094         internalGetFieldAccessorTable() {
6095       return io.grafeas.v1.SlsaProvenanceProto
6096           .internal_static_grafeas_v1_SlsaProvenance_fieldAccessorTable
6097           .ensureFieldAccessorsInitialized(
6098               io.grafeas.v1.SlsaProvenance.class, io.grafeas.v1.SlsaProvenance.Builder.class);
6099     }
6100 
6101     // Construct using io.grafeas.v1.SlsaProvenance.newBuilder()
Builder()6102     private Builder() {}
6103 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)6104     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
6105       super(parent);
6106     }
6107 
6108     @java.lang.Override
clear()6109     public Builder clear() {
6110       super.clear();
6111       bitField0_ = 0;
6112       builder_ = null;
6113       if (builderBuilder_ != null) {
6114         builderBuilder_.dispose();
6115         builderBuilder_ = null;
6116       }
6117       recipe_ = null;
6118       if (recipeBuilder_ != null) {
6119         recipeBuilder_.dispose();
6120         recipeBuilder_ = null;
6121       }
6122       metadata_ = null;
6123       if (metadataBuilder_ != null) {
6124         metadataBuilder_.dispose();
6125         metadataBuilder_ = null;
6126       }
6127       if (materialsBuilder_ == null) {
6128         materials_ = java.util.Collections.emptyList();
6129       } else {
6130         materials_ = null;
6131         materialsBuilder_.clear();
6132       }
6133       bitField0_ = (bitField0_ & ~0x00000008);
6134       return this;
6135     }
6136 
6137     @java.lang.Override
getDescriptorForType()6138     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
6139       return io.grafeas.v1.SlsaProvenanceProto.internal_static_grafeas_v1_SlsaProvenance_descriptor;
6140     }
6141 
6142     @java.lang.Override
getDefaultInstanceForType()6143     public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() {
6144       return io.grafeas.v1.SlsaProvenance.getDefaultInstance();
6145     }
6146 
6147     @java.lang.Override
build()6148     public io.grafeas.v1.SlsaProvenance build() {
6149       io.grafeas.v1.SlsaProvenance result = buildPartial();
6150       if (!result.isInitialized()) {
6151         throw newUninitializedMessageException(result);
6152       }
6153       return result;
6154     }
6155 
6156     @java.lang.Override
buildPartial()6157     public io.grafeas.v1.SlsaProvenance buildPartial() {
6158       io.grafeas.v1.SlsaProvenance result = new io.grafeas.v1.SlsaProvenance(this);
6159       buildPartialRepeatedFields(result);
6160       if (bitField0_ != 0) {
6161         buildPartial0(result);
6162       }
6163       onBuilt();
6164       return result;
6165     }
6166 
buildPartialRepeatedFields(io.grafeas.v1.SlsaProvenance result)6167     private void buildPartialRepeatedFields(io.grafeas.v1.SlsaProvenance result) {
6168       if (materialsBuilder_ == null) {
6169         if (((bitField0_ & 0x00000008) != 0)) {
6170           materials_ = java.util.Collections.unmodifiableList(materials_);
6171           bitField0_ = (bitField0_ & ~0x00000008);
6172         }
6173         result.materials_ = materials_;
6174       } else {
6175         result.materials_ = materialsBuilder_.build();
6176       }
6177     }
6178 
buildPartial0(io.grafeas.v1.SlsaProvenance result)6179     private void buildPartial0(io.grafeas.v1.SlsaProvenance result) {
6180       int from_bitField0_ = bitField0_;
6181       if (((from_bitField0_ & 0x00000001) != 0)) {
6182         result.builder_ = builderBuilder_ == null ? builder_ : builderBuilder_.build();
6183       }
6184       if (((from_bitField0_ & 0x00000002) != 0)) {
6185         result.recipe_ = recipeBuilder_ == null ? recipe_ : recipeBuilder_.build();
6186       }
6187       if (((from_bitField0_ & 0x00000004) != 0)) {
6188         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
6189       }
6190     }
6191 
6192     @java.lang.Override
clone()6193     public Builder clone() {
6194       return super.clone();
6195     }
6196 
6197     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6198     public Builder setField(
6199         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
6200       return super.setField(field, value);
6201     }
6202 
6203     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)6204     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
6205       return super.clearField(field);
6206     }
6207 
6208     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)6209     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
6210       return super.clearOneof(oneof);
6211     }
6212 
6213     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)6214     public Builder setRepeatedField(
6215         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
6216       return super.setRepeatedField(field, index, value);
6217     }
6218 
6219     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)6220     public Builder addRepeatedField(
6221         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
6222       return super.addRepeatedField(field, value);
6223     }
6224 
6225     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)6226     public Builder mergeFrom(com.google.protobuf.Message other) {
6227       if (other instanceof io.grafeas.v1.SlsaProvenance) {
6228         return mergeFrom((io.grafeas.v1.SlsaProvenance) other);
6229       } else {
6230         super.mergeFrom(other);
6231         return this;
6232       }
6233     }
6234 
mergeFrom(io.grafeas.v1.SlsaProvenance other)6235     public Builder mergeFrom(io.grafeas.v1.SlsaProvenance other) {
6236       if (other == io.grafeas.v1.SlsaProvenance.getDefaultInstance()) return this;
6237       if (other.hasBuilder()) {
6238         mergeBuilder(other.getBuilder());
6239       }
6240       if (other.hasRecipe()) {
6241         mergeRecipe(other.getRecipe());
6242       }
6243       if (other.hasMetadata()) {
6244         mergeMetadata(other.getMetadata());
6245       }
6246       if (materialsBuilder_ == null) {
6247         if (!other.materials_.isEmpty()) {
6248           if (materials_.isEmpty()) {
6249             materials_ = other.materials_;
6250             bitField0_ = (bitField0_ & ~0x00000008);
6251           } else {
6252             ensureMaterialsIsMutable();
6253             materials_.addAll(other.materials_);
6254           }
6255           onChanged();
6256         }
6257       } else {
6258         if (!other.materials_.isEmpty()) {
6259           if (materialsBuilder_.isEmpty()) {
6260             materialsBuilder_.dispose();
6261             materialsBuilder_ = null;
6262             materials_ = other.materials_;
6263             bitField0_ = (bitField0_ & ~0x00000008);
6264             materialsBuilder_ =
6265                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
6266                     ? getMaterialsFieldBuilder()
6267                     : null;
6268           } else {
6269             materialsBuilder_.addAllMessages(other.materials_);
6270           }
6271         }
6272       }
6273       this.mergeUnknownFields(other.getUnknownFields());
6274       onChanged();
6275       return this;
6276     }
6277 
6278     @java.lang.Override
isInitialized()6279     public final boolean isInitialized() {
6280       return true;
6281     }
6282 
6283     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)6284     public Builder mergeFrom(
6285         com.google.protobuf.CodedInputStream input,
6286         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6287         throws java.io.IOException {
6288       if (extensionRegistry == null) {
6289         throw new java.lang.NullPointerException();
6290       }
6291       try {
6292         boolean done = false;
6293         while (!done) {
6294           int tag = input.readTag();
6295           switch (tag) {
6296             case 0:
6297               done = true;
6298               break;
6299             case 10:
6300               {
6301                 input.readMessage(getBuilderFieldBuilder().getBuilder(), extensionRegistry);
6302                 bitField0_ |= 0x00000001;
6303                 break;
6304               } // case 10
6305             case 18:
6306               {
6307                 input.readMessage(getRecipeFieldBuilder().getBuilder(), extensionRegistry);
6308                 bitField0_ |= 0x00000002;
6309                 break;
6310               } // case 18
6311             case 26:
6312               {
6313                 input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
6314                 bitField0_ |= 0x00000004;
6315                 break;
6316               } // case 26
6317             case 34:
6318               {
6319                 io.grafeas.v1.SlsaProvenance.Material m =
6320                     input.readMessage(
6321                         io.grafeas.v1.SlsaProvenance.Material.parser(), extensionRegistry);
6322                 if (materialsBuilder_ == null) {
6323                   ensureMaterialsIsMutable();
6324                   materials_.add(m);
6325                 } else {
6326                   materialsBuilder_.addMessage(m);
6327                 }
6328                 break;
6329               } // case 34
6330             default:
6331               {
6332                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
6333                   done = true; // was an endgroup tag
6334                 }
6335                 break;
6336               } // default:
6337           } // switch (tag)
6338         } // while (!done)
6339       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6340         throw e.unwrapIOException();
6341       } finally {
6342         onChanged();
6343       } // finally
6344       return this;
6345     }
6346 
6347     private int bitField0_;
6348 
6349     private io.grafeas.v1.SlsaProvenance.SlsaBuilder builder_;
6350     private com.google.protobuf.SingleFieldBuilderV3<
6351             io.grafeas.v1.SlsaProvenance.SlsaBuilder,
6352             io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
6353             io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>
6354         builderBuilder_;
6355     /**
6356      *
6357      *
6358      * <pre>
6359      * required
6360      * </pre>
6361      *
6362      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6363      *
6364      * @return Whether the builder field is set.
6365      */
hasBuilder()6366     public boolean hasBuilder() {
6367       return ((bitField0_ & 0x00000001) != 0);
6368     }
6369     /**
6370      *
6371      *
6372      * <pre>
6373      * required
6374      * </pre>
6375      *
6376      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6377      *
6378      * @return The builder.
6379      */
getBuilder()6380     public io.grafeas.v1.SlsaProvenance.SlsaBuilder getBuilder() {
6381       if (builderBuilder_ == null) {
6382         return builder_ == null
6383             ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
6384             : builder_;
6385       } else {
6386         return builderBuilder_.getMessage();
6387       }
6388     }
6389     /**
6390      *
6391      *
6392      * <pre>
6393      * required
6394      * </pre>
6395      *
6396      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6397      */
setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value)6398     public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
6399       if (builderBuilder_ == null) {
6400         if (value == null) {
6401           throw new NullPointerException();
6402         }
6403         builder_ = value;
6404       } else {
6405         builderBuilder_.setMessage(value);
6406       }
6407       bitField0_ |= 0x00000001;
6408       onChanged();
6409       return this;
6410     }
6411     /**
6412      *
6413      *
6414      * <pre>
6415      * required
6416      * </pre>
6417      *
6418      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6419      */
setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder builderForValue)6420     public Builder setBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder builderForValue) {
6421       if (builderBuilder_ == null) {
6422         builder_ = builderForValue.build();
6423       } else {
6424         builderBuilder_.setMessage(builderForValue.build());
6425       }
6426       bitField0_ |= 0x00000001;
6427       onChanged();
6428       return this;
6429     }
6430     /**
6431      *
6432      *
6433      * <pre>
6434      * required
6435      * </pre>
6436      *
6437      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6438      */
mergeBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value)6439     public Builder mergeBuilder(io.grafeas.v1.SlsaProvenance.SlsaBuilder value) {
6440       if (builderBuilder_ == null) {
6441         if (((bitField0_ & 0x00000001) != 0)
6442             && builder_ != null
6443             && builder_ != io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()) {
6444           getBuilderBuilder().mergeFrom(value);
6445         } else {
6446           builder_ = value;
6447         }
6448       } else {
6449         builderBuilder_.mergeFrom(value);
6450       }
6451       bitField0_ |= 0x00000001;
6452       onChanged();
6453       return this;
6454     }
6455     /**
6456      *
6457      *
6458      * <pre>
6459      * required
6460      * </pre>
6461      *
6462      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6463      */
clearBuilder()6464     public Builder clearBuilder() {
6465       bitField0_ = (bitField0_ & ~0x00000001);
6466       builder_ = null;
6467       if (builderBuilder_ != null) {
6468         builderBuilder_.dispose();
6469         builderBuilder_ = null;
6470       }
6471       onChanged();
6472       return this;
6473     }
6474     /**
6475      *
6476      *
6477      * <pre>
6478      * required
6479      * </pre>
6480      *
6481      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6482      */
getBuilderBuilder()6483     public io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder getBuilderBuilder() {
6484       bitField0_ |= 0x00000001;
6485       onChanged();
6486       return getBuilderFieldBuilder().getBuilder();
6487     }
6488     /**
6489      *
6490      *
6491      * <pre>
6492      * required
6493      * </pre>
6494      *
6495      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6496      */
getBuilderOrBuilder()6497     public io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder getBuilderOrBuilder() {
6498       if (builderBuilder_ != null) {
6499         return builderBuilder_.getMessageOrBuilder();
6500       } else {
6501         return builder_ == null
6502             ? io.grafeas.v1.SlsaProvenance.SlsaBuilder.getDefaultInstance()
6503             : builder_;
6504       }
6505     }
6506     /**
6507      *
6508      *
6509      * <pre>
6510      * required
6511      * </pre>
6512      *
6513      * <code>.grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1;</code>
6514      */
6515     private com.google.protobuf.SingleFieldBuilderV3<
6516             io.grafeas.v1.SlsaProvenance.SlsaBuilder,
6517             io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
6518             io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>
getBuilderFieldBuilder()6519         getBuilderFieldBuilder() {
6520       if (builderBuilder_ == null) {
6521         builderBuilder_ =
6522             new com.google.protobuf.SingleFieldBuilderV3<
6523                 io.grafeas.v1.SlsaProvenance.SlsaBuilder,
6524                 io.grafeas.v1.SlsaProvenance.SlsaBuilder.Builder,
6525                 io.grafeas.v1.SlsaProvenance.SlsaBuilderOrBuilder>(
6526                 getBuilder(), getParentForChildren(), isClean());
6527         builder_ = null;
6528       }
6529       return builderBuilder_;
6530     }
6531 
6532     private io.grafeas.v1.SlsaProvenance.SlsaRecipe recipe_;
6533     private com.google.protobuf.SingleFieldBuilderV3<
6534             io.grafeas.v1.SlsaProvenance.SlsaRecipe,
6535             io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
6536             io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
6537         recipeBuilder_;
6538     /**
6539      *
6540      *
6541      * <pre>
6542      * Identifies the configuration used for the build.
6543      * When combined with materials, this SHOULD fully describe the build,
6544      * such that re-running this recipe results in bit-for-bit identical output
6545      * (if the build is reproducible).
6546      * </pre>
6547      *
6548      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6549      *
6550      * @return Whether the recipe field is set.
6551      */
hasRecipe()6552     public boolean hasRecipe() {
6553       return ((bitField0_ & 0x00000002) != 0);
6554     }
6555     /**
6556      *
6557      *
6558      * <pre>
6559      * Identifies the configuration used for the build.
6560      * When combined with materials, this SHOULD fully describe the build,
6561      * such that re-running this recipe results in bit-for-bit identical output
6562      * (if the build is reproducible).
6563      * </pre>
6564      *
6565      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6566      *
6567      * @return The recipe.
6568      */
getRecipe()6569     public io.grafeas.v1.SlsaProvenance.SlsaRecipe getRecipe() {
6570       if (recipeBuilder_ == null) {
6571         return recipe_ == null
6572             ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
6573             : recipe_;
6574       } else {
6575         return recipeBuilder_.getMessage();
6576       }
6577     }
6578     /**
6579      *
6580      *
6581      * <pre>
6582      * Identifies the configuration used for the build.
6583      * When combined with materials, this SHOULD fully describe the build,
6584      * such that re-running this recipe results in bit-for-bit identical output
6585      * (if the build is reproducible).
6586      * </pre>
6587      *
6588      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6589      */
setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value)6590     public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
6591       if (recipeBuilder_ == null) {
6592         if (value == null) {
6593           throw new NullPointerException();
6594         }
6595         recipe_ = value;
6596       } else {
6597         recipeBuilder_.setMessage(value);
6598       }
6599       bitField0_ |= 0x00000002;
6600       onChanged();
6601       return this;
6602     }
6603     /**
6604      *
6605      *
6606      * <pre>
6607      * Identifies the configuration used for the build.
6608      * When combined with materials, this SHOULD fully describe the build,
6609      * such that re-running this recipe results in bit-for-bit identical output
6610      * (if the build is reproducible).
6611      * </pre>
6612      *
6613      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6614      */
setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder builderForValue)6615     public Builder setRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder builderForValue) {
6616       if (recipeBuilder_ == null) {
6617         recipe_ = builderForValue.build();
6618       } else {
6619         recipeBuilder_.setMessage(builderForValue.build());
6620       }
6621       bitField0_ |= 0x00000002;
6622       onChanged();
6623       return this;
6624     }
6625     /**
6626      *
6627      *
6628      * <pre>
6629      * Identifies the configuration used for the build.
6630      * When combined with materials, this SHOULD fully describe the build,
6631      * such that re-running this recipe results in bit-for-bit identical output
6632      * (if the build is reproducible).
6633      * </pre>
6634      *
6635      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6636      */
mergeRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value)6637     public Builder mergeRecipe(io.grafeas.v1.SlsaProvenance.SlsaRecipe value) {
6638       if (recipeBuilder_ == null) {
6639         if (((bitField0_ & 0x00000002) != 0)
6640             && recipe_ != null
6641             && recipe_ != io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()) {
6642           getRecipeBuilder().mergeFrom(value);
6643         } else {
6644           recipe_ = value;
6645         }
6646       } else {
6647         recipeBuilder_.mergeFrom(value);
6648       }
6649       bitField0_ |= 0x00000002;
6650       onChanged();
6651       return this;
6652     }
6653     /**
6654      *
6655      *
6656      * <pre>
6657      * Identifies the configuration used for the build.
6658      * When combined with materials, this SHOULD fully describe the build,
6659      * such that re-running this recipe results in bit-for-bit identical output
6660      * (if the build is reproducible).
6661      * </pre>
6662      *
6663      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6664      */
clearRecipe()6665     public Builder clearRecipe() {
6666       bitField0_ = (bitField0_ & ~0x00000002);
6667       recipe_ = null;
6668       if (recipeBuilder_ != null) {
6669         recipeBuilder_.dispose();
6670         recipeBuilder_ = null;
6671       }
6672       onChanged();
6673       return this;
6674     }
6675     /**
6676      *
6677      *
6678      * <pre>
6679      * Identifies the configuration used for the build.
6680      * When combined with materials, this SHOULD fully describe the build,
6681      * such that re-running this recipe results in bit-for-bit identical output
6682      * (if the build is reproducible).
6683      * </pre>
6684      *
6685      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6686      */
getRecipeBuilder()6687     public io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder getRecipeBuilder() {
6688       bitField0_ |= 0x00000002;
6689       onChanged();
6690       return getRecipeFieldBuilder().getBuilder();
6691     }
6692     /**
6693      *
6694      *
6695      * <pre>
6696      * Identifies the configuration used for the build.
6697      * When combined with materials, this SHOULD fully describe the build,
6698      * such that re-running this recipe results in bit-for-bit identical output
6699      * (if the build is reproducible).
6700      * </pre>
6701      *
6702      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6703      */
getRecipeOrBuilder()6704     public io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder getRecipeOrBuilder() {
6705       if (recipeBuilder_ != null) {
6706         return recipeBuilder_.getMessageOrBuilder();
6707       } else {
6708         return recipe_ == null
6709             ? io.grafeas.v1.SlsaProvenance.SlsaRecipe.getDefaultInstance()
6710             : recipe_;
6711       }
6712     }
6713     /**
6714      *
6715      *
6716      * <pre>
6717      * Identifies the configuration used for the build.
6718      * When combined with materials, this SHOULD fully describe the build,
6719      * such that re-running this recipe results in bit-for-bit identical output
6720      * (if the build is reproducible).
6721      * </pre>
6722      *
6723      * <code>.grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2;</code>
6724      */
6725     private com.google.protobuf.SingleFieldBuilderV3<
6726             io.grafeas.v1.SlsaProvenance.SlsaRecipe,
6727             io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
6728             io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>
getRecipeFieldBuilder()6729         getRecipeFieldBuilder() {
6730       if (recipeBuilder_ == null) {
6731         recipeBuilder_ =
6732             new com.google.protobuf.SingleFieldBuilderV3<
6733                 io.grafeas.v1.SlsaProvenance.SlsaRecipe,
6734                 io.grafeas.v1.SlsaProvenance.SlsaRecipe.Builder,
6735                 io.grafeas.v1.SlsaProvenance.SlsaRecipeOrBuilder>(
6736                 getRecipe(), getParentForChildren(), isClean());
6737         recipe_ = null;
6738       }
6739       return recipeBuilder_;
6740     }
6741 
6742     private io.grafeas.v1.SlsaProvenance.SlsaMetadata metadata_;
6743     private com.google.protobuf.SingleFieldBuilderV3<
6744             io.grafeas.v1.SlsaProvenance.SlsaMetadata,
6745             io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
6746             io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
6747         metadataBuilder_;
6748     /**
6749      * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
6750      *
6751      * @return Whether the metadata field is set.
6752      */
hasMetadata()6753     public boolean hasMetadata() {
6754       return ((bitField0_ & 0x00000004) != 0);
6755     }
6756     /**
6757      * <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code>
6758      *
6759      * @return The metadata.
6760      */
getMetadata()6761     public io.grafeas.v1.SlsaProvenance.SlsaMetadata getMetadata() {
6762       if (metadataBuilder_ == null) {
6763         return metadata_ == null
6764             ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
6765             : metadata_;
6766       } else {
6767         return metadataBuilder_.getMessage();
6768       }
6769     }
6770     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value)6771     public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
6772       if (metadataBuilder_ == null) {
6773         if (value == null) {
6774           throw new NullPointerException();
6775         }
6776         metadata_ = value;
6777       } else {
6778         metadataBuilder_.setMessage(value);
6779       }
6780       bitField0_ |= 0x00000004;
6781       onChanged();
6782       return this;
6783     }
6784     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder builderForValue)6785     public Builder setMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder builderForValue) {
6786       if (metadataBuilder_ == null) {
6787         metadata_ = builderForValue.build();
6788       } else {
6789         metadataBuilder_.setMessage(builderForValue.build());
6790       }
6791       bitField0_ |= 0x00000004;
6792       onChanged();
6793       return this;
6794     }
6795     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
mergeMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value)6796     public Builder mergeMetadata(io.grafeas.v1.SlsaProvenance.SlsaMetadata value) {
6797       if (metadataBuilder_ == null) {
6798         if (((bitField0_ & 0x00000004) != 0)
6799             && metadata_ != null
6800             && metadata_ != io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()) {
6801           getMetadataBuilder().mergeFrom(value);
6802         } else {
6803           metadata_ = value;
6804         }
6805       } else {
6806         metadataBuilder_.mergeFrom(value);
6807       }
6808       bitField0_ |= 0x00000004;
6809       onChanged();
6810       return this;
6811     }
6812     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
clearMetadata()6813     public Builder clearMetadata() {
6814       bitField0_ = (bitField0_ & ~0x00000004);
6815       metadata_ = null;
6816       if (metadataBuilder_ != null) {
6817         metadataBuilder_.dispose();
6818         metadataBuilder_ = null;
6819       }
6820       onChanged();
6821       return this;
6822     }
6823     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
getMetadataBuilder()6824     public io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder getMetadataBuilder() {
6825       bitField0_ |= 0x00000004;
6826       onChanged();
6827       return getMetadataFieldBuilder().getBuilder();
6828     }
6829     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
getMetadataOrBuilder()6830     public io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder getMetadataOrBuilder() {
6831       if (metadataBuilder_ != null) {
6832         return metadataBuilder_.getMessageOrBuilder();
6833       } else {
6834         return metadata_ == null
6835             ? io.grafeas.v1.SlsaProvenance.SlsaMetadata.getDefaultInstance()
6836             : metadata_;
6837       }
6838     }
6839     /** <code>.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;</code> */
6840     private com.google.protobuf.SingleFieldBuilderV3<
6841             io.grafeas.v1.SlsaProvenance.SlsaMetadata,
6842             io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
6843             io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>
getMetadataFieldBuilder()6844         getMetadataFieldBuilder() {
6845       if (metadataBuilder_ == null) {
6846         metadataBuilder_ =
6847             new com.google.protobuf.SingleFieldBuilderV3<
6848                 io.grafeas.v1.SlsaProvenance.SlsaMetadata,
6849                 io.grafeas.v1.SlsaProvenance.SlsaMetadata.Builder,
6850                 io.grafeas.v1.SlsaProvenance.SlsaMetadataOrBuilder>(
6851                 getMetadata(), getParentForChildren(), isClean());
6852         metadata_ = null;
6853       }
6854       return metadataBuilder_;
6855     }
6856 
6857     private java.util.List<io.grafeas.v1.SlsaProvenance.Material> materials_ =
6858         java.util.Collections.emptyList();
6859 
ensureMaterialsIsMutable()6860     private void ensureMaterialsIsMutable() {
6861       if (!((bitField0_ & 0x00000008) != 0)) {
6862         materials_ = new java.util.ArrayList<io.grafeas.v1.SlsaProvenance.Material>(materials_);
6863         bitField0_ |= 0x00000008;
6864       }
6865     }
6866 
6867     private com.google.protobuf.RepeatedFieldBuilderV3<
6868             io.grafeas.v1.SlsaProvenance.Material,
6869             io.grafeas.v1.SlsaProvenance.Material.Builder,
6870             io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
6871         materialsBuilder_;
6872 
6873     /**
6874      *
6875      *
6876      * <pre>
6877      * The collection of artifacts that influenced the build including sources,
6878      * dependencies, build tools, base images, and so on. This is considered to be
6879      * incomplete unless metadata.completeness.materials is true. Unset or null is
6880      * equivalent to empty.
6881      * </pre>
6882      *
6883      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6884      */
getMaterialsList()6885     public java.util.List<io.grafeas.v1.SlsaProvenance.Material> getMaterialsList() {
6886       if (materialsBuilder_ == null) {
6887         return java.util.Collections.unmodifiableList(materials_);
6888       } else {
6889         return materialsBuilder_.getMessageList();
6890       }
6891     }
6892     /**
6893      *
6894      *
6895      * <pre>
6896      * The collection of artifacts that influenced the build including sources,
6897      * dependencies, build tools, base images, and so on. This is considered to be
6898      * incomplete unless metadata.completeness.materials is true. Unset or null is
6899      * equivalent to empty.
6900      * </pre>
6901      *
6902      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6903      */
getMaterialsCount()6904     public int getMaterialsCount() {
6905       if (materialsBuilder_ == null) {
6906         return materials_.size();
6907       } else {
6908         return materialsBuilder_.getCount();
6909       }
6910     }
6911     /**
6912      *
6913      *
6914      * <pre>
6915      * The collection of artifacts that influenced the build including sources,
6916      * dependencies, build tools, base images, and so on. This is considered to be
6917      * incomplete unless metadata.completeness.materials is true. Unset or null is
6918      * equivalent to empty.
6919      * </pre>
6920      *
6921      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6922      */
getMaterials(int index)6923     public io.grafeas.v1.SlsaProvenance.Material getMaterials(int index) {
6924       if (materialsBuilder_ == null) {
6925         return materials_.get(index);
6926       } else {
6927         return materialsBuilder_.getMessage(index);
6928       }
6929     }
6930     /**
6931      *
6932      *
6933      * <pre>
6934      * The collection of artifacts that influenced the build including sources,
6935      * dependencies, build tools, base images, and so on. This is considered to be
6936      * incomplete unless metadata.completeness.materials is true. Unset or null is
6937      * equivalent to empty.
6938      * </pre>
6939      *
6940      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6941      */
setMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value)6942     public Builder setMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
6943       if (materialsBuilder_ == null) {
6944         if (value == null) {
6945           throw new NullPointerException();
6946         }
6947         ensureMaterialsIsMutable();
6948         materials_.set(index, value);
6949         onChanged();
6950       } else {
6951         materialsBuilder_.setMessage(index, value);
6952       }
6953       return this;
6954     }
6955     /**
6956      *
6957      *
6958      * <pre>
6959      * The collection of artifacts that influenced the build including sources,
6960      * dependencies, build tools, base images, and so on. This is considered to be
6961      * incomplete unless metadata.completeness.materials is true. Unset or null is
6962      * equivalent to empty.
6963      * </pre>
6964      *
6965      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6966      */
setMaterials( int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue)6967     public Builder setMaterials(
6968         int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
6969       if (materialsBuilder_ == null) {
6970         ensureMaterialsIsMutable();
6971         materials_.set(index, builderForValue.build());
6972         onChanged();
6973       } else {
6974         materialsBuilder_.setMessage(index, builderForValue.build());
6975       }
6976       return this;
6977     }
6978     /**
6979      *
6980      *
6981      * <pre>
6982      * The collection of artifacts that influenced the build including sources,
6983      * dependencies, build tools, base images, and so on. This is considered to be
6984      * incomplete unless metadata.completeness.materials is true. Unset or null is
6985      * equivalent to empty.
6986      * </pre>
6987      *
6988      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
6989      */
addMaterials(io.grafeas.v1.SlsaProvenance.Material value)6990     public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material value) {
6991       if (materialsBuilder_ == null) {
6992         if (value == null) {
6993           throw new NullPointerException();
6994         }
6995         ensureMaterialsIsMutable();
6996         materials_.add(value);
6997         onChanged();
6998       } else {
6999         materialsBuilder_.addMessage(value);
7000       }
7001       return this;
7002     }
7003     /**
7004      *
7005      *
7006      * <pre>
7007      * The collection of artifacts that influenced the build including sources,
7008      * dependencies, build tools, base images, and so on. This is considered to be
7009      * incomplete unless metadata.completeness.materials is true. Unset or null is
7010      * equivalent to empty.
7011      * </pre>
7012      *
7013      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7014      */
addMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value)7015     public Builder addMaterials(int index, io.grafeas.v1.SlsaProvenance.Material value) {
7016       if (materialsBuilder_ == null) {
7017         if (value == null) {
7018           throw new NullPointerException();
7019         }
7020         ensureMaterialsIsMutable();
7021         materials_.add(index, value);
7022         onChanged();
7023       } else {
7024         materialsBuilder_.addMessage(index, value);
7025       }
7026       return this;
7027     }
7028     /**
7029      *
7030      *
7031      * <pre>
7032      * The collection of artifacts that influenced the build including sources,
7033      * dependencies, build tools, base images, and so on. This is considered to be
7034      * incomplete unless metadata.completeness.materials is true. Unset or null is
7035      * equivalent to empty.
7036      * </pre>
7037      *
7038      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7039      */
addMaterials(io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue)7040     public Builder addMaterials(io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
7041       if (materialsBuilder_ == null) {
7042         ensureMaterialsIsMutable();
7043         materials_.add(builderForValue.build());
7044         onChanged();
7045       } else {
7046         materialsBuilder_.addMessage(builderForValue.build());
7047       }
7048       return this;
7049     }
7050     /**
7051      *
7052      *
7053      * <pre>
7054      * The collection of artifacts that influenced the build including sources,
7055      * dependencies, build tools, base images, and so on. This is considered to be
7056      * incomplete unless metadata.completeness.materials is true. Unset or null is
7057      * equivalent to empty.
7058      * </pre>
7059      *
7060      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7061      */
addMaterials( int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue)7062     public Builder addMaterials(
7063         int index, io.grafeas.v1.SlsaProvenance.Material.Builder builderForValue) {
7064       if (materialsBuilder_ == null) {
7065         ensureMaterialsIsMutable();
7066         materials_.add(index, builderForValue.build());
7067         onChanged();
7068       } else {
7069         materialsBuilder_.addMessage(index, builderForValue.build());
7070       }
7071       return this;
7072     }
7073     /**
7074      *
7075      *
7076      * <pre>
7077      * The collection of artifacts that influenced the build including sources,
7078      * dependencies, build tools, base images, and so on. This is considered to be
7079      * incomplete unless metadata.completeness.materials is true. Unset or null is
7080      * equivalent to empty.
7081      * </pre>
7082      *
7083      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7084      */
addAllMaterials( java.lang.Iterable<? extends io.grafeas.v1.SlsaProvenance.Material> values)7085     public Builder addAllMaterials(
7086         java.lang.Iterable<? extends io.grafeas.v1.SlsaProvenance.Material> values) {
7087       if (materialsBuilder_ == null) {
7088         ensureMaterialsIsMutable();
7089         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, materials_);
7090         onChanged();
7091       } else {
7092         materialsBuilder_.addAllMessages(values);
7093       }
7094       return this;
7095     }
7096     /**
7097      *
7098      *
7099      * <pre>
7100      * The collection of artifacts that influenced the build including sources,
7101      * dependencies, build tools, base images, and so on. This is considered to be
7102      * incomplete unless metadata.completeness.materials is true. Unset or null is
7103      * equivalent to empty.
7104      * </pre>
7105      *
7106      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7107      */
clearMaterials()7108     public Builder clearMaterials() {
7109       if (materialsBuilder_ == null) {
7110         materials_ = java.util.Collections.emptyList();
7111         bitField0_ = (bitField0_ & ~0x00000008);
7112         onChanged();
7113       } else {
7114         materialsBuilder_.clear();
7115       }
7116       return this;
7117     }
7118     /**
7119      *
7120      *
7121      * <pre>
7122      * The collection of artifacts that influenced the build including sources,
7123      * dependencies, build tools, base images, and so on. This is considered to be
7124      * incomplete unless metadata.completeness.materials is true. Unset or null is
7125      * equivalent to empty.
7126      * </pre>
7127      *
7128      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7129      */
removeMaterials(int index)7130     public Builder removeMaterials(int index) {
7131       if (materialsBuilder_ == null) {
7132         ensureMaterialsIsMutable();
7133         materials_.remove(index);
7134         onChanged();
7135       } else {
7136         materialsBuilder_.remove(index);
7137       }
7138       return this;
7139     }
7140     /**
7141      *
7142      *
7143      * <pre>
7144      * The collection of artifacts that influenced the build including sources,
7145      * dependencies, build tools, base images, and so on. This is considered to be
7146      * incomplete unless metadata.completeness.materials is true. Unset or null is
7147      * equivalent to empty.
7148      * </pre>
7149      *
7150      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7151      */
getMaterialsBuilder(int index)7152     public io.grafeas.v1.SlsaProvenance.Material.Builder getMaterialsBuilder(int index) {
7153       return getMaterialsFieldBuilder().getBuilder(index);
7154     }
7155     /**
7156      *
7157      *
7158      * <pre>
7159      * The collection of artifacts that influenced the build including sources,
7160      * dependencies, build tools, base images, and so on. This is considered to be
7161      * incomplete unless metadata.completeness.materials is true. Unset or null is
7162      * equivalent to empty.
7163      * </pre>
7164      *
7165      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7166      */
getMaterialsOrBuilder(int index)7167     public io.grafeas.v1.SlsaProvenance.MaterialOrBuilder getMaterialsOrBuilder(int index) {
7168       if (materialsBuilder_ == null) {
7169         return materials_.get(index);
7170       } else {
7171         return materialsBuilder_.getMessageOrBuilder(index);
7172       }
7173     }
7174     /**
7175      *
7176      *
7177      * <pre>
7178      * The collection of artifacts that influenced the build including sources,
7179      * dependencies, build tools, base images, and so on. This is considered to be
7180      * incomplete unless metadata.completeness.materials is true. Unset or null is
7181      * equivalent to empty.
7182      * </pre>
7183      *
7184      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7185      */
7186     public java.util.List<? extends io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
getMaterialsOrBuilderList()7187         getMaterialsOrBuilderList() {
7188       if (materialsBuilder_ != null) {
7189         return materialsBuilder_.getMessageOrBuilderList();
7190       } else {
7191         return java.util.Collections.unmodifiableList(materials_);
7192       }
7193     }
7194     /**
7195      *
7196      *
7197      * <pre>
7198      * The collection of artifacts that influenced the build including sources,
7199      * dependencies, build tools, base images, and so on. This is considered to be
7200      * incomplete unless metadata.completeness.materials is true. Unset or null is
7201      * equivalent to empty.
7202      * </pre>
7203      *
7204      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7205      */
addMaterialsBuilder()7206     public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder() {
7207       return getMaterialsFieldBuilder()
7208           .addBuilder(io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
7209     }
7210     /**
7211      *
7212      *
7213      * <pre>
7214      * The collection of artifacts that influenced the build including sources,
7215      * dependencies, build tools, base images, and so on. This is considered to be
7216      * incomplete unless metadata.completeness.materials is true. Unset or null is
7217      * equivalent to empty.
7218      * </pre>
7219      *
7220      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7221      */
addMaterialsBuilder(int index)7222     public io.grafeas.v1.SlsaProvenance.Material.Builder addMaterialsBuilder(int index) {
7223       return getMaterialsFieldBuilder()
7224           .addBuilder(index, io.grafeas.v1.SlsaProvenance.Material.getDefaultInstance());
7225     }
7226     /**
7227      *
7228      *
7229      * <pre>
7230      * The collection of artifacts that influenced the build including sources,
7231      * dependencies, build tools, base images, and so on. This is considered to be
7232      * incomplete unless metadata.completeness.materials is true. Unset or null is
7233      * equivalent to empty.
7234      * </pre>
7235      *
7236      * <code>repeated .grafeas.v1.SlsaProvenance.Material materials = 4;</code>
7237      */
getMaterialsBuilderList()7238     public java.util.List<io.grafeas.v1.SlsaProvenance.Material.Builder> getMaterialsBuilderList() {
7239       return getMaterialsFieldBuilder().getBuilderList();
7240     }
7241 
7242     private com.google.protobuf.RepeatedFieldBuilderV3<
7243             io.grafeas.v1.SlsaProvenance.Material,
7244             io.grafeas.v1.SlsaProvenance.Material.Builder,
7245             io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>
getMaterialsFieldBuilder()7246         getMaterialsFieldBuilder() {
7247       if (materialsBuilder_ == null) {
7248         materialsBuilder_ =
7249             new com.google.protobuf.RepeatedFieldBuilderV3<
7250                 io.grafeas.v1.SlsaProvenance.Material,
7251                 io.grafeas.v1.SlsaProvenance.Material.Builder,
7252                 io.grafeas.v1.SlsaProvenance.MaterialOrBuilder>(
7253                 materials_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
7254         materials_ = null;
7255       }
7256       return materialsBuilder_;
7257     }
7258 
7259     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)7260     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
7261       return super.setUnknownFields(unknownFields);
7262     }
7263 
7264     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7265     public final Builder mergeUnknownFields(
7266         final com.google.protobuf.UnknownFieldSet unknownFields) {
7267       return super.mergeUnknownFields(unknownFields);
7268     }
7269 
7270     // @@protoc_insertion_point(builder_scope:grafeas.v1.SlsaProvenance)
7271   }
7272 
7273   // @@protoc_insertion_point(class_scope:grafeas.v1.SlsaProvenance)
7274   private static final io.grafeas.v1.SlsaProvenance DEFAULT_INSTANCE;
7275 
7276   static {
7277     DEFAULT_INSTANCE = new io.grafeas.v1.SlsaProvenance();
7278   }
7279 
getDefaultInstance()7280   public static io.grafeas.v1.SlsaProvenance getDefaultInstance() {
7281     return DEFAULT_INSTANCE;
7282   }
7283 
7284   private static final com.google.protobuf.Parser<SlsaProvenance> PARSER =
7285       new com.google.protobuf.AbstractParser<SlsaProvenance>() {
7286         @java.lang.Override
7287         public SlsaProvenance parsePartialFrom(
7288             com.google.protobuf.CodedInputStream input,
7289             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7290             throws com.google.protobuf.InvalidProtocolBufferException {
7291           Builder builder = newBuilder();
7292           try {
7293             builder.mergeFrom(input, extensionRegistry);
7294           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7295             throw e.setUnfinishedMessage(builder.buildPartial());
7296           } catch (com.google.protobuf.UninitializedMessageException e) {
7297             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
7298           } catch (java.io.IOException e) {
7299             throw new com.google.protobuf.InvalidProtocolBufferException(e)
7300                 .setUnfinishedMessage(builder.buildPartial());
7301           }
7302           return builder.buildPartial();
7303         }
7304       };
7305 
parser()7306   public static com.google.protobuf.Parser<SlsaProvenance> parser() {
7307     return PARSER;
7308   }
7309 
7310   @java.lang.Override
getParserForType()7311   public com.google.protobuf.Parser<SlsaProvenance> getParserForType() {
7312     return PARSER;
7313   }
7314 
7315   @java.lang.Override
getDefaultInstanceForType()7316   public io.grafeas.v1.SlsaProvenance getDefaultInstanceForType() {
7317     return DEFAULT_INSTANCE;
7318   }
7319 }
7320