@@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5454 return this .unknownFields ;
5555 }
5656
57- private AbortInfo (
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- int mutable_bitField0_ = 0 ;
66- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
67- com .google .protobuf .UnknownFieldSet .newBuilder ();
68- try {
69- boolean done = false ;
70- while (!done ) {
71- int tag = input .readTag ();
72- switch (tag ) {
73- case 0 :
74- done = true ;
75- break ;
76- case 8 :
77- {
78- int rawValue = input .readEnum ();
79-
80- cause_ = rawValue ;
81- break ;
82- }
83- case 18 :
84- {
85- java .lang .String s = input .readStringRequireUtf8 ();
86-
87- resourceUri_ = s ;
88- break ;
89- }
90- case 26 :
91- {
92- java .lang .String s = input .readStringRequireUtf8 ();
93- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
94- projectsMissingPermission_ = new com .google .protobuf .LazyStringArrayList ();
95- mutable_bitField0_ |= 0x00000001 ;
96- }
97- projectsMissingPermission_ .add (s );
98- break ;
99- }
100- default :
101- {
102- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
103- done = true ;
104- }
105- break ;
106- }
107- }
108- }
109- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
110- throw e .setUnfinishedMessage (this );
111- } catch (com .google .protobuf .UninitializedMessageException e ) {
112- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
113- } catch (java .io .IOException e ) {
114- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
115- } finally {
116- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
117- projectsMissingPermission_ = projectsMissingPermission_ .getUnmodifiableView ();
118- }
119- this .unknownFields = unknownFields .build ();
120- makeExtensionsImmutable ();
121- }
122- }
123-
12457 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
12558 return com .google .cloud .networkmanagement .v1 .TraceProto
12659 .internal_static_google_cloud_networkmanagement_v1_AbortInfo_descriptor ;
@@ -790,7 +723,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
790723 com .google .protobuf .GeneratedMessageV3 .writeString (
791724 output , 3 , projectsMissingPermission_ .getRaw (i ));
792725 }
793- unknownFields .writeTo (output );
726+ getUnknownFields () .writeTo (output );
794727 }
795728
796729 @ java .lang .Override
@@ -814,7 +747,7 @@ public int getSerializedSize() {
814747 size += dataSize ;
815748 size += 1 * getProjectsMissingPermissionList ().size ();
816749 }
817- size += unknownFields .getSerializedSize ();
750+ size += getUnknownFields () .getSerializedSize ();
818751 memoizedSize = size ;
819752 return size ;
820753 }
@@ -834,7 +767,7 @@ public boolean equals(final java.lang.Object obj) {
834767 if (!getResourceUri ().equals (other .getResourceUri ())) return false ;
835768 if (!getProjectsMissingPermissionList ().equals (other .getProjectsMissingPermissionList ()))
836769 return false ;
837- if (!unknownFields .equals (other .unknownFields )) return false ;
770+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
838771 return true ;
839772 }
840773
@@ -853,7 +786,7 @@ public int hashCode() {
853786 hash = (37 * hash ) + PROJECTS_MISSING_PERMISSION_FIELD_NUMBER ;
854787 hash = (53 * hash ) + getProjectsMissingPermissionList ().hashCode ();
855788 }
856- hash = (29 * hash ) + unknownFields .hashCode ();
789+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
857790 memoizedHashCode = hash ;
858791 return hash ;
859792 }
@@ -982,17 +915,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
982915 }
983916
984917 // Construct using com.google.cloud.networkmanagement.v1.AbortInfo.newBuilder()
985- private Builder () {
986- maybeForceBuilderInitialization ();
987- }
918+ private Builder () {}
988919
989920 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
990921 super (parent );
991- maybeForceBuilderInitialization ();
992- }
993-
994- private void maybeForceBuilderInitialization () {
995- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
996922 }
997923
998924 @ java .lang .Override
@@ -1106,7 +1032,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.AbortInfo other)
11061032 }
11071033 onChanged ();
11081034 }
1109- this .mergeUnknownFields (other .unknownFields );
1035+ this .mergeUnknownFields (other .getUnknownFields () );
11101036 onChanged ();
11111037 return this ;
11121038 }
@@ -1121,17 +1047,50 @@ public Builder mergeFrom(
11211047 com .google .protobuf .CodedInputStream input ,
11221048 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
11231049 throws java .io .IOException {
1124- com .google .cloud .networkmanagement .v1 .AbortInfo parsedMessage = null ;
1050+ if (extensionRegistry == null ) {
1051+ throw new java .lang .NullPointerException ();
1052+ }
11251053 try {
1126- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
1054+ boolean done = false ;
1055+ while (!done ) {
1056+ int tag = input .readTag ();
1057+ switch (tag ) {
1058+ case 0 :
1059+ done = true ;
1060+ break ;
1061+ case 8 :
1062+ {
1063+ cause_ = input .readEnum ();
1064+
1065+ break ;
1066+ } // case 8
1067+ case 18 :
1068+ {
1069+ resourceUri_ = input .readStringRequireUtf8 ();
1070+
1071+ break ;
1072+ } // case 18
1073+ case 26 :
1074+ {
1075+ java .lang .String s = input .readStringRequireUtf8 ();
1076+ ensureProjectsMissingPermissionIsMutable ();
1077+ projectsMissingPermission_ .add (s );
1078+ break ;
1079+ } // case 26
1080+ default :
1081+ {
1082+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
1083+ done = true ; // was an endgroup tag
1084+ }
1085+ break ;
1086+ } // default:
1087+ } // switch (tag)
1088+ } // while (!done)
11271089 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1128- parsedMessage = (com .google .cloud .networkmanagement .v1 .AbortInfo ) e .getUnfinishedMessage ();
11291090 throw e .unwrapIOException ();
11301091 } finally {
1131- if (parsedMessage != null ) {
1132- mergeFrom (parsedMessage );
1133- }
1134- }
1092+ onChanged ();
1093+ } // finally
11351094 return this ;
11361095 }
11371096
@@ -1555,7 +1514,18 @@ public AbortInfo parsePartialFrom(
15551514 com .google .protobuf .CodedInputStream input ,
15561515 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
15571516 throws com .google .protobuf .InvalidProtocolBufferException {
1558- return new AbortInfo (input , extensionRegistry );
1517+ Builder builder = newBuilder ();
1518+ try {
1519+ builder .mergeFrom (input , extensionRegistry );
1520+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1521+ throw e .setUnfinishedMessage (builder .buildPartial ());
1522+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1523+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1524+ } catch (java .io .IOException e ) {
1525+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1526+ .setUnfinishedMessage (builder .buildPartial ());
1527+ }
1528+ return builder .buildPartial ();
15591529 }
15601530 };
15611531
0 commit comments