Class BatchDeleteEntitiesRequest.Builder (4.7.0)

public static final class BatchDeleteEntitiesRequest.Builder extends GeneratedMessageV3.Builder<BatchDeleteEntitiesRequest.Builder> implements BatchDeleteEntitiesRequestOrBuilder

The request message for EntityTypes.BatchDeleteEntities.

Protobuf type google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest

Static Methods

getDescriptor()

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

Methods

addAllEntityValues(Iterable<String> values)

public BatchDeleteEntitiesRequest.Builder addAllEntityValues(Iterable<String> values)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The entityValues to add.

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

addEntityValues(String value)

public BatchDeleteEntitiesRequest.Builder addEntityValues(String value)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The entityValues to add.

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

addEntityValuesBytes(ByteString value)

public BatchDeleteEntitiesRequest.Builder addEntityValuesBytes(ByteString value)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the entityValues to add.

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteEntitiesRequest build()
Returns
TypeDescription
BatchDeleteEntitiesRequest

buildPartial()

public BatchDeleteEntitiesRequest buildPartial()
Returns
TypeDescription
BatchDeleteEntitiesRequest

clear()

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

clearEntityValues()

public BatchDeleteEntitiesRequest.Builder clearEntityValues()

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchDeleteEntitiesRequest.Builder clearParent()

Required. The name of the entity type to delete entries for. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

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

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchDeleteEntitiesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchDeleteEntitiesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityValues(int index)

public String getEntityValues(int index)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The entityValues at the given index.

getEntityValuesBytes(int index)

public ByteString getEntityValuesBytes(int index)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the entityValues at the given index.

getEntityValuesCount()

public int getEntityValuesCount()

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of entityValues.

getEntityValuesList()

public ProtocolStringList getEntityValuesList()

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the entityValues.

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 delete entries for. Format: projects/<Project 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 delete entries for. Format: projects/<Project 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchDeleteEntitiesRequest other)

public BatchDeleteEntitiesRequest.Builder mergeFrom(BatchDeleteEntitiesRequest other)
Parameter
NameDescription
otherBatchDeleteEntitiesRequest
Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntityValues(int index, String value)

public BatchDeleteEntitiesRequest.Builder setEntityValues(int index, String value)

Required. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.

repeated string entity_values = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The entityValues to set.

Returns
TypeDescription
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

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

This builder for chaining.

setLanguageCodeBytes(ByteString value)

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

This builder for chaining.

setParent(String value)

public BatchDeleteEntitiesRequest.Builder setParent(String value)

Required. The name of the entity type to delete entries for. Format: projects/<Project 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
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchDeleteEntitiesRequest.Builder setParentBytes(ByteString value)

Required. The name of the entity type to delete entries for. Format: projects/<Project 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
BatchDeleteEntitiesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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