public static final class CreateConversationRequest.Builder extends GeneratedMessageV3.Builder<CreateConversationRequest.Builder> implements CreateConversationRequestOrBuilder
The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2beta1.Conversations.CreateConversation].Protobuf type
google.cloud.dialogflow.v2beta1.CreateConversationRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CreateConversationRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CreateConversationRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CreateConversationRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder mergeFrom(CreateConversationRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public CreateConversationRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CreateConversationRequest.Builder>
IOException
public String getParent()
Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CreateConversationRequestOrBuilder
public ByteString getParentBytes()
Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CreateConversationRequestOrBuilder
public CreateConversationRequest.Builder setParent(String value)
Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public CreateConversationRequest.Builder clearParent()
Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public CreateConversationRequest.Builder setParentBytes(ByteString value)
Required. Resource identifier of the project creating the conversation. Format: `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public boolean hasConversation()
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
hasConversation
in interface CreateConversationRequestOrBuilder
public Conversation getConversation()
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
getConversation
in interface CreateConversationRequestOrBuilder
public CreateConversationRequest.Builder setConversation(Conversation value)
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateConversationRequest.Builder setConversation(Conversation.Builder builderForValue)
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateConversationRequest.Builder mergeConversation(Conversation value)
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public CreateConversationRequest.Builder clearConversation()
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public Conversation.Builder getConversationBuilder()
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
public ConversationOrBuilder getConversationOrBuilder()
Required. The conversation to create.
.google.cloud.dialogflow.v2beta1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
getConversationOrBuilder
in interface CreateConversationRequestOrBuilder
public String getConversationId()
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
getConversationId
in interface CreateConversationRequestOrBuilder
public ByteString getConversationIdBytes()
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
getConversationIdBytes
in interface CreateConversationRequestOrBuilder
public CreateConversationRequest.Builder setConversationId(String value)
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The conversationId to set.public CreateConversationRequest.Builder clearConversationId()
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
public CreateConversationRequest.Builder setConversationIdBytes(ByteString value)
Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for conversationId to set.public final CreateConversationRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
public final CreateConversationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CreateConversationRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.