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