@@ -54,99 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
57- private AutoscalingEvent (
58- com .google .protobuf .CodedInputStream input ,
59- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
60- throws com .google .protobuf .InvalidProtocolBufferException {
61- this ();
62- if (extensionRegistry == null ) {
63- throw new java .lang .NullPointerException ();
64- }
65- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
66- com .google .protobuf .UnknownFieldSet .newBuilder ();
67- try {
68- boolean done = false ;
69- while (!done ) {
70- int tag = input .readTag ();
71- switch (tag ) {
72- case 0 :
73- done = true ;
74- break ;
75- case 8 :
76- {
77- currentNumWorkers_ = input .readInt64 ();
78- break ;
79- }
80- case 16 :
81- {
82- targetNumWorkers_ = input .readInt64 ();
83- break ;
84- }
85- case 24 :
86- {
87- int rawValue = input .readEnum ();
88-
89- eventType_ = rawValue ;
90- break ;
91- }
92- case 34 :
93- {
94- com .google .dataflow .v1beta3 .StructuredMessage .Builder subBuilder = null ;
95- if (description_ != null ) {
96- subBuilder = description_ .toBuilder ();
97- }
98- description_ =
99- input .readMessage (
100- com .google .dataflow .v1beta3 .StructuredMessage .parser (), extensionRegistry );
101- if (subBuilder != null ) {
102- subBuilder .mergeFrom (description_ );
103- description_ = subBuilder .buildPartial ();
104- }
105-
106- break ;
107- }
108- case 42 :
109- {
110- com .google .protobuf .Timestamp .Builder subBuilder = null ;
111- if (time_ != null ) {
112- subBuilder = time_ .toBuilder ();
113- }
114- time_ = input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
115- if (subBuilder != null ) {
116- subBuilder .mergeFrom (time_ );
117- time_ = subBuilder .buildPartial ();
118- }
119-
120- break ;
121- }
122- case 58 :
123- {
124- java .lang .String s = input .readStringRequireUtf8 ();
125-
126- workerPool_ = s ;
127- break ;
128- }
129- default :
130- {
131- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
132- done = true ;
133- }
134- break ;
135- }
136- }
137- }
138- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
139- throw e .setUnfinishedMessage (this );
140- } catch (com .google .protobuf .UninitializedMessageException e ) {
141- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
142- } catch (java .io .IOException e ) {
143- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
144- } finally {
145- this .unknownFields = unknownFields .build ();
146- makeExtensionsImmutable ();
147- }
148- }
149-
15057 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
15158 return com .google .dataflow .v1beta3 .MessagesProto
15259 .internal_static_google_dataflow_v1beta3_AutoscalingEvent_descriptor ;
@@ -646,7 +553,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
646553 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (workerPool_ )) {
647554 com .google .protobuf .GeneratedMessageV3 .writeString (output , 7 , workerPool_ );
648555 }
649- unknownFields .writeTo (output );
556+ getUnknownFields () .writeTo (output );
650557 }
651558
652559 @ java .lang .Override
@@ -675,7 +582,7 @@ public int getSerializedSize() {
675582 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (workerPool_ )) {
676583 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (7 , workerPool_ );
677584 }
678- size += unknownFields .getSerializedSize ();
585+ size += getUnknownFields () .getSerializedSize ();
679586 memoizedSize = size ;
680587 return size ;
681588 }
@@ -703,7 +610,7 @@ public boolean equals(final java.lang.Object obj) {
703610 if (!getTime ().equals (other .getTime ())) return false ;
704611 }
705612 if (!getWorkerPool ().equals (other .getWorkerPool ())) return false ;
706- if (!unknownFields .equals (other .unknownFields )) return false ;
613+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
707614 return true ;
708615 }
709616
@@ -730,7 +637,7 @@ public int hashCode() {
730637 }
731638 hash = (37 * hash ) + WORKER_POOL_FIELD_NUMBER ;
732639 hash = (53 * hash ) + getWorkerPool ().hashCode ();
733- hash = (29 * hash ) + unknownFields .hashCode ();
640+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
734641 memoizedHashCode = hash ;
735642 return hash ;
736643 }
@@ -860,17 +767,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
860767 }
861768
862769 // Construct using com.google.dataflow.v1beta3.AutoscalingEvent.newBuilder()
863- private Builder () {
864- maybeForceBuilderInitialization ();
865- }
770+ private Builder () {}
866771
867772 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
868773 super (parent );
869- maybeForceBuilderInitialization ();
870- }
871-
872- private void maybeForceBuilderInitialization () {
873- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
874774 }
875775
876776 @ java .lang .Override
@@ -1005,7 +905,7 @@ public Builder mergeFrom(com.google.dataflow.v1beta3.AutoscalingEvent other) {
1005905 workerPool_ = other .workerPool_ ;
1006906 onChanged ();
1007907 }
1008- this .mergeUnknownFields (other .unknownFields );
908+ this .mergeUnknownFields (other .getUnknownFields () );
1009909 onChanged ();
1010910 return this ;
1011911 }
@@ -1020,17 +920,67 @@ public Builder mergeFrom(
1020920 com .google .protobuf .CodedInputStream input ,
1021921 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1022922 throws java .io .IOException {
1023- com .google .dataflow .v1beta3 .AutoscalingEvent parsedMessage = null ;
923+ if (extensionRegistry == null ) {
924+ throw new java .lang .NullPointerException ();
925+ }
1024926 try {
1025- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
927+ boolean done = false ;
928+ while (!done ) {
929+ int tag = input .readTag ();
930+ switch (tag ) {
931+ case 0 :
932+ done = true ;
933+ break ;
934+ case 8 :
935+ {
936+ currentNumWorkers_ = input .readInt64 ();
937+
938+ break ;
939+ } // case 8
940+ case 16 :
941+ {
942+ targetNumWorkers_ = input .readInt64 ();
943+
944+ break ;
945+ } // case 16
946+ case 24 :
947+ {
948+ eventType_ = input .readEnum ();
949+
950+ break ;
951+ } // case 24
952+ case 34 :
953+ {
954+ input .readMessage (getDescriptionFieldBuilder ().getBuilder (), extensionRegistry );
955+
956+ break ;
957+ } // case 34
958+ case 42 :
959+ {
960+ input .readMessage (getTimeFieldBuilder ().getBuilder (), extensionRegistry );
961+
962+ break ;
963+ } // case 42
964+ case 58 :
965+ {
966+ workerPool_ = input .readStringRequireUtf8 ();
967+
968+ break ;
969+ } // case 58
970+ default :
971+ {
972+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
973+ done = true ; // was an endgroup tag
974+ }
975+ break ;
976+ } // default:
977+ } // switch (tag)
978+ } // while (!done)
1026979 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1027- parsedMessage = (com .google .dataflow .v1beta3 .AutoscalingEvent ) e .getUnfinishedMessage ();
1028980 throw e .unwrapIOException ();
1029981 } finally {
1030- if (parsedMessage != null ) {
1031- mergeFrom (parsedMessage );
1032- }
1033- }
982+ onChanged ();
983+ } // finally
1034984 return this ;
1035985 }
1036986
@@ -1761,7 +1711,18 @@ public AutoscalingEvent parsePartialFrom(
17611711 com .google .protobuf .CodedInputStream input ,
17621712 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
17631713 throws com .google .protobuf .InvalidProtocolBufferException {
1764- return new AutoscalingEvent (input , extensionRegistry );
1714+ Builder builder = newBuilder ();
1715+ try {
1716+ builder .mergeFrom (input , extensionRegistry );
1717+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1718+ throw e .setUnfinishedMessage (builder .buildPartial ());
1719+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1720+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1721+ } catch (java .io .IOException e ) {
1722+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1723+ .setUnfinishedMessage (builder .buildPartial ());
1724+ }
1725+ return builder .buildPartial ();
17651726 }
17661727 };
17671728
0 commit comments