Class BatchCreateEntitiesRequest.Builder (4.89.0)

public static final class BatchCreateEntitiesRequest.Builder extends GeneratedMessage.Builder<BatchCreateEntitiesRequest.Builder> implements BatchCreateEntitiesRequestOrBuilder

The request message for EntityTypes.BatchCreateEntities.

Protobuf type google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest

Static Methods

getDescriptor()

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

Methods

addAllEntities(Iterable<? extends EntityType.Entity> values)

public BatchCreateEntitiesRequest.Builder addAllEntities(Iterable<? extends EntityType.Entity> values)

Required. The entities to create.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.EntityType.Entity>
Returns
Type Description
BatchCreateEntitiesRequest.Builder

addEntities(EntityType.Entity value)

public BatchCreateEntitiesRequest.Builder addEntities(EntityType.Entity value)

Required. The entities to create.

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

Parameter
Name Description
value EntityType.Entity
Returns
Type Description
BatchCreateEntitiesRequest.Builder

addEntities(EntityType.Entity.Builder builderForValue)

public BatchCreateEntitiesRequest.Builder addEntities(EntityType.Entity.Builder builderForValue)

Required. The entities to create.

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

Parameter
Name Description
builderForValue EntityType.Entity.Builder
Returns
Type Description
BatchCreateEntitiesRequest.Builder

addEntities(int index, EntityType.Entity value)

public BatchCreateEntitiesRequest.Builder addEntities(int index, EntityType.Entity value)

Required. The entities to create.

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

Parameters
Name Description
index int
value EntityType.Entity
Returns
Type Description
BatchCreateEntitiesRequest.Builder

addEntities(int index, EntityType.Entity.Builder builderForValue)

public BatchCreateEntitiesRequest.Builder addEntities(int index, EntityType.Entity.Builder builderForValue)

Required. The entities to create.

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

Parameters
Name Description
index int
builderForValue EntityType.Entity.Builder
Returns
Type Description
BatchCreateEntitiesRequest.Builder

addEntitiesBuilder()

public EntityType.Entity.Builder addEntitiesBuilder()

Required. The entities to create.

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

Returns
Type Description
EntityType.Entity.Builder

addEntitiesBuilder(int index)

public EntityType.Entity.Builder addEntitiesBuilder(int index)

Required. The entities to create.

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

Parameter
Name Description
index int
Returns
Type Description
EntityType.Entity.Builder

build()

public BatchCreateEntitiesRequest build()
Returns
Type Description
BatchCreateEntitiesRequest

buildPartial()

public BatchCreateEntitiesRequest buildPartial()
Returns
Type Description
BatchCreateEntitiesRequest

clear()

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

clearEntities()

public BatchCreateEntitiesRequest.Builder clearEntities()

Required. The entities to create.

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

Returns
Type Description
BatchCreateEntitiesRequest.Builder

clearLanguageCode()

public BatchCreateEntitiesRequest.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
Type Description
BatchCreateEntitiesRequest.Builder

This builder for chaining.

clearParent()

public BatchCreateEntitiesRequest.Builder clearParent()

Required. The name of the entity type to create entities in. Supported formats:

  • projects/<Project ID>/agent/entityTypes/<Entity Type ID>
  • projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>

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

Returns
Type Description
BatchCreateEntitiesRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public BatchCreateEntitiesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateEntitiesRequest

getDescriptorForType()

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

getEntities(int index)

public EntityType.Entity getEntities(int index)

Required. The entities to create.

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

Parameter
Name Description
index int
Returns
Type Description
EntityType.Entity

getEntitiesBuilder(int index)

public EntityType.Entity.Builder getEntitiesBuilder(int index)

Required. The entities to create.

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

Parameter
Name Description
index int
Returns
Type Description
EntityType.Entity.Builder

getEntitiesBuilderList()

public List<EntityType.Entity.Builder> getEntitiesBuilderList()

Required. The entities to create.

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

Returns
Type Description
List<Builder>

getEntitiesCount()

public int getEntitiesCount()

Required. The entities to create.

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

Returns
Type Description
int

getEntitiesList()

public List<EntityType.Entity> getEntitiesList()

Required. The entities to create.

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

Returns
Type Description
List<Entity>

getEntitiesOrBuilder(int index)

public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)

Required. The entities to create.

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

Parameter
Name Description
index int
Returns
Type Description
EntityType.EntityOrBuilder

getEntitiesOrBuilderList()

public List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()

Required. The entities to create.

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

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder>

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
Type Description
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
Type Description
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The name of the entity type to create entities in. Supported formats:

  • projects/<Project ID>/agent/entityTypes/<Entity Type ID>
  • projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type 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 name of the entity type to create entities in. Supported formats:

  • projects/<Project ID>/agent/entityTypes/<Entity Type ID>
  • projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateEntitiesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeEntities(int index)

public BatchCreateEntitiesRequest.Builder removeEntities(int index)

Required. The entities to create.

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

Parameter
Name Description
index int
Returns
Type Description
BatchCreateEntitiesRequest.Builder

setEntities(int index, EntityType.Entity value)

public BatchCreateEntitiesRequest.Builder setEntities(int index, EntityType.Entity value)

Required. The entities to create.

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

Parameters
Name Description
index int
value EntityType.Entity
Returns
Type Description
BatchCreateEntitiesRequest.Builder

setEntities(int index, EntityType.Entity.Builder builderForValue)

public BatchCreateEntitiesRequest.Builder setEntities(int index, EntityType.Entity.Builder builderForValue)

Required. The entities to create.

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

Parameters
Name Description
index int
builderForValue EntityType.Entity.Builder
Returns
Type Description
BatchCreateEntitiesRequest.Builder

setLanguageCode(String value)

public BatchCreateEntitiesRequest.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
Name Description
value String

The languageCode to set.

Returns
Type Description
BatchCreateEntitiesRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public BatchCreateEntitiesRequest.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
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
BatchCreateEntitiesRequest.Builder

This builder for chaining.

setParent(String value)

public BatchCreateEntitiesRequest.Builder setParent(String value)

Required. The name of the entity type to create entities in. Supported formats:

  • projects/<Project ID>/agent/entityTypes/<Entity Type ID>
  • projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type 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
BatchCreateEntitiesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateEntitiesRequest.Builder setParentBytes(ByteString value)

Required. The name of the entity type to create entities in. Supported formats:

  • projects/<Project ID>/agent/entityTypes/<Entity Type ID>
  • projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type 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
BatchCreateEntitiesRequest.Builder

This builder for chaining.