• 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/provenance.proto
19 
20 package io.grafeas.v1;
21 
22 /**
23  *
24  *
25  * <pre>
26  * Provenance of a build. Contains all information needed to verify the full
27  * details about the build from source to completion.
28  * </pre>
29  *
30  * Protobuf type {@code grafeas.v1.BuildProvenance}
31  */
32 public final class BuildProvenance extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:grafeas.v1.BuildProvenance)
35     BuildProvenanceOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use BuildProvenance.newBuilder() to construct.
BuildProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private BuildProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
BuildProvenance()42   private BuildProvenance() {
43     id_ = "";
44     projectId_ = "";
45     commands_ = java.util.Collections.emptyList();
46     builtArtifacts_ = java.util.Collections.emptyList();
47     creator_ = "";
48     logsUri_ = "";
49     triggerId_ = "";
50     builderVersion_ = "";
51   }
52 
53   @java.lang.Override
54   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)55   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
56     return new BuildProvenance();
57   }
58 
59   @java.lang.Override
getUnknownFields()60   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
61     return this.unknownFields;
62   }
63 
getDescriptor()64   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
65     return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_descriptor;
66   }
67 
68   @SuppressWarnings({"rawtypes"})
69   @java.lang.Override
internalGetMapField(int number)70   protected com.google.protobuf.MapField internalGetMapField(int number) {
71     switch (number) {
72       case 12:
73         return internalGetBuildOptions();
74       default:
75         throw new RuntimeException("Invalid map field number: " + number);
76     }
77   }
78 
79   @java.lang.Override
80   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()81       internalGetFieldAccessorTable() {
82     return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_fieldAccessorTable
83         .ensureFieldAccessorsInitialized(
84             io.grafeas.v1.BuildProvenance.class, io.grafeas.v1.BuildProvenance.Builder.class);
85   }
86 
87   public static final int ID_FIELD_NUMBER = 1;
88 
89   @SuppressWarnings("serial")
90   private volatile java.lang.Object id_ = "";
91   /**
92    *
93    *
94    * <pre>
95    * Required. Unique identifier of the build.
96    * </pre>
97    *
98    * <code>string id = 1;</code>
99    *
100    * @return The id.
101    */
102   @java.lang.Override
getId()103   public java.lang.String getId() {
104     java.lang.Object ref = id_;
105     if (ref instanceof java.lang.String) {
106       return (java.lang.String) ref;
107     } else {
108       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
109       java.lang.String s = bs.toStringUtf8();
110       id_ = s;
111       return s;
112     }
113   }
114   /**
115    *
116    *
117    * <pre>
118    * Required. Unique identifier of the build.
119    * </pre>
120    *
121    * <code>string id = 1;</code>
122    *
123    * @return The bytes for id.
124    */
125   @java.lang.Override
getIdBytes()126   public com.google.protobuf.ByteString getIdBytes() {
127     java.lang.Object ref = id_;
128     if (ref instanceof java.lang.String) {
129       com.google.protobuf.ByteString b =
130           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
131       id_ = b;
132       return b;
133     } else {
134       return (com.google.protobuf.ByteString) ref;
135     }
136   }
137 
138   public static final int PROJECT_ID_FIELD_NUMBER = 2;
139 
140   @SuppressWarnings("serial")
141   private volatile java.lang.Object projectId_ = "";
142   /**
143    *
144    *
145    * <pre>
146    * ID of the project.
147    * </pre>
148    *
149    * <code>string project_id = 2;</code>
150    *
151    * @return The projectId.
152    */
153   @java.lang.Override
getProjectId()154   public java.lang.String getProjectId() {
155     java.lang.Object ref = projectId_;
156     if (ref instanceof java.lang.String) {
157       return (java.lang.String) ref;
158     } else {
159       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
160       java.lang.String s = bs.toStringUtf8();
161       projectId_ = s;
162       return s;
163     }
164   }
165   /**
166    *
167    *
168    * <pre>
169    * ID of the project.
170    * </pre>
171    *
172    * <code>string project_id = 2;</code>
173    *
174    * @return The bytes for projectId.
175    */
176   @java.lang.Override
getProjectIdBytes()177   public com.google.protobuf.ByteString getProjectIdBytes() {
178     java.lang.Object ref = projectId_;
179     if (ref instanceof java.lang.String) {
180       com.google.protobuf.ByteString b =
181           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
182       projectId_ = b;
183       return b;
184     } else {
185       return (com.google.protobuf.ByteString) ref;
186     }
187   }
188 
189   public static final int COMMANDS_FIELD_NUMBER = 3;
190 
191   @SuppressWarnings("serial")
192   private java.util.List<io.grafeas.v1.Command> commands_;
193   /**
194    *
195    *
196    * <pre>
197    * Commands requested by the build.
198    * </pre>
199    *
200    * <code>repeated .grafeas.v1.Command commands = 3;</code>
201    */
202   @java.lang.Override
getCommandsList()203   public java.util.List<io.grafeas.v1.Command> getCommandsList() {
204     return commands_;
205   }
206   /**
207    *
208    *
209    * <pre>
210    * Commands requested by the build.
211    * </pre>
212    *
213    * <code>repeated .grafeas.v1.Command commands = 3;</code>
214    */
215   @java.lang.Override
getCommandsOrBuilderList()216   public java.util.List<? extends io.grafeas.v1.CommandOrBuilder> getCommandsOrBuilderList() {
217     return commands_;
218   }
219   /**
220    *
221    *
222    * <pre>
223    * Commands requested by the build.
224    * </pre>
225    *
226    * <code>repeated .grafeas.v1.Command commands = 3;</code>
227    */
228   @java.lang.Override
getCommandsCount()229   public int getCommandsCount() {
230     return commands_.size();
231   }
232   /**
233    *
234    *
235    * <pre>
236    * Commands requested by the build.
237    * </pre>
238    *
239    * <code>repeated .grafeas.v1.Command commands = 3;</code>
240    */
241   @java.lang.Override
getCommands(int index)242   public io.grafeas.v1.Command getCommands(int index) {
243     return commands_.get(index);
244   }
245   /**
246    *
247    *
248    * <pre>
249    * Commands requested by the build.
250    * </pre>
251    *
252    * <code>repeated .grafeas.v1.Command commands = 3;</code>
253    */
254   @java.lang.Override
getCommandsOrBuilder(int index)255   public io.grafeas.v1.CommandOrBuilder getCommandsOrBuilder(int index) {
256     return commands_.get(index);
257   }
258 
259   public static final int BUILT_ARTIFACTS_FIELD_NUMBER = 4;
260 
261   @SuppressWarnings("serial")
262   private java.util.List<io.grafeas.v1.Artifact> builtArtifacts_;
263   /**
264    *
265    *
266    * <pre>
267    * Output of the build.
268    * </pre>
269    *
270    * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
271    */
272   @java.lang.Override
getBuiltArtifactsList()273   public java.util.List<io.grafeas.v1.Artifact> getBuiltArtifactsList() {
274     return builtArtifacts_;
275   }
276   /**
277    *
278    *
279    * <pre>
280    * Output of the build.
281    * </pre>
282    *
283    * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
284    */
285   @java.lang.Override
286   public java.util.List<? extends io.grafeas.v1.ArtifactOrBuilder>
getBuiltArtifactsOrBuilderList()287       getBuiltArtifactsOrBuilderList() {
288     return builtArtifacts_;
289   }
290   /**
291    *
292    *
293    * <pre>
294    * Output of the build.
295    * </pre>
296    *
297    * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
298    */
299   @java.lang.Override
getBuiltArtifactsCount()300   public int getBuiltArtifactsCount() {
301     return builtArtifacts_.size();
302   }
303   /**
304    *
305    *
306    * <pre>
307    * Output of the build.
308    * </pre>
309    *
310    * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
311    */
312   @java.lang.Override
getBuiltArtifacts(int index)313   public io.grafeas.v1.Artifact getBuiltArtifacts(int index) {
314     return builtArtifacts_.get(index);
315   }
316   /**
317    *
318    *
319    * <pre>
320    * Output of the build.
321    * </pre>
322    *
323    * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
324    */
325   @java.lang.Override
getBuiltArtifactsOrBuilder(int index)326   public io.grafeas.v1.ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index) {
327     return builtArtifacts_.get(index);
328   }
329 
330   public static final int CREATE_TIME_FIELD_NUMBER = 5;
331   private com.google.protobuf.Timestamp createTime_;
332   /**
333    *
334    *
335    * <pre>
336    * Time at which the build was created.
337    * </pre>
338    *
339    * <code>.google.protobuf.Timestamp create_time = 5;</code>
340    *
341    * @return Whether the createTime field is set.
342    */
343   @java.lang.Override
hasCreateTime()344   public boolean hasCreateTime() {
345     return createTime_ != null;
346   }
347   /**
348    *
349    *
350    * <pre>
351    * Time at which the build was created.
352    * </pre>
353    *
354    * <code>.google.protobuf.Timestamp create_time = 5;</code>
355    *
356    * @return The createTime.
357    */
358   @java.lang.Override
getCreateTime()359   public com.google.protobuf.Timestamp getCreateTime() {
360     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
361   }
362   /**
363    *
364    *
365    * <pre>
366    * Time at which the build was created.
367    * </pre>
368    *
369    * <code>.google.protobuf.Timestamp create_time = 5;</code>
370    */
371   @java.lang.Override
getCreateTimeOrBuilder()372   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
373     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
374   }
375 
376   public static final int START_TIME_FIELD_NUMBER = 6;
377   private com.google.protobuf.Timestamp startTime_;
378   /**
379    *
380    *
381    * <pre>
382    * Time at which execution of the build was started.
383    * </pre>
384    *
385    * <code>.google.protobuf.Timestamp start_time = 6;</code>
386    *
387    * @return Whether the startTime field is set.
388    */
389   @java.lang.Override
hasStartTime()390   public boolean hasStartTime() {
391     return startTime_ != null;
392   }
393   /**
394    *
395    *
396    * <pre>
397    * Time at which execution of the build was started.
398    * </pre>
399    *
400    * <code>.google.protobuf.Timestamp start_time = 6;</code>
401    *
402    * @return The startTime.
403    */
404   @java.lang.Override
getStartTime()405   public com.google.protobuf.Timestamp getStartTime() {
406     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
407   }
408   /**
409    *
410    *
411    * <pre>
412    * Time at which execution of the build was started.
413    * </pre>
414    *
415    * <code>.google.protobuf.Timestamp start_time = 6;</code>
416    */
417   @java.lang.Override
getStartTimeOrBuilder()418   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
419     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
420   }
421 
422   public static final int END_TIME_FIELD_NUMBER = 7;
423   private com.google.protobuf.Timestamp endTime_;
424   /**
425    *
426    *
427    * <pre>
428    * Time at which execution of the build was finished.
429    * </pre>
430    *
431    * <code>.google.protobuf.Timestamp end_time = 7;</code>
432    *
433    * @return Whether the endTime field is set.
434    */
435   @java.lang.Override
hasEndTime()436   public boolean hasEndTime() {
437     return endTime_ != null;
438   }
439   /**
440    *
441    *
442    * <pre>
443    * Time at which execution of the build was finished.
444    * </pre>
445    *
446    * <code>.google.protobuf.Timestamp end_time = 7;</code>
447    *
448    * @return The endTime.
449    */
450   @java.lang.Override
getEndTime()451   public com.google.protobuf.Timestamp getEndTime() {
452     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
453   }
454   /**
455    *
456    *
457    * <pre>
458    * Time at which execution of the build was finished.
459    * </pre>
460    *
461    * <code>.google.protobuf.Timestamp end_time = 7;</code>
462    */
463   @java.lang.Override
getEndTimeOrBuilder()464   public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
465     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
466   }
467 
468   public static final int CREATOR_FIELD_NUMBER = 8;
469 
470   @SuppressWarnings("serial")
471   private volatile java.lang.Object creator_ = "";
472   /**
473    *
474    *
475    * <pre>
476    * E-mail address of the user who initiated this build. Note that this was the
477    * user's e-mail address at the time the build was initiated; this address may
478    * not represent the same end-user for all time.
479    * </pre>
480    *
481    * <code>string creator = 8;</code>
482    *
483    * @return The creator.
484    */
485   @java.lang.Override
getCreator()486   public java.lang.String getCreator() {
487     java.lang.Object ref = creator_;
488     if (ref instanceof java.lang.String) {
489       return (java.lang.String) ref;
490     } else {
491       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
492       java.lang.String s = bs.toStringUtf8();
493       creator_ = s;
494       return s;
495     }
496   }
497   /**
498    *
499    *
500    * <pre>
501    * E-mail address of the user who initiated this build. Note that this was the
502    * user's e-mail address at the time the build was initiated; this address may
503    * not represent the same end-user for all time.
504    * </pre>
505    *
506    * <code>string creator = 8;</code>
507    *
508    * @return The bytes for creator.
509    */
510   @java.lang.Override
getCreatorBytes()511   public com.google.protobuf.ByteString getCreatorBytes() {
512     java.lang.Object ref = creator_;
513     if (ref instanceof java.lang.String) {
514       com.google.protobuf.ByteString b =
515           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
516       creator_ = b;
517       return b;
518     } else {
519       return (com.google.protobuf.ByteString) ref;
520     }
521   }
522 
523   public static final int LOGS_URI_FIELD_NUMBER = 9;
524 
525   @SuppressWarnings("serial")
526   private volatile java.lang.Object logsUri_ = "";
527   /**
528    *
529    *
530    * <pre>
531    * URI where any logs for this provenance were written.
532    * </pre>
533    *
534    * <code>string logs_uri = 9;</code>
535    *
536    * @return The logsUri.
537    */
538   @java.lang.Override
getLogsUri()539   public java.lang.String getLogsUri() {
540     java.lang.Object ref = logsUri_;
541     if (ref instanceof java.lang.String) {
542       return (java.lang.String) ref;
543     } else {
544       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
545       java.lang.String s = bs.toStringUtf8();
546       logsUri_ = s;
547       return s;
548     }
549   }
550   /**
551    *
552    *
553    * <pre>
554    * URI where any logs for this provenance were written.
555    * </pre>
556    *
557    * <code>string logs_uri = 9;</code>
558    *
559    * @return The bytes for logsUri.
560    */
561   @java.lang.Override
getLogsUriBytes()562   public com.google.protobuf.ByteString getLogsUriBytes() {
563     java.lang.Object ref = logsUri_;
564     if (ref instanceof java.lang.String) {
565       com.google.protobuf.ByteString b =
566           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
567       logsUri_ = b;
568       return b;
569     } else {
570       return (com.google.protobuf.ByteString) ref;
571     }
572   }
573 
574   public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 10;
575   private io.grafeas.v1.Source sourceProvenance_;
576   /**
577    *
578    *
579    * <pre>
580    * Details of the Source input to the build.
581    * </pre>
582    *
583    * <code>.grafeas.v1.Source source_provenance = 10;</code>
584    *
585    * @return Whether the sourceProvenance field is set.
586    */
587   @java.lang.Override
hasSourceProvenance()588   public boolean hasSourceProvenance() {
589     return sourceProvenance_ != null;
590   }
591   /**
592    *
593    *
594    * <pre>
595    * Details of the Source input to the build.
596    * </pre>
597    *
598    * <code>.grafeas.v1.Source source_provenance = 10;</code>
599    *
600    * @return The sourceProvenance.
601    */
602   @java.lang.Override
getSourceProvenance()603   public io.grafeas.v1.Source getSourceProvenance() {
604     return sourceProvenance_ == null
605         ? io.grafeas.v1.Source.getDefaultInstance()
606         : sourceProvenance_;
607   }
608   /**
609    *
610    *
611    * <pre>
612    * Details of the Source input to the build.
613    * </pre>
614    *
615    * <code>.grafeas.v1.Source source_provenance = 10;</code>
616    */
617   @java.lang.Override
getSourceProvenanceOrBuilder()618   public io.grafeas.v1.SourceOrBuilder getSourceProvenanceOrBuilder() {
619     return sourceProvenance_ == null
620         ? io.grafeas.v1.Source.getDefaultInstance()
621         : sourceProvenance_;
622   }
623 
624   public static final int TRIGGER_ID_FIELD_NUMBER = 11;
625 
626   @SuppressWarnings("serial")
627   private volatile java.lang.Object triggerId_ = "";
628   /**
629    *
630    *
631    * <pre>
632    * Trigger identifier if the build was triggered automatically; empty if not.
633    * </pre>
634    *
635    * <code>string trigger_id = 11;</code>
636    *
637    * @return The triggerId.
638    */
639   @java.lang.Override
getTriggerId()640   public java.lang.String getTriggerId() {
641     java.lang.Object ref = triggerId_;
642     if (ref instanceof java.lang.String) {
643       return (java.lang.String) ref;
644     } else {
645       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
646       java.lang.String s = bs.toStringUtf8();
647       triggerId_ = s;
648       return s;
649     }
650   }
651   /**
652    *
653    *
654    * <pre>
655    * Trigger identifier if the build was triggered automatically; empty if not.
656    * </pre>
657    *
658    * <code>string trigger_id = 11;</code>
659    *
660    * @return The bytes for triggerId.
661    */
662   @java.lang.Override
getTriggerIdBytes()663   public com.google.protobuf.ByteString getTriggerIdBytes() {
664     java.lang.Object ref = triggerId_;
665     if (ref instanceof java.lang.String) {
666       com.google.protobuf.ByteString b =
667           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
668       triggerId_ = b;
669       return b;
670     } else {
671       return (com.google.protobuf.ByteString) ref;
672     }
673   }
674 
675   public static final int BUILD_OPTIONS_FIELD_NUMBER = 12;
676 
677   private static final class BuildOptionsDefaultEntryHolder {
678     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
679         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
680             io.grafeas.v1.Provenance
681                 .internal_static_grafeas_v1_BuildProvenance_BuildOptionsEntry_descriptor,
682             com.google.protobuf.WireFormat.FieldType.STRING,
683             "",
684             com.google.protobuf.WireFormat.FieldType.STRING,
685             "");
686   }
687 
688   @SuppressWarnings("serial")
689   private com.google.protobuf.MapField<java.lang.String, java.lang.String> buildOptions_;
690 
691   private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetBuildOptions()692       internalGetBuildOptions() {
693     if (buildOptions_ == null) {
694       return com.google.protobuf.MapField.emptyMapField(
695           BuildOptionsDefaultEntryHolder.defaultEntry);
696     }
697     return buildOptions_;
698   }
699 
getBuildOptionsCount()700   public int getBuildOptionsCount() {
701     return internalGetBuildOptions().getMap().size();
702   }
703   /**
704    *
705    *
706    * <pre>
707    * Special options applied to this build. This is a catch-all field where
708    * build providers can enter any desired additional details.
709    * </pre>
710    *
711    * <code>map&lt;string, string&gt; build_options = 12;</code>
712    */
713   @java.lang.Override
containsBuildOptions(java.lang.String key)714   public boolean containsBuildOptions(java.lang.String key) {
715     if (key == null) {
716       throw new NullPointerException("map key");
717     }
718     return internalGetBuildOptions().getMap().containsKey(key);
719   }
720   /** Use {@link #getBuildOptionsMap()} instead. */
721   @java.lang.Override
722   @java.lang.Deprecated
getBuildOptions()723   public java.util.Map<java.lang.String, java.lang.String> getBuildOptions() {
724     return getBuildOptionsMap();
725   }
726   /**
727    *
728    *
729    * <pre>
730    * Special options applied to this build. This is a catch-all field where
731    * build providers can enter any desired additional details.
732    * </pre>
733    *
734    * <code>map&lt;string, string&gt; build_options = 12;</code>
735    */
736   @java.lang.Override
getBuildOptionsMap()737   public java.util.Map<java.lang.String, java.lang.String> getBuildOptionsMap() {
738     return internalGetBuildOptions().getMap();
739   }
740   /**
741    *
742    *
743    * <pre>
744    * Special options applied to this build. This is a catch-all field where
745    * build providers can enter any desired additional details.
746    * </pre>
747    *
748    * <code>map&lt;string, string&gt; build_options = 12;</code>
749    */
750   @java.lang.Override
getBuildOptionsOrDefault( java.lang.String key, java.lang.String defaultValue)751   public /* nullable */ java.lang.String getBuildOptionsOrDefault(
752       java.lang.String key,
753       /* nullable */
754       java.lang.String defaultValue) {
755     if (key == null) {
756       throw new NullPointerException("map key");
757     }
758     java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildOptions().getMap();
759     return map.containsKey(key) ? map.get(key) : defaultValue;
760   }
761   /**
762    *
763    *
764    * <pre>
765    * Special options applied to this build. This is a catch-all field where
766    * build providers can enter any desired additional details.
767    * </pre>
768    *
769    * <code>map&lt;string, string&gt; build_options = 12;</code>
770    */
771   @java.lang.Override
getBuildOptionsOrThrow(java.lang.String key)772   public java.lang.String getBuildOptionsOrThrow(java.lang.String key) {
773     if (key == null) {
774       throw new NullPointerException("map key");
775     }
776     java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildOptions().getMap();
777     if (!map.containsKey(key)) {
778       throw new java.lang.IllegalArgumentException();
779     }
780     return map.get(key);
781   }
782 
783   public static final int BUILDER_VERSION_FIELD_NUMBER = 13;
784 
785   @SuppressWarnings("serial")
786   private volatile java.lang.Object builderVersion_ = "";
787   /**
788    *
789    *
790    * <pre>
791    * Version string of the builder at the time this build was executed.
792    * </pre>
793    *
794    * <code>string builder_version = 13;</code>
795    *
796    * @return The builderVersion.
797    */
798   @java.lang.Override
getBuilderVersion()799   public java.lang.String getBuilderVersion() {
800     java.lang.Object ref = builderVersion_;
801     if (ref instanceof java.lang.String) {
802       return (java.lang.String) ref;
803     } else {
804       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
805       java.lang.String s = bs.toStringUtf8();
806       builderVersion_ = s;
807       return s;
808     }
809   }
810   /**
811    *
812    *
813    * <pre>
814    * Version string of the builder at the time this build was executed.
815    * </pre>
816    *
817    * <code>string builder_version = 13;</code>
818    *
819    * @return The bytes for builderVersion.
820    */
821   @java.lang.Override
getBuilderVersionBytes()822   public com.google.protobuf.ByteString getBuilderVersionBytes() {
823     java.lang.Object ref = builderVersion_;
824     if (ref instanceof java.lang.String) {
825       com.google.protobuf.ByteString b =
826           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
827       builderVersion_ = b;
828       return b;
829     } else {
830       return (com.google.protobuf.ByteString) ref;
831     }
832   }
833 
834   private byte memoizedIsInitialized = -1;
835 
836   @java.lang.Override
isInitialized()837   public final boolean isInitialized() {
838     byte isInitialized = memoizedIsInitialized;
839     if (isInitialized == 1) return true;
840     if (isInitialized == 0) return false;
841 
842     memoizedIsInitialized = 1;
843     return true;
844   }
845 
846   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)847   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
848     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
849       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
850     }
851     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
852       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
853     }
854     for (int i = 0; i < commands_.size(); i++) {
855       output.writeMessage(3, commands_.get(i));
856     }
857     for (int i = 0; i < builtArtifacts_.size(); i++) {
858       output.writeMessage(4, builtArtifacts_.get(i));
859     }
860     if (createTime_ != null) {
861       output.writeMessage(5, getCreateTime());
862     }
863     if (startTime_ != null) {
864       output.writeMessage(6, getStartTime());
865     }
866     if (endTime_ != null) {
867       output.writeMessage(7, getEndTime());
868     }
869     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
870       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, creator_);
871     }
872     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUri_)) {
873       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, logsUri_);
874     }
875     if (sourceProvenance_ != null) {
876       output.writeMessage(10, getSourceProvenance());
877     }
878     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerId_)) {
879       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, triggerId_);
880     }
881     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
882         output, internalGetBuildOptions(), BuildOptionsDefaultEntryHolder.defaultEntry, 12);
883     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builderVersion_)) {
884       com.google.protobuf.GeneratedMessageV3.writeString(output, 13, builderVersion_);
885     }
886     getUnknownFields().writeTo(output);
887   }
888 
889   @java.lang.Override
getSerializedSize()890   public int getSerializedSize() {
891     int size = memoizedSize;
892     if (size != -1) return size;
893 
894     size = 0;
895     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
896       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
897     }
898     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
899       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
900     }
901     for (int i = 0; i < commands_.size(); i++) {
902       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, commands_.get(i));
903     }
904     for (int i = 0; i < builtArtifacts_.size(); i++) {
905       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, builtArtifacts_.get(i));
906     }
907     if (createTime_ != null) {
908       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
909     }
910     if (startTime_ != null) {
911       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime());
912     }
913     if (endTime_ != null) {
914       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime());
915     }
916     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) {
917       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, creator_);
918     }
919     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUri_)) {
920       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, logsUri_);
921     }
922     if (sourceProvenance_ != null) {
923       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSourceProvenance());
924     }
925     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(triggerId_)) {
926       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, triggerId_);
927     }
928     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
929         internalGetBuildOptions().getMap().entrySet()) {
930       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> buildOptions__ =
931           BuildOptionsDefaultEntryHolder.defaultEntry
932               .newBuilderForType()
933               .setKey(entry.getKey())
934               .setValue(entry.getValue())
935               .build();
936       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, buildOptions__);
937     }
938     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(builderVersion_)) {
939       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, builderVersion_);
940     }
941     size += getUnknownFields().getSerializedSize();
942     memoizedSize = size;
943     return size;
944   }
945 
946   @java.lang.Override
equals(final java.lang.Object obj)947   public boolean equals(final java.lang.Object obj) {
948     if (obj == this) {
949       return true;
950     }
951     if (!(obj instanceof io.grafeas.v1.BuildProvenance)) {
952       return super.equals(obj);
953     }
954     io.grafeas.v1.BuildProvenance other = (io.grafeas.v1.BuildProvenance) obj;
955 
956     if (!getId().equals(other.getId())) return false;
957     if (!getProjectId().equals(other.getProjectId())) return false;
958     if (!getCommandsList().equals(other.getCommandsList())) return false;
959     if (!getBuiltArtifactsList().equals(other.getBuiltArtifactsList())) return false;
960     if (hasCreateTime() != other.hasCreateTime()) return false;
961     if (hasCreateTime()) {
962       if (!getCreateTime().equals(other.getCreateTime())) return false;
963     }
964     if (hasStartTime() != other.hasStartTime()) return false;
965     if (hasStartTime()) {
966       if (!getStartTime().equals(other.getStartTime())) return false;
967     }
968     if (hasEndTime() != other.hasEndTime()) return false;
969     if (hasEndTime()) {
970       if (!getEndTime().equals(other.getEndTime())) return false;
971     }
972     if (!getCreator().equals(other.getCreator())) return false;
973     if (!getLogsUri().equals(other.getLogsUri())) return false;
974     if (hasSourceProvenance() != other.hasSourceProvenance()) return false;
975     if (hasSourceProvenance()) {
976       if (!getSourceProvenance().equals(other.getSourceProvenance())) return false;
977     }
978     if (!getTriggerId().equals(other.getTriggerId())) return false;
979     if (!internalGetBuildOptions().equals(other.internalGetBuildOptions())) return false;
980     if (!getBuilderVersion().equals(other.getBuilderVersion())) return false;
981     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
982     return true;
983   }
984 
985   @java.lang.Override
hashCode()986   public int hashCode() {
987     if (memoizedHashCode != 0) {
988       return memoizedHashCode;
989     }
990     int hash = 41;
991     hash = (19 * hash) + getDescriptor().hashCode();
992     hash = (37 * hash) + ID_FIELD_NUMBER;
993     hash = (53 * hash) + getId().hashCode();
994     hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
995     hash = (53 * hash) + getProjectId().hashCode();
996     if (getCommandsCount() > 0) {
997       hash = (37 * hash) + COMMANDS_FIELD_NUMBER;
998       hash = (53 * hash) + getCommandsList().hashCode();
999     }
1000     if (getBuiltArtifactsCount() > 0) {
1001       hash = (37 * hash) + BUILT_ARTIFACTS_FIELD_NUMBER;
1002       hash = (53 * hash) + getBuiltArtifactsList().hashCode();
1003     }
1004     if (hasCreateTime()) {
1005       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1006       hash = (53 * hash) + getCreateTime().hashCode();
1007     }
1008     if (hasStartTime()) {
1009       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
1010       hash = (53 * hash) + getStartTime().hashCode();
1011     }
1012     if (hasEndTime()) {
1013       hash = (37 * hash) + END_TIME_FIELD_NUMBER;
1014       hash = (53 * hash) + getEndTime().hashCode();
1015     }
1016     hash = (37 * hash) + CREATOR_FIELD_NUMBER;
1017     hash = (53 * hash) + getCreator().hashCode();
1018     hash = (37 * hash) + LOGS_URI_FIELD_NUMBER;
1019     hash = (53 * hash) + getLogsUri().hashCode();
1020     if (hasSourceProvenance()) {
1021       hash = (37 * hash) + SOURCE_PROVENANCE_FIELD_NUMBER;
1022       hash = (53 * hash) + getSourceProvenance().hashCode();
1023     }
1024     hash = (37 * hash) + TRIGGER_ID_FIELD_NUMBER;
1025     hash = (53 * hash) + getTriggerId().hashCode();
1026     if (!internalGetBuildOptions().getMap().isEmpty()) {
1027       hash = (37 * hash) + BUILD_OPTIONS_FIELD_NUMBER;
1028       hash = (53 * hash) + internalGetBuildOptions().hashCode();
1029     }
1030     hash = (37 * hash) + BUILDER_VERSION_FIELD_NUMBER;
1031     hash = (53 * hash) + getBuilderVersion().hashCode();
1032     hash = (29 * hash) + getUnknownFields().hashCode();
1033     memoizedHashCode = hash;
1034     return hash;
1035   }
1036 
parseFrom(java.nio.ByteBuffer data)1037   public static io.grafeas.v1.BuildProvenance parseFrom(java.nio.ByteBuffer data)
1038       throws com.google.protobuf.InvalidProtocolBufferException {
1039     return PARSER.parseFrom(data);
1040   }
1041 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1042   public static io.grafeas.v1.BuildProvenance parseFrom(
1043       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1044       throws com.google.protobuf.InvalidProtocolBufferException {
1045     return PARSER.parseFrom(data, extensionRegistry);
1046   }
1047 
parseFrom(com.google.protobuf.ByteString data)1048   public static io.grafeas.v1.BuildProvenance parseFrom(com.google.protobuf.ByteString data)
1049       throws com.google.protobuf.InvalidProtocolBufferException {
1050     return PARSER.parseFrom(data);
1051   }
1052 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1053   public static io.grafeas.v1.BuildProvenance parseFrom(
1054       com.google.protobuf.ByteString data,
1055       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1056       throws com.google.protobuf.InvalidProtocolBufferException {
1057     return PARSER.parseFrom(data, extensionRegistry);
1058   }
1059 
parseFrom(byte[] data)1060   public static io.grafeas.v1.BuildProvenance parseFrom(byte[] data)
1061       throws com.google.protobuf.InvalidProtocolBufferException {
1062     return PARSER.parseFrom(data);
1063   }
1064 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1065   public static io.grafeas.v1.BuildProvenance parseFrom(
1066       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1067       throws com.google.protobuf.InvalidProtocolBufferException {
1068     return PARSER.parseFrom(data, extensionRegistry);
1069   }
1070 
parseFrom(java.io.InputStream input)1071   public static io.grafeas.v1.BuildProvenance parseFrom(java.io.InputStream input)
1072       throws java.io.IOException {
1073     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1074   }
1075 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1076   public static io.grafeas.v1.BuildProvenance parseFrom(
1077       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1078       throws java.io.IOException {
1079     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1080         PARSER, input, extensionRegistry);
1081   }
1082 
parseDelimitedFrom(java.io.InputStream input)1083   public static io.grafeas.v1.BuildProvenance parseDelimitedFrom(java.io.InputStream input)
1084       throws java.io.IOException {
1085     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1086   }
1087 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1088   public static io.grafeas.v1.BuildProvenance parseDelimitedFrom(
1089       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1090       throws java.io.IOException {
1091     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1092         PARSER, input, extensionRegistry);
1093   }
1094 
parseFrom(com.google.protobuf.CodedInputStream input)1095   public static io.grafeas.v1.BuildProvenance parseFrom(com.google.protobuf.CodedInputStream input)
1096       throws java.io.IOException {
1097     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1098   }
1099 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1100   public static io.grafeas.v1.BuildProvenance parseFrom(
1101       com.google.protobuf.CodedInputStream input,
1102       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1103       throws java.io.IOException {
1104     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1105         PARSER, input, extensionRegistry);
1106   }
1107 
1108   @java.lang.Override
newBuilderForType()1109   public Builder newBuilderForType() {
1110     return newBuilder();
1111   }
1112 
newBuilder()1113   public static Builder newBuilder() {
1114     return DEFAULT_INSTANCE.toBuilder();
1115   }
1116 
newBuilder(io.grafeas.v1.BuildProvenance prototype)1117   public static Builder newBuilder(io.grafeas.v1.BuildProvenance prototype) {
1118     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1119   }
1120 
1121   @java.lang.Override
toBuilder()1122   public Builder toBuilder() {
1123     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1124   }
1125 
1126   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1127   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1128     Builder builder = new Builder(parent);
1129     return builder;
1130   }
1131   /**
1132    *
1133    *
1134    * <pre>
1135    * Provenance of a build. Contains all information needed to verify the full
1136    * details about the build from source to completion.
1137    * </pre>
1138    *
1139    * Protobuf type {@code grafeas.v1.BuildProvenance}
1140    */
1141   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1142       implements
1143       // @@protoc_insertion_point(builder_implements:grafeas.v1.BuildProvenance)
1144       io.grafeas.v1.BuildProvenanceOrBuilder {
getDescriptor()1145     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1146       return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_descriptor;
1147     }
1148 
1149     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1150     protected com.google.protobuf.MapField internalGetMapField(int number) {
1151       switch (number) {
1152         case 12:
1153           return internalGetBuildOptions();
1154         default:
1155           throw new RuntimeException("Invalid map field number: " + number);
1156       }
1157     }
1158 
1159     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1160     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1161       switch (number) {
1162         case 12:
1163           return internalGetMutableBuildOptions();
1164         default:
1165           throw new RuntimeException("Invalid map field number: " + number);
1166       }
1167     }
1168 
1169     @java.lang.Override
1170     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1171         internalGetFieldAccessorTable() {
1172       return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_fieldAccessorTable
1173           .ensureFieldAccessorsInitialized(
1174               io.grafeas.v1.BuildProvenance.class, io.grafeas.v1.BuildProvenance.Builder.class);
1175     }
1176 
1177     // Construct using io.grafeas.v1.BuildProvenance.newBuilder()
Builder()1178     private Builder() {}
1179 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1180     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1181       super(parent);
1182     }
1183 
1184     @java.lang.Override
clear()1185     public Builder clear() {
1186       super.clear();
1187       bitField0_ = 0;
1188       id_ = "";
1189       projectId_ = "";
1190       if (commandsBuilder_ == null) {
1191         commands_ = java.util.Collections.emptyList();
1192       } else {
1193         commands_ = null;
1194         commandsBuilder_.clear();
1195       }
1196       bitField0_ = (bitField0_ & ~0x00000004);
1197       if (builtArtifactsBuilder_ == null) {
1198         builtArtifacts_ = java.util.Collections.emptyList();
1199       } else {
1200         builtArtifacts_ = null;
1201         builtArtifactsBuilder_.clear();
1202       }
1203       bitField0_ = (bitField0_ & ~0x00000008);
1204       createTime_ = null;
1205       if (createTimeBuilder_ != null) {
1206         createTimeBuilder_.dispose();
1207         createTimeBuilder_ = null;
1208       }
1209       startTime_ = null;
1210       if (startTimeBuilder_ != null) {
1211         startTimeBuilder_.dispose();
1212         startTimeBuilder_ = null;
1213       }
1214       endTime_ = null;
1215       if (endTimeBuilder_ != null) {
1216         endTimeBuilder_.dispose();
1217         endTimeBuilder_ = null;
1218       }
1219       creator_ = "";
1220       logsUri_ = "";
1221       sourceProvenance_ = null;
1222       if (sourceProvenanceBuilder_ != null) {
1223         sourceProvenanceBuilder_.dispose();
1224         sourceProvenanceBuilder_ = null;
1225       }
1226       triggerId_ = "";
1227       internalGetMutableBuildOptions().clear();
1228       builderVersion_ = "";
1229       return this;
1230     }
1231 
1232     @java.lang.Override
getDescriptorForType()1233     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1234       return io.grafeas.v1.Provenance.internal_static_grafeas_v1_BuildProvenance_descriptor;
1235     }
1236 
1237     @java.lang.Override
getDefaultInstanceForType()1238     public io.grafeas.v1.BuildProvenance getDefaultInstanceForType() {
1239       return io.grafeas.v1.BuildProvenance.getDefaultInstance();
1240     }
1241 
1242     @java.lang.Override
build()1243     public io.grafeas.v1.BuildProvenance build() {
1244       io.grafeas.v1.BuildProvenance result = buildPartial();
1245       if (!result.isInitialized()) {
1246         throw newUninitializedMessageException(result);
1247       }
1248       return result;
1249     }
1250 
1251     @java.lang.Override
buildPartial()1252     public io.grafeas.v1.BuildProvenance buildPartial() {
1253       io.grafeas.v1.BuildProvenance result = new io.grafeas.v1.BuildProvenance(this);
1254       buildPartialRepeatedFields(result);
1255       if (bitField0_ != 0) {
1256         buildPartial0(result);
1257       }
1258       onBuilt();
1259       return result;
1260     }
1261 
buildPartialRepeatedFields(io.grafeas.v1.BuildProvenance result)1262     private void buildPartialRepeatedFields(io.grafeas.v1.BuildProvenance result) {
1263       if (commandsBuilder_ == null) {
1264         if (((bitField0_ & 0x00000004) != 0)) {
1265           commands_ = java.util.Collections.unmodifiableList(commands_);
1266           bitField0_ = (bitField0_ & ~0x00000004);
1267         }
1268         result.commands_ = commands_;
1269       } else {
1270         result.commands_ = commandsBuilder_.build();
1271       }
1272       if (builtArtifactsBuilder_ == null) {
1273         if (((bitField0_ & 0x00000008) != 0)) {
1274           builtArtifacts_ = java.util.Collections.unmodifiableList(builtArtifacts_);
1275           bitField0_ = (bitField0_ & ~0x00000008);
1276         }
1277         result.builtArtifacts_ = builtArtifacts_;
1278       } else {
1279         result.builtArtifacts_ = builtArtifactsBuilder_.build();
1280       }
1281     }
1282 
buildPartial0(io.grafeas.v1.BuildProvenance result)1283     private void buildPartial0(io.grafeas.v1.BuildProvenance result) {
1284       int from_bitField0_ = bitField0_;
1285       if (((from_bitField0_ & 0x00000001) != 0)) {
1286         result.id_ = id_;
1287       }
1288       if (((from_bitField0_ & 0x00000002) != 0)) {
1289         result.projectId_ = projectId_;
1290       }
1291       if (((from_bitField0_ & 0x00000010) != 0)) {
1292         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1293       }
1294       if (((from_bitField0_ & 0x00000020) != 0)) {
1295         result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
1296       }
1297       if (((from_bitField0_ & 0x00000040) != 0)) {
1298         result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
1299       }
1300       if (((from_bitField0_ & 0x00000080) != 0)) {
1301         result.creator_ = creator_;
1302       }
1303       if (((from_bitField0_ & 0x00000100) != 0)) {
1304         result.logsUri_ = logsUri_;
1305       }
1306       if (((from_bitField0_ & 0x00000200) != 0)) {
1307         result.sourceProvenance_ =
1308             sourceProvenanceBuilder_ == null ? sourceProvenance_ : sourceProvenanceBuilder_.build();
1309       }
1310       if (((from_bitField0_ & 0x00000400) != 0)) {
1311         result.triggerId_ = triggerId_;
1312       }
1313       if (((from_bitField0_ & 0x00000800) != 0)) {
1314         result.buildOptions_ = internalGetBuildOptions();
1315         result.buildOptions_.makeImmutable();
1316       }
1317       if (((from_bitField0_ & 0x00001000) != 0)) {
1318         result.builderVersion_ = builderVersion_;
1319       }
1320     }
1321 
1322     @java.lang.Override
clone()1323     public Builder clone() {
1324       return super.clone();
1325     }
1326 
1327     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1328     public Builder setField(
1329         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1330       return super.setField(field, value);
1331     }
1332 
1333     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1334     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1335       return super.clearField(field);
1336     }
1337 
1338     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1339     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1340       return super.clearOneof(oneof);
1341     }
1342 
1343     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1344     public Builder setRepeatedField(
1345         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1346       return super.setRepeatedField(field, index, value);
1347     }
1348 
1349     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1350     public Builder addRepeatedField(
1351         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1352       return super.addRepeatedField(field, value);
1353     }
1354 
1355     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1356     public Builder mergeFrom(com.google.protobuf.Message other) {
1357       if (other instanceof io.grafeas.v1.BuildProvenance) {
1358         return mergeFrom((io.grafeas.v1.BuildProvenance) other);
1359       } else {
1360         super.mergeFrom(other);
1361         return this;
1362       }
1363     }
1364 
mergeFrom(io.grafeas.v1.BuildProvenance other)1365     public Builder mergeFrom(io.grafeas.v1.BuildProvenance other) {
1366       if (other == io.grafeas.v1.BuildProvenance.getDefaultInstance()) return this;
1367       if (!other.getId().isEmpty()) {
1368         id_ = other.id_;
1369         bitField0_ |= 0x00000001;
1370         onChanged();
1371       }
1372       if (!other.getProjectId().isEmpty()) {
1373         projectId_ = other.projectId_;
1374         bitField0_ |= 0x00000002;
1375         onChanged();
1376       }
1377       if (commandsBuilder_ == null) {
1378         if (!other.commands_.isEmpty()) {
1379           if (commands_.isEmpty()) {
1380             commands_ = other.commands_;
1381             bitField0_ = (bitField0_ & ~0x00000004);
1382           } else {
1383             ensureCommandsIsMutable();
1384             commands_.addAll(other.commands_);
1385           }
1386           onChanged();
1387         }
1388       } else {
1389         if (!other.commands_.isEmpty()) {
1390           if (commandsBuilder_.isEmpty()) {
1391             commandsBuilder_.dispose();
1392             commandsBuilder_ = null;
1393             commands_ = other.commands_;
1394             bitField0_ = (bitField0_ & ~0x00000004);
1395             commandsBuilder_ =
1396                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1397                     ? getCommandsFieldBuilder()
1398                     : null;
1399           } else {
1400             commandsBuilder_.addAllMessages(other.commands_);
1401           }
1402         }
1403       }
1404       if (builtArtifactsBuilder_ == null) {
1405         if (!other.builtArtifacts_.isEmpty()) {
1406           if (builtArtifacts_.isEmpty()) {
1407             builtArtifacts_ = other.builtArtifacts_;
1408             bitField0_ = (bitField0_ & ~0x00000008);
1409           } else {
1410             ensureBuiltArtifactsIsMutable();
1411             builtArtifacts_.addAll(other.builtArtifacts_);
1412           }
1413           onChanged();
1414         }
1415       } else {
1416         if (!other.builtArtifacts_.isEmpty()) {
1417           if (builtArtifactsBuilder_.isEmpty()) {
1418             builtArtifactsBuilder_.dispose();
1419             builtArtifactsBuilder_ = null;
1420             builtArtifacts_ = other.builtArtifacts_;
1421             bitField0_ = (bitField0_ & ~0x00000008);
1422             builtArtifactsBuilder_ =
1423                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1424                     ? getBuiltArtifactsFieldBuilder()
1425                     : null;
1426           } else {
1427             builtArtifactsBuilder_.addAllMessages(other.builtArtifacts_);
1428           }
1429         }
1430       }
1431       if (other.hasCreateTime()) {
1432         mergeCreateTime(other.getCreateTime());
1433       }
1434       if (other.hasStartTime()) {
1435         mergeStartTime(other.getStartTime());
1436       }
1437       if (other.hasEndTime()) {
1438         mergeEndTime(other.getEndTime());
1439       }
1440       if (!other.getCreator().isEmpty()) {
1441         creator_ = other.creator_;
1442         bitField0_ |= 0x00000080;
1443         onChanged();
1444       }
1445       if (!other.getLogsUri().isEmpty()) {
1446         logsUri_ = other.logsUri_;
1447         bitField0_ |= 0x00000100;
1448         onChanged();
1449       }
1450       if (other.hasSourceProvenance()) {
1451         mergeSourceProvenance(other.getSourceProvenance());
1452       }
1453       if (!other.getTriggerId().isEmpty()) {
1454         triggerId_ = other.triggerId_;
1455         bitField0_ |= 0x00000400;
1456         onChanged();
1457       }
1458       internalGetMutableBuildOptions().mergeFrom(other.internalGetBuildOptions());
1459       bitField0_ |= 0x00000800;
1460       if (!other.getBuilderVersion().isEmpty()) {
1461         builderVersion_ = other.builderVersion_;
1462         bitField0_ |= 0x00001000;
1463         onChanged();
1464       }
1465       this.mergeUnknownFields(other.getUnknownFields());
1466       onChanged();
1467       return this;
1468     }
1469 
1470     @java.lang.Override
isInitialized()1471     public final boolean isInitialized() {
1472       return true;
1473     }
1474 
1475     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1476     public Builder mergeFrom(
1477         com.google.protobuf.CodedInputStream input,
1478         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1479         throws java.io.IOException {
1480       if (extensionRegistry == null) {
1481         throw new java.lang.NullPointerException();
1482       }
1483       try {
1484         boolean done = false;
1485         while (!done) {
1486           int tag = input.readTag();
1487           switch (tag) {
1488             case 0:
1489               done = true;
1490               break;
1491             case 10:
1492               {
1493                 id_ = input.readStringRequireUtf8();
1494                 bitField0_ |= 0x00000001;
1495                 break;
1496               } // case 10
1497             case 18:
1498               {
1499                 projectId_ = input.readStringRequireUtf8();
1500                 bitField0_ |= 0x00000002;
1501                 break;
1502               } // case 18
1503             case 26:
1504               {
1505                 io.grafeas.v1.Command m =
1506                     input.readMessage(io.grafeas.v1.Command.parser(), extensionRegistry);
1507                 if (commandsBuilder_ == null) {
1508                   ensureCommandsIsMutable();
1509                   commands_.add(m);
1510                 } else {
1511                   commandsBuilder_.addMessage(m);
1512                 }
1513                 break;
1514               } // case 26
1515             case 34:
1516               {
1517                 io.grafeas.v1.Artifact m =
1518                     input.readMessage(io.grafeas.v1.Artifact.parser(), extensionRegistry);
1519                 if (builtArtifactsBuilder_ == null) {
1520                   ensureBuiltArtifactsIsMutable();
1521                   builtArtifacts_.add(m);
1522                 } else {
1523                   builtArtifactsBuilder_.addMessage(m);
1524                 }
1525                 break;
1526               } // case 34
1527             case 42:
1528               {
1529                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1530                 bitField0_ |= 0x00000010;
1531                 break;
1532               } // case 42
1533             case 50:
1534               {
1535                 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
1536                 bitField0_ |= 0x00000020;
1537                 break;
1538               } // case 50
1539             case 58:
1540               {
1541                 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
1542                 bitField0_ |= 0x00000040;
1543                 break;
1544               } // case 58
1545             case 66:
1546               {
1547                 creator_ = input.readStringRequireUtf8();
1548                 bitField0_ |= 0x00000080;
1549                 break;
1550               } // case 66
1551             case 74:
1552               {
1553                 logsUri_ = input.readStringRequireUtf8();
1554                 bitField0_ |= 0x00000100;
1555                 break;
1556               } // case 74
1557             case 82:
1558               {
1559                 input.readMessage(
1560                     getSourceProvenanceFieldBuilder().getBuilder(), extensionRegistry);
1561                 bitField0_ |= 0x00000200;
1562                 break;
1563               } // case 82
1564             case 90:
1565               {
1566                 triggerId_ = input.readStringRequireUtf8();
1567                 bitField0_ |= 0x00000400;
1568                 break;
1569               } // case 90
1570             case 98:
1571               {
1572                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> buildOptions__ =
1573                     input.readMessage(
1574                         BuildOptionsDefaultEntryHolder.defaultEntry.getParserForType(),
1575                         extensionRegistry);
1576                 internalGetMutableBuildOptions()
1577                     .getMutableMap()
1578                     .put(buildOptions__.getKey(), buildOptions__.getValue());
1579                 bitField0_ |= 0x00000800;
1580                 break;
1581               } // case 98
1582             case 106:
1583               {
1584                 builderVersion_ = input.readStringRequireUtf8();
1585                 bitField0_ |= 0x00001000;
1586                 break;
1587               } // case 106
1588             default:
1589               {
1590                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1591                   done = true; // was an endgroup tag
1592                 }
1593                 break;
1594               } // default:
1595           } // switch (tag)
1596         } // while (!done)
1597       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1598         throw e.unwrapIOException();
1599       } finally {
1600         onChanged();
1601       } // finally
1602       return this;
1603     }
1604 
1605     private int bitField0_;
1606 
1607     private java.lang.Object id_ = "";
1608     /**
1609      *
1610      *
1611      * <pre>
1612      * Required. Unique identifier of the build.
1613      * </pre>
1614      *
1615      * <code>string id = 1;</code>
1616      *
1617      * @return The id.
1618      */
getId()1619     public java.lang.String getId() {
1620       java.lang.Object ref = id_;
1621       if (!(ref instanceof java.lang.String)) {
1622         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1623         java.lang.String s = bs.toStringUtf8();
1624         id_ = s;
1625         return s;
1626       } else {
1627         return (java.lang.String) ref;
1628       }
1629     }
1630     /**
1631      *
1632      *
1633      * <pre>
1634      * Required. Unique identifier of the build.
1635      * </pre>
1636      *
1637      * <code>string id = 1;</code>
1638      *
1639      * @return The bytes for id.
1640      */
getIdBytes()1641     public com.google.protobuf.ByteString getIdBytes() {
1642       java.lang.Object ref = id_;
1643       if (ref instanceof String) {
1644         com.google.protobuf.ByteString b =
1645             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1646         id_ = b;
1647         return b;
1648       } else {
1649         return (com.google.protobuf.ByteString) ref;
1650       }
1651     }
1652     /**
1653      *
1654      *
1655      * <pre>
1656      * Required. Unique identifier of the build.
1657      * </pre>
1658      *
1659      * <code>string id = 1;</code>
1660      *
1661      * @param value The id to set.
1662      * @return This builder for chaining.
1663      */
setId(java.lang.String value)1664     public Builder setId(java.lang.String value) {
1665       if (value == null) {
1666         throw new NullPointerException();
1667       }
1668       id_ = value;
1669       bitField0_ |= 0x00000001;
1670       onChanged();
1671       return this;
1672     }
1673     /**
1674      *
1675      *
1676      * <pre>
1677      * Required. Unique identifier of the build.
1678      * </pre>
1679      *
1680      * <code>string id = 1;</code>
1681      *
1682      * @return This builder for chaining.
1683      */
clearId()1684     public Builder clearId() {
1685       id_ = getDefaultInstance().getId();
1686       bitField0_ = (bitField0_ & ~0x00000001);
1687       onChanged();
1688       return this;
1689     }
1690     /**
1691      *
1692      *
1693      * <pre>
1694      * Required. Unique identifier of the build.
1695      * </pre>
1696      *
1697      * <code>string id = 1;</code>
1698      *
1699      * @param value The bytes for id to set.
1700      * @return This builder for chaining.
1701      */
setIdBytes(com.google.protobuf.ByteString value)1702     public Builder setIdBytes(com.google.protobuf.ByteString value) {
1703       if (value == null) {
1704         throw new NullPointerException();
1705       }
1706       checkByteStringIsUtf8(value);
1707       id_ = value;
1708       bitField0_ |= 0x00000001;
1709       onChanged();
1710       return this;
1711     }
1712 
1713     private java.lang.Object projectId_ = "";
1714     /**
1715      *
1716      *
1717      * <pre>
1718      * ID of the project.
1719      * </pre>
1720      *
1721      * <code>string project_id = 2;</code>
1722      *
1723      * @return The projectId.
1724      */
getProjectId()1725     public java.lang.String getProjectId() {
1726       java.lang.Object ref = projectId_;
1727       if (!(ref instanceof java.lang.String)) {
1728         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1729         java.lang.String s = bs.toStringUtf8();
1730         projectId_ = s;
1731         return s;
1732       } else {
1733         return (java.lang.String) ref;
1734       }
1735     }
1736     /**
1737      *
1738      *
1739      * <pre>
1740      * ID of the project.
1741      * </pre>
1742      *
1743      * <code>string project_id = 2;</code>
1744      *
1745      * @return The bytes for projectId.
1746      */
getProjectIdBytes()1747     public com.google.protobuf.ByteString getProjectIdBytes() {
1748       java.lang.Object ref = projectId_;
1749       if (ref instanceof String) {
1750         com.google.protobuf.ByteString b =
1751             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1752         projectId_ = b;
1753         return b;
1754       } else {
1755         return (com.google.protobuf.ByteString) ref;
1756       }
1757     }
1758     /**
1759      *
1760      *
1761      * <pre>
1762      * ID of the project.
1763      * </pre>
1764      *
1765      * <code>string project_id = 2;</code>
1766      *
1767      * @param value The projectId to set.
1768      * @return This builder for chaining.
1769      */
setProjectId(java.lang.String value)1770     public Builder setProjectId(java.lang.String value) {
1771       if (value == null) {
1772         throw new NullPointerException();
1773       }
1774       projectId_ = value;
1775       bitField0_ |= 0x00000002;
1776       onChanged();
1777       return this;
1778     }
1779     /**
1780      *
1781      *
1782      * <pre>
1783      * ID of the project.
1784      * </pre>
1785      *
1786      * <code>string project_id = 2;</code>
1787      *
1788      * @return This builder for chaining.
1789      */
clearProjectId()1790     public Builder clearProjectId() {
1791       projectId_ = getDefaultInstance().getProjectId();
1792       bitField0_ = (bitField0_ & ~0x00000002);
1793       onChanged();
1794       return this;
1795     }
1796     /**
1797      *
1798      *
1799      * <pre>
1800      * ID of the project.
1801      * </pre>
1802      *
1803      * <code>string project_id = 2;</code>
1804      *
1805      * @param value The bytes for projectId to set.
1806      * @return This builder for chaining.
1807      */
setProjectIdBytes(com.google.protobuf.ByteString value)1808     public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
1809       if (value == null) {
1810         throw new NullPointerException();
1811       }
1812       checkByteStringIsUtf8(value);
1813       projectId_ = value;
1814       bitField0_ |= 0x00000002;
1815       onChanged();
1816       return this;
1817     }
1818 
1819     private java.util.List<io.grafeas.v1.Command> commands_ = java.util.Collections.emptyList();
1820 
ensureCommandsIsMutable()1821     private void ensureCommandsIsMutable() {
1822       if (!((bitField0_ & 0x00000004) != 0)) {
1823         commands_ = new java.util.ArrayList<io.grafeas.v1.Command>(commands_);
1824         bitField0_ |= 0x00000004;
1825       }
1826     }
1827 
1828     private com.google.protobuf.RepeatedFieldBuilderV3<
1829             io.grafeas.v1.Command, io.grafeas.v1.Command.Builder, io.grafeas.v1.CommandOrBuilder>
1830         commandsBuilder_;
1831 
1832     /**
1833      *
1834      *
1835      * <pre>
1836      * Commands requested by the build.
1837      * </pre>
1838      *
1839      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1840      */
getCommandsList()1841     public java.util.List<io.grafeas.v1.Command> getCommandsList() {
1842       if (commandsBuilder_ == null) {
1843         return java.util.Collections.unmodifiableList(commands_);
1844       } else {
1845         return commandsBuilder_.getMessageList();
1846       }
1847     }
1848     /**
1849      *
1850      *
1851      * <pre>
1852      * Commands requested by the build.
1853      * </pre>
1854      *
1855      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1856      */
getCommandsCount()1857     public int getCommandsCount() {
1858       if (commandsBuilder_ == null) {
1859         return commands_.size();
1860       } else {
1861         return commandsBuilder_.getCount();
1862       }
1863     }
1864     /**
1865      *
1866      *
1867      * <pre>
1868      * Commands requested by the build.
1869      * </pre>
1870      *
1871      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1872      */
getCommands(int index)1873     public io.grafeas.v1.Command getCommands(int index) {
1874       if (commandsBuilder_ == null) {
1875         return commands_.get(index);
1876       } else {
1877         return commandsBuilder_.getMessage(index);
1878       }
1879     }
1880     /**
1881      *
1882      *
1883      * <pre>
1884      * Commands requested by the build.
1885      * </pre>
1886      *
1887      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1888      */
setCommands(int index, io.grafeas.v1.Command value)1889     public Builder setCommands(int index, io.grafeas.v1.Command value) {
1890       if (commandsBuilder_ == null) {
1891         if (value == null) {
1892           throw new NullPointerException();
1893         }
1894         ensureCommandsIsMutable();
1895         commands_.set(index, value);
1896         onChanged();
1897       } else {
1898         commandsBuilder_.setMessage(index, value);
1899       }
1900       return this;
1901     }
1902     /**
1903      *
1904      *
1905      * <pre>
1906      * Commands requested by the build.
1907      * </pre>
1908      *
1909      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1910      */
setCommands(int index, io.grafeas.v1.Command.Builder builderForValue)1911     public Builder setCommands(int index, io.grafeas.v1.Command.Builder builderForValue) {
1912       if (commandsBuilder_ == null) {
1913         ensureCommandsIsMutable();
1914         commands_.set(index, builderForValue.build());
1915         onChanged();
1916       } else {
1917         commandsBuilder_.setMessage(index, builderForValue.build());
1918       }
1919       return this;
1920     }
1921     /**
1922      *
1923      *
1924      * <pre>
1925      * Commands requested by the build.
1926      * </pre>
1927      *
1928      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1929      */
addCommands(io.grafeas.v1.Command value)1930     public Builder addCommands(io.grafeas.v1.Command value) {
1931       if (commandsBuilder_ == null) {
1932         if (value == null) {
1933           throw new NullPointerException();
1934         }
1935         ensureCommandsIsMutable();
1936         commands_.add(value);
1937         onChanged();
1938       } else {
1939         commandsBuilder_.addMessage(value);
1940       }
1941       return this;
1942     }
1943     /**
1944      *
1945      *
1946      * <pre>
1947      * Commands requested by the build.
1948      * </pre>
1949      *
1950      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1951      */
addCommands(int index, io.grafeas.v1.Command value)1952     public Builder addCommands(int index, io.grafeas.v1.Command value) {
1953       if (commandsBuilder_ == null) {
1954         if (value == null) {
1955           throw new NullPointerException();
1956         }
1957         ensureCommandsIsMutable();
1958         commands_.add(index, value);
1959         onChanged();
1960       } else {
1961         commandsBuilder_.addMessage(index, value);
1962       }
1963       return this;
1964     }
1965     /**
1966      *
1967      *
1968      * <pre>
1969      * Commands requested by the build.
1970      * </pre>
1971      *
1972      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1973      */
addCommands(io.grafeas.v1.Command.Builder builderForValue)1974     public Builder addCommands(io.grafeas.v1.Command.Builder builderForValue) {
1975       if (commandsBuilder_ == null) {
1976         ensureCommandsIsMutable();
1977         commands_.add(builderForValue.build());
1978         onChanged();
1979       } else {
1980         commandsBuilder_.addMessage(builderForValue.build());
1981       }
1982       return this;
1983     }
1984     /**
1985      *
1986      *
1987      * <pre>
1988      * Commands requested by the build.
1989      * </pre>
1990      *
1991      * <code>repeated .grafeas.v1.Command commands = 3;</code>
1992      */
addCommands(int index, io.grafeas.v1.Command.Builder builderForValue)1993     public Builder addCommands(int index, io.grafeas.v1.Command.Builder builderForValue) {
1994       if (commandsBuilder_ == null) {
1995         ensureCommandsIsMutable();
1996         commands_.add(index, builderForValue.build());
1997         onChanged();
1998       } else {
1999         commandsBuilder_.addMessage(index, builderForValue.build());
2000       }
2001       return this;
2002     }
2003     /**
2004      *
2005      *
2006      * <pre>
2007      * Commands requested by the build.
2008      * </pre>
2009      *
2010      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2011      */
addAllCommands(java.lang.Iterable<? extends io.grafeas.v1.Command> values)2012     public Builder addAllCommands(java.lang.Iterable<? extends io.grafeas.v1.Command> values) {
2013       if (commandsBuilder_ == null) {
2014         ensureCommandsIsMutable();
2015         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commands_);
2016         onChanged();
2017       } else {
2018         commandsBuilder_.addAllMessages(values);
2019       }
2020       return this;
2021     }
2022     /**
2023      *
2024      *
2025      * <pre>
2026      * Commands requested by the build.
2027      * </pre>
2028      *
2029      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2030      */
clearCommands()2031     public Builder clearCommands() {
2032       if (commandsBuilder_ == null) {
2033         commands_ = java.util.Collections.emptyList();
2034         bitField0_ = (bitField0_ & ~0x00000004);
2035         onChanged();
2036       } else {
2037         commandsBuilder_.clear();
2038       }
2039       return this;
2040     }
2041     /**
2042      *
2043      *
2044      * <pre>
2045      * Commands requested by the build.
2046      * </pre>
2047      *
2048      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2049      */
removeCommands(int index)2050     public Builder removeCommands(int index) {
2051       if (commandsBuilder_ == null) {
2052         ensureCommandsIsMutable();
2053         commands_.remove(index);
2054         onChanged();
2055       } else {
2056         commandsBuilder_.remove(index);
2057       }
2058       return this;
2059     }
2060     /**
2061      *
2062      *
2063      * <pre>
2064      * Commands requested by the build.
2065      * </pre>
2066      *
2067      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2068      */
getCommandsBuilder(int index)2069     public io.grafeas.v1.Command.Builder getCommandsBuilder(int index) {
2070       return getCommandsFieldBuilder().getBuilder(index);
2071     }
2072     /**
2073      *
2074      *
2075      * <pre>
2076      * Commands requested by the build.
2077      * </pre>
2078      *
2079      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2080      */
getCommandsOrBuilder(int index)2081     public io.grafeas.v1.CommandOrBuilder getCommandsOrBuilder(int index) {
2082       if (commandsBuilder_ == null) {
2083         return commands_.get(index);
2084       } else {
2085         return commandsBuilder_.getMessageOrBuilder(index);
2086       }
2087     }
2088     /**
2089      *
2090      *
2091      * <pre>
2092      * Commands requested by the build.
2093      * </pre>
2094      *
2095      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2096      */
getCommandsOrBuilderList()2097     public java.util.List<? extends io.grafeas.v1.CommandOrBuilder> getCommandsOrBuilderList() {
2098       if (commandsBuilder_ != null) {
2099         return commandsBuilder_.getMessageOrBuilderList();
2100       } else {
2101         return java.util.Collections.unmodifiableList(commands_);
2102       }
2103     }
2104     /**
2105      *
2106      *
2107      * <pre>
2108      * Commands requested by the build.
2109      * </pre>
2110      *
2111      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2112      */
addCommandsBuilder()2113     public io.grafeas.v1.Command.Builder addCommandsBuilder() {
2114       return getCommandsFieldBuilder().addBuilder(io.grafeas.v1.Command.getDefaultInstance());
2115     }
2116     /**
2117      *
2118      *
2119      * <pre>
2120      * Commands requested by the build.
2121      * </pre>
2122      *
2123      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2124      */
addCommandsBuilder(int index)2125     public io.grafeas.v1.Command.Builder addCommandsBuilder(int index) {
2126       return getCommandsFieldBuilder()
2127           .addBuilder(index, io.grafeas.v1.Command.getDefaultInstance());
2128     }
2129     /**
2130      *
2131      *
2132      * <pre>
2133      * Commands requested by the build.
2134      * </pre>
2135      *
2136      * <code>repeated .grafeas.v1.Command commands = 3;</code>
2137      */
getCommandsBuilderList()2138     public java.util.List<io.grafeas.v1.Command.Builder> getCommandsBuilderList() {
2139       return getCommandsFieldBuilder().getBuilderList();
2140     }
2141 
2142     private com.google.protobuf.RepeatedFieldBuilderV3<
2143             io.grafeas.v1.Command, io.grafeas.v1.Command.Builder, io.grafeas.v1.CommandOrBuilder>
getCommandsFieldBuilder()2144         getCommandsFieldBuilder() {
2145       if (commandsBuilder_ == null) {
2146         commandsBuilder_ =
2147             new com.google.protobuf.RepeatedFieldBuilderV3<
2148                 io.grafeas.v1.Command,
2149                 io.grafeas.v1.Command.Builder,
2150                 io.grafeas.v1.CommandOrBuilder>(
2151                 commands_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
2152         commands_ = null;
2153       }
2154       return commandsBuilder_;
2155     }
2156 
2157     private java.util.List<io.grafeas.v1.Artifact> builtArtifacts_ =
2158         java.util.Collections.emptyList();
2159 
ensureBuiltArtifactsIsMutable()2160     private void ensureBuiltArtifactsIsMutable() {
2161       if (!((bitField0_ & 0x00000008) != 0)) {
2162         builtArtifacts_ = new java.util.ArrayList<io.grafeas.v1.Artifact>(builtArtifacts_);
2163         bitField0_ |= 0x00000008;
2164       }
2165     }
2166 
2167     private com.google.protobuf.RepeatedFieldBuilderV3<
2168             io.grafeas.v1.Artifact, io.grafeas.v1.Artifact.Builder, io.grafeas.v1.ArtifactOrBuilder>
2169         builtArtifactsBuilder_;
2170 
2171     /**
2172      *
2173      *
2174      * <pre>
2175      * Output of the build.
2176      * </pre>
2177      *
2178      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2179      */
getBuiltArtifactsList()2180     public java.util.List<io.grafeas.v1.Artifact> getBuiltArtifactsList() {
2181       if (builtArtifactsBuilder_ == null) {
2182         return java.util.Collections.unmodifiableList(builtArtifacts_);
2183       } else {
2184         return builtArtifactsBuilder_.getMessageList();
2185       }
2186     }
2187     /**
2188      *
2189      *
2190      * <pre>
2191      * Output of the build.
2192      * </pre>
2193      *
2194      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2195      */
getBuiltArtifactsCount()2196     public int getBuiltArtifactsCount() {
2197       if (builtArtifactsBuilder_ == null) {
2198         return builtArtifacts_.size();
2199       } else {
2200         return builtArtifactsBuilder_.getCount();
2201       }
2202     }
2203     /**
2204      *
2205      *
2206      * <pre>
2207      * Output of the build.
2208      * </pre>
2209      *
2210      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2211      */
getBuiltArtifacts(int index)2212     public io.grafeas.v1.Artifact getBuiltArtifacts(int index) {
2213       if (builtArtifactsBuilder_ == null) {
2214         return builtArtifacts_.get(index);
2215       } else {
2216         return builtArtifactsBuilder_.getMessage(index);
2217       }
2218     }
2219     /**
2220      *
2221      *
2222      * <pre>
2223      * Output of the build.
2224      * </pre>
2225      *
2226      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2227      */
setBuiltArtifacts(int index, io.grafeas.v1.Artifact value)2228     public Builder setBuiltArtifacts(int index, io.grafeas.v1.Artifact value) {
2229       if (builtArtifactsBuilder_ == null) {
2230         if (value == null) {
2231           throw new NullPointerException();
2232         }
2233         ensureBuiltArtifactsIsMutable();
2234         builtArtifacts_.set(index, value);
2235         onChanged();
2236       } else {
2237         builtArtifactsBuilder_.setMessage(index, value);
2238       }
2239       return this;
2240     }
2241     /**
2242      *
2243      *
2244      * <pre>
2245      * Output of the build.
2246      * </pre>
2247      *
2248      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2249      */
setBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue)2250     public Builder setBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue) {
2251       if (builtArtifactsBuilder_ == null) {
2252         ensureBuiltArtifactsIsMutable();
2253         builtArtifacts_.set(index, builderForValue.build());
2254         onChanged();
2255       } else {
2256         builtArtifactsBuilder_.setMessage(index, builderForValue.build());
2257       }
2258       return this;
2259     }
2260     /**
2261      *
2262      *
2263      * <pre>
2264      * Output of the build.
2265      * </pre>
2266      *
2267      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2268      */
addBuiltArtifacts(io.grafeas.v1.Artifact value)2269     public Builder addBuiltArtifacts(io.grafeas.v1.Artifact value) {
2270       if (builtArtifactsBuilder_ == null) {
2271         if (value == null) {
2272           throw new NullPointerException();
2273         }
2274         ensureBuiltArtifactsIsMutable();
2275         builtArtifacts_.add(value);
2276         onChanged();
2277       } else {
2278         builtArtifactsBuilder_.addMessage(value);
2279       }
2280       return this;
2281     }
2282     /**
2283      *
2284      *
2285      * <pre>
2286      * Output of the build.
2287      * </pre>
2288      *
2289      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2290      */
addBuiltArtifacts(int index, io.grafeas.v1.Artifact value)2291     public Builder addBuiltArtifacts(int index, io.grafeas.v1.Artifact value) {
2292       if (builtArtifactsBuilder_ == null) {
2293         if (value == null) {
2294           throw new NullPointerException();
2295         }
2296         ensureBuiltArtifactsIsMutable();
2297         builtArtifacts_.add(index, value);
2298         onChanged();
2299       } else {
2300         builtArtifactsBuilder_.addMessage(index, value);
2301       }
2302       return this;
2303     }
2304     /**
2305      *
2306      *
2307      * <pre>
2308      * Output of the build.
2309      * </pre>
2310      *
2311      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2312      */
addBuiltArtifacts(io.grafeas.v1.Artifact.Builder builderForValue)2313     public Builder addBuiltArtifacts(io.grafeas.v1.Artifact.Builder builderForValue) {
2314       if (builtArtifactsBuilder_ == null) {
2315         ensureBuiltArtifactsIsMutable();
2316         builtArtifacts_.add(builderForValue.build());
2317         onChanged();
2318       } else {
2319         builtArtifactsBuilder_.addMessage(builderForValue.build());
2320       }
2321       return this;
2322     }
2323     /**
2324      *
2325      *
2326      * <pre>
2327      * Output of the build.
2328      * </pre>
2329      *
2330      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2331      */
addBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue)2332     public Builder addBuiltArtifacts(int index, io.grafeas.v1.Artifact.Builder builderForValue) {
2333       if (builtArtifactsBuilder_ == null) {
2334         ensureBuiltArtifactsIsMutable();
2335         builtArtifacts_.add(index, builderForValue.build());
2336         onChanged();
2337       } else {
2338         builtArtifactsBuilder_.addMessage(index, builderForValue.build());
2339       }
2340       return this;
2341     }
2342     /**
2343      *
2344      *
2345      * <pre>
2346      * Output of the build.
2347      * </pre>
2348      *
2349      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2350      */
addAllBuiltArtifacts( java.lang.Iterable<? extends io.grafeas.v1.Artifact> values)2351     public Builder addAllBuiltArtifacts(
2352         java.lang.Iterable<? extends io.grafeas.v1.Artifact> values) {
2353       if (builtArtifactsBuilder_ == null) {
2354         ensureBuiltArtifactsIsMutable();
2355         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, builtArtifacts_);
2356         onChanged();
2357       } else {
2358         builtArtifactsBuilder_.addAllMessages(values);
2359       }
2360       return this;
2361     }
2362     /**
2363      *
2364      *
2365      * <pre>
2366      * Output of the build.
2367      * </pre>
2368      *
2369      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2370      */
clearBuiltArtifacts()2371     public Builder clearBuiltArtifacts() {
2372       if (builtArtifactsBuilder_ == null) {
2373         builtArtifacts_ = java.util.Collections.emptyList();
2374         bitField0_ = (bitField0_ & ~0x00000008);
2375         onChanged();
2376       } else {
2377         builtArtifactsBuilder_.clear();
2378       }
2379       return this;
2380     }
2381     /**
2382      *
2383      *
2384      * <pre>
2385      * Output of the build.
2386      * </pre>
2387      *
2388      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2389      */
removeBuiltArtifacts(int index)2390     public Builder removeBuiltArtifacts(int index) {
2391       if (builtArtifactsBuilder_ == null) {
2392         ensureBuiltArtifactsIsMutable();
2393         builtArtifacts_.remove(index);
2394         onChanged();
2395       } else {
2396         builtArtifactsBuilder_.remove(index);
2397       }
2398       return this;
2399     }
2400     /**
2401      *
2402      *
2403      * <pre>
2404      * Output of the build.
2405      * </pre>
2406      *
2407      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2408      */
getBuiltArtifactsBuilder(int index)2409     public io.grafeas.v1.Artifact.Builder getBuiltArtifactsBuilder(int index) {
2410       return getBuiltArtifactsFieldBuilder().getBuilder(index);
2411     }
2412     /**
2413      *
2414      *
2415      * <pre>
2416      * Output of the build.
2417      * </pre>
2418      *
2419      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2420      */
getBuiltArtifactsOrBuilder(int index)2421     public io.grafeas.v1.ArtifactOrBuilder getBuiltArtifactsOrBuilder(int index) {
2422       if (builtArtifactsBuilder_ == null) {
2423         return builtArtifacts_.get(index);
2424       } else {
2425         return builtArtifactsBuilder_.getMessageOrBuilder(index);
2426       }
2427     }
2428     /**
2429      *
2430      *
2431      * <pre>
2432      * Output of the build.
2433      * </pre>
2434      *
2435      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2436      */
2437     public java.util.List<? extends io.grafeas.v1.ArtifactOrBuilder>
getBuiltArtifactsOrBuilderList()2438         getBuiltArtifactsOrBuilderList() {
2439       if (builtArtifactsBuilder_ != null) {
2440         return builtArtifactsBuilder_.getMessageOrBuilderList();
2441       } else {
2442         return java.util.Collections.unmodifiableList(builtArtifacts_);
2443       }
2444     }
2445     /**
2446      *
2447      *
2448      * <pre>
2449      * Output of the build.
2450      * </pre>
2451      *
2452      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2453      */
addBuiltArtifactsBuilder()2454     public io.grafeas.v1.Artifact.Builder addBuiltArtifactsBuilder() {
2455       return getBuiltArtifactsFieldBuilder()
2456           .addBuilder(io.grafeas.v1.Artifact.getDefaultInstance());
2457     }
2458     /**
2459      *
2460      *
2461      * <pre>
2462      * Output of the build.
2463      * </pre>
2464      *
2465      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2466      */
addBuiltArtifactsBuilder(int index)2467     public io.grafeas.v1.Artifact.Builder addBuiltArtifactsBuilder(int index) {
2468       return getBuiltArtifactsFieldBuilder()
2469           .addBuilder(index, io.grafeas.v1.Artifact.getDefaultInstance());
2470     }
2471     /**
2472      *
2473      *
2474      * <pre>
2475      * Output of the build.
2476      * </pre>
2477      *
2478      * <code>repeated .grafeas.v1.Artifact built_artifacts = 4;</code>
2479      */
getBuiltArtifactsBuilderList()2480     public java.util.List<io.grafeas.v1.Artifact.Builder> getBuiltArtifactsBuilderList() {
2481       return getBuiltArtifactsFieldBuilder().getBuilderList();
2482     }
2483 
2484     private com.google.protobuf.RepeatedFieldBuilderV3<
2485             io.grafeas.v1.Artifact, io.grafeas.v1.Artifact.Builder, io.grafeas.v1.ArtifactOrBuilder>
getBuiltArtifactsFieldBuilder()2486         getBuiltArtifactsFieldBuilder() {
2487       if (builtArtifactsBuilder_ == null) {
2488         builtArtifactsBuilder_ =
2489             new com.google.protobuf.RepeatedFieldBuilderV3<
2490                 io.grafeas.v1.Artifact,
2491                 io.grafeas.v1.Artifact.Builder,
2492                 io.grafeas.v1.ArtifactOrBuilder>(
2493                 builtArtifacts_,
2494                 ((bitField0_ & 0x00000008) != 0),
2495                 getParentForChildren(),
2496                 isClean());
2497         builtArtifacts_ = null;
2498       }
2499       return builtArtifactsBuilder_;
2500     }
2501 
2502     private com.google.protobuf.Timestamp createTime_;
2503     private com.google.protobuf.SingleFieldBuilderV3<
2504             com.google.protobuf.Timestamp,
2505             com.google.protobuf.Timestamp.Builder,
2506             com.google.protobuf.TimestampOrBuilder>
2507         createTimeBuilder_;
2508     /**
2509      *
2510      *
2511      * <pre>
2512      * Time at which the build was created.
2513      * </pre>
2514      *
2515      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2516      *
2517      * @return Whether the createTime field is set.
2518      */
hasCreateTime()2519     public boolean hasCreateTime() {
2520       return ((bitField0_ & 0x00000010) != 0);
2521     }
2522     /**
2523      *
2524      *
2525      * <pre>
2526      * Time at which the build was created.
2527      * </pre>
2528      *
2529      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2530      *
2531      * @return The createTime.
2532      */
getCreateTime()2533     public com.google.protobuf.Timestamp getCreateTime() {
2534       if (createTimeBuilder_ == null) {
2535         return createTime_ == null
2536             ? com.google.protobuf.Timestamp.getDefaultInstance()
2537             : createTime_;
2538       } else {
2539         return createTimeBuilder_.getMessage();
2540       }
2541     }
2542     /**
2543      *
2544      *
2545      * <pre>
2546      * Time at which the build was created.
2547      * </pre>
2548      *
2549      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2550      */
setCreateTime(com.google.protobuf.Timestamp value)2551     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
2552       if (createTimeBuilder_ == null) {
2553         if (value == null) {
2554           throw new NullPointerException();
2555         }
2556         createTime_ = value;
2557       } else {
2558         createTimeBuilder_.setMessage(value);
2559       }
2560       bitField0_ |= 0x00000010;
2561       onChanged();
2562       return this;
2563     }
2564     /**
2565      *
2566      *
2567      * <pre>
2568      * Time at which the build was created.
2569      * </pre>
2570      *
2571      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2572      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)2573     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2574       if (createTimeBuilder_ == null) {
2575         createTime_ = builderForValue.build();
2576       } else {
2577         createTimeBuilder_.setMessage(builderForValue.build());
2578       }
2579       bitField0_ |= 0x00000010;
2580       onChanged();
2581       return this;
2582     }
2583     /**
2584      *
2585      *
2586      * <pre>
2587      * Time at which the build was created.
2588      * </pre>
2589      *
2590      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2591      */
mergeCreateTime(com.google.protobuf.Timestamp value)2592     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
2593       if (createTimeBuilder_ == null) {
2594         if (((bitField0_ & 0x00000010) != 0)
2595             && createTime_ != null
2596             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2597           getCreateTimeBuilder().mergeFrom(value);
2598         } else {
2599           createTime_ = value;
2600         }
2601       } else {
2602         createTimeBuilder_.mergeFrom(value);
2603       }
2604       bitField0_ |= 0x00000010;
2605       onChanged();
2606       return this;
2607     }
2608     /**
2609      *
2610      *
2611      * <pre>
2612      * Time at which the build was created.
2613      * </pre>
2614      *
2615      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2616      */
clearCreateTime()2617     public Builder clearCreateTime() {
2618       bitField0_ = (bitField0_ & ~0x00000010);
2619       createTime_ = null;
2620       if (createTimeBuilder_ != null) {
2621         createTimeBuilder_.dispose();
2622         createTimeBuilder_ = null;
2623       }
2624       onChanged();
2625       return this;
2626     }
2627     /**
2628      *
2629      *
2630      * <pre>
2631      * Time at which the build was created.
2632      * </pre>
2633      *
2634      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2635      */
getCreateTimeBuilder()2636     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
2637       bitField0_ |= 0x00000010;
2638       onChanged();
2639       return getCreateTimeFieldBuilder().getBuilder();
2640     }
2641     /**
2642      *
2643      *
2644      * <pre>
2645      * Time at which the build was created.
2646      * </pre>
2647      *
2648      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2649      */
getCreateTimeOrBuilder()2650     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
2651       if (createTimeBuilder_ != null) {
2652         return createTimeBuilder_.getMessageOrBuilder();
2653       } else {
2654         return createTime_ == null
2655             ? com.google.protobuf.Timestamp.getDefaultInstance()
2656             : createTime_;
2657       }
2658     }
2659     /**
2660      *
2661      *
2662      * <pre>
2663      * Time at which the build was created.
2664      * </pre>
2665      *
2666      * <code>.google.protobuf.Timestamp create_time = 5;</code>
2667      */
2668     private com.google.protobuf.SingleFieldBuilderV3<
2669             com.google.protobuf.Timestamp,
2670             com.google.protobuf.Timestamp.Builder,
2671             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()2672         getCreateTimeFieldBuilder() {
2673       if (createTimeBuilder_ == null) {
2674         createTimeBuilder_ =
2675             new com.google.protobuf.SingleFieldBuilderV3<
2676                 com.google.protobuf.Timestamp,
2677                 com.google.protobuf.Timestamp.Builder,
2678                 com.google.protobuf.TimestampOrBuilder>(
2679                 getCreateTime(), getParentForChildren(), isClean());
2680         createTime_ = null;
2681       }
2682       return createTimeBuilder_;
2683     }
2684 
2685     private com.google.protobuf.Timestamp startTime_;
2686     private com.google.protobuf.SingleFieldBuilderV3<
2687             com.google.protobuf.Timestamp,
2688             com.google.protobuf.Timestamp.Builder,
2689             com.google.protobuf.TimestampOrBuilder>
2690         startTimeBuilder_;
2691     /**
2692      *
2693      *
2694      * <pre>
2695      * Time at which execution of the build was started.
2696      * </pre>
2697      *
2698      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2699      *
2700      * @return Whether the startTime field is set.
2701      */
hasStartTime()2702     public boolean hasStartTime() {
2703       return ((bitField0_ & 0x00000020) != 0);
2704     }
2705     /**
2706      *
2707      *
2708      * <pre>
2709      * Time at which execution of the build was started.
2710      * </pre>
2711      *
2712      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2713      *
2714      * @return The startTime.
2715      */
getStartTime()2716     public com.google.protobuf.Timestamp getStartTime() {
2717       if (startTimeBuilder_ == null) {
2718         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
2719       } else {
2720         return startTimeBuilder_.getMessage();
2721       }
2722     }
2723     /**
2724      *
2725      *
2726      * <pre>
2727      * Time at which execution of the build was started.
2728      * </pre>
2729      *
2730      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2731      */
setStartTime(com.google.protobuf.Timestamp value)2732     public Builder setStartTime(com.google.protobuf.Timestamp value) {
2733       if (startTimeBuilder_ == null) {
2734         if (value == null) {
2735           throw new NullPointerException();
2736         }
2737         startTime_ = value;
2738       } else {
2739         startTimeBuilder_.setMessage(value);
2740       }
2741       bitField0_ |= 0x00000020;
2742       onChanged();
2743       return this;
2744     }
2745     /**
2746      *
2747      *
2748      * <pre>
2749      * Time at which execution of the build was started.
2750      * </pre>
2751      *
2752      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2753      */
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)2754     public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2755       if (startTimeBuilder_ == null) {
2756         startTime_ = builderForValue.build();
2757       } else {
2758         startTimeBuilder_.setMessage(builderForValue.build());
2759       }
2760       bitField0_ |= 0x00000020;
2761       onChanged();
2762       return this;
2763     }
2764     /**
2765      *
2766      *
2767      * <pre>
2768      * Time at which execution of the build was started.
2769      * </pre>
2770      *
2771      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2772      */
mergeStartTime(com.google.protobuf.Timestamp value)2773     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
2774       if (startTimeBuilder_ == null) {
2775         if (((bitField0_ & 0x00000020) != 0)
2776             && startTime_ != null
2777             && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2778           getStartTimeBuilder().mergeFrom(value);
2779         } else {
2780           startTime_ = value;
2781         }
2782       } else {
2783         startTimeBuilder_.mergeFrom(value);
2784       }
2785       bitField0_ |= 0x00000020;
2786       onChanged();
2787       return this;
2788     }
2789     /**
2790      *
2791      *
2792      * <pre>
2793      * Time at which execution of the build was started.
2794      * </pre>
2795      *
2796      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2797      */
clearStartTime()2798     public Builder clearStartTime() {
2799       bitField0_ = (bitField0_ & ~0x00000020);
2800       startTime_ = null;
2801       if (startTimeBuilder_ != null) {
2802         startTimeBuilder_.dispose();
2803         startTimeBuilder_ = null;
2804       }
2805       onChanged();
2806       return this;
2807     }
2808     /**
2809      *
2810      *
2811      * <pre>
2812      * Time at which execution of the build was started.
2813      * </pre>
2814      *
2815      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2816      */
getStartTimeBuilder()2817     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
2818       bitField0_ |= 0x00000020;
2819       onChanged();
2820       return getStartTimeFieldBuilder().getBuilder();
2821     }
2822     /**
2823      *
2824      *
2825      * <pre>
2826      * Time at which execution of the build was started.
2827      * </pre>
2828      *
2829      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2830      */
getStartTimeOrBuilder()2831     public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
2832       if (startTimeBuilder_ != null) {
2833         return startTimeBuilder_.getMessageOrBuilder();
2834       } else {
2835         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
2836       }
2837     }
2838     /**
2839      *
2840      *
2841      * <pre>
2842      * Time at which execution of the build was started.
2843      * </pre>
2844      *
2845      * <code>.google.protobuf.Timestamp start_time = 6;</code>
2846      */
2847     private com.google.protobuf.SingleFieldBuilderV3<
2848             com.google.protobuf.Timestamp,
2849             com.google.protobuf.Timestamp.Builder,
2850             com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder()2851         getStartTimeFieldBuilder() {
2852       if (startTimeBuilder_ == null) {
2853         startTimeBuilder_ =
2854             new com.google.protobuf.SingleFieldBuilderV3<
2855                 com.google.protobuf.Timestamp,
2856                 com.google.protobuf.Timestamp.Builder,
2857                 com.google.protobuf.TimestampOrBuilder>(
2858                 getStartTime(), getParentForChildren(), isClean());
2859         startTime_ = null;
2860       }
2861       return startTimeBuilder_;
2862     }
2863 
2864     private com.google.protobuf.Timestamp endTime_;
2865     private com.google.protobuf.SingleFieldBuilderV3<
2866             com.google.protobuf.Timestamp,
2867             com.google.protobuf.Timestamp.Builder,
2868             com.google.protobuf.TimestampOrBuilder>
2869         endTimeBuilder_;
2870     /**
2871      *
2872      *
2873      * <pre>
2874      * Time at which execution of the build was finished.
2875      * </pre>
2876      *
2877      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2878      *
2879      * @return Whether the endTime field is set.
2880      */
hasEndTime()2881     public boolean hasEndTime() {
2882       return ((bitField0_ & 0x00000040) != 0);
2883     }
2884     /**
2885      *
2886      *
2887      * <pre>
2888      * Time at which execution of the build was finished.
2889      * </pre>
2890      *
2891      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2892      *
2893      * @return The endTime.
2894      */
getEndTime()2895     public com.google.protobuf.Timestamp getEndTime() {
2896       if (endTimeBuilder_ == null) {
2897         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
2898       } else {
2899         return endTimeBuilder_.getMessage();
2900       }
2901     }
2902     /**
2903      *
2904      *
2905      * <pre>
2906      * Time at which execution of the build was finished.
2907      * </pre>
2908      *
2909      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2910      */
setEndTime(com.google.protobuf.Timestamp value)2911     public Builder setEndTime(com.google.protobuf.Timestamp value) {
2912       if (endTimeBuilder_ == null) {
2913         if (value == null) {
2914           throw new NullPointerException();
2915         }
2916         endTime_ = value;
2917       } else {
2918         endTimeBuilder_.setMessage(value);
2919       }
2920       bitField0_ |= 0x00000040;
2921       onChanged();
2922       return this;
2923     }
2924     /**
2925      *
2926      *
2927      * <pre>
2928      * Time at which execution of the build was finished.
2929      * </pre>
2930      *
2931      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2932      */
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)2933     public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2934       if (endTimeBuilder_ == null) {
2935         endTime_ = builderForValue.build();
2936       } else {
2937         endTimeBuilder_.setMessage(builderForValue.build());
2938       }
2939       bitField0_ |= 0x00000040;
2940       onChanged();
2941       return this;
2942     }
2943     /**
2944      *
2945      *
2946      * <pre>
2947      * Time at which execution of the build was finished.
2948      * </pre>
2949      *
2950      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2951      */
mergeEndTime(com.google.protobuf.Timestamp value)2952     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
2953       if (endTimeBuilder_ == null) {
2954         if (((bitField0_ & 0x00000040) != 0)
2955             && endTime_ != null
2956             && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2957           getEndTimeBuilder().mergeFrom(value);
2958         } else {
2959           endTime_ = value;
2960         }
2961       } else {
2962         endTimeBuilder_.mergeFrom(value);
2963       }
2964       bitField0_ |= 0x00000040;
2965       onChanged();
2966       return this;
2967     }
2968     /**
2969      *
2970      *
2971      * <pre>
2972      * Time at which execution of the build was finished.
2973      * </pre>
2974      *
2975      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2976      */
clearEndTime()2977     public Builder clearEndTime() {
2978       bitField0_ = (bitField0_ & ~0x00000040);
2979       endTime_ = null;
2980       if (endTimeBuilder_ != null) {
2981         endTimeBuilder_.dispose();
2982         endTimeBuilder_ = null;
2983       }
2984       onChanged();
2985       return this;
2986     }
2987     /**
2988      *
2989      *
2990      * <pre>
2991      * Time at which execution of the build was finished.
2992      * </pre>
2993      *
2994      * <code>.google.protobuf.Timestamp end_time = 7;</code>
2995      */
getEndTimeBuilder()2996     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
2997       bitField0_ |= 0x00000040;
2998       onChanged();
2999       return getEndTimeFieldBuilder().getBuilder();
3000     }
3001     /**
3002      *
3003      *
3004      * <pre>
3005      * Time at which execution of the build was finished.
3006      * </pre>
3007      *
3008      * <code>.google.protobuf.Timestamp end_time = 7;</code>
3009      */
getEndTimeOrBuilder()3010     public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
3011       if (endTimeBuilder_ != null) {
3012         return endTimeBuilder_.getMessageOrBuilder();
3013       } else {
3014         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
3015       }
3016     }
3017     /**
3018      *
3019      *
3020      * <pre>
3021      * Time at which execution of the build was finished.
3022      * </pre>
3023      *
3024      * <code>.google.protobuf.Timestamp end_time = 7;</code>
3025      */
3026     private com.google.protobuf.SingleFieldBuilderV3<
3027             com.google.protobuf.Timestamp,
3028             com.google.protobuf.Timestamp.Builder,
3029             com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder()3030         getEndTimeFieldBuilder() {
3031       if (endTimeBuilder_ == null) {
3032         endTimeBuilder_ =
3033             new com.google.protobuf.SingleFieldBuilderV3<
3034                 com.google.protobuf.Timestamp,
3035                 com.google.protobuf.Timestamp.Builder,
3036                 com.google.protobuf.TimestampOrBuilder>(
3037                 getEndTime(), getParentForChildren(), isClean());
3038         endTime_ = null;
3039       }
3040       return endTimeBuilder_;
3041     }
3042 
3043     private java.lang.Object creator_ = "";
3044     /**
3045      *
3046      *
3047      * <pre>
3048      * E-mail address of the user who initiated this build. Note that this was the
3049      * user's e-mail address at the time the build was initiated; this address may
3050      * not represent the same end-user for all time.
3051      * </pre>
3052      *
3053      * <code>string creator = 8;</code>
3054      *
3055      * @return The creator.
3056      */
getCreator()3057     public java.lang.String getCreator() {
3058       java.lang.Object ref = creator_;
3059       if (!(ref instanceof java.lang.String)) {
3060         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3061         java.lang.String s = bs.toStringUtf8();
3062         creator_ = s;
3063         return s;
3064       } else {
3065         return (java.lang.String) ref;
3066       }
3067     }
3068     /**
3069      *
3070      *
3071      * <pre>
3072      * E-mail address of the user who initiated this build. Note that this was the
3073      * user's e-mail address at the time the build was initiated; this address may
3074      * not represent the same end-user for all time.
3075      * </pre>
3076      *
3077      * <code>string creator = 8;</code>
3078      *
3079      * @return The bytes for creator.
3080      */
getCreatorBytes()3081     public com.google.protobuf.ByteString getCreatorBytes() {
3082       java.lang.Object ref = creator_;
3083       if (ref instanceof String) {
3084         com.google.protobuf.ByteString b =
3085             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3086         creator_ = b;
3087         return b;
3088       } else {
3089         return (com.google.protobuf.ByteString) ref;
3090       }
3091     }
3092     /**
3093      *
3094      *
3095      * <pre>
3096      * E-mail address of the user who initiated this build. Note that this was the
3097      * user's e-mail address at the time the build was initiated; this address may
3098      * not represent the same end-user for all time.
3099      * </pre>
3100      *
3101      * <code>string creator = 8;</code>
3102      *
3103      * @param value The creator to set.
3104      * @return This builder for chaining.
3105      */
setCreator(java.lang.String value)3106     public Builder setCreator(java.lang.String value) {
3107       if (value == null) {
3108         throw new NullPointerException();
3109       }
3110       creator_ = value;
3111       bitField0_ |= 0x00000080;
3112       onChanged();
3113       return this;
3114     }
3115     /**
3116      *
3117      *
3118      * <pre>
3119      * E-mail address of the user who initiated this build. Note that this was the
3120      * user's e-mail address at the time the build was initiated; this address may
3121      * not represent the same end-user for all time.
3122      * </pre>
3123      *
3124      * <code>string creator = 8;</code>
3125      *
3126      * @return This builder for chaining.
3127      */
clearCreator()3128     public Builder clearCreator() {
3129       creator_ = getDefaultInstance().getCreator();
3130       bitField0_ = (bitField0_ & ~0x00000080);
3131       onChanged();
3132       return this;
3133     }
3134     /**
3135      *
3136      *
3137      * <pre>
3138      * E-mail address of the user who initiated this build. Note that this was the
3139      * user's e-mail address at the time the build was initiated; this address may
3140      * not represent the same end-user for all time.
3141      * </pre>
3142      *
3143      * <code>string creator = 8;</code>
3144      *
3145      * @param value The bytes for creator to set.
3146      * @return This builder for chaining.
3147      */
setCreatorBytes(com.google.protobuf.ByteString value)3148     public Builder setCreatorBytes(com.google.protobuf.ByteString value) {
3149       if (value == null) {
3150         throw new NullPointerException();
3151       }
3152       checkByteStringIsUtf8(value);
3153       creator_ = value;
3154       bitField0_ |= 0x00000080;
3155       onChanged();
3156       return this;
3157     }
3158 
3159     private java.lang.Object logsUri_ = "";
3160     /**
3161      *
3162      *
3163      * <pre>
3164      * URI where any logs for this provenance were written.
3165      * </pre>
3166      *
3167      * <code>string logs_uri = 9;</code>
3168      *
3169      * @return The logsUri.
3170      */
getLogsUri()3171     public java.lang.String getLogsUri() {
3172       java.lang.Object ref = logsUri_;
3173       if (!(ref instanceof java.lang.String)) {
3174         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3175         java.lang.String s = bs.toStringUtf8();
3176         logsUri_ = s;
3177         return s;
3178       } else {
3179         return (java.lang.String) ref;
3180       }
3181     }
3182     /**
3183      *
3184      *
3185      * <pre>
3186      * URI where any logs for this provenance were written.
3187      * </pre>
3188      *
3189      * <code>string logs_uri = 9;</code>
3190      *
3191      * @return The bytes for logsUri.
3192      */
getLogsUriBytes()3193     public com.google.protobuf.ByteString getLogsUriBytes() {
3194       java.lang.Object ref = logsUri_;
3195       if (ref instanceof String) {
3196         com.google.protobuf.ByteString b =
3197             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3198         logsUri_ = b;
3199         return b;
3200       } else {
3201         return (com.google.protobuf.ByteString) ref;
3202       }
3203     }
3204     /**
3205      *
3206      *
3207      * <pre>
3208      * URI where any logs for this provenance were written.
3209      * </pre>
3210      *
3211      * <code>string logs_uri = 9;</code>
3212      *
3213      * @param value The logsUri to set.
3214      * @return This builder for chaining.
3215      */
setLogsUri(java.lang.String value)3216     public Builder setLogsUri(java.lang.String value) {
3217       if (value == null) {
3218         throw new NullPointerException();
3219       }
3220       logsUri_ = value;
3221       bitField0_ |= 0x00000100;
3222       onChanged();
3223       return this;
3224     }
3225     /**
3226      *
3227      *
3228      * <pre>
3229      * URI where any logs for this provenance were written.
3230      * </pre>
3231      *
3232      * <code>string logs_uri = 9;</code>
3233      *
3234      * @return This builder for chaining.
3235      */
clearLogsUri()3236     public Builder clearLogsUri() {
3237       logsUri_ = getDefaultInstance().getLogsUri();
3238       bitField0_ = (bitField0_ & ~0x00000100);
3239       onChanged();
3240       return this;
3241     }
3242     /**
3243      *
3244      *
3245      * <pre>
3246      * URI where any logs for this provenance were written.
3247      * </pre>
3248      *
3249      * <code>string logs_uri = 9;</code>
3250      *
3251      * @param value The bytes for logsUri to set.
3252      * @return This builder for chaining.
3253      */
setLogsUriBytes(com.google.protobuf.ByteString value)3254     public Builder setLogsUriBytes(com.google.protobuf.ByteString value) {
3255       if (value == null) {
3256         throw new NullPointerException();
3257       }
3258       checkByteStringIsUtf8(value);
3259       logsUri_ = value;
3260       bitField0_ |= 0x00000100;
3261       onChanged();
3262       return this;
3263     }
3264 
3265     private io.grafeas.v1.Source sourceProvenance_;
3266     private com.google.protobuf.SingleFieldBuilderV3<
3267             io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>
3268         sourceProvenanceBuilder_;
3269     /**
3270      *
3271      *
3272      * <pre>
3273      * Details of the Source input to the build.
3274      * </pre>
3275      *
3276      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3277      *
3278      * @return Whether the sourceProvenance field is set.
3279      */
hasSourceProvenance()3280     public boolean hasSourceProvenance() {
3281       return ((bitField0_ & 0x00000200) != 0);
3282     }
3283     /**
3284      *
3285      *
3286      * <pre>
3287      * Details of the Source input to the build.
3288      * </pre>
3289      *
3290      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3291      *
3292      * @return The sourceProvenance.
3293      */
getSourceProvenance()3294     public io.grafeas.v1.Source getSourceProvenance() {
3295       if (sourceProvenanceBuilder_ == null) {
3296         return sourceProvenance_ == null
3297             ? io.grafeas.v1.Source.getDefaultInstance()
3298             : sourceProvenance_;
3299       } else {
3300         return sourceProvenanceBuilder_.getMessage();
3301       }
3302     }
3303     /**
3304      *
3305      *
3306      * <pre>
3307      * Details of the Source input to the build.
3308      * </pre>
3309      *
3310      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3311      */
setSourceProvenance(io.grafeas.v1.Source value)3312     public Builder setSourceProvenance(io.grafeas.v1.Source value) {
3313       if (sourceProvenanceBuilder_ == null) {
3314         if (value == null) {
3315           throw new NullPointerException();
3316         }
3317         sourceProvenance_ = value;
3318       } else {
3319         sourceProvenanceBuilder_.setMessage(value);
3320       }
3321       bitField0_ |= 0x00000200;
3322       onChanged();
3323       return this;
3324     }
3325     /**
3326      *
3327      *
3328      * <pre>
3329      * Details of the Source input to the build.
3330      * </pre>
3331      *
3332      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3333      */
setSourceProvenance(io.grafeas.v1.Source.Builder builderForValue)3334     public Builder setSourceProvenance(io.grafeas.v1.Source.Builder builderForValue) {
3335       if (sourceProvenanceBuilder_ == null) {
3336         sourceProvenance_ = builderForValue.build();
3337       } else {
3338         sourceProvenanceBuilder_.setMessage(builderForValue.build());
3339       }
3340       bitField0_ |= 0x00000200;
3341       onChanged();
3342       return this;
3343     }
3344     /**
3345      *
3346      *
3347      * <pre>
3348      * Details of the Source input to the build.
3349      * </pre>
3350      *
3351      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3352      */
mergeSourceProvenance(io.grafeas.v1.Source value)3353     public Builder mergeSourceProvenance(io.grafeas.v1.Source value) {
3354       if (sourceProvenanceBuilder_ == null) {
3355         if (((bitField0_ & 0x00000200) != 0)
3356             && sourceProvenance_ != null
3357             && sourceProvenance_ != io.grafeas.v1.Source.getDefaultInstance()) {
3358           getSourceProvenanceBuilder().mergeFrom(value);
3359         } else {
3360           sourceProvenance_ = value;
3361         }
3362       } else {
3363         sourceProvenanceBuilder_.mergeFrom(value);
3364       }
3365       bitField0_ |= 0x00000200;
3366       onChanged();
3367       return this;
3368     }
3369     /**
3370      *
3371      *
3372      * <pre>
3373      * Details of the Source input to the build.
3374      * </pre>
3375      *
3376      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3377      */
clearSourceProvenance()3378     public Builder clearSourceProvenance() {
3379       bitField0_ = (bitField0_ & ~0x00000200);
3380       sourceProvenance_ = null;
3381       if (sourceProvenanceBuilder_ != null) {
3382         sourceProvenanceBuilder_.dispose();
3383         sourceProvenanceBuilder_ = null;
3384       }
3385       onChanged();
3386       return this;
3387     }
3388     /**
3389      *
3390      *
3391      * <pre>
3392      * Details of the Source input to the build.
3393      * </pre>
3394      *
3395      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3396      */
getSourceProvenanceBuilder()3397     public io.grafeas.v1.Source.Builder getSourceProvenanceBuilder() {
3398       bitField0_ |= 0x00000200;
3399       onChanged();
3400       return getSourceProvenanceFieldBuilder().getBuilder();
3401     }
3402     /**
3403      *
3404      *
3405      * <pre>
3406      * Details of the Source input to the build.
3407      * </pre>
3408      *
3409      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3410      */
getSourceProvenanceOrBuilder()3411     public io.grafeas.v1.SourceOrBuilder getSourceProvenanceOrBuilder() {
3412       if (sourceProvenanceBuilder_ != null) {
3413         return sourceProvenanceBuilder_.getMessageOrBuilder();
3414       } else {
3415         return sourceProvenance_ == null
3416             ? io.grafeas.v1.Source.getDefaultInstance()
3417             : sourceProvenance_;
3418       }
3419     }
3420     /**
3421      *
3422      *
3423      * <pre>
3424      * Details of the Source input to the build.
3425      * </pre>
3426      *
3427      * <code>.grafeas.v1.Source source_provenance = 10;</code>
3428      */
3429     private com.google.protobuf.SingleFieldBuilderV3<
3430             io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>
getSourceProvenanceFieldBuilder()3431         getSourceProvenanceFieldBuilder() {
3432       if (sourceProvenanceBuilder_ == null) {
3433         sourceProvenanceBuilder_ =
3434             new com.google.protobuf.SingleFieldBuilderV3<
3435                 io.grafeas.v1.Source, io.grafeas.v1.Source.Builder, io.grafeas.v1.SourceOrBuilder>(
3436                 getSourceProvenance(), getParentForChildren(), isClean());
3437         sourceProvenance_ = null;
3438       }
3439       return sourceProvenanceBuilder_;
3440     }
3441 
3442     private java.lang.Object triggerId_ = "";
3443     /**
3444      *
3445      *
3446      * <pre>
3447      * Trigger identifier if the build was triggered automatically; empty if not.
3448      * </pre>
3449      *
3450      * <code>string trigger_id = 11;</code>
3451      *
3452      * @return The triggerId.
3453      */
getTriggerId()3454     public java.lang.String getTriggerId() {
3455       java.lang.Object ref = triggerId_;
3456       if (!(ref instanceof java.lang.String)) {
3457         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3458         java.lang.String s = bs.toStringUtf8();
3459         triggerId_ = s;
3460         return s;
3461       } else {
3462         return (java.lang.String) ref;
3463       }
3464     }
3465     /**
3466      *
3467      *
3468      * <pre>
3469      * Trigger identifier if the build was triggered automatically; empty if not.
3470      * </pre>
3471      *
3472      * <code>string trigger_id = 11;</code>
3473      *
3474      * @return The bytes for triggerId.
3475      */
getTriggerIdBytes()3476     public com.google.protobuf.ByteString getTriggerIdBytes() {
3477       java.lang.Object ref = triggerId_;
3478       if (ref instanceof String) {
3479         com.google.protobuf.ByteString b =
3480             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3481         triggerId_ = b;
3482         return b;
3483       } else {
3484         return (com.google.protobuf.ByteString) ref;
3485       }
3486     }
3487     /**
3488      *
3489      *
3490      * <pre>
3491      * Trigger identifier if the build was triggered automatically; empty if not.
3492      * </pre>
3493      *
3494      * <code>string trigger_id = 11;</code>
3495      *
3496      * @param value The triggerId to set.
3497      * @return This builder for chaining.
3498      */
setTriggerId(java.lang.String value)3499     public Builder setTriggerId(java.lang.String value) {
3500       if (value == null) {
3501         throw new NullPointerException();
3502       }
3503       triggerId_ = value;
3504       bitField0_ |= 0x00000400;
3505       onChanged();
3506       return this;
3507     }
3508     /**
3509      *
3510      *
3511      * <pre>
3512      * Trigger identifier if the build was triggered automatically; empty if not.
3513      * </pre>
3514      *
3515      * <code>string trigger_id = 11;</code>
3516      *
3517      * @return This builder for chaining.
3518      */
clearTriggerId()3519     public Builder clearTriggerId() {
3520       triggerId_ = getDefaultInstance().getTriggerId();
3521       bitField0_ = (bitField0_ & ~0x00000400);
3522       onChanged();
3523       return this;
3524     }
3525     /**
3526      *
3527      *
3528      * <pre>
3529      * Trigger identifier if the build was triggered automatically; empty if not.
3530      * </pre>
3531      *
3532      * <code>string trigger_id = 11;</code>
3533      *
3534      * @param value The bytes for triggerId to set.
3535      * @return This builder for chaining.
3536      */
setTriggerIdBytes(com.google.protobuf.ByteString value)3537     public Builder setTriggerIdBytes(com.google.protobuf.ByteString value) {
3538       if (value == null) {
3539         throw new NullPointerException();
3540       }
3541       checkByteStringIsUtf8(value);
3542       triggerId_ = value;
3543       bitField0_ |= 0x00000400;
3544       onChanged();
3545       return this;
3546     }
3547 
3548     private com.google.protobuf.MapField<java.lang.String, java.lang.String> buildOptions_;
3549 
3550     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetBuildOptions()3551         internalGetBuildOptions() {
3552       if (buildOptions_ == null) {
3553         return com.google.protobuf.MapField.emptyMapField(
3554             BuildOptionsDefaultEntryHolder.defaultEntry);
3555       }
3556       return buildOptions_;
3557     }
3558 
3559     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableBuildOptions()3560         internalGetMutableBuildOptions() {
3561       if (buildOptions_ == null) {
3562         buildOptions_ =
3563             com.google.protobuf.MapField.newMapField(BuildOptionsDefaultEntryHolder.defaultEntry);
3564       }
3565       if (!buildOptions_.isMutable()) {
3566         buildOptions_ = buildOptions_.copy();
3567       }
3568       bitField0_ |= 0x00000800;
3569       onChanged();
3570       return buildOptions_;
3571     }
3572 
getBuildOptionsCount()3573     public int getBuildOptionsCount() {
3574       return internalGetBuildOptions().getMap().size();
3575     }
3576     /**
3577      *
3578      *
3579      * <pre>
3580      * Special options applied to this build. This is a catch-all field where
3581      * build providers can enter any desired additional details.
3582      * </pre>
3583      *
3584      * <code>map&lt;string, string&gt; build_options = 12;</code>
3585      */
3586     @java.lang.Override
containsBuildOptions(java.lang.String key)3587     public boolean containsBuildOptions(java.lang.String key) {
3588       if (key == null) {
3589         throw new NullPointerException("map key");
3590       }
3591       return internalGetBuildOptions().getMap().containsKey(key);
3592     }
3593     /** Use {@link #getBuildOptionsMap()} instead. */
3594     @java.lang.Override
3595     @java.lang.Deprecated
getBuildOptions()3596     public java.util.Map<java.lang.String, java.lang.String> getBuildOptions() {
3597       return getBuildOptionsMap();
3598     }
3599     /**
3600      *
3601      *
3602      * <pre>
3603      * Special options applied to this build. This is a catch-all field where
3604      * build providers can enter any desired additional details.
3605      * </pre>
3606      *
3607      * <code>map&lt;string, string&gt; build_options = 12;</code>
3608      */
3609     @java.lang.Override
getBuildOptionsMap()3610     public java.util.Map<java.lang.String, java.lang.String> getBuildOptionsMap() {
3611       return internalGetBuildOptions().getMap();
3612     }
3613     /**
3614      *
3615      *
3616      * <pre>
3617      * Special options applied to this build. This is a catch-all field where
3618      * build providers can enter any desired additional details.
3619      * </pre>
3620      *
3621      * <code>map&lt;string, string&gt; build_options = 12;</code>
3622      */
3623     @java.lang.Override
getBuildOptionsOrDefault( java.lang.String key, java.lang.String defaultValue)3624     public /* nullable */ java.lang.String getBuildOptionsOrDefault(
3625         java.lang.String key,
3626         /* nullable */
3627         java.lang.String defaultValue) {
3628       if (key == null) {
3629         throw new NullPointerException("map key");
3630       }
3631       java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildOptions().getMap();
3632       return map.containsKey(key) ? map.get(key) : defaultValue;
3633     }
3634     /**
3635      *
3636      *
3637      * <pre>
3638      * Special options applied to this build. This is a catch-all field where
3639      * build providers can enter any desired additional details.
3640      * </pre>
3641      *
3642      * <code>map&lt;string, string&gt; build_options = 12;</code>
3643      */
3644     @java.lang.Override
getBuildOptionsOrThrow(java.lang.String key)3645     public java.lang.String getBuildOptionsOrThrow(java.lang.String key) {
3646       if (key == null) {
3647         throw new NullPointerException("map key");
3648       }
3649       java.util.Map<java.lang.String, java.lang.String> map = internalGetBuildOptions().getMap();
3650       if (!map.containsKey(key)) {
3651         throw new java.lang.IllegalArgumentException();
3652       }
3653       return map.get(key);
3654     }
3655 
clearBuildOptions()3656     public Builder clearBuildOptions() {
3657       bitField0_ = (bitField0_ & ~0x00000800);
3658       internalGetMutableBuildOptions().getMutableMap().clear();
3659       return this;
3660     }
3661     /**
3662      *
3663      *
3664      * <pre>
3665      * Special options applied to this build. This is a catch-all field where
3666      * build providers can enter any desired additional details.
3667      * </pre>
3668      *
3669      * <code>map&lt;string, string&gt; build_options = 12;</code>
3670      */
removeBuildOptions(java.lang.String key)3671     public Builder removeBuildOptions(java.lang.String key) {
3672       if (key == null) {
3673         throw new NullPointerException("map key");
3674       }
3675       internalGetMutableBuildOptions().getMutableMap().remove(key);
3676       return this;
3677     }
3678     /** Use alternate mutation accessors instead. */
3679     @java.lang.Deprecated
getMutableBuildOptions()3680     public java.util.Map<java.lang.String, java.lang.String> getMutableBuildOptions() {
3681       bitField0_ |= 0x00000800;
3682       return internalGetMutableBuildOptions().getMutableMap();
3683     }
3684     /**
3685      *
3686      *
3687      * <pre>
3688      * Special options applied to this build. This is a catch-all field where
3689      * build providers can enter any desired additional details.
3690      * </pre>
3691      *
3692      * <code>map&lt;string, string&gt; build_options = 12;</code>
3693      */
putBuildOptions(java.lang.String key, java.lang.String value)3694     public Builder putBuildOptions(java.lang.String key, java.lang.String value) {
3695       if (key == null) {
3696         throw new NullPointerException("map key");
3697       }
3698       if (value == null) {
3699         throw new NullPointerException("map value");
3700       }
3701       internalGetMutableBuildOptions().getMutableMap().put(key, value);
3702       bitField0_ |= 0x00000800;
3703       return this;
3704     }
3705     /**
3706      *
3707      *
3708      * <pre>
3709      * Special options applied to this build. This is a catch-all field where
3710      * build providers can enter any desired additional details.
3711      * </pre>
3712      *
3713      * <code>map&lt;string, string&gt; build_options = 12;</code>
3714      */
putAllBuildOptions(java.util.Map<java.lang.String, java.lang.String> values)3715     public Builder putAllBuildOptions(java.util.Map<java.lang.String, java.lang.String> values) {
3716       internalGetMutableBuildOptions().getMutableMap().putAll(values);
3717       bitField0_ |= 0x00000800;
3718       return this;
3719     }
3720 
3721     private java.lang.Object builderVersion_ = "";
3722     /**
3723      *
3724      *
3725      * <pre>
3726      * Version string of the builder at the time this build was executed.
3727      * </pre>
3728      *
3729      * <code>string builder_version = 13;</code>
3730      *
3731      * @return The builderVersion.
3732      */
getBuilderVersion()3733     public java.lang.String getBuilderVersion() {
3734       java.lang.Object ref = builderVersion_;
3735       if (!(ref instanceof java.lang.String)) {
3736         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3737         java.lang.String s = bs.toStringUtf8();
3738         builderVersion_ = s;
3739         return s;
3740       } else {
3741         return (java.lang.String) ref;
3742       }
3743     }
3744     /**
3745      *
3746      *
3747      * <pre>
3748      * Version string of the builder at the time this build was executed.
3749      * </pre>
3750      *
3751      * <code>string builder_version = 13;</code>
3752      *
3753      * @return The bytes for builderVersion.
3754      */
getBuilderVersionBytes()3755     public com.google.protobuf.ByteString getBuilderVersionBytes() {
3756       java.lang.Object ref = builderVersion_;
3757       if (ref instanceof String) {
3758         com.google.protobuf.ByteString b =
3759             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3760         builderVersion_ = b;
3761         return b;
3762       } else {
3763         return (com.google.protobuf.ByteString) ref;
3764       }
3765     }
3766     /**
3767      *
3768      *
3769      * <pre>
3770      * Version string of the builder at the time this build was executed.
3771      * </pre>
3772      *
3773      * <code>string builder_version = 13;</code>
3774      *
3775      * @param value The builderVersion to set.
3776      * @return This builder for chaining.
3777      */
setBuilderVersion(java.lang.String value)3778     public Builder setBuilderVersion(java.lang.String value) {
3779       if (value == null) {
3780         throw new NullPointerException();
3781       }
3782       builderVersion_ = value;
3783       bitField0_ |= 0x00001000;
3784       onChanged();
3785       return this;
3786     }
3787     /**
3788      *
3789      *
3790      * <pre>
3791      * Version string of the builder at the time this build was executed.
3792      * </pre>
3793      *
3794      * <code>string builder_version = 13;</code>
3795      *
3796      * @return This builder for chaining.
3797      */
clearBuilderVersion()3798     public Builder clearBuilderVersion() {
3799       builderVersion_ = getDefaultInstance().getBuilderVersion();
3800       bitField0_ = (bitField0_ & ~0x00001000);
3801       onChanged();
3802       return this;
3803     }
3804     /**
3805      *
3806      *
3807      * <pre>
3808      * Version string of the builder at the time this build was executed.
3809      * </pre>
3810      *
3811      * <code>string builder_version = 13;</code>
3812      *
3813      * @param value The bytes for builderVersion to set.
3814      * @return This builder for chaining.
3815      */
setBuilderVersionBytes(com.google.protobuf.ByteString value)3816     public Builder setBuilderVersionBytes(com.google.protobuf.ByteString value) {
3817       if (value == null) {
3818         throw new NullPointerException();
3819       }
3820       checkByteStringIsUtf8(value);
3821       builderVersion_ = value;
3822       bitField0_ |= 0x00001000;
3823       onChanged();
3824       return this;
3825     }
3826 
3827     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3828     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3829       return super.setUnknownFields(unknownFields);
3830     }
3831 
3832     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3833     public final Builder mergeUnknownFields(
3834         final com.google.protobuf.UnknownFieldSet unknownFields) {
3835       return super.mergeUnknownFields(unknownFields);
3836     }
3837 
3838     // @@protoc_insertion_point(builder_scope:grafeas.v1.BuildProvenance)
3839   }
3840 
3841   // @@protoc_insertion_point(class_scope:grafeas.v1.BuildProvenance)
3842   private static final io.grafeas.v1.BuildProvenance DEFAULT_INSTANCE;
3843 
3844   static {
3845     DEFAULT_INSTANCE = new io.grafeas.v1.BuildProvenance();
3846   }
3847 
getDefaultInstance()3848   public static io.grafeas.v1.BuildProvenance getDefaultInstance() {
3849     return DEFAULT_INSTANCE;
3850   }
3851 
3852   private static final com.google.protobuf.Parser<BuildProvenance> PARSER =
3853       new com.google.protobuf.AbstractParser<BuildProvenance>() {
3854         @java.lang.Override
3855         public BuildProvenance parsePartialFrom(
3856             com.google.protobuf.CodedInputStream input,
3857             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3858             throws com.google.protobuf.InvalidProtocolBufferException {
3859           Builder builder = newBuilder();
3860           try {
3861             builder.mergeFrom(input, extensionRegistry);
3862           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3863             throw e.setUnfinishedMessage(builder.buildPartial());
3864           } catch (com.google.protobuf.UninitializedMessageException e) {
3865             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3866           } catch (java.io.IOException e) {
3867             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3868                 .setUnfinishedMessage(builder.buildPartial());
3869           }
3870           return builder.buildPartial();
3871         }
3872       };
3873 
parser()3874   public static com.google.protobuf.Parser<BuildProvenance> parser() {
3875     return PARSER;
3876   }
3877 
3878   @java.lang.Override
getParserForType()3879   public com.google.protobuf.Parser<BuildProvenance> getParserForType() {
3880     return PARSER;
3881   }
3882 
3883   @java.lang.Override
getDefaultInstanceForType()3884   public io.grafeas.v1.BuildProvenance getDefaultInstanceForType() {
3885     return DEFAULT_INSTANCE;
3886   }
3887 }
3888