Class CreateEntityTypeRequest.Builder (0.94.0)

public static final class CreateEntityTypeRequest.Builder extends GeneratedMessage.Builder<CreateEntityTypeRequest.Builder> implements CreateEntityTypeRequestOrBuilder

The request message for EntityTypes.CreateEntityType.

Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateEntityTypeRequest build()
Returns
Type Description
CreateEntityTypeRequest

buildPartial()

public CreateEntityTypeRequest buildPartial()
Returns
Type Description
CreateEntityTypeRequest

clear()

public CreateEntityTypeRequest.Builder clear()
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

clearEntityType()

public CreateEntityTypeRequest.Builder clearEntityType()

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEntityTypeRequest.Builder

clearLanguageCode()

public CreateEntityTypeRequest.Builder clearLanguageCode()

The language of the following fields in entity_type:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

clearParent()

public CreateEntityTypeRequest.Builder clearParent()

Required. The agent to create a entity type for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateEntityTypeRequest getDefaultInstanceForType()
Returns
Type Description
CreateEntityTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntityType()

public EntityType getEntityType()

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EntityType

The entityType.

getEntityTypeBuilder()

public EntityType.Builder getEntityTypeBuilder()

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EntityType.Builder

getEntityTypeOrBuilder()

public EntityTypeOrBuilder getEntityTypeOrBuilder()

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EntityTypeOrBuilder

getLanguageCode()

public String getLanguageCode()

The language of the following fields in entity_type:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

The language of the following fields in entity_type:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
Type Description
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The agent to create a entity type for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent to create a entity type for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Returns
Type Description
ByteString

The bytes for parent.

hasEntityType()

public boolean hasEntityType()

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the entityType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntityType(EntityType value)

public CreateEntityTypeRequest.Builder mergeEntityType(EntityType value)

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EntityType
Returns
Type Description
CreateEntityTypeRequest.Builder

mergeFrom(CreateEntityTypeRequest other)

public CreateEntityTypeRequest.Builder mergeFrom(CreateEntityTypeRequest other)
Parameter
Name Description
other CreateEntityTypeRequest
Returns
Type Description
CreateEntityTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateEntityTypeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateEntityTypeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

setEntityType(EntityType value)

public CreateEntityTypeRequest.Builder setEntityType(EntityType value)

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EntityType
Returns
Type Description
CreateEntityTypeRequest.Builder

setEntityType(EntityType.Builder builderForValue)

public CreateEntityTypeRequest.Builder setEntityType(EntityType.Builder builderForValue)

Required. The entity type to create.

.google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EntityType.Builder
Returns
Type Description
CreateEntityTypeRequest.Builder

setLanguageCode(String value)

public CreateEntityTypeRequest.Builder setLanguageCode(String value)

The language of the following fields in entity_type:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public CreateEntityTypeRequest.Builder setLanguageCodeBytes(ByteString value)

The language of the following fields in entity_type:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

setParent(String value)

public CreateEntityTypeRequest.Builder setParent(String value)

Required. The agent to create a entity type for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEntityTypeRequest.Builder setParentBytes(ByteString value)

Required. The agent to create a entity type for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.