@@ -50,45 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50
50
return this .unknownFields ;
51
51
}
52
52
53
- private AzureSynapseDialect (
54
- com .google .protobuf .CodedInputStream input ,
55
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
56
- throws com .google .protobuf .InvalidProtocolBufferException {
57
- this ();
58
- if (extensionRegistry == null ) {
59
- throw new java .lang .NullPointerException ();
60
- }
61
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
62
- com .google .protobuf .UnknownFieldSet .newBuilder ();
63
- try {
64
- boolean done = false ;
65
- while (!done ) {
66
- int tag = input .readTag ();
67
- switch (tag ) {
68
- case 0 :
69
- done = true ;
70
- break ;
71
- default :
72
- {
73
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
74
- done = true ;
75
- }
76
- break ;
77
- }
78
- }
79
- }
80
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
81
- throw e .setUnfinishedMessage (this );
82
- } catch (com .google .protobuf .UninitializedMessageException e ) {
83
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
84
- } catch (java .io .IOException e ) {
85
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
86
- } finally {
87
- this .unknownFields = unknownFields .build ();
88
- makeExtensionsImmutable ();
89
- }
90
- }
91
-
92
53
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
93
54
return com .google .cloud .bigquery .migration .v2 .TranslationConfigProto
94
55
.internal_static_google_cloud_bigquery_migration_v2_AzureSynapseDialect_descriptor ;
@@ -118,7 +79,7 @@ public final boolean isInitialized() {
118
79
119
80
@ java .lang .Override
120
81
public void writeTo (com .google .protobuf .CodedOutputStream output ) throws java .io .IOException {
121
- unknownFields .writeTo (output );
82
+ getUnknownFields () .writeTo (output );
122
83
}
123
84
124
85
@ java .lang .Override
@@ -127,7 +88,7 @@ public int getSerializedSize() {
127
88
if (size != -1 ) return size ;
128
89
129
90
size = 0 ;
130
- size += unknownFields .getSerializedSize ();
91
+ size += getUnknownFields () .getSerializedSize ();
131
92
memoizedSize = size ;
132
93
return size ;
133
94
}
@@ -143,7 +104,7 @@ public boolean equals(final java.lang.Object obj) {
143
104
com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect other =
144
105
(com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect ) obj ;
145
106
146
- if (!unknownFields .equals (other .unknownFields )) return false ;
107
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
147
108
return true ;
148
109
}
149
110
@@ -154,7 +115,7 @@ public int hashCode() {
154
115
}
155
116
int hash = 41 ;
156
117
hash = (19 * hash ) + getDescriptor ().hashCode ();
157
- hash = (29 * hash ) + unknownFields .hashCode ();
118
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
158
119
memoizedHashCode = hash ;
159
120
return hash ;
160
121
}
@@ -284,17 +245,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
284
245
}
285
246
286
247
// Construct using com.google.cloud.bigquery.migration.v2.AzureSynapseDialect.newBuilder()
287
- private Builder () {
288
- maybeForceBuilderInitialization ();
289
- }
248
+ private Builder () {}
290
249
291
250
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
292
251
super (parent );
293
- maybeForceBuilderInitialization ();
294
- }
295
-
296
- private void maybeForceBuilderInitialization () {
297
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
298
252
}
299
253
300
254
@ java .lang .Override
@@ -377,7 +331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
377
331
public Builder mergeFrom (com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect other ) {
378
332
if (other == com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect .getDefaultInstance ())
379
333
return this ;
380
- this .mergeUnknownFields (other .unknownFields );
334
+ this .mergeUnknownFields (other .getUnknownFields () );
381
335
onChanged ();
382
336
return this ;
383
337
}
@@ -392,18 +346,31 @@ public Builder mergeFrom(
392
346
com .google .protobuf .CodedInputStream input ,
393
347
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
394
348
throws java .io .IOException {
395
- com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect parsedMessage = null ;
349
+ if (extensionRegistry == null ) {
350
+ throw new java .lang .NullPointerException ();
351
+ }
396
352
try {
397
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
353
+ boolean done = false ;
354
+ while (!done ) {
355
+ int tag = input .readTag ();
356
+ switch (tag ) {
357
+ case 0 :
358
+ done = true ;
359
+ break ;
360
+ default :
361
+ {
362
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
363
+ done = true ; // was an endgroup tag
364
+ }
365
+ break ;
366
+ } // default:
367
+ } // switch (tag)
368
+ } // while (!done)
398
369
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
399
- parsedMessage =
400
- (com .google .cloud .bigquery .migration .v2 .AzureSynapseDialect ) e .getUnfinishedMessage ();
401
370
throw e .unwrapIOException ();
402
371
} finally {
403
- if (parsedMessage != null ) {
404
- mergeFrom (parsedMessage );
405
- }
406
- }
372
+ onChanged ();
373
+ } // finally
407
374
return this ;
408
375
}
409
376
@@ -439,7 +406,18 @@ public AzureSynapseDialect parsePartialFrom(
439
406
com .google .protobuf .CodedInputStream input ,
440
407
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
441
408
throws com .google .protobuf .InvalidProtocolBufferException {
442
- return new AzureSynapseDialect (input , extensionRegistry );
409
+ Builder builder = newBuilder ();
410
+ try {
411
+ builder .mergeFrom (input , extensionRegistry );
412
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
413
+ throw e .setUnfinishedMessage (builder .buildPartial ());
414
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
415
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
416
+ } catch (java .io .IOException e ) {
417
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
418
+ .setUnfinishedMessage (builder .buildPartial ());
419
+ }
420
+ return builder .buildPartial ();
443
421
}
444
422
};
445
423
0 commit comments