@@ -61,66 +61,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
61
61
return this .unknownFields ;
62
62
}
63
63
64
- private CmekSettings (
65
- com .google .protobuf .CodedInputStream input ,
66
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
67
- throws com .google .protobuf .InvalidProtocolBufferException {
68
- this ();
69
- if (extensionRegistry == null ) {
70
- throw new java .lang .NullPointerException ();
71
- }
72
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
73
- com .google .protobuf .UnknownFieldSet .newBuilder ();
74
- try {
75
- boolean done = false ;
76
- while (!done ) {
77
- int tag = input .readTag ();
78
- switch (tag ) {
79
- case 0 :
80
- done = true ;
81
- break ;
82
- case 10 :
83
- {
84
- java .lang .String s = input .readStringRequireUtf8 ();
85
-
86
- name_ = s ;
87
- break ;
88
- }
89
- case 18 :
90
- {
91
- java .lang .String s = input .readStringRequireUtf8 ();
92
-
93
- kmsKeyName_ = s ;
94
- break ;
95
- }
96
- case 26 :
97
- {
98
- java .lang .String s = input .readStringRequireUtf8 ();
99
-
100
- serviceAccountId_ = s ;
101
- break ;
102
- }
103
- default :
104
- {
105
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
106
- done = true ;
107
- }
108
- break ;
109
- }
110
- }
111
- }
112
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
113
- throw e .setUnfinishedMessage (this );
114
- } catch (com .google .protobuf .UninitializedMessageException e ) {
115
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
116
- } catch (java .io .IOException e ) {
117
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
118
- } finally {
119
- this .unknownFields = unknownFields .build ();
120
- makeExtensionsImmutable ();
121
- }
122
- }
123
-
124
64
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
125
65
return com .google .logging .v2 .LoggingConfigProto
126
66
.internal_static_google_logging_v2_CmekSettings_descriptor ;
@@ -358,7 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
358
298
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccountId_ )) {
359
299
com .google .protobuf .GeneratedMessageV3 .writeString (output , 3 , serviceAccountId_ );
360
300
}
361
- unknownFields .writeTo (output );
301
+ getUnknownFields () .writeTo (output );
362
302
}
363
303
364
304
@ java .lang .Override
@@ -376,7 +316,7 @@ public int getSerializedSize() {
376
316
if (!com .google .protobuf .GeneratedMessageV3 .isStringEmpty (serviceAccountId_ )) {
377
317
size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (3 , serviceAccountId_ );
378
318
}
379
- size += unknownFields .getSerializedSize ();
319
+ size += getUnknownFields () .getSerializedSize ();
380
320
memoizedSize = size ;
381
321
return size ;
382
322
}
@@ -394,7 +334,7 @@ public boolean equals(final java.lang.Object obj) {
394
334
if (!getName ().equals (other .getName ())) return false ;
395
335
if (!getKmsKeyName ().equals (other .getKmsKeyName ())) return false ;
396
336
if (!getServiceAccountId ().equals (other .getServiceAccountId ())) return false ;
397
- if (!unknownFields .equals (other .unknownFields )) return false ;
337
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
398
338
return true ;
399
339
}
400
340
@@ -411,7 +351,7 @@ public int hashCode() {
411
351
hash = (53 * hash ) + getKmsKeyName ().hashCode ();
412
352
hash = (37 * hash ) + SERVICE_ACCOUNT_ID_FIELD_NUMBER ;
413
353
hash = (53 * hash ) + getServiceAccountId ().hashCode ();
414
- hash = (29 * hash ) + unknownFields .hashCode ();
354
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
415
355
memoizedHashCode = hash ;
416
356
return hash ;
417
357
}
@@ -546,17 +486,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
546
486
}
547
487
548
488
// Construct using com.google.logging.v2.CmekSettings.newBuilder()
549
- private Builder () {
550
- maybeForceBuilderInitialization ();
551
- }
489
+ private Builder () {}
552
490
553
491
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
554
492
super (parent );
555
- maybeForceBuilderInitialization ();
556
- }
557
-
558
- private void maybeForceBuilderInitialization () {
559
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
560
493
}
561
494
562
495
@ java .lang .Override
@@ -658,7 +591,7 @@ public Builder mergeFrom(com.google.logging.v2.CmekSettings other) {
658
591
serviceAccountId_ = other .serviceAccountId_ ;
659
592
onChanged ();
660
593
}
661
- this .mergeUnknownFields (other .unknownFields );
594
+ this .mergeUnknownFields (other .getUnknownFields () );
662
595
onChanged ();
663
596
return this ;
664
597
}
@@ -673,17 +606,49 @@ public Builder mergeFrom(
673
606
com .google .protobuf .CodedInputStream input ,
674
607
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
675
608
throws java .io .IOException {
676
- com .google .logging .v2 .CmekSettings parsedMessage = null ;
609
+ if (extensionRegistry == null ) {
610
+ throw new java .lang .NullPointerException ();
611
+ }
677
612
try {
678
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
613
+ boolean done = false ;
614
+ while (!done ) {
615
+ int tag = input .readTag ();
616
+ switch (tag ) {
617
+ case 0 :
618
+ done = true ;
619
+ break ;
620
+ case 10 :
621
+ {
622
+ name_ = input .readStringRequireUtf8 ();
623
+
624
+ break ;
625
+ } // case 10
626
+ case 18 :
627
+ {
628
+ kmsKeyName_ = input .readStringRequireUtf8 ();
629
+
630
+ break ;
631
+ } // case 18
632
+ case 26 :
633
+ {
634
+ serviceAccountId_ = input .readStringRequireUtf8 ();
635
+
636
+ break ;
637
+ } // case 26
638
+ default :
639
+ {
640
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
641
+ done = true ; // was an endgroup tag
642
+ }
643
+ break ;
644
+ } // default:
645
+ } // switch (tag)
646
+ } // while (!done)
679
647
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
680
- parsedMessage = (com .google .logging .v2 .CmekSettings ) e .getUnfinishedMessage ();
681
648
throw e .unwrapIOException ();
682
649
} finally {
683
- if (parsedMessage != null ) {
684
- mergeFrom (parsedMessage );
685
- }
686
- }
650
+ onChanged ();
651
+ } // finally
687
652
return this ;
688
653
}
689
654
@@ -1167,7 +1132,18 @@ public CmekSettings parsePartialFrom(
1167
1132
com .google .protobuf .CodedInputStream input ,
1168
1133
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1169
1134
throws com .google .protobuf .InvalidProtocolBufferException {
1170
- return new CmekSettings (input , extensionRegistry );
1135
+ Builder builder = newBuilder ();
1136
+ try {
1137
+ builder .mergeFrom (input , extensionRegistry );
1138
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1139
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1140
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1141
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1142
+ } catch (java .io .IOException e ) {
1143
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1144
+ .setUnfinishedMessage (builder .buildPartial ());
1145
+ }
1146
+ return builder .buildPartial ();
1171
1147
}
1172
1148
};
1173
1149
0 commit comments