Class BatchDeleteConversationsResponse.Builder (0.1.0)

public static final class BatchDeleteConversationsResponse.Builder extends GeneratedMessage.Builder<BatchDeleteConversationsResponse.Builder> implements BatchDeleteConversationsResponseOrBuilder

Response message for AgentService.BatchDeleteConversations.

Protobuf type google.cloud.ces.v1.BatchDeleteConversationsResponse

Static Methods

getDescriptor()

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

Methods

addAllDeletedConversations(Iterable<String> values)

public BatchDeleteConversationsResponse.Builder addAllDeletedConversations(Iterable<String> values)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameter
Name Description
values Iterable<String>

The deletedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addAllErrorMessages(Iterable<String> values)

public BatchDeleteConversationsResponse.Builder addAllErrorMessages(Iterable<String> values)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The errorMessages to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addAllFailedConversations(Iterable<String> values)

public BatchDeleteConversationsResponse.Builder addAllFailedConversations(Iterable<String> values)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameter
Name Description
values Iterable<String>

The failedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addDeletedConversations(String value)

public BatchDeleteConversationsResponse.Builder addDeletedConversations(String value)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameter
Name Description
value String

The deletedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addDeletedConversationsBytes(ByteString value)

public BatchDeleteConversationsResponse.Builder addDeletedConversationsBytes(ByteString value)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameter
Name Description
value ByteString

The bytes of the deletedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addErrorMessages(String value)

public BatchDeleteConversationsResponse.Builder addErrorMessages(String value)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The errorMessages to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addErrorMessagesBytes(ByteString value)

public BatchDeleteConversationsResponse.Builder addErrorMessagesBytes(ByteString value)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the errorMessages to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addFailedConversations(String value)

public BatchDeleteConversationsResponse.Builder addFailedConversations(String value)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameter
Name Description
value String

The failedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

addFailedConversationsBytes(ByteString value)

public BatchDeleteConversationsResponse.Builder addFailedConversationsBytes(ByteString value)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameter
Name Description
value ByteString

The bytes of the failedConversations to add.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

build()

public BatchDeleteConversationsResponse build()
Returns
Type Description
BatchDeleteConversationsResponse

buildPartial()

public BatchDeleteConversationsResponse buildPartial()
Returns
Type Description
BatchDeleteConversationsResponse

clear()

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

clearDeletedConversations()

public BatchDeleteConversationsResponse.Builder clearDeletedConversations()

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

clearErrorMessages()

public BatchDeleteConversationsResponse.Builder clearErrorMessages()

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

clearFailedConversations()

public BatchDeleteConversationsResponse.Builder clearFailedConversations()

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public BatchDeleteConversationsResponse getDefaultInstanceForType()
Returns
Type Description
BatchDeleteConversationsResponse

getDeletedConversations(int index)

public String getDeletedConversations(int index)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The deletedConversations at the given index.

getDeletedConversationsBytes(int index)

public ByteString getDeletedConversationsBytes(int index)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the deletedConversations at the given index.

getDeletedConversationsCount()

public int getDeletedConversationsCount()

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Returns
Type Description
int

The count of deletedConversations.

getDeletedConversationsList()

public ProtocolStringList getDeletedConversationsList()

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Returns
Type Description
ProtocolStringList

A list containing the deletedConversations.

getDescriptorForType()

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

getErrorMessages(int index)

public String getErrorMessages(int index)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The errorMessages at the given index.

getErrorMessagesBytes(int index)

public ByteString getErrorMessagesBytes(int index)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the errorMessages at the given index.

getErrorMessagesCount()

public int getErrorMessagesCount()

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of errorMessages.

getErrorMessagesList()

public ProtocolStringList getErrorMessagesList()

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the errorMessages.

getFailedConversations(int index)

public String getFailedConversations(int index)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The failedConversations at the given index.

getFailedConversationsBytes(int index)

public ByteString getFailedConversationsBytes(int index)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the failedConversations at the given index.

getFailedConversationsCount()

public int getFailedConversationsCount()

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Returns
Type Description
int

The count of failedConversations.

getFailedConversationsList()

public ProtocolStringList getFailedConversationsList()

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Returns
Type Description
ProtocolStringList

A list containing the failedConversations.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchDeleteConversationsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeletedConversations(int index, String value)

public BatchDeleteConversationsResponse.Builder setDeletedConversations(int index, String value)

The list of conversations that were successfully deleted.

repeated string deleted_conversations = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The deletedConversations to set.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

setErrorMessages(int index, String value)

public BatchDeleteConversationsResponse.Builder setErrorMessages(int index, String value)

Optional. A list of error messages associated with conversations that failed to be deleted.

repeated string error_messages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The errorMessages to set.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.

setFailedConversations(int index, String value)

public BatchDeleteConversationsResponse.Builder setFailedConversations(int index, String value)

The list of conversations that failed to be deleted.

repeated string failed_conversations = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The failedConversations to set.

Returns
Type Description
BatchDeleteConversationsResponse.Builder

This builder for chaining.