@@ -59,117 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5959 return this .unknownFields ;
6060 }
6161
62- private Channel (
63- com .google .protobuf .CodedInputStream input ,
64- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
65- throws com .google .protobuf .InvalidProtocolBufferException {
66- this ();
67- if (extensionRegistry == null ) {
68- throw new java .lang .NullPointerException ();
69- }
70- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
71- com .google .protobuf .UnknownFieldSet .newBuilder ();
72- try {
73- boolean done = false ;
74- while (!done ) {
75- int tag = input .readTag ();
76- switch (tag ) {
77- case 0 :
78- done = true ;
79- break ;
80- case 10 :
81- {
82- java .lang .String s = input .readStringRequireUtf8 ();
83-
84- name_ = s ;
85- break ;
86- }
87- case 18 :
88- {
89- java .lang .String s = input .readStringRequireUtf8 ();
90-
91- uid_ = s ;
92- break ;
93- }
94- case 42 :
95- {
96- com .google .protobuf .Timestamp .Builder subBuilder = null ;
97- if (createTime_ != null ) {
98- subBuilder = createTime_ .toBuilder ();
99- }
100- createTime_ =
101- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
102- if (subBuilder != null ) {
103- subBuilder .mergeFrom (createTime_ );
104- createTime_ = subBuilder .buildPartial ();
105- }
106-
107- break ;
108- }
109- case 50 :
110- {
111- com .google .protobuf .Timestamp .Builder subBuilder = null ;
112- if (updateTime_ != null ) {
113- subBuilder = updateTime_ .toBuilder ();
114- }
115- updateTime_ =
116- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
117- if (subBuilder != null ) {
118- subBuilder .mergeFrom (updateTime_ );
119- updateTime_ = subBuilder .buildPartial ();
120- }
121-
122- break ;
123- }
124- case 58 :
125- {
126- java .lang .String s = input .readStringRequireUtf8 ();
127-
128- provider_ = s ;
129- break ;
130- }
131- case 66 :
132- {
133- java .lang .String s = input .readStringRequireUtf8 ();
134- transportCase_ = 8 ;
135- transport_ = s ;
136- break ;
137- }
138- case 72 :
139- {
140- int rawValue = input .readEnum ();
141-
142- state_ = rawValue ;
143- break ;
144- }
145- case 82 :
146- {
147- java .lang .String s = input .readStringRequireUtf8 ();
148-
149- activationToken_ = s ;
150- break ;
151- }
152- default :
153- {
154- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
155- done = true ;
156- }
157- break ;
158- }
159- }
160- }
161- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
162- throw e .setUnfinishedMessage (this );
163- } catch (com .google .protobuf .UninitializedMessageException e ) {
164- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
165- } catch (java .io .IOException e ) {
166- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
167- } finally {
168- this .unknownFields = unknownFields .build ();
169- makeExtensionsImmutable ();
170- }
171- }
172-
17362 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
17463 return com .google .cloud .eventarc .v1 .ChannelProto
17564 .internal_static_google_cloud_eventarc_v1_Channel_descriptor ;
@@ -892,7 +781,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
892781 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (activationToken_ )) {
893782 com .google .protobuf .GeneratedMessageV3 .writeString (output , 10 , activationToken_ );
894783 }
895- unknownFields .writeTo (output );
784+ getUnknownFields () .writeTo (output );
896785 }
897786
898787 @ java .lang .Override
@@ -925,7 +814,7 @@ public int getSerializedSize() {
925814 if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (activationToken_ )) {
926815 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (10 , activationToken_ );
927816 }
928- size += unknownFields .getSerializedSize ();
817+ size += getUnknownFields () .getSerializedSize ();
929818 memoizedSize = size ;
930819 return size ;
931820 }
@@ -961,7 +850,7 @@ public boolean equals(final java.lang.Object obj) {
961850 case 0 :
962851 default :
963852 }
964- if (!unknownFields .equals (other .unknownFields )) return false ;
853+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
965854 return true ;
966855 }
967856
@@ -998,7 +887,7 @@ public int hashCode() {
998887 case 0 :
999888 default :
1000889 }
1001- hash = (29 * hash ) + unknownFields .hashCode ();
890+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
1002891 memoizedHashCode = hash ;
1003892 return hash ;
1004893 }
@@ -1129,17 +1018,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
11291018 }
11301019
11311020 // Construct using com.google.cloud.eventarc.v1.Channel.newBuilder()
1132- private Builder () {
1133- maybeForceBuilderInitialization ();
1134- }
1021+ private Builder () {}
11351022
11361023 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
11371024 super (parent );
1138- maybeForceBuilderInitialization ();
1139- }
1140-
1141- private void maybeForceBuilderInitialization () {
1142- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
11431025 }
11441026
11451027 @ java .lang .Override
@@ -1301,7 +1183,7 @@ public Builder mergeFrom(com.google.cloud.eventarc.v1.Channel other) {
13011183 break ;
13021184 }
13031185 }
1304- this .mergeUnknownFields (other .unknownFields );
1186+ this .mergeUnknownFields (other .getUnknownFields () );
13051187 onChanged ();
13061188 return this ;
13071189 }
@@ -1316,17 +1198,80 @@ public Builder mergeFrom(
13161198 com .google .protobuf .CodedInputStream input ,
13171199 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
13181200 throws java .io .IOException {
1319- com .google .cloud .eventarc .v1 .Channel parsedMessage = null ;
1201+ if (extensionRegistry == null ) {
1202+ throw new java .lang .NullPointerException ();
1203+ }
13201204 try {
1321- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
1205+ boolean done = false ;
1206+ while (!done ) {
1207+ int tag = input .readTag ();
1208+ switch (tag ) {
1209+ case 0 :
1210+ done = true ;
1211+ break ;
1212+ case 10 :
1213+ {
1214+ name_ = input .readStringRequireUtf8 ();
1215+
1216+ break ;
1217+ } // case 10
1218+ case 18 :
1219+ {
1220+ uid_ = input .readStringRequireUtf8 ();
1221+
1222+ break ;
1223+ } // case 18
1224+ case 42 :
1225+ {
1226+ input .readMessage (getCreateTimeFieldBuilder ().getBuilder (), extensionRegistry );
1227+
1228+ break ;
1229+ } // case 42
1230+ case 50 :
1231+ {
1232+ input .readMessage (getUpdateTimeFieldBuilder ().getBuilder (), extensionRegistry );
1233+
1234+ break ;
1235+ } // case 50
1236+ case 58 :
1237+ {
1238+ provider_ = input .readStringRequireUtf8 ();
1239+
1240+ break ;
1241+ } // case 58
1242+ case 66 :
1243+ {
1244+ java .lang .String s = input .readStringRequireUtf8 ();
1245+ transportCase_ = 8 ;
1246+ transport_ = s ;
1247+ break ;
1248+ } // case 66
1249+ case 72 :
1250+ {
1251+ state_ = input .readEnum ();
1252+
1253+ break ;
1254+ } // case 72
1255+ case 82 :
1256+ {
1257+ activationToken_ = input .readStringRequireUtf8 ();
1258+
1259+ break ;
1260+ } // case 82
1261+ default :
1262+ {
1263+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
1264+ done = true ; // was an endgroup tag
1265+ }
1266+ break ;
1267+ } // default:
1268+ } // switch (tag)
1269+ } // while (!done)
13221270 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1323- parsedMessage = (com .google .cloud .eventarc .v1 .Channel ) e .getUnfinishedMessage ();
13241271 throw e .unwrapIOException ();
13251272 } finally {
1326- if (parsedMessage != null ) {
1327- mergeFrom (parsedMessage );
1328- }
1329- }
1273+ onChanged ();
1274+ } // finally
13301275 return this ;
13311276 }
13321277
@@ -2484,7 +2429,18 @@ public Channel parsePartialFrom(
24842429 com .google .protobuf .CodedInputStream input ,
24852430 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
24862431 throws com .google .protobuf .InvalidProtocolBufferException {
2487- return new Channel (input , extensionRegistry );
2432+ Builder builder = newBuilder ();
2433+ try {
2434+ builder .mergeFrom (input , extensionRegistry );
2435+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
2436+ throw e .setUnfinishedMessage (builder .buildPartial ());
2437+ } catch (com .google .protobuf .UninitializedMessageException e ) {
2438+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
2439+ } catch (java .io .IOException e ) {
2440+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
2441+ .setUnfinishedMessage (builder .buildPartial ());
2442+ }
2443+ return builder .buildPartial ();
24882444 }
24892445 };
24902446
0 commit comments