Class IngestConversationsRequest.Builder

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

public static final class IngestConversationsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<IngestConversationsRequest.Builder> implements IngestConversationsRequestOrBuilder
 The request to ingest conversations.
 
Protobuf type google.cloud.contactcenterinsights.v1.IngestConversationsRequest
  • 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<IngestConversationsRequest.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<IngestConversationsRequest.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<IngestConversationsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public IngestConversationsRequest.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<IngestConversationsRequest.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<IngestConversationsRequest.Builder>
    • mergeFrom

      public IngestConversationsRequest.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<IngestConversationsRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      public IngestConversationsRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface IngestConversationsRequestOrBuilder
    • clearSource

      public IngestConversationsRequest.Builder clearSource()
    • getObjectConfigCase

      public IngestConversationsRequest.ObjectConfigCase getObjectConfigCase()
      Specified by:
      getObjectConfigCase in interface IngestConversationsRequestOrBuilder
    • clearObjectConfig

      public IngestConversationsRequest.Builder clearObjectConfig()
    • hasGcsSource

      public boolean hasGcsSource()
       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
      Specified by:
      hasGcsSource in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the gcsSource field is set.
    • getGcsSource

      public IngestConversationsRequest.GcsSource getGcsSource()
       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
      Specified by:
      getGcsSource in interface IngestConversationsRequestOrBuilder
      Returns:
      The gcsSource.
    • setGcsSource

       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
    • setGcsSource

       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
    • mergeGcsSource

       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
    • clearGcsSource

      public IngestConversationsRequest.Builder clearGcsSource()
       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
    • getGcsSourceBuilder

      public IngestConversationsRequest.GcsSource.Builder getGcsSourceBuilder()
       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
    • getGcsSourceOrBuilder

      public IngestConversationsRequest.GcsSourceOrBuilder getGcsSourceOrBuilder()
       A cloud storage bucket source. Note that any previously ingested objects
       from the source will be skipped to avoid duplication.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2;
      Specified by:
      getGcsSourceOrBuilder in interface IngestConversationsRequestOrBuilder
    • hasTranscriptObjectConfig

      public boolean hasTranscriptObjectConfig()
       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
      Specified by:
      hasTranscriptObjectConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the transcriptObjectConfig field is set.
    • getTranscriptObjectConfig

      public IngestConversationsRequest.TranscriptObjectConfig getTranscriptObjectConfig()
       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
      Specified by:
      getTranscriptObjectConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      The transcriptObjectConfig.
    • setTranscriptObjectConfig

       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
    • setTranscriptObjectConfig

       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
    • mergeTranscriptObjectConfig

       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
    • clearTranscriptObjectConfig

      public IngestConversationsRequest.Builder clearTranscriptObjectConfig()
       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
    • getTranscriptObjectConfigBuilder

      public IngestConversationsRequest.TranscriptObjectConfig.Builder getTranscriptObjectConfigBuilder()
       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
    • getTranscriptObjectConfigOrBuilder

      public IngestConversationsRequest.TranscriptObjectConfigOrBuilder getTranscriptObjectConfigOrBuilder()
       Configuration for when `source` contains conversation transcripts.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3;
      Specified by:
      getTranscriptObjectConfigOrBuilder in interface IngestConversationsRequestOrBuilder
    • getParent

      public String getParent()
       Required. The parent resource for new conversations.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface IngestConversationsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

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

      public IngestConversationsRequest.Builder setParent(String value)
       Required. The parent resource for new conversations.
       
      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 IngestConversationsRequest.Builder clearParent()
       Required. The parent resource for new conversations.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public IngestConversationsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for new conversations.
       
      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.
    • hasConversationConfig

      public boolean hasConversationConfig()
       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
      Specified by:
      hasConversationConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the conversationConfig field is set.
    • getConversationConfig

      public IngestConversationsRequest.ConversationConfig getConversationConfig()
       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
      Specified by:
      getConversationConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      The conversationConfig.
    • setConversationConfig

       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
    • setConversationConfig

       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
    • mergeConversationConfig

       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
    • clearConversationConfig

      public IngestConversationsRequest.Builder clearConversationConfig()
       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
    • getConversationConfigBuilder

      public IngestConversationsRequest.ConversationConfig.Builder getConversationConfigBuilder()
       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
    • getConversationConfigOrBuilder

      public IngestConversationsRequest.ConversationConfigOrBuilder getConversationConfigOrBuilder()
       Configuration that applies to all conversations.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4;
      Specified by:
      getConversationConfigOrBuilder in interface IngestConversationsRequestOrBuilder
    • hasRedactionConfig

      public boolean hasRedactionConfig()
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRedactionConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the redactionConfig field is set.
    • getRedactionConfig

      public RedactionConfig getRedactionConfig()
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRedactionConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      The redactionConfig.
    • setRedactionConfig

      public IngestConversationsRequest.Builder setRedactionConfig(RedactionConfig value)
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setRedactionConfig

      public IngestConversationsRequest.Builder setRedactionConfig(RedactionConfig.Builder builderForValue)
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRedactionConfig

      public IngestConversationsRequest.Builder mergeRedactionConfig(RedactionConfig value)
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearRedactionConfig

      public IngestConversationsRequest.Builder clearRedactionConfig()
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getRedactionConfigBuilder

      public RedactionConfig.Builder getRedactionConfigBuilder()
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getRedactionConfigOrBuilder

      public RedactionConfigOrBuilder getRedactionConfigOrBuilder()
       Optional. DLP settings for transcript redaction. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRedactionConfigOrBuilder in interface IngestConversationsRequestOrBuilder
    • hasSpeechConfig

      public boolean hasSpeechConfig()
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSpeechConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the speechConfig field is set.
    • getSpeechConfig

      public SpeechConfig getSpeechConfig()
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpeechConfig in interface IngestConversationsRequestOrBuilder
      Returns:
      The speechConfig.
    • setSpeechConfig

      public IngestConversationsRequest.Builder setSpeechConfig(SpeechConfig value)
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setSpeechConfig

      public IngestConversationsRequest.Builder setSpeechConfig(SpeechConfig.Builder builderForValue)
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSpeechConfig

      public IngestConversationsRequest.Builder mergeSpeechConfig(SpeechConfig value)
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearSpeechConfig

      public IngestConversationsRequest.Builder clearSpeechConfig()
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getSpeechConfigBuilder

      public SpeechConfig.Builder getSpeechConfigBuilder()
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getSpeechConfigOrBuilder

      public SpeechConfigOrBuilder getSpeechConfigOrBuilder()
       Optional. Default Speech-to-Text configuration. Optional, will default to
       the config specified in Settings.
       
      .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpeechConfigOrBuilder in interface IngestConversationsRequestOrBuilder
    • hasSampleSize

      public boolean hasSampleSize()
       Optional. If set, this fields indicates the number of objects to ingest
       from the Cloud Storage bucket. If empty, the entire bucket will be
       ingested. Unless they are first deleted, conversations produced through
       sampling won't be ingested by subsequent ingest requests.
       
      optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSampleSize in interface IngestConversationsRequestOrBuilder
      Returns:
      Whether the sampleSize field is set.
    • getSampleSize

      public int getSampleSize()
       Optional. If set, this fields indicates the number of objects to ingest
       from the Cloud Storage bucket. If empty, the entire bucket will be
       ingested. Unless they are first deleted, conversations produced through
       sampling won't be ingested by subsequent ingest requests.
       
      optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSampleSize in interface IngestConversationsRequestOrBuilder
      Returns:
      The sampleSize.
    • setSampleSize

      public IngestConversationsRequest.Builder setSampleSize(int value)
       Optional. If set, this fields indicates the number of objects to ingest
       from the Cloud Storage bucket. If empty, the entire bucket will be
       ingested. Unless they are first deleted, conversations produced through
       sampling won't be ingested by subsequent ingest requests.
       
      optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sampleSize to set.
      Returns:
      This builder for chaining.
    • clearSampleSize

      public IngestConversationsRequest.Builder clearSampleSize()
       Optional. If set, this fields indicates the number of objects to ingest
       from the Cloud Storage bucket. If empty, the entire bucket will be
       ingested. Unless they are first deleted, conversations produced through
       sampling won't be ingested by subsequent ingest requests.
       
      optional int32 sample_size = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.