Class BatchUpdateEntitiesRequest.Builder (4.8.5)

public static final class BatchUpdateEntitiesRequest.Builder extends GeneratedMessageV3.Builder<BatchUpdateEntitiesRequest.Builder> implements BatchUpdateEntitiesRequestOrBuilder

The request message for EntityTypes.BatchUpdateEntities.

Protobuf type google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest

Static Methods

getDescriptor()

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

Methods

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

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

Required. The entities to update or create.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.EntityType.Entity>
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

addEntities(EntityType.Entity value)

public BatchUpdateEntitiesRequest.Builder addEntities(EntityType.Entity value)

Required. The entities to update or create.

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

Parameter
NameDescription
valueEntityType.Entity
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

addEntities(EntityType.Entity.Builder builderForValue)

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

Required. The entities to update or create.

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

Parameter
NameDescription
builderForValueEntityType.Entity.Builder
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

addEntities(int index, EntityType.Entity value)

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

Required. The entities to update or create.

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

Parameters
NameDescription
indexint
valueEntityType.Entity
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

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

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

Required. The entities to update or create.

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

Parameters
NameDescription
indexint
builderForValueEntityType.Entity.Builder
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

addEntitiesBuilder()

public EntityType.Entity.Builder addEntitiesBuilder()

Required. The entities to update or create.

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

Returns
TypeDescription
EntityType.Entity.Builder

addEntitiesBuilder(int index)

public EntityType.Entity.Builder addEntitiesBuilder(int index)

Required. The entities to update or create.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityType.Entity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchUpdateEntitiesRequest build()
Returns
TypeDescription
BatchUpdateEntitiesRequest

buildPartial()

public BatchUpdateEntitiesRequest buildPartial()
Returns
TypeDescription
BatchUpdateEntitiesRequest

clear()

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

clearEntities()

public BatchUpdateEntitiesRequest.Builder clearEntities()

Required. The entities to update or create.

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

Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public BatchUpdateEntitiesRequest.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
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchUpdateEntitiesRequest.Builder clearParent()

Required. The name of the entity type to update or 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
TypeDescription
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

clearUpdateMask()

public BatchUpdateEntitiesRequest.Builder clearUpdateMask()

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchUpdateEntitiesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchUpdateEntitiesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntities(int index)

public EntityType.Entity getEntities(int index)

Required. The entities to update or create.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityType.Entity

getEntitiesBuilder(int index)

public EntityType.Entity.Builder getEntitiesBuilder(int index)

Required. The entities to update or create.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityType.Entity.Builder

getEntitiesBuilderList()

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

Required. The entities to update or create.

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

Returns
TypeDescription
List<Builder>

getEntitiesCount()

public int getEntitiesCount()

Required. The entities to update or create.

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

Returns
TypeDescription
int

getEntitiesList()

public List<EntityType.Entity> getEntitiesList()

Required. The entities to update or create.

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

Returns
TypeDescription
List<Entity>

getEntitiesOrBuilder(int index)

public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)

Required. The entities to update or create.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityType.EntityOrBuilder

getEntitiesOrBuilderList()

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

Required. The entities to update or create.

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

Returns
TypeDescription
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
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 name of the entity type to update or 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
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the entity type to update or 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
TypeDescription
ByteString

The bytes for parent.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
FieldMaskOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchUpdateEntitiesRequest other)

public BatchUpdateEntitiesRequest.Builder mergeFrom(BatchUpdateEntitiesRequest other)
Parameter
NameDescription
otherBatchUpdateEntitiesRequest
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public BatchUpdateEntitiesRequest.Builder mergeUpdateMask(FieldMask value)

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

removeEntities(int index)

public BatchUpdateEntitiesRequest.Builder removeEntities(int index)

Required. The entities to update or create.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

setEntities(int index, EntityType.Entity value)

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

Required. The entities to update or create.

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

Parameters
NameDescription
indexint
valueEntityType.Entity
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

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

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

Required. The entities to update or create.

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

Parameters
NameDescription
indexint
builderForValueEntityType.Entity.Builder
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public BatchUpdateEntitiesRequest.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
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public BatchUpdateEntitiesRequest.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
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

setParent(String value)

public BatchUpdateEntitiesRequest.Builder setParent(String value)

Required. The name of the entity type to update or 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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateEntitiesRequest.Builder setParentBytes(ByteString value)

Required. The name of the entity type to update or 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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public BatchUpdateEntitiesRequest.Builder setUpdateMask(FieldMask value)

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public BatchUpdateEntitiesRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. The mask to control which fields get updated.

.google.protobuf.FieldMask update_mask = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchUpdateEntitiesRequest.Builder