@@ -58,63 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58
58
return this .unknownFields ;
59
59
}
60
60
61
- private AdvancedSettings (
62
- com .google .protobuf .CodedInputStream input ,
63
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
64
- throws com .google .protobuf .InvalidProtocolBufferException {
65
- this ();
66
- if (extensionRegistry == null ) {
67
- throw new java .lang .NullPointerException ();
68
- }
69
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
70
- com .google .protobuf .UnknownFieldSet .newBuilder ();
71
- try {
72
- boolean done = false ;
73
- while (!done ) {
74
- int tag = input .readTag ();
75
- switch (tag ) {
76
- case 0 :
77
- done = true ;
78
- break ;
79
- case 50 :
80
- {
81
- com .google .cloud .dialogflow .cx .v3 .AdvancedSettings .LoggingSettings .Builder
82
- subBuilder = null ;
83
- if (loggingSettings_ != null ) {
84
- subBuilder = loggingSettings_ .toBuilder ();
85
- }
86
- loggingSettings_ =
87
- input .readMessage (
88
- com .google .cloud .dialogflow .cx .v3 .AdvancedSettings .LoggingSettings .parser (),
89
- extensionRegistry );
90
- if (subBuilder != null ) {
91
- subBuilder .mergeFrom (loggingSettings_ );
92
- loggingSettings_ = subBuilder .buildPartial ();
93
- }
94
-
95
- break ;
96
- }
97
- default :
98
- {
99
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
100
- done = true ;
101
- }
102
- break ;
103
- }
104
- }
105
- }
106
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
107
- throw e .setUnfinishedMessage (this );
108
- } catch (com .google .protobuf .UninitializedMessageException e ) {
109
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
110
- } catch (java .io .IOException e ) {
111
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
112
- } finally {
113
- this .unknownFields = unknownFields .build ();
114
- makeExtensionsImmutable ();
115
- }
116
- }
117
-
118
61
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
119
62
return com .google .cloud .dialogflow .cx .v3 .AdvancedSettingsProto
120
63
.internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_descriptor ;
@@ -193,55 +136,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
193
136
return this .unknownFields ;
194
137
}
195
138
196
- private LoggingSettings (
197
- com .google .protobuf .CodedInputStream input ,
198
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
199
- throws com .google .protobuf .InvalidProtocolBufferException {
200
- this ();
201
- if (extensionRegistry == null ) {
202
- throw new java .lang .NullPointerException ();
203
- }
204
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
205
- com .google .protobuf .UnknownFieldSet .newBuilder ();
206
- try {
207
- boolean done = false ;
208
- while (!done ) {
209
- int tag = input .readTag ();
210
- switch (tag ) {
211
- case 0 :
212
- done = true ;
213
- break ;
214
- case 16 :
215
- {
216
- enableStackdriverLogging_ = input .readBool ();
217
- break ;
218
- }
219
- case 24 :
220
- {
221
- enableInteractionLogging_ = input .readBool ();
222
- break ;
223
- }
224
- default :
225
- {
226
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
227
- done = true ;
228
- }
229
- break ;
230
- }
231
- }
232
- }
233
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
234
- throw e .setUnfinishedMessage (this );
235
- } catch (com .google .protobuf .UninitializedMessageException e ) {
236
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
237
- } catch (java .io .IOException e ) {
238
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
239
- } finally {
240
- this .unknownFields = unknownFields .build ();
241
- makeExtensionsImmutable ();
242
- }
243
- }
244
-
245
139
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
246
140
return com .google .cloud .dialogflow .cx .v3 .AdvancedSettingsProto
247
141
.internal_static_google_cloud_dialogflow_cx_v3_AdvancedSettings_LoggingSettings_descriptor ;
@@ -313,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
313
207
if (enableInteractionLogging_ != false ) {
314
208
output .writeBool (3 , enableInteractionLogging_ );
315
209
}
316
- unknownFields .writeTo (output );
210
+ getUnknownFields () .writeTo (output );
317
211
}
318
212
319
213
@ java .lang .Override
@@ -328,7 +222,7 @@ public int getSerializedSize() {
328
222
if (enableInteractionLogging_ != false ) {
329
223
size += com .google .protobuf .CodedOutputStream .computeBoolSize (3 , enableInteractionLogging_ );
330
224
}
331
- size += unknownFields .getSerializedSize ();
225
+ size += getUnknownFields () .getSerializedSize ();
332
226
memoizedSize = size ;
333
227
return size ;
334
228
}
@@ -346,7 +240,7 @@ public boolean equals(final java.lang.Object obj) {
346
240
347
241
if (getEnableStackdriverLogging () != other .getEnableStackdriverLogging ()) return false ;
348
242
if (getEnableInteractionLogging () != other .getEnableInteractionLogging ()) return false ;
349
- if (!unknownFields .equals (other .unknownFields )) return false ;
243
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
350
244
return true ;
351
245
}
352
246
@@ -361,7 +255,7 @@ public int hashCode() {
361
255
hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getEnableStackdriverLogging ());
362
256
hash = (37 * hash ) + ENABLE_INTERACTION_LOGGING_FIELD_NUMBER ;
363
257
hash = (53 * hash ) + com .google .protobuf .Internal .hashBoolean (getEnableInteractionLogging ());
364
- hash = (29 * hash ) + unknownFields .hashCode ();
258
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
365
259
memoizedHashCode = hash ;
366
260
return hash ;
367
261
}
@@ -495,17 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
495
389
496
390
// Construct using
497
391
// com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.newBuilder()
498
- private Builder () {
499
- maybeForceBuilderInitialization ();
500
- }
392
+ private Builder () {}
501
393
502
394
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
503
395
super (parent );
504
- maybeForceBuilderInitialization ();
505
- }
506
-
507
- private void maybeForceBuilderInitialization () {
508
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
509
396
}
510
397
511
398
@ java .lang .Override
@@ -607,7 +494,7 @@ public Builder mergeFrom(
607
494
if (other .getEnableInteractionLogging () != false ) {
608
495
setEnableInteractionLogging (other .getEnableInteractionLogging ());
609
496
}
610
- this .mergeUnknownFields (other .unknownFields );
497
+ this .mergeUnknownFields (other .getUnknownFields () );
611
498
onChanged ();
612
499
return this ;
613
500
}
@@ -622,19 +509,43 @@ public Builder mergeFrom(
622
509
com .google .protobuf .CodedInputStream input ,
623
510
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
624
511
throws java .io .IOException {
625
- com .google .cloud .dialogflow .cx .v3 .AdvancedSettings .LoggingSettings parsedMessage = null ;
512
+ if (extensionRegistry == null ) {
513
+ throw new java .lang .NullPointerException ();
514
+ }
626
515
try {
627
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
516
+ boolean done = false ;
517
+ while (!done ) {
518
+ int tag = input .readTag ();
519
+ switch (tag ) {
520
+ case 0 :
521
+ done = true ;
522
+ break ;
523
+ case 16 :
524
+ {
525
+ enableStackdriverLogging_ = input .readBool ();
526
+
527
+ break ;
528
+ } // case 16
529
+ case 24 :
530
+ {
531
+ enableInteractionLogging_ = input .readBool ();
532
+
533
+ break ;
534
+ } // case 24
535
+ default :
536
+ {
537
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
538
+ done = true ; // was an endgroup tag
539
+ }
540
+ break ;
541
+ } // default:
542
+ } // switch (tag)
543
+ } // while (!done)
628
544
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
629
- parsedMessage =
630
- (com .google .cloud .dialogflow .cx .v3 .AdvancedSettings .LoggingSettings )
631
- e .getUnfinishedMessage ();
632
545
throw e .unwrapIOException ();
633
546
} finally {
634
- if (parsedMessage != null ) {
635
- mergeFrom (parsedMessage );
636
- }
637
- }
547
+ onChanged ();
548
+ } // finally
638
549
return this ;
639
550
}
640
551
@@ -777,7 +688,19 @@ public LoggingSettings parsePartialFrom(
777
688
com .google .protobuf .CodedInputStream input ,
778
689
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
779
690
throws com .google .protobuf .InvalidProtocolBufferException {
780
- return new LoggingSettings (input , extensionRegistry );
691
+ Builder builder = newBuilder ();
692
+ try {
693
+ builder .mergeFrom (input , extensionRegistry );
694
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
695
+ throw e .setUnfinishedMessage (builder .buildPartial ());
696
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
697
+ throw e .asInvalidProtocolBufferException ()
698
+ .setUnfinishedMessage (builder .buildPartial ());
699
+ } catch (java .io .IOException e ) {
700
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
701
+ .setUnfinishedMessage (builder .buildPartial ());
702
+ }
703
+ return builder .buildPartial ();
781
704
}
782
705
};
783
706
@@ -878,7 +801,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
878
801
if (loggingSettings_ != null ) {
879
802
output .writeMessage (6 , getLoggingSettings ());
880
803
}
881
- unknownFields .writeTo (output );
804
+ getUnknownFields () .writeTo (output );
882
805
}
883
806
884
807
@ java .lang .Override
@@ -890,7 +813,7 @@ public int getSerializedSize() {
890
813
if (loggingSettings_ != null ) {
891
814
size += com .google .protobuf .CodedOutputStream .computeMessageSize (6 , getLoggingSettings ());
892
815
}
893
- size += unknownFields .getSerializedSize ();
816
+ size += getUnknownFields () .getSerializedSize ();
894
817
memoizedSize = size ;
895
818
return size ;
896
819
}
@@ -910,7 +833,7 @@ public boolean equals(final java.lang.Object obj) {
910
833
if (hasLoggingSettings ()) {
911
834
if (!getLoggingSettings ().equals (other .getLoggingSettings ())) return false ;
912
835
}
913
- if (!unknownFields .equals (other .unknownFields )) return false ;
836
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
914
837
return true ;
915
838
}
916
839
@@ -925,7 +848,7 @@ public int hashCode() {
925
848
hash = (37 * hash ) + LOGGING_SETTINGS_FIELD_NUMBER ;
926
849
hash = (53 * hash ) + getLoggingSettings ().hashCode ();
927
850
}
928
- hash = (29 * hash ) + unknownFields .hashCode ();
851
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
929
852
memoizedHashCode = hash ;
930
853
return hash ;
931
854
}
@@ -1062,17 +985,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1062
985
}
1063
986
1064
987
// Construct using com.google.cloud.dialogflow.cx.v3.AdvancedSettings.newBuilder()
1065
- private Builder () {
1066
- maybeForceBuilderInitialization ();
1067
- }
988
+ private Builder () {}
1068
989
1069
990
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
1070
991
super (parent );
1071
- maybeForceBuilderInitialization ();
1072
- }
1073
-
1074
- private void maybeForceBuilderInitialization () {
1075
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
1076
992
}
1077
993
1078
994
@ java .lang .Override
@@ -1169,7 +1085,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.AdvancedSettings othe
1169
1085
if (other .hasLoggingSettings ()) {
1170
1086
mergeLoggingSettings (other .getLoggingSettings ());
1171
1087
}
1172
- this .mergeUnknownFields (other .unknownFields );
1088
+ this .mergeUnknownFields (other .getUnknownFields () );
1173
1089
onChanged ();
1174
1090
return this ;
1175
1091
}
@@ -1184,18 +1100,37 @@ public Builder mergeFrom(
1184
1100
com .google .protobuf .CodedInputStream input ,
1185
1101
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1186
1102
throws java .io .IOException {
1187
- com .google .cloud .dialogflow .cx .v3 .AdvancedSettings parsedMessage = null ;
1103
+ if (extensionRegistry == null ) {
1104
+ throw new java .lang .NullPointerException ();
1105
+ }
1188
1106
try {
1189
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
1107
+ boolean done = false ;
1108
+ while (!done ) {
1109
+ int tag = input .readTag ();
1110
+ switch (tag ) {
1111
+ case 0 :
1112
+ done = true ;
1113
+ break ;
1114
+ case 50 :
1115
+ {
1116
+ input .readMessage (getLoggingSettingsFieldBuilder ().getBuilder (), extensionRegistry );
1117
+
1118
+ break ;
1119
+ } // case 50
1120
+ default :
1121
+ {
1122
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
1123
+ done = true ; // was an endgroup tag
1124
+ }
1125
+ break ;
1126
+ } // default:
1127
+ } // switch (tag)
1128
+ } // while (!done)
1190
1129
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1191
- parsedMessage =
1192
- (com .google .cloud .dialogflow .cx .v3 .AdvancedSettings ) e .getUnfinishedMessage ();
1193
1130
throw e .unwrapIOException ();
1194
1131
} finally {
1195
- if (parsedMessage != null ) {
1196
- mergeFrom (parsedMessage );
1197
- }
1198
- }
1132
+ onChanged ();
1133
+ } // finally
1199
1134
return this ;
1200
1135
}
1201
1136
@@ -1470,7 +1405,18 @@ public AdvancedSettings parsePartialFrom(
1470
1405
com .google .protobuf .CodedInputStream input ,
1471
1406
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1472
1407
throws com .google .protobuf .InvalidProtocolBufferException {
1473
- return new AdvancedSettings (input , extensionRegistry );
1408
+ Builder builder = newBuilder ();
1409
+ try {
1410
+ builder .mergeFrom (input , extensionRegistry );
1411
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1412
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1413
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1414
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1415
+ } catch (java .io .IOException e ) {
1416
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1417
+ .setUnfinishedMessage (builder .buildPartial ());
1418
+ }
1419
+ return builder .buildPartial ();
1474
1420
}
1475
1421
};
1476
1422
0 commit comments