Class BatchDeleteEntityTypesRequest.Builder (4.4.0)

public static final class BatchDeleteEntityTypesRequest.Builder extends GeneratedMessageV3.Builder<BatchDeleteEntityTypesRequest.Builder> implements BatchDeleteEntityTypesRequestOrBuilder

The request message for EntityTypes.BatchDeleteEntityTypes.

Protobuf type google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest

Methods

addAllEntityTypeNames(Iterable<String> values)

public BatchDeleteEntityTypesRequest.Builder addAllEntityTypeNames(Iterable<String> values)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameter
NameDescription
valuesIterable<String>

The entityTypeNames to add.

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

addEntityTypeNames(String value)

public BatchDeleteEntityTypesRequest.Builder addEntityTypeNames(String value)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameter
NameDescription
valueString

The entityTypeNames to add.

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

addEntityTypeNamesBytes(ByteString value)

public BatchDeleteEntityTypesRequest.Builder addEntityTypeNamesBytes(ByteString value)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameter
NameDescription
valueByteString

The bytes of the entityTypeNames to add.

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchDeleteEntityTypesRequest build()
Returns
TypeDescription
BatchDeleteEntityTypesRequest

buildPartial()

public BatchDeleteEntityTypesRequest buildPartial()
Returns
TypeDescription
BatchDeleteEntityTypesRequest

clear()

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

clearEntityTypeNames()

public BatchDeleteEntityTypesRequest.Builder clearEntityTypeNames()

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchDeleteEntityTypesRequest.Builder clearParent()

Required. The name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.

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

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchDeleteEntityTypesRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchDeleteEntityTypesRequest

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityTypeNames(int index)

public String getEntityTypeNames(int index)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The entityTypeNames at the given index.

getEntityTypeNamesBytes(int index)

public ByteString getEntityTypeNamesBytes(int index)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the entityTypeNames at the given index.

getEntityTypeNamesCount()

public int getEntityTypeNamesCount()

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Returns
TypeDescription
int

The count of entityTypeNames.

getEntityTypeNamesList()

public ProtocolStringList getEntityTypeNamesList()

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Returns
TypeDescription
ProtocolStringList

A list containing the entityTypeNames.

getParent()

public String getParent()

Required. The name of the agent to delete all entities types for. Format: projects/<Project 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 name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.

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(BatchDeleteEntityTypesRequest other)

public BatchDeleteEntityTypesRequest.Builder mergeFrom(BatchDeleteEntityTypesRequest other)
Parameter
NameDescription
otherBatchDeleteEntityTypesRequest
Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntityTypeNames(int index, String value)

public BatchDeleteEntityTypesRequest.Builder setEntityTypeNames(int index, String value)

Required. The names entity types to delete. All names must point to the same agent as parent.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The entityTypeNames to set.

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchDeleteEntityTypesRequest.Builder setParent(String value)

Required. The name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchDeleteEntityTypesRequest.Builder setParentBytes(ByteString value)

Required. The name of the agent to delete all entities types for. Format: projects/<Project 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
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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