@@ -55,126 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55
55
return this .unknownFields ;
56
56
}
57
57
58
- private Backup (
59
- com .google .protobuf .CodedInputStream input ,
60
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
61
- throws com .google .protobuf .InvalidProtocolBufferException {
62
- this ();
63
- if (extensionRegistry == null ) {
64
- throw new java .lang .NullPointerException ();
65
- }
66
- int mutable_bitField0_ = 0 ;
67
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
68
- com .google .protobuf .UnknownFieldSet .newBuilder ();
69
- try {
70
- boolean done = false ;
71
- while (!done ) {
72
- int tag = input .readTag ();
73
- switch (tag ) {
74
- case 0 :
75
- done = true ;
76
- break ;
77
- case 10 :
78
- {
79
- java .lang .String s = input .readStringRequireUtf8 ();
80
-
81
- name_ = s ;
82
- break ;
83
- }
84
- case 18 :
85
- {
86
- com .google .protobuf .Timestamp .Builder subBuilder = null ;
87
- if (createTime_ != null ) {
88
- subBuilder = createTime_ .toBuilder ();
89
- }
90
- createTime_ =
91
- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
92
- if (subBuilder != null ) {
93
- subBuilder .mergeFrom (createTime_ );
94
- createTime_ = subBuilder .buildPartial ();
95
- }
96
-
97
- break ;
98
- }
99
- case 26 :
100
- {
101
- com .google .protobuf .Timestamp .Builder subBuilder = null ;
102
- if (endTime_ != null ) {
103
- subBuilder = endTime_ .toBuilder ();
104
- }
105
- endTime_ =
106
- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
107
- if (subBuilder != null ) {
108
- subBuilder .mergeFrom (endTime_ );
109
- endTime_ = subBuilder .buildPartial ();
110
- }
111
-
112
- break ;
113
- }
114
- case 32 :
115
- {
116
- int rawValue = input .readEnum ();
117
-
118
- state_ = rawValue ;
119
- break ;
120
- }
121
- case 42 :
122
- {
123
- com .google .cloud .metastore .v1 .Service .Builder subBuilder = null ;
124
- if (serviceRevision_ != null ) {
125
- subBuilder = serviceRevision_ .toBuilder ();
126
- }
127
- serviceRevision_ =
128
- input .readMessage (
129
- com .google .cloud .metastore .v1 .Service .parser (), extensionRegistry );
130
- if (subBuilder != null ) {
131
- subBuilder .mergeFrom (serviceRevision_ );
132
- serviceRevision_ = subBuilder .buildPartial ();
133
- }
134
-
135
- break ;
136
- }
137
- case 50 :
138
- {
139
- java .lang .String s = input .readStringRequireUtf8 ();
140
-
141
- description_ = s ;
142
- break ;
143
- }
144
- case 58 :
145
- {
146
- java .lang .String s = input .readStringRequireUtf8 ();
147
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
148
- restoringServices_ = new com .google .protobuf .LazyStringArrayList ();
149
- mutable_bitField0_ |= 0x00000001 ;
150
- }
151
- restoringServices_ .add (s );
152
- break ;
153
- }
154
- default :
155
- {
156
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
157
- done = true ;
158
- }
159
- break ;
160
- }
161
- }
162
- }
163
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
164
- throw e .setUnfinishedMessage (this );
165
- } catch (com .google .protobuf .UninitializedMessageException e ) {
166
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
167
- } catch (java .io .IOException e ) {
168
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
169
- } finally {
170
- if (((mutable_bitField0_ & 0x00000001 ) != 0 )) {
171
- restoringServices_ = restoringServices_ .getUnmodifiableView ();
172
- }
173
- this .unknownFields = unknownFields .build ();
174
- makeExtensionsImmutable ();
175
- }
176
- }
177
-
178
58
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
179
59
return com .google .cloud .metastore .v1 .MetastoreProto
180
60
.internal_static_google_cloud_metastore_v1_Backup_descriptor ;
@@ -805,7 +685,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
805
685
for (int i = 0 ; i < restoringServices_ .size (); i ++) {
806
686
com .google .protobuf .GeneratedMessageV3 .writeString (output , 7 , restoringServices_ .getRaw (i ));
807
687
}
808
- unknownFields .writeTo (output );
688
+ getUnknownFields () .writeTo (output );
809
689
}
810
690
811
691
@ java .lang .Override
@@ -840,7 +720,7 @@ public int getSerializedSize() {
840
720
size += dataSize ;
841
721
size += 1 * getRestoringServicesList ().size ();
842
722
}
843
- size += unknownFields .getSerializedSize ();
723
+ size += getUnknownFields () .getSerializedSize ();
844
724
memoizedSize = size ;
845
725
return size ;
846
726
}
@@ -871,7 +751,7 @@ public boolean equals(final java.lang.Object obj) {
871
751
}
872
752
if (!getDescription ().equals (other .getDescription ())) return false ;
873
753
if (!getRestoringServicesList ().equals (other .getRestoringServicesList ())) return false ;
874
- if (!unknownFields .equals (other .unknownFields )) return false ;
754
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
875
755
return true ;
876
756
}
877
757
@@ -904,7 +784,7 @@ public int hashCode() {
904
784
hash = (37 * hash ) + RESTORING_SERVICES_FIELD_NUMBER ;
905
785
hash = (53 * hash ) + getRestoringServicesList ().hashCode ();
906
786
}
907
- hash = (29 * hash ) + unknownFields .hashCode ();
787
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
908
788
memoizedHashCode = hash ;
909
789
return hash ;
910
790
}
@@ -1032,17 +912,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1032
912
}
1033
913
1034
914
// Construct using com.google.cloud.metastore.v1.Backup.newBuilder()
1035
- private Builder () {
1036
- maybeForceBuilderInitialization ();
1037
- }
915
+ private Builder () {}
1038
916
1039
917
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
1040
918
super (parent );
1041
- maybeForceBuilderInitialization ();
1042
- }
1043
-
1044
- private void maybeForceBuilderInitialization () {
1045
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
1046
919
}
1047
920
1048
921
@ java .lang .Override
@@ -1203,7 +1076,7 @@ public Builder mergeFrom(com.google.cloud.metastore.v1.Backup other) {
1203
1076
}
1204
1077
onChanged ();
1205
1078
}
1206
- this .mergeUnknownFields (other .unknownFields );
1079
+ this .mergeUnknownFields (other .getUnknownFields () );
1207
1080
onChanged ();
1208
1081
return this ;
1209
1082
}
@@ -1218,17 +1091,74 @@ public Builder mergeFrom(
1218
1091
com .google .protobuf .CodedInputStream input ,
1219
1092
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1220
1093
throws java .io .IOException {
1221
- com .google .cloud .metastore .v1 .Backup parsedMessage = null ;
1094
+ if (extensionRegistry == null ) {
1095
+ throw new java .lang .NullPointerException ();
1096
+ }
1222
1097
try {
1223
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
1098
+ boolean done = false ;
1099
+ while (!done ) {
1100
+ int tag = input .readTag ();
1101
+ switch (tag ) {
1102
+ case 0 :
1103
+ done = true ;
1104
+ break ;
1105
+ case 10 :
1106
+ {
1107
+ name_ = input .readStringRequireUtf8 ();
1108
+
1109
+ break ;
1110
+ } // case 10
1111
+ case 18 :
1112
+ {
1113
+ input .readMessage (getCreateTimeFieldBuilder ().getBuilder (), extensionRegistry );
1114
+
1115
+ break ;
1116
+ } // case 18
1117
+ case 26 :
1118
+ {
1119
+ input .readMessage (getEndTimeFieldBuilder ().getBuilder (), extensionRegistry );
1120
+
1121
+ break ;
1122
+ } // case 26
1123
+ case 32 :
1124
+ {
1125
+ state_ = input .readEnum ();
1126
+
1127
+ break ;
1128
+ } // case 32
1129
+ case 42 :
1130
+ {
1131
+ input .readMessage (getServiceRevisionFieldBuilder ().getBuilder (), extensionRegistry );
1132
+
1133
+ break ;
1134
+ } // case 42
1135
+ case 50 :
1136
+ {
1137
+ description_ = input .readStringRequireUtf8 ();
1138
+
1139
+ break ;
1140
+ } // case 50
1141
+ case 58 :
1142
+ {
1143
+ java .lang .String s = input .readStringRequireUtf8 ();
1144
+ ensureRestoringServicesIsMutable ();
1145
+ restoringServices_ .add (s );
1146
+ break ;
1147
+ } // case 58
1148
+ default :
1149
+ {
1150
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
1151
+ done = true ; // was an endgroup tag
1152
+ }
1153
+ break ;
1154
+ } // default:
1155
+ } // switch (tag)
1156
+ } // while (!done)
1224
1157
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1225
- parsedMessage = (com .google .cloud .metastore .v1 .Backup ) e .getUnfinishedMessage ();
1226
1158
throw e .unwrapIOException ();
1227
1159
} finally {
1228
- if (parsedMessage != null ) {
1229
- mergeFrom (parsedMessage );
1230
- }
1231
- }
1160
+ onChanged ();
1161
+ } // finally
1232
1162
return this ;
1233
1163
}
1234
1164
@@ -2354,7 +2284,18 @@ public Backup parsePartialFrom(
2354
2284
com .google .protobuf .CodedInputStream input ,
2355
2285
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
2356
2286
throws com .google .protobuf .InvalidProtocolBufferException {
2357
- return new Backup (input , extensionRegistry );
2287
+ Builder builder = newBuilder ();
2288
+ try {
2289
+ builder .mergeFrom (input , extensionRegistry );
2290
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
2291
+ throw e .setUnfinishedMessage (builder .buildPartial ());
2292
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
2293
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
2294
+ } catch (java .io .IOException e ) {
2295
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
2296
+ .setUnfinishedMessage (builder .buildPartial ());
2297
+ }
2298
+ return builder .buildPartial ();
2358
2299
}
2359
2300
};
2360
2301
0 commit comments