Class CreateEntityTypeRequest.Builder (0.15.0)

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

The request message for EntityTypes.CreateEntityType.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateEntityTypeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

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.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEntityTypeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateEntityTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateEntityTypeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

clearParent()

public CreateEntityTypeRequest.Builder clearParent()

Required. The agent to create a entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
Type Description
CreateEntityTypeRequest.Builder

This builder for chaining.

clone()

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

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.v3.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.v3.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.v3.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/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the entityType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.v3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateEntityTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.v3.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.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateEntityTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

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/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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.

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

public CreateEntityTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateEntityTypeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateEntityTypeRequest.Builder
Overrides