@@ -52,99 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5252 return this .unknownFields ;
5353 }
5454
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-
14855 public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
14956 return com .google .cloud .contactcenterinsights .v1 .ResourcesProto
15057 .internal_static_google_cloud_contactcenterinsights_v1_Analysis_descriptor ;
@@ -398,7 +305,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
398305 if (analysisResult_ != null ) {
399306 output .writeMessage (7 , getAnalysisResult ());
400307 }
401- unknownFields .writeTo (output );
308+ getUnknownFields () .writeTo (output );
402309 }
403310
404311 @ java .lang .Override
@@ -419,7 +326,7 @@ public int getSerializedSize() {
419326 if (analysisResult_ != null ) {
420327 size += com .google .protobuf .CodedOutputStream .computeMessageSize (7 , getAnalysisResult ());
421328 }
422- size += unknownFields .getSerializedSize ();
329+ size += getUnknownFields () .getSerializedSize ();
423330 memoizedSize = size ;
424331 return size ;
425332 }
@@ -448,7 +355,7 @@ public boolean equals(final java.lang.Object obj) {
448355 if (hasAnalysisResult ()) {
449356 if (!getAnalysisResult ().equals (other .getAnalysisResult ())) return false ;
450357 }
451- if (!unknownFields .equals (other .unknownFields )) return false ;
358+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
452359 return true ;
453360 }
454361
@@ -473,7 +380,7 @@ public int hashCode() {
473380 hash = (37 * hash ) + ANALYSIS_RESULT_FIELD_NUMBER ;
474381 hash = (53 * hash ) + getAnalysisResult ().hashCode ();
475382 }
476- hash = (29 * hash ) + unknownFields .hashCode ();
383+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
477384 memoizedHashCode = hash ;
478385 return hash ;
479386 }
@@ -602,17 +509,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
602509 }
603510
604511 // Construct using com.google.cloud.contactcenterinsights.v1.Analysis.newBuilder()
605- private Builder () {
606- maybeForceBuilderInitialization ();
607- }
512+ private Builder () {}
608513
609514 private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
610515 super (parent );
611- maybeForceBuilderInitialization ();
612- }
613-
614- private void maybeForceBuilderInitialization () {
615- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
616516 }
617517
618518 @ java .lang .Override
@@ -744,7 +644,7 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.Analysis othe
744644 if (other .hasAnalysisResult ()) {
745645 mergeAnalysisResult (other .getAnalysisResult ());
746646 }
747- this .mergeUnknownFields (other .unknownFields );
647+ this .mergeUnknownFields (other .getUnknownFields () );
748648 onChanged ();
749649 return this ;
750650 }
@@ -759,18 +659,55 @@ public Builder mergeFrom(
759659 com .google .protobuf .CodedInputStream input ,
760660 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
761661 throws java .io .IOException {
762- com .google .cloud .contactcenterinsights .v1 .Analysis parsedMessage = null ;
662+ if (extensionRegistry == null ) {
663+ throw new java .lang .NullPointerException ();
664+ }
763665 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)
765706 } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
766- parsedMessage =
767- (com .google .cloud .contactcenterinsights .v1 .Analysis ) e .getUnfinishedMessage ();
768707 throw e .unwrapIOException ();
769708 } finally {
770- if (parsedMessage != null ) {
771- mergeFrom (parsedMessage );
772- }
773- }
709+ onChanged ();
710+ } // finally
774711 return this ;
775712 }
776713
@@ -1552,7 +1489,18 @@ public Analysis parsePartialFrom(
15521489 com .google .protobuf .CodedInputStream input ,
15531490 com .google .protobuf .ExtensionRegistryLite extensionRegistry )
15541491 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 ();
15561504 }
15571505 };
15581506
0 commit comments