Class CreateConversationProfileRequest.Builder (4.7.0)

See more code actions.
public static final class CreateConversationProfileRequest.Builder extends GeneratedMessageV3.Builder<CreateConversationProfileRequest.Builder> implements CreateConversationProfileRequestOrBuilder

The request message for ConversationProfiles.CreateConversationProfile.

Protobuf type google.cloud.dialogflow.v2.CreateConversationProfileRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateConversationProfileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

build()

public CreateConversationProfileRequest build()
Returns

buildPartial()

public CreateConversationProfileRequest buildPartial()
Returns

clear()

public CreateConversationProfileRequest.Builder clear()
Returns Overrides

clearConversationProfile()

public CreateConversationProfileRequest.Builder clearConversationProfile()

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns

clearField(Descriptors.FieldDescriptor field)

public CreateConversationProfileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateConversationProfileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns Overrides

clearParent()

public CreateConversationProfileRequest.Builder clearParent()

Required. The project to create a conversation profile for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateConversationProfileRequest.Builder

This builder for chaining.

clone()

public CreateConversationProfileRequest.Builder clone()
Returns Overrides

getConversationProfile()

public ConversationProfile getConversationProfile()

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ConversationProfile

The conversationProfile.

getConversationProfileBuilder()

public ConversationProfile.Builder getConversationProfileBuilder()

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns

getConversationProfileOrBuilder()

public ConversationProfileOrBuilder getConversationProfileOrBuilder()

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns

getDefaultInstanceForType()

public CreateConversationProfileRequest getDefaultInstanceForType()
Returns

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The project to create a conversation profile for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project to create a conversation profile for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasConversationProfile()

public boolean hasConversationProfile()

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the conversationProfile field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConversationProfile(ConversationProfile value)

public CreateConversationProfileRequest.Builder mergeConversationProfile(ConversationProfile value)

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConversationProfile
Returns

mergeFrom(CreateConversationProfileRequest other)

public CreateConversationProfileRequest.Builder mergeFrom(CreateConversationProfileRequest other)
Parameter Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateConversationProfileRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateConversationProfileRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateConversationProfileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

setConversationProfile(ConversationProfile value)

public CreateConversationProfileRequest.Builder setConversationProfile(ConversationProfile value)

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueConversationProfile
Returns

setConversationProfile(ConversationProfile.Builder builderForValue)

public CreateConversationProfileRequest.Builder setConversationProfile(ConversationProfile.Builder builderForValue)

Required. The conversation profile to create.

.google.cloud.dialogflow.v2.ConversationProfile conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueConversationProfile.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public CreateConversationProfileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

setParent(String value)

public CreateConversationProfileRequest.Builder setParent(String value)

Required. The project to create a conversation profile for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateConversationProfileRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConversationProfileRequest.Builder setParentBytes(ByteString value)

Required. The project to create a conversation profile for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateConversationProfileRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateConversationProfileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateConversationProfileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides