@@ -54,73 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54
54
return this .unknownFields ;
55
55
}
56
56
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
-
124
57
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
125
58
return com .google .cloud .networkmanagement .v1 .TraceProto
126
59
.internal_static_google_cloud_networkmanagement_v1_AbortInfo_descriptor ;
@@ -790,7 +723,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
790
723
com .google .protobuf .GeneratedMessageV3 .writeString (
791
724
output , 3 , projectsMissingPermission_ .getRaw (i ));
792
725
}
793
- unknownFields .writeTo (output );
726
+ getUnknownFields () .writeTo (output );
794
727
}
795
728
796
729
@ java .lang .Override
@@ -814,7 +747,7 @@ public int getSerializedSize() {
814
747
size += dataSize ;
815
748
size += 1 * getProjectsMissingPermissionList ().size ();
816
749
}
817
- size += unknownFields .getSerializedSize ();
750
+ size += getUnknownFields () .getSerializedSize ();
818
751
memoizedSize = size ;
819
752
return size ;
820
753
}
@@ -834,7 +767,7 @@ public boolean equals(final java.lang.Object obj) {
834
767
if (!getResourceUri ().equals (other .getResourceUri ())) return false ;
835
768
if (!getProjectsMissingPermissionList ().equals (other .getProjectsMissingPermissionList ()))
836
769
return false ;
837
- if (!unknownFields .equals (other .unknownFields )) return false ;
770
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
838
771
return true ;
839
772
}
840
773
@@ -853,7 +786,7 @@ public int hashCode() {
853
786
hash = (37 * hash ) + PROJECTS_MISSING_PERMISSION_FIELD_NUMBER ;
854
787
hash = (53 * hash ) + getProjectsMissingPermissionList ().hashCode ();
855
788
}
856
- hash = (29 * hash ) + unknownFields .hashCode ();
789
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
857
790
memoizedHashCode = hash ;
858
791
return hash ;
859
792
}
@@ -982,17 +915,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
982
915
}
983
916
984
917
// Construct using com.google.cloud.networkmanagement.v1.AbortInfo.newBuilder()
985
- private Builder () {
986
- maybeForceBuilderInitialization ();
987
- }
918
+ private Builder () {}
988
919
989
920
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
990
921
super (parent );
991
- maybeForceBuilderInitialization ();
992
- }
993
-
994
- private void maybeForceBuilderInitialization () {
995
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
996
922
}
997
923
998
924
@ java .lang .Override
@@ -1106,7 +1032,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.AbortInfo other)
1106
1032
}
1107
1033
onChanged ();
1108
1034
}
1109
- this .mergeUnknownFields (other .unknownFields );
1035
+ this .mergeUnknownFields (other .getUnknownFields () );
1110
1036
onChanged ();
1111
1037
return this ;
1112
1038
}
@@ -1121,17 +1047,50 @@ public Builder mergeFrom(
1121
1047
com .google .protobuf .CodedInputStream input ,
1122
1048
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1123
1049
throws java .io .IOException {
1124
- com .google .cloud .networkmanagement .v1 .AbortInfo parsedMessage = null ;
1050
+ if (extensionRegistry == null ) {
1051
+ throw new java .lang .NullPointerException ();
1052
+ }
1125
1053
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)
1127
1089
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1128
- parsedMessage = (com .google .cloud .networkmanagement .v1 .AbortInfo ) e .getUnfinishedMessage ();
1129
1090
throw e .unwrapIOException ();
1130
1091
} finally {
1131
- if (parsedMessage != null ) {
1132
- mergeFrom (parsedMessage );
1133
- }
1134
- }
1092
+ onChanged ();
1093
+ } // finally
1135
1094
return this ;
1136
1095
}
1137
1096
@@ -1555,7 +1514,18 @@ public AbortInfo parsePartialFrom(
1555
1514
com .google .protobuf .CodedInputStream input ,
1556
1515
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1557
1516
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 ();
1559
1529
}
1560
1530
};
1561
1531
0 commit comments