@@ -55,126 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5555 return this .unknownFields ;
5656 }
5757
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-
17858 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
17959 return com .google .cloud .metastore .v1 .MetastoreProto
18060 .internal_static_google_cloud_metastore_v1_Backup_descriptor ;
@@ -805,7 +685,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
805685 for (int i = 0 ; i < restoringServices_ .size (); i ++) {
806686 com .google .protobuf .GeneratedMessageV3 .writeString (output , 7 , restoringServices_ .getRaw (i ));
807687 }
808- unknownFields .writeTo (output );
688+ getUnknownFields () .writeTo (output );
809689 }
810690
811691 @ java .lang .Override
@@ -840,7 +720,7 @@ public int getSerializedSize() {
840720 size += dataSize ;
841721 size += 1 * getRestoringServicesList ().size ();
842722 }
843- size += unknownFields .getSerializedSize ();
723+ size += getUnknownFields () .getSerializedSize ();
844724 memoizedSize = size ;
845725 return size ;
846726 }
@@ -871,7 +751,7 @@ public boolean equals(final java.lang.Object obj) {
871751 }
872752 if (!getDescription ().equals (other .getDescription ())) return false ;
873753 if (!getRestoringServicesList ().equals (other .getRestoringServicesList ())) return false ;
874- if (!unknownFields .equals (other .unknownFields )) return false ;
754+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
875755 return true ;
876756 }
877757
@@ -904,7 +784,7 @@ public int hashCode() {
904784 hash = (37 * hash ) + RESTORING_SERVICES_FIELD_NUMBER ;
905785 hash = (53 * hash ) + getRestoringServicesList ().hashCode ();
906786 }
907- hash = (29 * hash ) + unknownFields .hashCode ();
787+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
908788 memoizedHashCode = hash ;
909789 return hash ;
910790 }
@@ -1032,17 +912,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1032912 }
1033913
1034914 // Construct using com.google.cloud.metastore.v1.Backup.newBuilder()
1035- private Builder () {
1036- maybeForceBuilderInitialization ();
1037- }
915+ private Builder () {}
1038916
1039917 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
1040918 super (parent );
1041- maybeForceBuilderInitialization ();
1042- }
1043-
1044- private void maybeForceBuilderInitialization () {
1045- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
1046919 }
1047920
1048921 @ java .lang .Override
@@ -1203,7 +1076,7 @@ public Builder mergeFrom(com.google.cloud.metastore.v1.Backup other) {
12031076 }
12041077 onChanged ();
12051078 }
1206- this .mergeUnknownFields (other .unknownFields );
1079+ this .mergeUnknownFields (other .getUnknownFields () );
12071080 onChanged ();
12081081 return this ;
12091082 }
@@ -1218,17 +1091,74 @@ public Builder mergeFrom(
12181091 com .google .protobuf .CodedInputStream input ,
12191092 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
12201093 throws java .io .IOException {
1221- com .google .cloud .metastore .v1 .Backup parsedMessage = null ;
1094+ if (extensionRegistry == null ) {
1095+ throw new java .lang .NullPointerException ();
1096+ }
12221097 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)
12241157 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1225- parsedMessage = (com .google .cloud .metastore .v1 .Backup ) e .getUnfinishedMessage ();
12261158 throw e .unwrapIOException ();
12271159 } finally {
1228- if (parsedMessage != null ) {
1229- mergeFrom (parsedMessage );
1230- }
1231- }
1160+ onChanged ();
1161+ } // finally
12321162 return this ;
12331163 }
12341164
@@ -2354,7 +2284,18 @@ public Backup parsePartialFrom(
23542284 com .google .protobuf .CodedInputStream input ,
23552285 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
23562286 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 ();
23582299 }
23592300 };
23602301
0 commit comments