@@ -50,50 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50
50
return this .unknownFields ;
51
51
}
52
52
53
- private CheckValidCredsResponse (
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
- case 8 :
72
- {
73
- hasValidCreds_ = input .readBool ();
74
- break ;
75
- }
76
- default :
77
- {
78
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
79
- done = true ;
80
- }
81
- break ;
82
- }
83
- }
84
- }
85
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
86
- throw e .setUnfinishedMessage (this );
87
- } catch (com .google .protobuf .UninitializedMessageException e ) {
88
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
89
- } catch (java .io .IOException e ) {
90
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
91
- } finally {
92
- this .unknownFields = unknownFields .build ();
93
- makeExtensionsImmutable ();
94
- }
95
- }
96
-
97
53
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
98
54
return com .google .cloud .bigquery .datatransfer .v1 .DataTransferProto
99
55
.internal_static_google_cloud_bigquery_datatransfer_v1_CheckValidCredsResponse_descriptor ;
@@ -144,7 +100,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
144
100
if (hasValidCreds_ != false ) {
145
101
output .writeBool (1 , hasValidCreds_ );
146
102
}
147
- unknownFields .writeTo (output );
103
+ getUnknownFields () .writeTo (output );
148
104
}
149
105
150
106
@ java .lang .Override
@@ -156,7 +112,7 @@ public int getSerializedSize() {
156
112
if (hasValidCreds_ != false ) {
157
113
size += com .google .protobuf .CodedOutputStream .computeBoolSize (1 , hasValidCreds_ );
158
114
}
159
- size += unknownFields .getSerializedSize ();
115
+ size += getUnknownFields () .getSerializedSize ();
160
116
memoizedSize = size ;
161
117
return size ;
162
118
}
@@ -173,7 +129,7 @@ public boolean equals(final java.lang.Object obj) {
173
129
(com .google .cloud .bigquery .datatransfer .v1 .CheckValidCredsResponse ) obj ;
174
130
175
131
if (getHasValidCreds () != other .getHasValidCreds ()) return false ;
176
- if (!unknownFields .equals (other .unknownFields )) return false ;
132
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
177
133
return true ;
178
134
}
179
135
@@ -186,7 +142,7 @@ public int hashCode() {
186
142
hash = (19 * hash ) + getDescriptor ().hashCode ();
187
143
hash = (37 * hash ) + HAS_VALID_CREDS_FIELD_NUMBER ;
188
144
hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getHasValidCreds ());
189
- hash = (29 * hash ) + unknownFields .hashCode ();
145
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
190
146
memoizedHashCode = hash ;
191
147
return hash ;
192
148
}
@@ -318,17 +274,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
318
274
319
275
// Construct using
320
276
// com.google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse.newBuilder()
321
- private Builder () {
322
- maybeForceBuilderInitialization ();
323
- }
277
+ private Builder () {}
324
278
325
279
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
326
280
super (parent );
327
- maybeForceBuilderInitialization ();
328
- }
329
-
330
- private void maybeForceBuilderInitialization () {
331
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
332
281
}
333
282
334
283
@ java .lang .Override
@@ -420,7 +369,7 @@ public Builder mergeFrom(
420
369
if (other .getHasValidCreds () != false ) {
421
370
setHasValidCreds (other .getHasValidCreds ());
422
371
}
423
- this .mergeUnknownFields (other .unknownFields );
372
+ this .mergeUnknownFields (other .getUnknownFields () );
424
373
onChanged ();
425
374
return this ;
426
375
}
@@ -435,19 +384,37 @@ public Builder mergeFrom(
435
384
com .google .protobuf .CodedInputStream input ,
436
385
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
437
386
throws java .io .IOException {
438
- com .google .cloud .bigquery .datatransfer .v1 .CheckValidCredsResponse parsedMessage = null ;
387
+ if (extensionRegistry == null ) {
388
+ throw new java .lang .NullPointerException ();
389
+ }
439
390
try {
440
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
391
+ boolean done = false ;
392
+ while (!done ) {
393
+ int tag = input .readTag ();
394
+ switch (tag ) {
395
+ case 0 :
396
+ done = true ;
397
+ break ;
398
+ case 8 :
399
+ {
400
+ hasValidCreds_ = input .readBool ();
401
+
402
+ break ;
403
+ } // case 8
404
+ default :
405
+ {
406
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
407
+ done = true ; // was an endgroup tag
408
+ }
409
+ break ;
410
+ } // default:
411
+ } // switch (tag)
412
+ } // while (!done)
441
413
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
442
- parsedMessage =
443
- (com .google .cloud .bigquery .datatransfer .v1 .CheckValidCredsResponse )
444
- e .getUnfinishedMessage ();
445
414
throw e .unwrapIOException ();
446
415
} finally {
447
- if (parsedMessage != null ) {
448
- mergeFrom (parsedMessage );
449
- }
450
- }
416
+ onChanged ();
417
+ } // finally
451
418
return this ;
452
419
}
453
420
@@ -537,7 +504,18 @@ public CheckValidCredsResponse parsePartialFrom(
537
504
com .google .protobuf .CodedInputStream input ,
538
505
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
539
506
throws com .google .protobuf .InvalidProtocolBufferException {
540
- return new CheckValidCredsResponse (input , extensionRegistry );
507
+ Builder builder = newBuilder ();
508
+ try {
509
+ builder .mergeFrom (input , extensionRegistry );
510
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
511
+ throw e .setUnfinishedMessage (builder .buildPartial ());
512
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
513
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
514
+ } catch (java .io .IOException e ) {
515
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
516
+ .setUnfinishedMessage (builder .buildPartial ());
517
+ }
518
+ return builder .buildPartial ();
541
519
}
542
520
};
543
521
0 commit comments