@@ -56,72 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5656 return this .unknownFields ;
5757 }
5858
59- private BatchCalculateEffectiveSettingsRequest (
60- com .google .protobuf .CodedInputStream input ,
61- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
62- throws com .google .protobuf .InvalidProtocolBufferException {
63- this ();
64- if (extensionRegistry == null ) {
65- throw new java .lang .NullPointerException ();
66- }
67- int mutable_bitField0_ = 0 ;
68- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
69- com .google .protobuf .UnknownFieldSet .newBuilder ();
70- try {
71- boolean done = false ;
72- while (!done ) {
73- int tag = input .readTag ();
74- switch (tag ) {
75- case 0 :
76- done = true ;
77- break ;
78- case 10 :
79- {
80- java .lang .String s = input .readStringRequireUtf8 ();
81-
82- parent_ = s ;
83- break ;
84- }
85- case 18 :
86- {
87- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
88- requests_ =
89- new java .util .ArrayList <
90- com .google .cloud .securitycenter .settings .v1beta1
91- .CalculateEffectiveSettingsRequest >();
92- mutable_bitField0_ |= 0x00000001 ;
93- }
94- requests_ .add (
95- input .readMessage (
96- com .google .cloud .securitycenter .settings .v1beta1
97- .CalculateEffectiveSettingsRequest .parser (),
98- extensionRegistry ));
99- break ;
100- }
101- default :
102- {
103- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
104- done = true ;
105- }
106- break ;
107- }
108- }
109- }
110- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
111- throw e .setUnfinishedMessage (this );
112- } catch (com .google .protobuf .UninitializedMessageException e ) {
113- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
114- } catch (java .io .IOException e ) {
115- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
116- } finally {
117- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
118- requests_ = java .util .Collections .unmodifiableList (requests_ );
119- }
120- this .unknownFields = unknownFields .build ();
121- makeExtensionsImmutable ();
122- }
123- }
124-
12559 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
12660 return com .google .cloud .securitycenter .settings .v1beta1 .SettingsServiceProto
12761 .internal_static_google_cloud_securitycenter_settings_v1beta1_BatchCalculateEffectiveSettingsRequest_descriptor ;
@@ -311,7 +245,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
311245 for (int i = 0 ; i < requests_ .size (); i ++) {
312246 output .writeMessage (2 , requests_ .get (i ));
313247 }
314- unknownFields .writeTo (output );
248+ getUnknownFields () .writeTo (output );
315249 }
316250
317251 @ java .lang .Override
@@ -326,7 +260,7 @@ public int getSerializedSize() {
326260 for (int i = 0 ; i < requests_ .size (); i ++) {
327261 size += com .google .protobuf .CodedOutputStream .computeMessageSize (2 , requests_ .get (i ));
328262 }
329- size += unknownFields .getSerializedSize ();
263+ size += getUnknownFields () .getSerializedSize ();
330264 memoizedSize = size ;
331265 return size ;
332266 }
@@ -347,7 +281,7 @@ public boolean equals(final java.lang.Object obj) {
347281
348282 if (!getParent ().equals (other .getParent ())) return false ;
349283 if (!getRequestsList ().equals (other .getRequestsList ())) return false ;
350- if (!unknownFields .equals (other .unknownFields )) return false ;
284+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
351285 return true ;
352286 }
353287
@@ -364,7 +298,7 @@ public int hashCode() {
364298 hash = (37 * hash ) + REQUESTS_FIELD_NUMBER ;
365299 hash = (53 * hash ) + getRequestsList ().hashCode ();
366300 }
367- hash = (29 * hash ) + unknownFields .hashCode ();
301+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
368302 memoizedHashCode = hash ;
369303 return hash ;
370304 }
@@ -518,19 +452,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
518452
519453 // Construct using
520454 // com.google.cloud.securitycenter.settings.v1beta1.BatchCalculateEffectiveSettingsRequest.newBuilder()
521- private Builder () {
522- maybeForceBuilderInitialization ();
523- }
455+ private Builder () {}
524456
525457 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
526458 super (parent );
527- maybeForceBuilderInitialization ();
528- }
529-
530- private void maybeForceBuilderInitialization () {
531- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {
532- getRequestsFieldBuilder ();
533- }
534459 }
535460
536461 @ java .lang .Override
@@ -540,10 +465,11 @@ public Builder clear() {
540465
541466 if (requestsBuilder_ == null ) {
542467 requests_ = java .util .Collections .emptyList ();
543- bitField0_ = (bitField0_ & ~0x00000001 );
544468 } else {
469+ requests_ = null ;
545470 requestsBuilder_ .clear ();
546471 }
472+ bitField0_ = (bitField0_ & ~0x00000001 );
547473 return this ;
548474 }
549475
@@ -678,7 +604,7 @@ public Builder mergeFrom(
678604 }
679605 }
680606 }
681- this .mergeUnknownFields (other .unknownFields );
607+ this .mergeUnknownFields (other .getUnknownFields () );
682608 onChanged ();
683609 return this ;
684610 }
@@ -693,21 +619,53 @@ public Builder mergeFrom(
693619 com .google .protobuf .CodedInputStream input ,
694620 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
695621 throws java .io .IOException {
696- com .google .cloud .securitycenter .settings .v1beta1 .BatchCalculateEffectiveSettingsRequest
697- parsedMessage = null ;
622+ if (extensionRegistry == null ) {
623+ throw new java .lang .NullPointerException ();
624+ }
698625 try {
699- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
626+ boolean done = false ;
627+ while (!done ) {
628+ int tag = input .readTag ();
629+ switch (tag ) {
630+ case 0 :
631+ done = true ;
632+ break ;
633+ case 10 :
634+ {
635+ parent_ = input .readStringRequireUtf8 ();
636+
637+ break ;
638+ } // case 10
639+ case 18 :
640+ {
641+ com .google .cloud .securitycenter .settings .v1beta1 .CalculateEffectiveSettingsRequest
642+ m =
643+ input .readMessage (
644+ com .google .cloud .securitycenter .settings .v1beta1
645+ .CalculateEffectiveSettingsRequest .parser (),
646+ extensionRegistry );
647+ if (requestsBuilder_ == null ) {
648+ ensureRequestsIsMutable ();
649+ requests_ .add (m );
650+ } else {
651+ requestsBuilder_ .addMessage (m );
652+ }
653+ break ;
654+ } // case 18
655+ default :
656+ {
657+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
658+ done = true ; // was an endgroup tag
659+ }
660+ break ;
661+ } // default:
662+ } // switch (tag)
663+ } // while (!done)
700664 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
701- parsedMessage =
702- (com .google .cloud .securitycenter .settings .v1beta1
703- .BatchCalculateEffectiveSettingsRequest )
704- e .getUnfinishedMessage ();
705665 throw e .unwrapIOException ();
706666 } finally {
707- if (parsedMessage != null ) {
708- mergeFrom (parsedMessage );
709- }
710- }
667+ onChanged ();
668+ } // finally
711669 return this ;
712670 }
713671
@@ -1331,7 +1289,18 @@ public BatchCalculateEffectiveSettingsRequest parsePartialFrom(
13311289 com .google .protobuf .CodedInputStream input ,
13321290 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
13331291 throws com .google .protobuf .InvalidProtocolBufferException {
1334- return new BatchCalculateEffectiveSettingsRequest (input , extensionRegistry );
1292+ Builder builder = newBuilder ();
1293+ try {
1294+ builder .mergeFrom (input , extensionRegistry );
1295+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1296+ throw e .setUnfinishedMessage (builder .buildPartial ());
1297+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1298+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1299+ } catch (java .io .IOException e ) {
1300+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1301+ .setUnfinishedMessage (builder .buildPartial ());
1302+ }
1303+ return builder .buildPartial ();
13351304 }
13361305 };
13371306
0 commit comments