Class BatchDeleteEntityTypesRequest.Builder (4.40.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

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
Name Description
values Iterable<String>

The entityTypeNames to add.

Returns
Type Description
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
Name Description
value String

The entityTypeNames to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the entityTypeNames to add.

Returns
Type Description
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchDeleteEntityTypesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchDeleteEntityTypesRequest.Builder
Overrides

build()

public BatchDeleteEntityTypesRequest build()
Returns
Type Description
BatchDeleteEntityTypesRequest

buildPartial()

public BatchDeleteEntityTypesRequest buildPartial()
Returns
Type Description
BatchDeleteEntityTypesRequest

clear()

public BatchDeleteEntityTypesRequest.Builder clear()
Returns
Type Description
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
Type Description
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BatchDeleteEntityTypesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchDeleteEntityTypesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchDeleteEntityTypesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

clone()

public BatchDeleteEntityTypesRequest.Builder clone()
Returns
Type Description
BatchDeleteEntityTypesRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchDeleteEntityTypesRequest getDefaultInstanceForType()
Returns
Type Description
BatchDeleteEntityTypesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

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

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDeleteEntityTypesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchDeleteEntityTypesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The entityTypeNames to set.

Returns
Type Description
BatchDeleteEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BatchDeleteEntityTypesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchDeleteEntityTypesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchDeleteEntityTypesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchDeleteEntityTypesRequest.Builder
Overrides