@@ -52,99 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52
52
return this .unknownFields ;
53
53
}
54
54
55
- private Analysis (
56
- com .google .protobuf .CodedInputStream input ,
57
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
58
- throws com .google .protobuf .InvalidProtocolBufferException {
59
- this ();
60
- if (extensionRegistry == null ) {
61
- throw new java .lang .NullPointerException ();
62
- }
63
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
64
- com .google .protobuf .UnknownFieldSet .newBuilder ();
65
- try {
66
- boolean done = false ;
67
- while (!done ) {
68
- int tag = input .readTag ();
69
- switch (tag ) {
70
- case 0 :
71
- done = true ;
72
- break ;
73
- case 10 :
74
- {
75
- java .lang .String s = input .readStringRequireUtf8 ();
76
-
77
- name_ = s ;
78
- break ;
79
- }
80
- case 18 :
81
- {
82
- com .google .protobuf .Timestamp .Builder subBuilder = null ;
83
- if (requestTime_ != null ) {
84
- subBuilder = requestTime_ .toBuilder ();
85
- }
86
- requestTime_ =
87
- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
88
- if (subBuilder != null ) {
89
- subBuilder .mergeFrom (requestTime_ );
90
- requestTime_ = subBuilder .buildPartial ();
91
- }
92
-
93
- break ;
94
- }
95
- case 26 :
96
- {
97
- com .google .protobuf .Timestamp .Builder subBuilder = null ;
98
- if (createTime_ != null ) {
99
- subBuilder = createTime_ .toBuilder ();
100
- }
101
- createTime_ =
102
- input .readMessage (com .google .protobuf .Timestamp .parser (), extensionRegistry );
103
- if (subBuilder != null ) {
104
- subBuilder .mergeFrom (createTime_ );
105
- createTime_ = subBuilder .buildPartial ();
106
- }
107
-
108
- break ;
109
- }
110
- case 58 :
111
- {
112
- com .google .cloud .contactcenterinsights .v1 .AnalysisResult .Builder subBuilder = null ;
113
- if (analysisResult_ != null ) {
114
- subBuilder = analysisResult_ .toBuilder ();
115
- }
116
- analysisResult_ =
117
- input .readMessage (
118
- com .google .cloud .contactcenterinsights .v1 .AnalysisResult .parser (),
119
- extensionRegistry );
120
- if (subBuilder != null ) {
121
- subBuilder .mergeFrom (analysisResult_ );
122
- analysisResult_ = subBuilder .buildPartial ();
123
- }
124
-
125
- break ;
126
- }
127
- default :
128
- {
129
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
130
- done = true ;
131
- }
132
- break ;
133
- }
134
- }
135
- }
136
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
137
- throw e .setUnfinishedMessage (this );
138
- } catch (com .google .protobuf .UninitializedMessageException e ) {
139
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
140
- } catch (java .io .IOException e ) {
141
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
142
- } finally {
143
- this .unknownFields = unknownFields .build ();
144
- makeExtensionsImmutable ();
145
- }
146
- }
147
-
148
55
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
149
56
return com .google .cloud .contactcenterinsights .v1 .ResourcesProto
150
57
.internal_static_google_cloud_contactcenterinsights_v1_Analysis_descriptor ;
@@ -398,7 +305,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
398
305
if (analysisResult_ != null ) {
399
306
output .writeMessage (7 , getAnalysisResult ());
400
307
}
401
- unknownFields .writeTo (output );
308
+ getUnknownFields () .writeTo (output );
402
309
}
403
310
404
311
@ java .lang .Override
@@ -419,7 +326,7 @@ public int getSerializedSize() {
419
326
if (analysisResult_ != null ) {
420
327
size += com .google .protobuf .CodedOutputStream .computeMessageSize (7 , getAnalysisResult ());
421
328
}
422
- size += unknownFields .getSerializedSize ();
329
+ size += getUnknownFields () .getSerializedSize ();
423
330
memoizedSize = size ;
424
331
return size ;
425
332
}
@@ -448,7 +355,7 @@ public boolean equals(final java.lang.Object obj) {
448
355
if (hasAnalysisResult ()) {
449
356
if (!getAnalysisResult ().equals (other .getAnalysisResult ())) return false ;
450
357
}
451
- if (!unknownFields .equals (other .unknownFields )) return false ;
358
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
452
359
return true ;
453
360
}
454
361
@@ -473,7 +380,7 @@ public int hashCode() {
473
380
hash = (37 * hash ) + ANALYSIS_RESULT_FIELD_NUMBER ;
474
381
hash = (53 * hash ) + getAnalysisResult ().hashCode ();
475
382
}
476
- hash = (29 * hash ) + unknownFields .hashCode ();
383
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
477
384
memoizedHashCode = hash ;
478
385
return hash ;
479
386
}
@@ -602,17 +509,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
602
509
}
603
510
604
511
// Construct using com.google.cloud.contactcenterinsights.v1.Analysis.newBuilder()
605
- private Builder () {
606
- maybeForceBuilderInitialization ();
607
- }
512
+ private Builder () {}
608
513
609
514
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
610
515
super (parent );
611
- maybeForceBuilderInitialization ();
612
- }
613
-
614
- private void maybeForceBuilderInitialization () {
615
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
616
516
}
617
517
618
518
@ java .lang .Override
@@ -744,7 +644,7 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.Analysis othe
744
644
if (other .hasAnalysisResult ()) {
745
645
mergeAnalysisResult (other .getAnalysisResult ());
746
646
}
747
- this .mergeUnknownFields (other .unknownFields );
647
+ this .mergeUnknownFields (other .getUnknownFields () );
748
648
onChanged ();
749
649
return this ;
750
650
}
@@ -759,18 +659,55 @@ public Builder mergeFrom(
759
659
com .google .protobuf .CodedInputStream input ,
760
660
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
761
661
throws java .io .IOException {
762
- com .google .cloud .contactcenterinsights .v1 .Analysis parsedMessage = null ;
662
+ if (extensionRegistry == null ) {
663
+ throw new java .lang .NullPointerException ();
664
+ }
763
665
try {
764
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
666
+ boolean done = false ;
667
+ while (!done ) {
668
+ int tag = input .readTag ();
669
+ switch (tag ) {
670
+ case 0 :
671
+ done = true ;
672
+ break ;
673
+ case 10 :
674
+ {
675
+ name_ = input .readStringRequireUtf8 ();
676
+
677
+ break ;
678
+ } // case 10
679
+ case 18 :
680
+ {
681
+ input .readMessage (getRequestTimeFieldBuilder ().getBuilder (), extensionRegistry );
682
+
683
+ break ;
684
+ } // case 18
685
+ case 26 :
686
+ {
687
+ input .readMessage (getCreateTimeFieldBuilder ().getBuilder (), extensionRegistry );
688
+
689
+ break ;
690
+ } // case 26
691
+ case 58 :
692
+ {
693
+ input .readMessage (getAnalysisResultFieldBuilder ().getBuilder (), extensionRegistry );
694
+
695
+ break ;
696
+ } // case 58
697
+ default :
698
+ {
699
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
700
+ done = true ; // was an endgroup tag
701
+ }
702
+ break ;
703
+ } // default:
704
+ } // switch (tag)
705
+ } // while (!done)
765
706
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
766
- parsedMessage =
767
- (com .google .cloud .contactcenterinsights .v1 .Analysis ) e .getUnfinishedMessage ();
768
707
throw e .unwrapIOException ();
769
708
} finally {
770
- if (parsedMessage != null ) {
771
- mergeFrom (parsedMessage );
772
- }
773
- }
709
+ onChanged ();
710
+ } // finally
774
711
return this ;
775
712
}
776
713
@@ -1552,7 +1489,18 @@ public Analysis parsePartialFrom(
1552
1489
com .google .protobuf .CodedInputStream input ,
1553
1490
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1554
1491
throws com .google .protobuf .InvalidProtocolBufferException {
1555
- return new Analysis (input , extensionRegistry );
1492
+ Builder builder = newBuilder ();
1493
+ try {
1494
+ builder .mergeFrom (input , extensionRegistry );
1495
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1496
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1497
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1498
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1499
+ } catch (java .io .IOException e ) {
1500
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1501
+ .setUnfinishedMessage (builder .buildPartial ());
1502
+ }
1503
+ return builder .buildPartial ();
1556
1504
}
1557
1505
};
1558
1506
0 commit comments