Class UploadConversationRequest.Builder (2.83.0)

public static final class UploadConversationRequest.Builder extends GeneratedMessage.Builder<UploadConversationRequest.Builder> implements UploadConversationRequestOrBuilder

Request to upload a conversation.

Protobuf type google.cloud.contactcenterinsights.v1.UploadConversationRequest

Static Methods

getDescriptor()

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

Methods

build()

public UploadConversationRequest build()
Returns
Type Description
UploadConversationRequest

buildPartial()

public UploadConversationRequest buildPartial()
Returns
Type Description
UploadConversationRequest

clear()

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

clearConversation()

public UploadConversationRequest.Builder clearConversation()

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UploadConversationRequest.Builder

clearConversationId()

public UploadConversationRequest.Builder clearConversationId()

Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-

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

Returns
Type Description
UploadConversationRequest.Builder

This builder for chaining.

clearParent()

public UploadConversationRequest.Builder clearParent()

Required. The parent resource of the conversation.

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

Returns
Type Description
UploadConversationRequest.Builder

This builder for chaining.

clearRedactionConfig()

public UploadConversationRequest.Builder clearRedactionConfig()

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UploadConversationRequest.Builder

clearSpeechConfig()

public UploadConversationRequest.Builder clearSpeechConfig()

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UploadConversationRequest.Builder

getConversation()

public Conversation getConversation()

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Conversation

The conversation.

getConversationBuilder()

public Conversation.Builder getConversationBuilder()

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Conversation.Builder

getConversationId()

public String getConversationId()

Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-

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

Returns
Type Description
String

The conversationId.

getConversationIdBytes()

public ByteString getConversationIdBytes()

Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-

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

Returns
Type Description
ByteString

The bytes for conversationId.

getConversationOrBuilder()

public ConversationOrBuilder getConversationOrBuilder()

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConversationOrBuilder

getDefaultInstanceForType()

public UploadConversationRequest getDefaultInstanceForType()
Returns
Type Description
UploadConversationRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the conversation.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the conversation.

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

Returns
Type Description
ByteString

The bytes for parent.

getRedactionConfig()

public RedactionConfig getRedactionConfig()

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RedactionConfig

The redactionConfig.

getRedactionConfigBuilder()

public RedactionConfig.Builder getRedactionConfigBuilder()

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RedactionConfig.Builder

getRedactionConfigOrBuilder()

public RedactionConfigOrBuilder getRedactionConfigOrBuilder()

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RedactionConfigOrBuilder

getSpeechConfig()

public SpeechConfig getSpeechConfig()

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeechConfig

The speechConfig.

getSpeechConfigBuilder()

public SpeechConfig.Builder getSpeechConfigBuilder()

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeechConfig.Builder

getSpeechConfigOrBuilder()

public SpeechConfigOrBuilder getSpeechConfigOrBuilder()

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeechConfigOrBuilder

hasConversation()

public boolean hasConversation()

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the conversation field is set.

hasRedactionConfig()

public boolean hasRedactionConfig()

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the redactionConfig field is set.

hasSpeechConfig()

public boolean hasSpeechConfig()

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the speechConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversation(Conversation value)

public UploadConversationRequest.Builder mergeConversation(Conversation value)

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Conversation
Returns
Type Description
UploadConversationRequest.Builder

mergeFrom(UploadConversationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRedactionConfig(RedactionConfig value)

public UploadConversationRequest.Builder mergeRedactionConfig(RedactionConfig value)

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RedactionConfig
Returns
Type Description
UploadConversationRequest.Builder

mergeSpeechConfig(SpeechConfig value)

public UploadConversationRequest.Builder mergeSpeechConfig(SpeechConfig value)

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SpeechConfig
Returns
Type Description
UploadConversationRequest.Builder

setConversation(Conversation value)

public UploadConversationRequest.Builder setConversation(Conversation value)

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Conversation
Returns
Type Description
UploadConversationRequest.Builder

setConversation(Conversation.Builder builderForValue)

public UploadConversationRequest.Builder setConversation(Conversation.Builder builderForValue)

Required. The conversation resource to create.

.google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Conversation.Builder
Returns
Type Description
UploadConversationRequest.Builder

setConversationId(String value)

public UploadConversationRequest.Builder setConversationId(String value)

Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-

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

Parameter
Name Description
value String

The conversationId to set.

Returns
Type Description
UploadConversationRequest.Builder

This builder for chaining.

setConversationIdBytes(ByteString value)

public UploadConversationRequest.Builder setConversationIdBytes(ByteString value)

Optional. A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-

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

Parameter
Name Description
value ByteString

The bytes for conversationId to set.

Returns
Type Description
UploadConversationRequest.Builder

This builder for chaining.

setParent(String value)

public UploadConversationRequest.Builder setParent(String value)

Required. The parent resource of the conversation.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
UploadConversationRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public UploadConversationRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the conversation.

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

This builder for chaining.

setRedactionConfig(RedactionConfig value)

public UploadConversationRequest.Builder setRedactionConfig(RedactionConfig value)

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RedactionConfig
Returns
Type Description
UploadConversationRequest.Builder

setRedactionConfig(RedactionConfig.Builder builderForValue)

public UploadConversationRequest.Builder setRedactionConfig(RedactionConfig.Builder builderForValue)

Optional. DLP settings for transcript redaction. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RedactionConfig.Builder
Returns
Type Description
UploadConversationRequest.Builder

setSpeechConfig(SpeechConfig value)

public UploadConversationRequest.Builder setSpeechConfig(SpeechConfig value)

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SpeechConfig
Returns
Type Description
UploadConversationRequest.Builder

setSpeechConfig(SpeechConfig.Builder builderForValue)

public UploadConversationRequest.Builder setSpeechConfig(SpeechConfig.Builder builderForValue)

Optional. Speech-to-Text configuration. Will default to the config specified in Settings.

.google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SpeechConfig.Builder
Returns
Type Description
UploadConversationRequest.Builder