1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/automl/v1/text_sentiment.proto 18 19 package com.google.cloud.automl.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Contains annotation details specific to text sentiment. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.automl.v1.TextSentimentAnnotation} 29 */ 30 public final class TextSentimentAnnotation extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.TextSentimentAnnotation) 33 TextSentimentAnnotationOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use TextSentimentAnnotation.newBuilder() to construct. TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 TextSentimentAnnotation()40 private TextSentimentAnnotation() {} 41 42 @java.lang.Override 43 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)44 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 45 return new TextSentimentAnnotation(); 46 } 47 48 @java.lang.Override getUnknownFields()49 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 50 return this.unknownFields; 51 } 52 getDescriptor()53 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 54 return com.google.cloud.automl.v1.TextSentimentProto 55 .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; 56 } 57 58 @java.lang.Override 59 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()60 internalGetFieldAccessorTable() { 61 return com.google.cloud.automl.v1.TextSentimentProto 62 .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable 63 .ensureFieldAccessorsInitialized( 64 com.google.cloud.automl.v1.TextSentimentAnnotation.class, 65 com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); 66 } 67 68 public static final int SENTIMENT_FIELD_NUMBER = 1; 69 private int sentiment_ = 0; 70 /** 71 * 72 * 73 * <pre> 74 * Output only. The sentiment with the semantic, as given to the 75 * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used 76 * for the prediction had been trained. 77 * The sentiment values are between 0 and 78 * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), 79 * with higher value meaning more positive sentiment. They are completely 80 * relative, i.e. 0 means least positive sentiment and sentiment_max means 81 * the most positive from the sentiments present in the train data. Therefore 82 * e.g. if train data had only negative sentiment, then sentiment_max, would 83 * be still negative (although least negative). 84 * The sentiment shouldn't be confused with "score" or "magnitude" 85 * from the previous Natural Language Sentiment Analysis API. 86 * </pre> 87 * 88 * <code>int32 sentiment = 1;</code> 89 * 90 * @return The sentiment. 91 */ 92 @java.lang.Override getSentiment()93 public int getSentiment() { 94 return sentiment_; 95 } 96 97 private byte memoizedIsInitialized = -1; 98 99 @java.lang.Override isInitialized()100 public final boolean isInitialized() { 101 byte isInitialized = memoizedIsInitialized; 102 if (isInitialized == 1) return true; 103 if (isInitialized == 0) return false; 104 105 memoizedIsInitialized = 1; 106 return true; 107 } 108 109 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)110 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 111 if (sentiment_ != 0) { 112 output.writeInt32(1, sentiment_); 113 } 114 getUnknownFields().writeTo(output); 115 } 116 117 @java.lang.Override getSerializedSize()118 public int getSerializedSize() { 119 int size = memoizedSize; 120 if (size != -1) return size; 121 122 size = 0; 123 if (sentiment_ != 0) { 124 size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); 125 } 126 size += getUnknownFields().getSerializedSize(); 127 memoizedSize = size; 128 return size; 129 } 130 131 @java.lang.Override equals(final java.lang.Object obj)132 public boolean equals(final java.lang.Object obj) { 133 if (obj == this) { 134 return true; 135 } 136 if (!(obj instanceof com.google.cloud.automl.v1.TextSentimentAnnotation)) { 137 return super.equals(obj); 138 } 139 com.google.cloud.automl.v1.TextSentimentAnnotation other = 140 (com.google.cloud.automl.v1.TextSentimentAnnotation) obj; 141 142 if (getSentiment() != other.getSentiment()) return false; 143 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 144 return true; 145 } 146 147 @java.lang.Override hashCode()148 public int hashCode() { 149 if (memoizedHashCode != 0) { 150 return memoizedHashCode; 151 } 152 int hash = 41; 153 hash = (19 * hash) + getDescriptor().hashCode(); 154 hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; 155 hash = (53 * hash) + getSentiment(); 156 hash = (29 * hash) + getUnknownFields().hashCode(); 157 memoizedHashCode = hash; 158 return hash; 159 } 160 parseFrom( java.nio.ByteBuffer data)161 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 162 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 163 return PARSER.parseFrom(data); 164 } 165 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)166 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 167 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 168 throws com.google.protobuf.InvalidProtocolBufferException { 169 return PARSER.parseFrom(data, extensionRegistry); 170 } 171 parseFrom( com.google.protobuf.ByteString data)172 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 173 com.google.protobuf.ByteString data) 174 throws com.google.protobuf.InvalidProtocolBufferException { 175 return PARSER.parseFrom(data); 176 } 177 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)178 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 179 com.google.protobuf.ByteString data, 180 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 181 throws com.google.protobuf.InvalidProtocolBufferException { 182 return PARSER.parseFrom(data, extensionRegistry); 183 } 184 parseFrom(byte[] data)185 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom(byte[] data) 186 throws com.google.protobuf.InvalidProtocolBufferException { 187 return PARSER.parseFrom(data); 188 } 189 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)190 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 191 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 192 throws com.google.protobuf.InvalidProtocolBufferException { 193 return PARSER.parseFrom(data, extensionRegistry); 194 } 195 parseFrom( java.io.InputStream input)196 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 197 java.io.InputStream input) throws java.io.IOException { 198 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 199 } 200 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)201 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 202 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 203 throws java.io.IOException { 204 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 205 PARSER, input, extensionRegistry); 206 } 207 parseDelimitedFrom( java.io.InputStream input)208 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( 209 java.io.InputStream input) throws java.io.IOException { 210 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 211 } 212 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)213 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseDelimitedFrom( 214 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 215 throws java.io.IOException { 216 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 217 PARSER, input, extensionRegistry); 218 } 219 parseFrom( com.google.protobuf.CodedInputStream input)220 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 221 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 222 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 223 } 224 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)225 public static com.google.cloud.automl.v1.TextSentimentAnnotation parseFrom( 226 com.google.protobuf.CodedInputStream input, 227 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 228 throws java.io.IOException { 229 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 230 PARSER, input, extensionRegistry); 231 } 232 233 @java.lang.Override newBuilderForType()234 public Builder newBuilderForType() { 235 return newBuilder(); 236 } 237 newBuilder()238 public static Builder newBuilder() { 239 return DEFAULT_INSTANCE.toBuilder(); 240 } 241 newBuilder(com.google.cloud.automl.v1.TextSentimentAnnotation prototype)242 public static Builder newBuilder(com.google.cloud.automl.v1.TextSentimentAnnotation prototype) { 243 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 244 } 245 246 @java.lang.Override toBuilder()247 public Builder toBuilder() { 248 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 249 } 250 251 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)252 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 253 Builder builder = new Builder(parent); 254 return builder; 255 } 256 /** 257 * 258 * 259 * <pre> 260 * Contains annotation details specific to text sentiment. 261 * </pre> 262 * 263 * Protobuf type {@code google.cloud.automl.v1.TextSentimentAnnotation} 264 */ 265 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 266 implements 267 // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.TextSentimentAnnotation) 268 com.google.cloud.automl.v1.TextSentimentAnnotationOrBuilder { getDescriptor()269 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 270 return com.google.cloud.automl.v1.TextSentimentProto 271 .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; 272 } 273 274 @java.lang.Override 275 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()276 internalGetFieldAccessorTable() { 277 return com.google.cloud.automl.v1.TextSentimentProto 278 .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_fieldAccessorTable 279 .ensureFieldAccessorsInitialized( 280 com.google.cloud.automl.v1.TextSentimentAnnotation.class, 281 com.google.cloud.automl.v1.TextSentimentAnnotation.Builder.class); 282 } 283 284 // Construct using com.google.cloud.automl.v1.TextSentimentAnnotation.newBuilder() Builder()285 private Builder() {} 286 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)287 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 288 super(parent); 289 } 290 291 @java.lang.Override clear()292 public Builder clear() { 293 super.clear(); 294 bitField0_ = 0; 295 sentiment_ = 0; 296 return this; 297 } 298 299 @java.lang.Override getDescriptorForType()300 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 301 return com.google.cloud.automl.v1.TextSentimentProto 302 .internal_static_google_cloud_automl_v1_TextSentimentAnnotation_descriptor; 303 } 304 305 @java.lang.Override getDefaultInstanceForType()306 public com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInstanceForType() { 307 return com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance(); 308 } 309 310 @java.lang.Override build()311 public com.google.cloud.automl.v1.TextSentimentAnnotation build() { 312 com.google.cloud.automl.v1.TextSentimentAnnotation result = buildPartial(); 313 if (!result.isInitialized()) { 314 throw newUninitializedMessageException(result); 315 } 316 return result; 317 } 318 319 @java.lang.Override buildPartial()320 public com.google.cloud.automl.v1.TextSentimentAnnotation buildPartial() { 321 com.google.cloud.automl.v1.TextSentimentAnnotation result = 322 new com.google.cloud.automl.v1.TextSentimentAnnotation(this); 323 if (bitField0_ != 0) { 324 buildPartial0(result); 325 } 326 onBuilt(); 327 return result; 328 } 329 buildPartial0(com.google.cloud.automl.v1.TextSentimentAnnotation result)330 private void buildPartial0(com.google.cloud.automl.v1.TextSentimentAnnotation result) { 331 int from_bitField0_ = bitField0_; 332 if (((from_bitField0_ & 0x00000001) != 0)) { 333 result.sentiment_ = sentiment_; 334 } 335 } 336 337 @java.lang.Override clone()338 public Builder clone() { 339 return super.clone(); 340 } 341 342 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)343 public Builder setField( 344 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 345 return super.setField(field, value); 346 } 347 348 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)349 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 350 return super.clearField(field); 351 } 352 353 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)354 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 355 return super.clearOneof(oneof); 356 } 357 358 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)359 public Builder setRepeatedField( 360 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 361 return super.setRepeatedField(field, index, value); 362 } 363 364 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)365 public Builder addRepeatedField( 366 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 367 return super.addRepeatedField(field, value); 368 } 369 370 @java.lang.Override mergeFrom(com.google.protobuf.Message other)371 public Builder mergeFrom(com.google.protobuf.Message other) { 372 if (other instanceof com.google.cloud.automl.v1.TextSentimentAnnotation) { 373 return mergeFrom((com.google.cloud.automl.v1.TextSentimentAnnotation) other); 374 } else { 375 super.mergeFrom(other); 376 return this; 377 } 378 } 379 mergeFrom(com.google.cloud.automl.v1.TextSentimentAnnotation other)380 public Builder mergeFrom(com.google.cloud.automl.v1.TextSentimentAnnotation other) { 381 if (other == com.google.cloud.automl.v1.TextSentimentAnnotation.getDefaultInstance()) 382 return this; 383 if (other.getSentiment() != 0) { 384 setSentiment(other.getSentiment()); 385 } 386 this.mergeUnknownFields(other.getUnknownFields()); 387 onChanged(); 388 return this; 389 } 390 391 @java.lang.Override isInitialized()392 public final boolean isInitialized() { 393 return true; 394 } 395 396 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)397 public Builder mergeFrom( 398 com.google.protobuf.CodedInputStream input, 399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws java.io.IOException { 401 if (extensionRegistry == null) { 402 throw new java.lang.NullPointerException(); 403 } 404 try { 405 boolean done = false; 406 while (!done) { 407 int tag = input.readTag(); 408 switch (tag) { 409 case 0: 410 done = true; 411 break; 412 case 8: 413 { 414 sentiment_ = input.readInt32(); 415 bitField0_ |= 0x00000001; 416 break; 417 } // case 8 418 default: 419 { 420 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 421 done = true; // was an endgroup tag 422 } 423 break; 424 } // default: 425 } // switch (tag) 426 } // while (!done) 427 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 428 throw e.unwrapIOException(); 429 } finally { 430 onChanged(); 431 } // finally 432 return this; 433 } 434 435 private int bitField0_; 436 437 private int sentiment_; 438 /** 439 * 440 * 441 * <pre> 442 * Output only. The sentiment with the semantic, as given to the 443 * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used 444 * for the prediction had been trained. 445 * The sentiment values are between 0 and 446 * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), 447 * with higher value meaning more positive sentiment. They are completely 448 * relative, i.e. 0 means least positive sentiment and sentiment_max means 449 * the most positive from the sentiments present in the train data. Therefore 450 * e.g. if train data had only negative sentiment, then sentiment_max, would 451 * be still negative (although least negative). 452 * The sentiment shouldn't be confused with "score" or "magnitude" 453 * from the previous Natural Language Sentiment Analysis API. 454 * </pre> 455 * 456 * <code>int32 sentiment = 1;</code> 457 * 458 * @return The sentiment. 459 */ 460 @java.lang.Override getSentiment()461 public int getSentiment() { 462 return sentiment_; 463 } 464 /** 465 * 466 * 467 * <pre> 468 * Output only. The sentiment with the semantic, as given to the 469 * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used 470 * for the prediction had been trained. 471 * The sentiment values are between 0 and 472 * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), 473 * with higher value meaning more positive sentiment. They are completely 474 * relative, i.e. 0 means least positive sentiment and sentiment_max means 475 * the most positive from the sentiments present in the train data. Therefore 476 * e.g. if train data had only negative sentiment, then sentiment_max, would 477 * be still negative (although least negative). 478 * The sentiment shouldn't be confused with "score" or "magnitude" 479 * from the previous Natural Language Sentiment Analysis API. 480 * </pre> 481 * 482 * <code>int32 sentiment = 1;</code> 483 * 484 * @param value The sentiment to set. 485 * @return This builder for chaining. 486 */ setSentiment(int value)487 public Builder setSentiment(int value) { 488 489 sentiment_ = value; 490 bitField0_ |= 0x00000001; 491 onChanged(); 492 return this; 493 } 494 /** 495 * 496 * 497 * <pre> 498 * Output only. The sentiment with the semantic, as given to the 499 * [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used 500 * for the prediction had been trained. 501 * The sentiment values are between 0 and 502 * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), 503 * with higher value meaning more positive sentiment. They are completely 504 * relative, i.e. 0 means least positive sentiment and sentiment_max means 505 * the most positive from the sentiments present in the train data. Therefore 506 * e.g. if train data had only negative sentiment, then sentiment_max, would 507 * be still negative (although least negative). 508 * The sentiment shouldn't be confused with "score" or "magnitude" 509 * from the previous Natural Language Sentiment Analysis API. 510 * </pre> 511 * 512 * <code>int32 sentiment = 1;</code> 513 * 514 * @return This builder for chaining. 515 */ clearSentiment()516 public Builder clearSentiment() { 517 bitField0_ = (bitField0_ & ~0x00000001); 518 sentiment_ = 0; 519 onChanged(); 520 return this; 521 } 522 523 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)524 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 525 return super.setUnknownFields(unknownFields); 526 } 527 528 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)529 public final Builder mergeUnknownFields( 530 final com.google.protobuf.UnknownFieldSet unknownFields) { 531 return super.mergeUnknownFields(unknownFields); 532 } 533 534 // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1.TextSentimentAnnotation) 535 } 536 537 // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.TextSentimentAnnotation) 538 private static final com.google.cloud.automl.v1.TextSentimentAnnotation DEFAULT_INSTANCE; 539 540 static { 541 DEFAULT_INSTANCE = new com.google.cloud.automl.v1.TextSentimentAnnotation(); 542 } 543 getDefaultInstance()544 public static com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInstance() { 545 return DEFAULT_INSTANCE; 546 } 547 548 private static final com.google.protobuf.Parser<TextSentimentAnnotation> PARSER = 549 new com.google.protobuf.AbstractParser<TextSentimentAnnotation>() { 550 @java.lang.Override 551 public TextSentimentAnnotation parsePartialFrom( 552 com.google.protobuf.CodedInputStream input, 553 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 554 throws com.google.protobuf.InvalidProtocolBufferException { 555 Builder builder = newBuilder(); 556 try { 557 builder.mergeFrom(input, extensionRegistry); 558 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 559 throw e.setUnfinishedMessage(builder.buildPartial()); 560 } catch (com.google.protobuf.UninitializedMessageException e) { 561 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 562 } catch (java.io.IOException e) { 563 throw new com.google.protobuf.InvalidProtocolBufferException(e) 564 .setUnfinishedMessage(builder.buildPartial()); 565 } 566 return builder.buildPartial(); 567 } 568 }; 569 parser()570 public static com.google.protobuf.Parser<TextSentimentAnnotation> parser() { 571 return PARSER; 572 } 573 574 @java.lang.Override getParserForType()575 public com.google.protobuf.Parser<TextSentimentAnnotation> getParserForType() { 576 return PARSER; 577 } 578 579 @java.lang.Override getDefaultInstanceForType()580 public com.google.cloud.automl.v1.TextSentimentAnnotation getDefaultInstanceForType() { 581 return DEFAULT_INSTANCE; 582 } 583 } 584