Class UploadConversationRequest.Builder (2.37.0)

public static final class UploadConversationRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UploadConversationRequest build()
Returns
TypeDescription
UploadConversationRequest

buildPartial()

public UploadConversationRequest buildPartial()
Returns
TypeDescription
UploadConversationRequest

clear()

public UploadConversationRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UploadConversationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

getConversation()

public Conversation getConversation()

Required. The conversation resource to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ConversationOrBuilder

getDefaultInstanceForType()

public UploadConversationRequest getDefaultInstanceForType()
Returns
TypeDescription
UploadConversationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SpeechConfigOrBuilder

hasConversation()

public boolean hasConversation()

Required. The conversation resource to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the speechConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConversation
Returns
TypeDescription
UploadConversationRequest.Builder

mergeFrom(UploadConversationRequest other)

public UploadConversationRequest.Builder mergeFrom(UploadConversationRequest other)
Parameter
NameDescription
otherUploadConversationRequest
Returns
TypeDescription
UploadConversationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UploadConversationRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRedactionConfig
Returns
TypeDescription
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
NameDescription
valueSpeechConfig
Returns
TypeDescription
UploadConversationRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueConversation
Returns
TypeDescription
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
NameDescription
builderForValueConversation.Builder
Returns
TypeDescription
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
NameDescription
valueString

The conversationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for conversationId to set.

Returns
TypeDescription
UploadConversationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueRedactionConfig
Returns
TypeDescription
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
NameDescription
builderForValueRedactionConfig.Builder
Returns
TypeDescription
UploadConversationRequest.Builder

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

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

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
NameDescription
valueSpeechConfig
Returns
TypeDescription
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
NameDescription
builderForValueSpeechConfig.Builder
Returns
TypeDescription
UploadConversationRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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