Class CreateEntityTypeRequest.Builder (4.7.5)

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

The request message for EntityTypes.CreateEntityType.

Protobuf type google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEntityTypeRequest build()
Returns
TypeDescription
CreateEntityTypeRequest

buildPartial()

public CreateEntityTypeRequest buildPartial()
Returns
TypeDescription
CreateEntityTypeRequest

clear()

public CreateEntityTypeRequest.Builder clear()
Returns
TypeDescription
CreateEntityTypeRequest.Builder
Overrides

clearEntityType()

public CreateEntityTypeRequest.Builder clearEntityType()

Required. The entity type to create.

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

Returns
TypeDescription
CreateEntityTypeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public CreateEntityTypeRequest.Builder clearLanguageCode()

Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateEntityTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateEntityTypeRequest.Builder clearParent()

Required. The agent to create a entity type for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Returns
TypeDescription
CreateEntityTypeRequest.Builder

This builder for chaining.

clone()

public CreateEntityTypeRequest.Builder clone()
Returns
TypeDescription
CreateEntityTypeRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateEntityTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateEntityTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityType()

public EntityType getEntityType()

Required. The entity type to create.

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

Returns
TypeDescription
EntityType

The entityType.

getEntityTypeBuilder()

public EntityType.Builder getEntityTypeBuilder()

Required. The entity type to create.

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

Returns
TypeDescription
EntityType.Builder

getEntityTypeOrBuilder()

public EntityTypeOrBuilder getEntityTypeOrBuilder()

Required. The entity type to create.

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

Returns
TypeDescription
EntityTypeOrBuilder

getLanguageCode()

public String getLanguageCode()

Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The agent to create a entity type for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent to create a entity type for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasEntityType()

public boolean hasEntityType()

Required. The entity type to create.

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

Returns
TypeDescription
boolean

Whether the entityType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEntityType(EntityType value)

public CreateEntityTypeRequest.Builder mergeEntityType(EntityType value)

Required. The entity type to create.

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

Parameter
NameDescription
valueEntityType
Returns
TypeDescription
CreateEntityTypeRequest.Builder

mergeFrom(CreateEntityTypeRequest other)

public CreateEntityTypeRequest.Builder mergeFrom(CreateEntityTypeRequest other)
Parameter
NameDescription
otherCreateEntityTypeRequest
Returns
TypeDescription
CreateEntityTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntityType(EntityType value)

public CreateEntityTypeRequest.Builder setEntityType(EntityType value)

Required. The entity type to create.

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

Parameter
NameDescription
valueEntityType
Returns
TypeDescription
CreateEntityTypeRequest.Builder

setEntityType(EntityType.Builder builderForValue)

public CreateEntityTypeRequest.Builder setEntityType(EntityType.Builder builderForValue)

Required. The entity type to create.

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

Parameter
NameDescription
builderForValueEntityType.Builder
Returns
TypeDescription
CreateEntityTypeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public CreateEntityTypeRequest.Builder setLanguageCode(String value)

Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
CreateEntityTypeRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public CreateEntityTypeRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
CreateEntityTypeRequest.Builder

This builder for chaining.

setParent(String value)

public CreateEntityTypeRequest.Builder setParent(String value)

Required. The agent to create a entity type for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateEntityTypeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEntityTypeRequest.Builder setParentBytes(ByteString value)

Required. The agent to create a entity type for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateEntityTypeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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