Class BatchDeleteConversationsRequest.Builder (0.1.0)

public static final class BatchDeleteConversationsRequest.Builder extends GeneratedMessage.Builder<BatchDeleteConversationsRequest.Builder> implements BatchDeleteConversationsRequestOrBuilder

Request message for AgentService.BatchDeleteConversations.

Protobuf type google.cloud.ces.v1.BatchDeleteConversationsRequest

Static Methods

getDescriptor()

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

Methods

addAllConversations(Iterable<String> values)

public BatchDeleteConversationsRequest.Builder addAllConversations(Iterable<String> values)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The conversations to add.

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

addConversations(String value)

public BatchDeleteConversationsRequest.Builder addConversations(String value)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The conversations to add.

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

addConversationsBytes(ByteString value)

public BatchDeleteConversationsRequest.Builder addConversationsBytes(ByteString value)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the conversations to add.

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

build()

public BatchDeleteConversationsRequest build()
Returns
Type Description
BatchDeleteConversationsRequest

buildPartial()

public BatchDeleteConversationsRequest buildPartial()
Returns
Type Description
BatchDeleteConversationsRequest

clear()

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

clearConversations()

public BatchDeleteConversationsRequest.Builder clearConversations()

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

clearParent()

public BatchDeleteConversationsRequest.Builder clearParent()

Required. The resource name of the app to delete conversations from. Format: projects/{project}/locations/{location}/apps/{app}

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

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

getConversations(int index)

public String getConversations(int index)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The conversations at the given index.

getConversationsBytes(int index)

public ByteString getConversationsBytes(int index)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the conversations at the given index.

getConversationsCount()

public int getConversationsCount()

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of conversations.

getConversationsList()

public ProtocolStringList getConversationsList()

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the conversations.

getDefaultInstanceForType()

public BatchDeleteConversationsRequest getDefaultInstanceForType()
Returns
Type Description
BatchDeleteConversationsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The resource name of the app to delete conversations from. Format: projects/{project}/locations/{location}/apps/{app}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the app to delete conversations from. Format: projects/{project}/locations/{location}/apps/{app}

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setConversations(int index, String value)

public BatchDeleteConversationsRequest.Builder setConversations(int index, String value)

Required. The resource names of the conversations to delete.

repeated string conversations = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The conversations to set.

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

setParent(String value)

public BatchDeleteConversationsRequest.Builder setParent(String value)

Required. The resource name of the app to delete conversations from. Format: projects/{project}/locations/{location}/apps/{app}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchDeleteConversationsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchDeleteConversationsRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the app to delete conversations from. Format: projects/{project}/locations/{location}/apps/{app}

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
BatchDeleteConversationsRequest.Builder

This builder for chaining.