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/dialogflow/v2/conversation_profile.proto 18 19 package com.google.cloud.dialogflow.v2; 20 21 /** 22 * 23 * 24 * <pre> 25 * Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][] 26 * operation. 27 * </pre> 28 * 29 * Protobuf type {@code google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata} 30 */ 31 public final class SetSuggestionFeatureConfigOperationMetadata 32 extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) 35 SetSuggestionFeatureConfigOperationMetadataOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use SetSuggestionFeatureConfigOperationMetadata.newBuilder() to construct. SetSuggestionFeatureConfigOperationMetadata( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private SetSuggestionFeatureConfigOperationMetadata( 39 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 40 super(builder); 41 } 42 SetSuggestionFeatureConfigOperationMetadata()43 private SetSuggestionFeatureConfigOperationMetadata() { 44 conversationProfile_ = ""; 45 participantRole_ = 0; 46 suggestionFeatureType_ = 0; 47 } 48 49 @java.lang.Override 50 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)51 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 52 return new SetSuggestionFeatureConfigOperationMetadata(); 53 } 54 55 @java.lang.Override getUnknownFields()56 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 57 return this.unknownFields; 58 } 59 getDescriptor()60 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 61 return com.google.cloud.dialogflow.v2.ConversationProfileProto 62 .internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor; 63 } 64 65 @java.lang.Override 66 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()67 internalGetFieldAccessorTable() { 68 return com.google.cloud.dialogflow.v2.ConversationProfileProto 69 .internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable 70 .ensureFieldAccessorsInitialized( 71 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata.class, 72 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata.Builder 73 .class); 74 } 75 76 public static final int CONVERSATION_PROFILE_FIELD_NUMBER = 1; 77 78 @SuppressWarnings("serial") 79 private volatile java.lang.Object conversationProfile_ = ""; 80 /** 81 * 82 * 83 * <pre> 84 * The resource name of the conversation profile. Format: 85 * `projects/<Project ID>/locations/<Location 86 * ID>/conversationProfiles/<Conversation Profile ID>` 87 * </pre> 88 * 89 * <code>string conversation_profile = 1;</code> 90 * 91 * @return The conversationProfile. 92 */ 93 @java.lang.Override getConversationProfile()94 public java.lang.String getConversationProfile() { 95 java.lang.Object ref = conversationProfile_; 96 if (ref instanceof java.lang.String) { 97 return (java.lang.String) ref; 98 } else { 99 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 100 java.lang.String s = bs.toStringUtf8(); 101 conversationProfile_ = s; 102 return s; 103 } 104 } 105 /** 106 * 107 * 108 * <pre> 109 * The resource name of the conversation profile. Format: 110 * `projects/<Project ID>/locations/<Location 111 * ID>/conversationProfiles/<Conversation Profile ID>` 112 * </pre> 113 * 114 * <code>string conversation_profile = 1;</code> 115 * 116 * @return The bytes for conversationProfile. 117 */ 118 @java.lang.Override getConversationProfileBytes()119 public com.google.protobuf.ByteString getConversationProfileBytes() { 120 java.lang.Object ref = conversationProfile_; 121 if (ref instanceof java.lang.String) { 122 com.google.protobuf.ByteString b = 123 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 124 conversationProfile_ = b; 125 return b; 126 } else { 127 return (com.google.protobuf.ByteString) ref; 128 } 129 } 130 131 public static final int PARTICIPANT_ROLE_FIELD_NUMBER = 2; 132 private int participantRole_ = 0; 133 /** 134 * 135 * 136 * <pre> 137 * Required. The participant role to add or update the suggestion feature 138 * config. Only HUMAN_AGENT or END_USER can be used. 139 * </pre> 140 * 141 * <code> 142 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 143 * </code> 144 * 145 * @return The enum numeric value on the wire for participantRole. 146 */ 147 @java.lang.Override getParticipantRoleValue()148 public int getParticipantRoleValue() { 149 return participantRole_; 150 } 151 /** 152 * 153 * 154 * <pre> 155 * Required. The participant role to add or update the suggestion feature 156 * config. Only HUMAN_AGENT or END_USER can be used. 157 * </pre> 158 * 159 * <code> 160 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 161 * </code> 162 * 163 * @return The participantRole. 164 */ 165 @java.lang.Override getParticipantRole()166 public com.google.cloud.dialogflow.v2.Participant.Role getParticipantRole() { 167 com.google.cloud.dialogflow.v2.Participant.Role result = 168 com.google.cloud.dialogflow.v2.Participant.Role.forNumber(participantRole_); 169 return result == null ? com.google.cloud.dialogflow.v2.Participant.Role.UNRECOGNIZED : result; 170 } 171 172 public static final int SUGGESTION_FEATURE_TYPE_FIELD_NUMBER = 3; 173 private int suggestionFeatureType_ = 0; 174 /** 175 * 176 * 177 * <pre> 178 * Required. The type of the suggestion feature to add or update. 179 * </pre> 180 * 181 * <code> 182 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 183 * </code> 184 * 185 * @return The enum numeric value on the wire for suggestionFeatureType. 186 */ 187 @java.lang.Override getSuggestionFeatureTypeValue()188 public int getSuggestionFeatureTypeValue() { 189 return suggestionFeatureType_; 190 } 191 /** 192 * 193 * 194 * <pre> 195 * Required. The type of the suggestion feature to add or update. 196 * </pre> 197 * 198 * <code> 199 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 200 * </code> 201 * 202 * @return The suggestionFeatureType. 203 */ 204 @java.lang.Override getSuggestionFeatureType()205 public com.google.cloud.dialogflow.v2.SuggestionFeature.Type getSuggestionFeatureType() { 206 com.google.cloud.dialogflow.v2.SuggestionFeature.Type result = 207 com.google.cloud.dialogflow.v2.SuggestionFeature.Type.forNumber(suggestionFeatureType_); 208 return result == null 209 ? com.google.cloud.dialogflow.v2.SuggestionFeature.Type.UNRECOGNIZED 210 : result; 211 } 212 213 public static final int CREATE_TIME_FIELD_NUMBER = 4; 214 private com.google.protobuf.Timestamp createTime_; 215 /** 216 * 217 * 218 * <pre> 219 * Timestamp whe the request was created. The time is measured on server side. 220 * </pre> 221 * 222 * <code>.google.protobuf.Timestamp create_time = 4;</code> 223 * 224 * @return Whether the createTime field is set. 225 */ 226 @java.lang.Override hasCreateTime()227 public boolean hasCreateTime() { 228 return createTime_ != null; 229 } 230 /** 231 * 232 * 233 * <pre> 234 * Timestamp whe the request was created. The time is measured on server side. 235 * </pre> 236 * 237 * <code>.google.protobuf.Timestamp create_time = 4;</code> 238 * 239 * @return The createTime. 240 */ 241 @java.lang.Override getCreateTime()242 public com.google.protobuf.Timestamp getCreateTime() { 243 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 244 } 245 /** 246 * 247 * 248 * <pre> 249 * Timestamp whe the request was created. The time is measured on server side. 250 * </pre> 251 * 252 * <code>.google.protobuf.Timestamp create_time = 4;</code> 253 */ 254 @java.lang.Override getCreateTimeOrBuilder()255 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 256 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 257 } 258 259 private byte memoizedIsInitialized = -1; 260 261 @java.lang.Override isInitialized()262 public final boolean isInitialized() { 263 byte isInitialized = memoizedIsInitialized; 264 if (isInitialized == 1) return true; 265 if (isInitialized == 0) return false; 266 267 memoizedIsInitialized = 1; 268 return true; 269 } 270 271 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)272 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 273 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationProfile_)) { 274 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversationProfile_); 275 } 276 if (participantRole_ 277 != com.google.cloud.dialogflow.v2.Participant.Role.ROLE_UNSPECIFIED.getNumber()) { 278 output.writeEnum(2, participantRole_); 279 } 280 if (suggestionFeatureType_ 281 != com.google.cloud.dialogflow.v2.SuggestionFeature.Type.TYPE_UNSPECIFIED.getNumber()) { 282 output.writeEnum(3, suggestionFeatureType_); 283 } 284 if (createTime_ != null) { 285 output.writeMessage(4, getCreateTime()); 286 } 287 getUnknownFields().writeTo(output); 288 } 289 290 @java.lang.Override getSerializedSize()291 public int getSerializedSize() { 292 int size = memoizedSize; 293 if (size != -1) return size; 294 295 size = 0; 296 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationProfile_)) { 297 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversationProfile_); 298 } 299 if (participantRole_ 300 != com.google.cloud.dialogflow.v2.Participant.Role.ROLE_UNSPECIFIED.getNumber()) { 301 size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, participantRole_); 302 } 303 if (suggestionFeatureType_ 304 != com.google.cloud.dialogflow.v2.SuggestionFeature.Type.TYPE_UNSPECIFIED.getNumber()) { 305 size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, suggestionFeatureType_); 306 } 307 if (createTime_ != null) { 308 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); 309 } 310 size += getUnknownFields().getSerializedSize(); 311 memoizedSize = size; 312 return size; 313 } 314 315 @java.lang.Override equals(final java.lang.Object obj)316 public boolean equals(final java.lang.Object obj) { 317 if (obj == this) { 318 return true; 319 } 320 if (!(obj 321 instanceof com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata)) { 322 return super.equals(obj); 323 } 324 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata other = 325 (com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) obj; 326 327 if (!getConversationProfile().equals(other.getConversationProfile())) return false; 328 if (participantRole_ != other.participantRole_) return false; 329 if (suggestionFeatureType_ != other.suggestionFeatureType_) return false; 330 if (hasCreateTime() != other.hasCreateTime()) return false; 331 if (hasCreateTime()) { 332 if (!getCreateTime().equals(other.getCreateTime())) return false; 333 } 334 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 335 return true; 336 } 337 338 @java.lang.Override hashCode()339 public int hashCode() { 340 if (memoizedHashCode != 0) { 341 return memoizedHashCode; 342 } 343 int hash = 41; 344 hash = (19 * hash) + getDescriptor().hashCode(); 345 hash = (37 * hash) + CONVERSATION_PROFILE_FIELD_NUMBER; 346 hash = (53 * hash) + getConversationProfile().hashCode(); 347 hash = (37 * hash) + PARTICIPANT_ROLE_FIELD_NUMBER; 348 hash = (53 * hash) + participantRole_; 349 hash = (37 * hash) + SUGGESTION_FEATURE_TYPE_FIELD_NUMBER; 350 hash = (53 * hash) + suggestionFeatureType_; 351 if (hasCreateTime()) { 352 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 353 hash = (53 * hash) + getCreateTime().hashCode(); 354 } 355 hash = (29 * hash) + getUnknownFields().hashCode(); 356 memoizedHashCode = hash; 357 return hash; 358 } 359 360 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(java.nio.ByteBuffer data)361 parseFrom(java.nio.ByteBuffer data) 362 throws com.google.protobuf.InvalidProtocolBufferException { 363 return PARSER.parseFrom(data); 364 } 365 366 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)367 parseFrom( 368 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 369 throws com.google.protobuf.InvalidProtocolBufferException { 370 return PARSER.parseFrom(data, extensionRegistry); 371 } 372 373 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(com.google.protobuf.ByteString data)374 parseFrom(com.google.protobuf.ByteString data) 375 throws com.google.protobuf.InvalidProtocolBufferException { 376 return PARSER.parseFrom(data); 377 } 378 379 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)380 parseFrom( 381 com.google.protobuf.ByteString data, 382 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 383 throws com.google.protobuf.InvalidProtocolBufferException { 384 return PARSER.parseFrom(data, extensionRegistry); 385 } 386 387 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(byte[] data)388 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 389 return PARSER.parseFrom(data); 390 } 391 392 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)393 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 394 throws com.google.protobuf.InvalidProtocolBufferException { 395 return PARSER.parseFrom(data, extensionRegistry); 396 } 397 398 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(java.io.InputStream input)399 parseFrom(java.io.InputStream input) throws java.io.IOException { 400 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 401 } 402 403 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)404 parseFrom( 405 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 406 throws java.io.IOException { 407 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 408 PARSER, input, extensionRegistry); 409 } 410 411 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseDelimitedFrom(java.io.InputStream input)412 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 413 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 414 } 415 416 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)417 parseDelimitedFrom( 418 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 419 throws java.io.IOException { 420 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 421 PARSER, input, extensionRegistry); 422 } 423 424 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom(com.google.protobuf.CodedInputStream input)425 parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { 426 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 427 } 428 429 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)430 parseFrom( 431 com.google.protobuf.CodedInputStream input, 432 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 433 throws java.io.IOException { 434 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 435 PARSER, input, extensionRegistry); 436 } 437 438 @java.lang.Override newBuilderForType()439 public Builder newBuilderForType() { 440 return newBuilder(); 441 } 442 newBuilder()443 public static Builder newBuilder() { 444 return DEFAULT_INSTANCE.toBuilder(); 445 } 446 newBuilder( com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata prototype)447 public static Builder newBuilder( 448 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata prototype) { 449 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 450 } 451 452 @java.lang.Override toBuilder()453 public Builder toBuilder() { 454 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 455 } 456 457 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)458 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 459 Builder builder = new Builder(parent); 460 return builder; 461 } 462 /** 463 * 464 * 465 * <pre> 466 * Metadata for a [ConversationProfile.SetSuggestionFeatureConfig][] 467 * operation. 468 * </pre> 469 * 470 * Protobuf type {@code google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata} 471 */ 472 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 473 implements 474 // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) 475 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadataOrBuilder { getDescriptor()476 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 477 return com.google.cloud.dialogflow.v2.ConversationProfileProto 478 .internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor; 479 } 480 481 @java.lang.Override 482 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()483 internalGetFieldAccessorTable() { 484 return com.google.cloud.dialogflow.v2.ConversationProfileProto 485 .internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable 486 .ensureFieldAccessorsInitialized( 487 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata.class, 488 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata.Builder 489 .class); 490 } 491 492 // Construct using 493 // com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata.newBuilder() Builder()494 private Builder() {} 495 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)496 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 497 super(parent); 498 } 499 500 @java.lang.Override clear()501 public Builder clear() { 502 super.clear(); 503 bitField0_ = 0; 504 conversationProfile_ = ""; 505 participantRole_ = 0; 506 suggestionFeatureType_ = 0; 507 createTime_ = null; 508 if (createTimeBuilder_ != null) { 509 createTimeBuilder_.dispose(); 510 createTimeBuilder_ = null; 511 } 512 return this; 513 } 514 515 @java.lang.Override getDescriptorForType()516 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 517 return com.google.cloud.dialogflow.v2.ConversationProfileProto 518 .internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor; 519 } 520 521 @java.lang.Override 522 public com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata getDefaultInstanceForType()523 getDefaultInstanceForType() { 524 return com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata 525 .getDefaultInstance(); 526 } 527 528 @java.lang.Override build()529 public com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata build() { 530 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata result = 531 buildPartial(); 532 if (!result.isInitialized()) { 533 throw newUninitializedMessageException(result); 534 } 535 return result; 536 } 537 538 @java.lang.Override 539 public com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata buildPartial()540 buildPartial() { 541 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata result = 542 new com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata(this); 543 if (bitField0_ != 0) { 544 buildPartial0(result); 545 } 546 onBuilt(); 547 return result; 548 } 549 buildPartial0( com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata result)550 private void buildPartial0( 551 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata result) { 552 int from_bitField0_ = bitField0_; 553 if (((from_bitField0_ & 0x00000001) != 0)) { 554 result.conversationProfile_ = conversationProfile_; 555 } 556 if (((from_bitField0_ & 0x00000002) != 0)) { 557 result.participantRole_ = participantRole_; 558 } 559 if (((from_bitField0_ & 0x00000004) != 0)) { 560 result.suggestionFeatureType_ = suggestionFeatureType_; 561 } 562 if (((from_bitField0_ & 0x00000008) != 0)) { 563 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 564 } 565 } 566 567 @java.lang.Override clone()568 public Builder clone() { 569 return super.clone(); 570 } 571 572 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)573 public Builder setField( 574 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 575 return super.setField(field, value); 576 } 577 578 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)579 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 580 return super.clearField(field); 581 } 582 583 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)584 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 585 return super.clearOneof(oneof); 586 } 587 588 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)589 public Builder setRepeatedField( 590 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 591 return super.setRepeatedField(field, index, value); 592 } 593 594 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)595 public Builder addRepeatedField( 596 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 597 return super.addRepeatedField(field, value); 598 } 599 600 @java.lang.Override mergeFrom(com.google.protobuf.Message other)601 public Builder mergeFrom(com.google.protobuf.Message other) { 602 if (other 603 instanceof com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) { 604 return mergeFrom( 605 (com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) other); 606 } else { 607 super.mergeFrom(other); 608 return this; 609 } 610 } 611 mergeFrom( com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata other)612 public Builder mergeFrom( 613 com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata other) { 614 if (other 615 == com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata 616 .getDefaultInstance()) return this; 617 if (!other.getConversationProfile().isEmpty()) { 618 conversationProfile_ = other.conversationProfile_; 619 bitField0_ |= 0x00000001; 620 onChanged(); 621 } 622 if (other.participantRole_ != 0) { 623 setParticipantRoleValue(other.getParticipantRoleValue()); 624 } 625 if (other.suggestionFeatureType_ != 0) { 626 setSuggestionFeatureTypeValue(other.getSuggestionFeatureTypeValue()); 627 } 628 if (other.hasCreateTime()) { 629 mergeCreateTime(other.getCreateTime()); 630 } 631 this.mergeUnknownFields(other.getUnknownFields()); 632 onChanged(); 633 return this; 634 } 635 636 @java.lang.Override isInitialized()637 public final boolean isInitialized() { 638 return true; 639 } 640 641 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)642 public Builder mergeFrom( 643 com.google.protobuf.CodedInputStream input, 644 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 645 throws java.io.IOException { 646 if (extensionRegistry == null) { 647 throw new java.lang.NullPointerException(); 648 } 649 try { 650 boolean done = false; 651 while (!done) { 652 int tag = input.readTag(); 653 switch (tag) { 654 case 0: 655 done = true; 656 break; 657 case 10: 658 { 659 conversationProfile_ = input.readStringRequireUtf8(); 660 bitField0_ |= 0x00000001; 661 break; 662 } // case 10 663 case 16: 664 { 665 participantRole_ = input.readEnum(); 666 bitField0_ |= 0x00000002; 667 break; 668 } // case 16 669 case 24: 670 { 671 suggestionFeatureType_ = input.readEnum(); 672 bitField0_ |= 0x00000004; 673 break; 674 } // case 24 675 case 34: 676 { 677 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 678 bitField0_ |= 0x00000008; 679 break; 680 } // case 34 681 default: 682 { 683 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 684 done = true; // was an endgroup tag 685 } 686 break; 687 } // default: 688 } // switch (tag) 689 } // while (!done) 690 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 691 throw e.unwrapIOException(); 692 } finally { 693 onChanged(); 694 } // finally 695 return this; 696 } 697 698 private int bitField0_; 699 700 private java.lang.Object conversationProfile_ = ""; 701 /** 702 * 703 * 704 * <pre> 705 * The resource name of the conversation profile. Format: 706 * `projects/<Project ID>/locations/<Location 707 * ID>/conversationProfiles/<Conversation Profile ID>` 708 * </pre> 709 * 710 * <code>string conversation_profile = 1;</code> 711 * 712 * @return The conversationProfile. 713 */ getConversationProfile()714 public java.lang.String getConversationProfile() { 715 java.lang.Object ref = conversationProfile_; 716 if (!(ref instanceof java.lang.String)) { 717 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 718 java.lang.String s = bs.toStringUtf8(); 719 conversationProfile_ = s; 720 return s; 721 } else { 722 return (java.lang.String) ref; 723 } 724 } 725 /** 726 * 727 * 728 * <pre> 729 * The resource name of the conversation profile. Format: 730 * `projects/<Project ID>/locations/<Location 731 * ID>/conversationProfiles/<Conversation Profile ID>` 732 * </pre> 733 * 734 * <code>string conversation_profile = 1;</code> 735 * 736 * @return The bytes for conversationProfile. 737 */ getConversationProfileBytes()738 public com.google.protobuf.ByteString getConversationProfileBytes() { 739 java.lang.Object ref = conversationProfile_; 740 if (ref instanceof String) { 741 com.google.protobuf.ByteString b = 742 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 743 conversationProfile_ = b; 744 return b; 745 } else { 746 return (com.google.protobuf.ByteString) ref; 747 } 748 } 749 /** 750 * 751 * 752 * <pre> 753 * The resource name of the conversation profile. Format: 754 * `projects/<Project ID>/locations/<Location 755 * ID>/conversationProfiles/<Conversation Profile ID>` 756 * </pre> 757 * 758 * <code>string conversation_profile = 1;</code> 759 * 760 * @param value The conversationProfile to set. 761 * @return This builder for chaining. 762 */ setConversationProfile(java.lang.String value)763 public Builder setConversationProfile(java.lang.String value) { 764 if (value == null) { 765 throw new NullPointerException(); 766 } 767 conversationProfile_ = value; 768 bitField0_ |= 0x00000001; 769 onChanged(); 770 return this; 771 } 772 /** 773 * 774 * 775 * <pre> 776 * The resource name of the conversation profile. Format: 777 * `projects/<Project ID>/locations/<Location 778 * ID>/conversationProfiles/<Conversation Profile ID>` 779 * </pre> 780 * 781 * <code>string conversation_profile = 1;</code> 782 * 783 * @return This builder for chaining. 784 */ clearConversationProfile()785 public Builder clearConversationProfile() { 786 conversationProfile_ = getDefaultInstance().getConversationProfile(); 787 bitField0_ = (bitField0_ & ~0x00000001); 788 onChanged(); 789 return this; 790 } 791 /** 792 * 793 * 794 * <pre> 795 * The resource name of the conversation profile. Format: 796 * `projects/<Project ID>/locations/<Location 797 * ID>/conversationProfiles/<Conversation Profile ID>` 798 * </pre> 799 * 800 * <code>string conversation_profile = 1;</code> 801 * 802 * @param value The bytes for conversationProfile to set. 803 * @return This builder for chaining. 804 */ setConversationProfileBytes(com.google.protobuf.ByteString value)805 public Builder setConversationProfileBytes(com.google.protobuf.ByteString value) { 806 if (value == null) { 807 throw new NullPointerException(); 808 } 809 checkByteStringIsUtf8(value); 810 conversationProfile_ = value; 811 bitField0_ |= 0x00000001; 812 onChanged(); 813 return this; 814 } 815 816 private int participantRole_ = 0; 817 /** 818 * 819 * 820 * <pre> 821 * Required. The participant role to add or update the suggestion feature 822 * config. Only HUMAN_AGENT or END_USER can be used. 823 * </pre> 824 * 825 * <code> 826 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 827 * </code> 828 * 829 * @return The enum numeric value on the wire for participantRole. 830 */ 831 @java.lang.Override getParticipantRoleValue()832 public int getParticipantRoleValue() { 833 return participantRole_; 834 } 835 /** 836 * 837 * 838 * <pre> 839 * Required. The participant role to add or update the suggestion feature 840 * config. Only HUMAN_AGENT or END_USER can be used. 841 * </pre> 842 * 843 * <code> 844 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 845 * </code> 846 * 847 * @param value The enum numeric value on the wire for participantRole to set. 848 * @return This builder for chaining. 849 */ setParticipantRoleValue(int value)850 public Builder setParticipantRoleValue(int value) { 851 participantRole_ = value; 852 bitField0_ |= 0x00000002; 853 onChanged(); 854 return this; 855 } 856 /** 857 * 858 * 859 * <pre> 860 * Required. The participant role to add or update the suggestion feature 861 * config. Only HUMAN_AGENT or END_USER can be used. 862 * </pre> 863 * 864 * <code> 865 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 866 * </code> 867 * 868 * @return The participantRole. 869 */ 870 @java.lang.Override getParticipantRole()871 public com.google.cloud.dialogflow.v2.Participant.Role getParticipantRole() { 872 com.google.cloud.dialogflow.v2.Participant.Role result = 873 com.google.cloud.dialogflow.v2.Participant.Role.forNumber(participantRole_); 874 return result == null ? com.google.cloud.dialogflow.v2.Participant.Role.UNRECOGNIZED : result; 875 } 876 /** 877 * 878 * 879 * <pre> 880 * Required. The participant role to add or update the suggestion feature 881 * config. Only HUMAN_AGENT or END_USER can be used. 882 * </pre> 883 * 884 * <code> 885 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 886 * </code> 887 * 888 * @param value The participantRole to set. 889 * @return This builder for chaining. 890 */ setParticipantRole(com.google.cloud.dialogflow.v2.Participant.Role value)891 public Builder setParticipantRole(com.google.cloud.dialogflow.v2.Participant.Role value) { 892 if (value == null) { 893 throw new NullPointerException(); 894 } 895 bitField0_ |= 0x00000002; 896 participantRole_ = value.getNumber(); 897 onChanged(); 898 return this; 899 } 900 /** 901 * 902 * 903 * <pre> 904 * Required. The participant role to add or update the suggestion feature 905 * config. Only HUMAN_AGENT or END_USER can be used. 906 * </pre> 907 * 908 * <code> 909 * .google.cloud.dialogflow.v2.Participant.Role participant_role = 2 [(.google.api.field_behavior) = REQUIRED]; 910 * </code> 911 * 912 * @return This builder for chaining. 913 */ clearParticipantRole()914 public Builder clearParticipantRole() { 915 bitField0_ = (bitField0_ & ~0x00000002); 916 participantRole_ = 0; 917 onChanged(); 918 return this; 919 } 920 921 private int suggestionFeatureType_ = 0; 922 /** 923 * 924 * 925 * <pre> 926 * Required. The type of the suggestion feature to add or update. 927 * </pre> 928 * 929 * <code> 930 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 931 * </code> 932 * 933 * @return The enum numeric value on the wire for suggestionFeatureType. 934 */ 935 @java.lang.Override getSuggestionFeatureTypeValue()936 public int getSuggestionFeatureTypeValue() { 937 return suggestionFeatureType_; 938 } 939 /** 940 * 941 * 942 * <pre> 943 * Required. The type of the suggestion feature to add or update. 944 * </pre> 945 * 946 * <code> 947 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 948 * </code> 949 * 950 * @param value The enum numeric value on the wire for suggestionFeatureType to set. 951 * @return This builder for chaining. 952 */ setSuggestionFeatureTypeValue(int value)953 public Builder setSuggestionFeatureTypeValue(int value) { 954 suggestionFeatureType_ = value; 955 bitField0_ |= 0x00000004; 956 onChanged(); 957 return this; 958 } 959 /** 960 * 961 * 962 * <pre> 963 * Required. The type of the suggestion feature to add or update. 964 * </pre> 965 * 966 * <code> 967 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 968 * </code> 969 * 970 * @return The suggestionFeatureType. 971 */ 972 @java.lang.Override getSuggestionFeatureType()973 public com.google.cloud.dialogflow.v2.SuggestionFeature.Type getSuggestionFeatureType() { 974 com.google.cloud.dialogflow.v2.SuggestionFeature.Type result = 975 com.google.cloud.dialogflow.v2.SuggestionFeature.Type.forNumber(suggestionFeatureType_); 976 return result == null 977 ? com.google.cloud.dialogflow.v2.SuggestionFeature.Type.UNRECOGNIZED 978 : result; 979 } 980 /** 981 * 982 * 983 * <pre> 984 * Required. The type of the suggestion feature to add or update. 985 * </pre> 986 * 987 * <code> 988 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 989 * </code> 990 * 991 * @param value The suggestionFeatureType to set. 992 * @return This builder for chaining. 993 */ setSuggestionFeatureType( com.google.cloud.dialogflow.v2.SuggestionFeature.Type value)994 public Builder setSuggestionFeatureType( 995 com.google.cloud.dialogflow.v2.SuggestionFeature.Type value) { 996 if (value == null) { 997 throw new NullPointerException(); 998 } 999 bitField0_ |= 0x00000004; 1000 suggestionFeatureType_ = value.getNumber(); 1001 onChanged(); 1002 return this; 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * Required. The type of the suggestion feature to add or update. 1009 * </pre> 1010 * 1011 * <code> 1012 * .google.cloud.dialogflow.v2.SuggestionFeature.Type suggestion_feature_type = 3 [(.google.api.field_behavior) = REQUIRED]; 1013 * </code> 1014 * 1015 * @return This builder for chaining. 1016 */ clearSuggestionFeatureType()1017 public Builder clearSuggestionFeatureType() { 1018 bitField0_ = (bitField0_ & ~0x00000004); 1019 suggestionFeatureType_ = 0; 1020 onChanged(); 1021 return this; 1022 } 1023 1024 private com.google.protobuf.Timestamp createTime_; 1025 private com.google.protobuf.SingleFieldBuilderV3< 1026 com.google.protobuf.Timestamp, 1027 com.google.protobuf.Timestamp.Builder, 1028 com.google.protobuf.TimestampOrBuilder> 1029 createTimeBuilder_; 1030 /** 1031 * 1032 * 1033 * <pre> 1034 * Timestamp whe the request was created. The time is measured on server side. 1035 * </pre> 1036 * 1037 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1038 * 1039 * @return Whether the createTime field is set. 1040 */ hasCreateTime()1041 public boolean hasCreateTime() { 1042 return ((bitField0_ & 0x00000008) != 0); 1043 } 1044 /** 1045 * 1046 * 1047 * <pre> 1048 * Timestamp whe the request was created. The time is measured on server side. 1049 * </pre> 1050 * 1051 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1052 * 1053 * @return The createTime. 1054 */ getCreateTime()1055 public com.google.protobuf.Timestamp getCreateTime() { 1056 if (createTimeBuilder_ == null) { 1057 return createTime_ == null 1058 ? com.google.protobuf.Timestamp.getDefaultInstance() 1059 : createTime_; 1060 } else { 1061 return createTimeBuilder_.getMessage(); 1062 } 1063 } 1064 /** 1065 * 1066 * 1067 * <pre> 1068 * Timestamp whe the request was created. The time is measured on server side. 1069 * </pre> 1070 * 1071 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1072 */ setCreateTime(com.google.protobuf.Timestamp value)1073 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 1074 if (createTimeBuilder_ == null) { 1075 if (value == null) { 1076 throw new NullPointerException(); 1077 } 1078 createTime_ = value; 1079 } else { 1080 createTimeBuilder_.setMessage(value); 1081 } 1082 bitField0_ |= 0x00000008; 1083 onChanged(); 1084 return this; 1085 } 1086 /** 1087 * 1088 * 1089 * <pre> 1090 * Timestamp whe the request was created. The time is measured on server side. 1091 * </pre> 1092 * 1093 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1094 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1095 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1096 if (createTimeBuilder_ == null) { 1097 createTime_ = builderForValue.build(); 1098 } else { 1099 createTimeBuilder_.setMessage(builderForValue.build()); 1100 } 1101 bitField0_ |= 0x00000008; 1102 onChanged(); 1103 return this; 1104 } 1105 /** 1106 * 1107 * 1108 * <pre> 1109 * Timestamp whe the request was created. The time is measured on server side. 1110 * </pre> 1111 * 1112 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1113 */ mergeCreateTime(com.google.protobuf.Timestamp value)1114 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 1115 if (createTimeBuilder_ == null) { 1116 if (((bitField0_ & 0x00000008) != 0) 1117 && createTime_ != null 1118 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1119 getCreateTimeBuilder().mergeFrom(value); 1120 } else { 1121 createTime_ = value; 1122 } 1123 } else { 1124 createTimeBuilder_.mergeFrom(value); 1125 } 1126 bitField0_ |= 0x00000008; 1127 onChanged(); 1128 return this; 1129 } 1130 /** 1131 * 1132 * 1133 * <pre> 1134 * Timestamp whe the request was created. The time is measured on server side. 1135 * </pre> 1136 * 1137 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1138 */ clearCreateTime()1139 public Builder clearCreateTime() { 1140 bitField0_ = (bitField0_ & ~0x00000008); 1141 createTime_ = null; 1142 if (createTimeBuilder_ != null) { 1143 createTimeBuilder_.dispose(); 1144 createTimeBuilder_ = null; 1145 } 1146 onChanged(); 1147 return this; 1148 } 1149 /** 1150 * 1151 * 1152 * <pre> 1153 * Timestamp whe the request was created. The time is measured on server side. 1154 * </pre> 1155 * 1156 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1157 */ getCreateTimeBuilder()1158 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 1159 bitField0_ |= 0x00000008; 1160 onChanged(); 1161 return getCreateTimeFieldBuilder().getBuilder(); 1162 } 1163 /** 1164 * 1165 * 1166 * <pre> 1167 * Timestamp whe the request was created. The time is measured on server side. 1168 * </pre> 1169 * 1170 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1171 */ getCreateTimeOrBuilder()1172 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 1173 if (createTimeBuilder_ != null) { 1174 return createTimeBuilder_.getMessageOrBuilder(); 1175 } else { 1176 return createTime_ == null 1177 ? com.google.protobuf.Timestamp.getDefaultInstance() 1178 : createTime_; 1179 } 1180 } 1181 /** 1182 * 1183 * 1184 * <pre> 1185 * Timestamp whe the request was created. The time is measured on server side. 1186 * </pre> 1187 * 1188 * <code>.google.protobuf.Timestamp create_time = 4;</code> 1189 */ 1190 private com.google.protobuf.SingleFieldBuilderV3< 1191 com.google.protobuf.Timestamp, 1192 com.google.protobuf.Timestamp.Builder, 1193 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()1194 getCreateTimeFieldBuilder() { 1195 if (createTimeBuilder_ == null) { 1196 createTimeBuilder_ = 1197 new com.google.protobuf.SingleFieldBuilderV3< 1198 com.google.protobuf.Timestamp, 1199 com.google.protobuf.Timestamp.Builder, 1200 com.google.protobuf.TimestampOrBuilder>( 1201 getCreateTime(), getParentForChildren(), isClean()); 1202 createTime_ = null; 1203 } 1204 return createTimeBuilder_; 1205 } 1206 1207 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1208 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1209 return super.setUnknownFields(unknownFields); 1210 } 1211 1212 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1213 public final Builder mergeUnknownFields( 1214 final com.google.protobuf.UnknownFieldSet unknownFields) { 1215 return super.mergeUnknownFields(unknownFields); 1216 } 1217 1218 // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) 1219 } 1220 1221 // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata) 1222 private static final com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata 1223 DEFAULT_INSTANCE; 1224 1225 static { 1226 DEFAULT_INSTANCE = 1227 new com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata(); 1228 } 1229 1230 public static com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata getDefaultInstance()1231 getDefaultInstance() { 1232 return DEFAULT_INSTANCE; 1233 } 1234 1235 private static final com.google.protobuf.Parser<SetSuggestionFeatureConfigOperationMetadata> 1236 PARSER = 1237 new com.google.protobuf.AbstractParser<SetSuggestionFeatureConfigOperationMetadata>() { 1238 @java.lang.Override 1239 public SetSuggestionFeatureConfigOperationMetadata parsePartialFrom( 1240 com.google.protobuf.CodedInputStream input, 1241 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1242 throws com.google.protobuf.InvalidProtocolBufferException { 1243 Builder builder = newBuilder(); 1244 try { 1245 builder.mergeFrom(input, extensionRegistry); 1246 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1247 throw e.setUnfinishedMessage(builder.buildPartial()); 1248 } catch (com.google.protobuf.UninitializedMessageException e) { 1249 throw e.asInvalidProtocolBufferException() 1250 .setUnfinishedMessage(builder.buildPartial()); 1251 } catch (java.io.IOException e) { 1252 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1253 .setUnfinishedMessage(builder.buildPartial()); 1254 } 1255 return builder.buildPartial(); 1256 } 1257 }; 1258 parser()1259 public static com.google.protobuf.Parser<SetSuggestionFeatureConfigOperationMetadata> parser() { 1260 return PARSER; 1261 } 1262 1263 @java.lang.Override 1264 public com.google.protobuf.Parser<SetSuggestionFeatureConfigOperationMetadata> getParserForType()1265 getParserForType() { 1266 return PARSER; 1267 } 1268 1269 @java.lang.Override 1270 public com.google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata getDefaultInstanceForType()1271 getDefaultInstanceForType() { 1272 return DEFAULT_INSTANCE; 1273 } 1274 } 1275