Class IngestConversationsRequest.GcsSource.Builder

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

public static final class IngestConversationsRequest.GcsSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<IngestConversationsRequest.GcsSource.Builder> implements IngestConversationsRequest.GcsSourceOrBuilder
 Configuration for Cloud Storage bucket sources.
 
Protobuf type google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
  • 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.GcsSource.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.GcsSource.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.GcsSource.Builder>
    • getDefaultInstanceForType

      public IngestConversationsRequest.GcsSource 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.GcsSource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getBucketUri()
       Required. The Cloud Storage bucket containing source objects.
       
      string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucketUri in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The bucketUri.
    • getBucketUriBytes

      public com.google.protobuf.ByteString getBucketUriBytes()
       Required. The Cloud Storage bucket containing source objects.
       
      string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucketUriBytes in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The bytes for bucketUri.
    • setBucketUri

       Required. The Cloud Storage bucket containing source objects.
       
      string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bucketUri to set.
      Returns:
      This builder for chaining.
    • clearBucketUri

       Required. The Cloud Storage bucket containing source objects.
       
      string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBucketUriBytes

      public IngestConversationsRequest.GcsSource.Builder setBucketUriBytes(com.google.protobuf.ByteString value)
       Required. The Cloud Storage bucket containing source objects.
       
      string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for bucketUri to set.
      Returns:
      This builder for chaining.
    • getBucketObjectTypeValue

      public int getBucketObjectTypeValue()
       Optional. Specifies the type of the objects in `bucket_uri`.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketObjectTypeValue in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The enum numeric value on the wire for bucketObjectType.
    • setBucketObjectTypeValue

      public IngestConversationsRequest.GcsSource.Builder setBucketObjectTypeValue(int value)
       Optional. Specifies the type of the objects in `bucket_uri`.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for bucketObjectType to set.
      Returns:
      This builder for chaining.
    • getBucketObjectType

       Optional. Specifies the type of the objects in `bucket_uri`.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBucketObjectType in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The bucketObjectType.
    • setBucketObjectType

       Optional. Specifies the type of the objects in `bucket_uri`.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bucketObjectType to set.
      Returns:
      This builder for chaining.
    • clearBucketObjectType

      public IngestConversationsRequest.GcsSource.Builder clearBucketObjectType()
       Optional. Specifies the type of the objects in `bucket_uri`.
       
      .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMetadataBucketUri

      public boolean hasMetadataBucketUri()
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMetadataBucketUri in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      Whether the metadataBucketUri field is set.
    • getMetadataBucketUri

      public String getMetadataBucketUri()
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataBucketUri in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The metadataBucketUri.
    • getMetadataBucketUriBytes

      public com.google.protobuf.ByteString getMetadataBucketUriBytes()
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetadataBucketUriBytes in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The bytes for metadataBucketUri.
    • setMetadataBucketUri

      public IngestConversationsRequest.GcsSource.Builder setMetadataBucketUri(String value)
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The metadataBucketUri to set.
      Returns:
      This builder for chaining.
    • clearMetadataBucketUri

      public IngestConversationsRequest.GcsSource.Builder clearMetadataBucketUri()
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setMetadataBucketUriBytes

      public IngestConversationsRequest.GcsSource.Builder setMetadataBucketUriBytes(com.google.protobuf.ByteString value)
       Optional. The Cloud Storage path to the conversation metadata. Note that:
       [1] Metadata files are expected to be in JSON format.
       [2] Metadata and source files (transcripts or audio) must be in
       separate buckets.
       [3] A source file and its corresponding metadata file must share the same
       name to
       be properly ingested, E.g. `gs://bucket/audio/conversation1.mp3` and
       `gs://bucket/metadata/conversation1.json`.
       
      optional string metadata_bucket_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for metadataBucketUri to set.
      Returns:
      This builder for chaining.
    • getCustomMetadataKeysList

      public com.google.protobuf.ProtocolStringList getCustomMetadataKeysList()
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomMetadataKeysList in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      A list containing the customMetadataKeys.
    • getCustomMetadataKeysCount

      public int getCustomMetadataKeysCount()
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomMetadataKeysCount in interface IngestConversationsRequest.GcsSourceOrBuilder
      Returns:
      The count of customMetadataKeys.
    • getCustomMetadataKeys

      public String getCustomMetadataKeys(int index)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomMetadataKeys in interface IngestConversationsRequest.GcsSourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The customMetadataKeys at the given index.
    • getCustomMetadataKeysBytes

      public com.google.protobuf.ByteString getCustomMetadataKeysBytes(int index)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomMetadataKeysBytes in interface IngestConversationsRequest.GcsSourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the customMetadataKeys at the given index.
    • setCustomMetadataKeys

      public IngestConversationsRequest.GcsSource.Builder setCustomMetadataKeys(int index, String value)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The customMetadataKeys to set.
      Returns:
      This builder for chaining.
    • addCustomMetadataKeys

      public IngestConversationsRequest.GcsSource.Builder addCustomMetadataKeys(String value)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The customMetadataKeys to add.
      Returns:
      This builder for chaining.
    • addAllCustomMetadataKeys

      public IngestConversationsRequest.GcsSource.Builder addAllCustomMetadataKeys(Iterable<String> values)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The customMetadataKeys to add.
      Returns:
      This builder for chaining.
    • clearCustomMetadataKeys

      public IngestConversationsRequest.GcsSource.Builder clearCustomMetadataKeys()
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addCustomMetadataKeysBytes

      public IngestConversationsRequest.GcsSource.Builder addCustomMetadataKeysBytes(com.google.protobuf.ByteString value)
       Optional. Custom keys to extract as conversation labels from metadata
       files in `metadata_bucket_uri`. Keys not included in this field will be
       ignored. Note that there is a limit of 100 labels per conversation.
       
      repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the customMetadataKeys to add.
      Returns:
      This builder for chaining.