Class UploadConversationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder>
com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder
All Implemented Interfaces:
UploadConversationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UploadConversationRequest

public static final class UploadConversationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder> implements UploadConversationRequestOrBuilder
 Request to upload a conversation.
 
Protobuf type google.cloud.contactcenterinsights.v1.UploadConversationRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder>
    • getDefaultInstanceForType

      public UploadConversationRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UploadConversationRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UploadConversationRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UploadConversationRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadConversationRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UploadConversationRequest.Builder>
    • mergeFrom

      public UploadConversationRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UploadConversationRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource of the conversation.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface UploadConversationRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the conversation.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface UploadConversationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      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:
      This builder for chaining.
    • setParentBytes

      public UploadConversationRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the conversation.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasConversation

      public boolean hasConversation()
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConversation in interface UploadConversationRequestOrBuilder
      Returns:
      Whether the conversation field is set.
    • getConversation

      public Conversation getConversation()
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversation in interface UploadConversationRequestOrBuilder
      Returns:
      The conversation.
    • setConversation

      public UploadConversationRequest.Builder setConversation(Conversation value)
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
    • setConversation

      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];
    • mergeConversation

      public UploadConversationRequest.Builder mergeConversation(Conversation value)
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearConversation

      public UploadConversationRequest.Builder clearConversation()
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversationBuilder

      public Conversation.Builder getConversationBuilder()
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversationOrBuilder

      public ConversationOrBuilder getConversationOrBuilder()
       Required. The conversation resource to create.
       
      .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversationOrBuilder in interface UploadConversationRequestOrBuilder
    • 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][0-9]-`
       
      string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationId in interface UploadConversationRequestOrBuilder
      Returns:
      The conversationId.
    • getConversationIdBytes

      public com.google.protobuf.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][0-9]-`
       
      string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConversationIdBytes in interface UploadConversationRequestOrBuilder
      Returns:
      The bytes for conversationId.
    • setConversationId

      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][0-9]-`
       
      string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The conversationId to set.
      Returns:
      This builder for chaining.
    • 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][0-9]-`
       
      string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setConversationIdBytes

      public UploadConversationRequest.Builder setConversationIdBytes(com.google.protobuf.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][0-9]-`
       
      string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for conversationId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasRedactionConfig in interface UploadConversationRequestOrBuilder
      Returns:
      Whether the redactionConfig field is set.
    • 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];
      Specified by:
      getRedactionConfig in interface UploadConversationRequestOrBuilder
      Returns:
      The redactionConfig.
    • setRedactionConfig

      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];
    • setRedactionConfig

      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];
    • mergeRedactionConfig

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getRedactionConfigOrBuilder in interface UploadConversationRequestOrBuilder
    • 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];
      Specified by:
      hasSpeechConfig in interface UploadConversationRequestOrBuilder
      Returns:
      Whether the speechConfig field is set.
    • 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];
      Specified by:
      getSpeechConfig in interface UploadConversationRequestOrBuilder
      Returns:
      The speechConfig.
    • setSpeechConfig

      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];
    • setSpeechConfig

      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];
    • mergeSpeechConfig

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getSpeechConfigOrBuilder in interface UploadConversationRequestOrBuilder