@@ -53,68 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53
53
return this .unknownFields ;
54
54
}
55
55
56
- private AttachTrustRequest (
57
- com .google .protobuf .CodedInputStream input ,
58
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
59
- throws com .google .protobuf .InvalidProtocolBufferException {
60
- this ();
61
- if (extensionRegistry == null ) {
62
- throw new java .lang .NullPointerException ();
63
- }
64
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
65
- com .google .protobuf .UnknownFieldSet .newBuilder ();
66
- try {
67
- boolean done = false ;
68
- while (!done ) {
69
- int tag = input .readTag ();
70
- switch (tag ) {
71
- case 0 :
72
- done = true ;
73
- break ;
74
- case 10 :
75
- {
76
- java .lang .String s = input .readStringRequireUtf8 ();
77
-
78
- name_ = s ;
79
- break ;
80
- }
81
- case 18 :
82
- {
83
- com .google .cloud .managedidentities .v1 .Trust .Builder subBuilder = null ;
84
- if (trust_ != null ) {
85
- subBuilder = trust_ .toBuilder ();
86
- }
87
- trust_ =
88
- input .readMessage (
89
- com .google .cloud .managedidentities .v1 .Trust .parser (), extensionRegistry );
90
- if (subBuilder != null ) {
91
- subBuilder .mergeFrom (trust_ );
92
- trust_ = subBuilder .buildPartial ();
93
- }
94
-
95
- break ;
96
- }
97
- default :
98
- {
99
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
100
- done = true ;
101
- }
102
- break ;
103
- }
104
- }
105
- }
106
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
107
- throw e .setUnfinishedMessage (this );
108
- } catch (com .google .protobuf .UninitializedMessageException e ) {
109
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
110
- } catch (java .io .IOException e ) {
111
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
112
- } finally {
113
- this .unknownFields = unknownFields .build ();
114
- makeExtensionsImmutable ();
115
- }
116
- }
117
-
118
56
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
119
57
return com .google .cloud .managedidentities .v1 .ManagedIdentitiesServiceProto
120
58
.internal_static_google_cloud_managedidentities_v1_AttachTrustRequest_descriptor ;
@@ -259,7 +197,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
259
197
if (trust_ != null ) {
260
198
output .writeMessage (2 , getTrust ());
261
199
}
262
- unknownFields .writeTo (output );
200
+ getUnknownFields () .writeTo (output );
263
201
}
264
202
265
203
@ java .lang .Override
@@ -274,7 +212,7 @@ public int getSerializedSize() {
274
212
if (trust_ != null ) {
275
213
size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , getTrust ());
276
214
}
277
- size += unknownFields .getSerializedSize ();
215
+ size += getUnknownFields () .getSerializedSize ();
278
216
memoizedSize = size ;
279
217
return size ;
280
218
}
@@ -295,7 +233,7 @@ public boolean equals(final java.lang.Object obj) {
295
233
if (hasTrust ()) {
296
234
if (!getTrust ().equals (other .getTrust ())) return false ;
297
235
}
298
- if (!unknownFields .equals (other .unknownFields )) return false ;
236
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
299
237
return true ;
300
238
}
301
239
@@ -312,7 +250,7 @@ public int hashCode() {
312
250
hash = (37 * hash ) + TRUST_FIELD_NUMBER ;
313
251
hash = (53 * hash ) + getTrust ().hashCode ();
314
252
}
315
- hash = (29 * hash ) + unknownFields .hashCode ();
253
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
316
254
memoizedHashCode = hash ;
317
255
return hash ;
318
256
}
@@ -443,17 +381,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
443
381
}
444
382
445
383
// Construct using com.google.cloud.managedidentities.v1.AttachTrustRequest.newBuilder()
446
- private Builder () {
447
- maybeForceBuilderInitialization ();
448
- }
384
+ private Builder () {}
449
385
450
386
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
451
387
super (parent );
452
- maybeForceBuilderInitialization ();
453
- }
454
-
455
- private void maybeForceBuilderInitialization () {
456
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
457
388
}
458
389
459
390
@ java .lang .Override
@@ -557,7 +488,7 @@ public Builder mergeFrom(com.google.cloud.managedidentities.v1.AttachTrustReques
557
488
if (other .hasTrust ()) {
558
489
mergeTrust (other .getTrust ());
559
490
}
560
- this .mergeUnknownFields (other .unknownFields );
491
+ this .mergeUnknownFields (other .getUnknownFields () );
561
492
onChanged ();
562
493
return this ;
563
494
}
@@ -572,18 +503,43 @@ public Builder mergeFrom(
572
503
com .google .protobuf .CodedInputStream input ,
573
504
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
574
505
throws java .io .IOException {
575
- com .google .cloud .managedidentities .v1 .AttachTrustRequest parsedMessage = null ;
506
+ if (extensionRegistry == null ) {
507
+ throw new java .lang .NullPointerException ();
508
+ }
576
509
try {
577
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
510
+ boolean done = false ;
511
+ while (!done ) {
512
+ int tag = input .readTag ();
513
+ switch (tag ) {
514
+ case 0 :
515
+ done = true ;
516
+ break ;
517
+ case 10 :
518
+ {
519
+ name_ = input .readStringRequireUtf8 ();
520
+
521
+ break ;
522
+ } // case 10
523
+ case 18 :
524
+ {
525
+ input .readMessage (getTrustFieldBuilder ().getBuilder (), extensionRegistry );
526
+
527
+ break ;
528
+ } // case 18
529
+ default :
530
+ {
531
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
532
+ done = true ; // was an endgroup tag
533
+ }
534
+ break ;
535
+ } // default:
536
+ } // switch (tag)
537
+ } // while (!done)
578
538
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
579
- parsedMessage =
580
- (com .google .cloud .managedidentities .v1 .AttachTrustRequest ) e .getUnfinishedMessage ();
581
539
throw e .unwrapIOException ();
582
540
} finally {
583
- if (parsedMessage != null ) {
584
- mergeFrom (parsedMessage );
585
- }
586
- }
541
+ onChanged ();
542
+ } // finally
587
543
return this ;
588
544
}
589
545
@@ -943,7 +899,18 @@ public AttachTrustRequest parsePartialFrom(
943
899
com .google .protobuf .CodedInputStream input ,
944
900
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
945
901
throws com .google .protobuf .InvalidProtocolBufferException {
946
- return new AttachTrustRequest (input , extensionRegistry );
902
+ Builder builder = newBuilder ();
903
+ try {
904
+ builder .mergeFrom (input , extensionRegistry );
905
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
906
+ throw e .setUnfinishedMessage (builder .buildPartial ());
907
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
908
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
909
+ } catch (java .io .IOException e ) {
910
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
911
+ .setUnfinishedMessage (builder .buildPartial ());
912
+ }
913
+ return builder .buildPartial ();
947
914
}
948
915
};
949
916
0 commit comments