Class IngestConversationsRequest.GcsSource

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

public static final class IngestConversationsRequest.GcsSource extends com.google.protobuf.GeneratedMessage implements IngestConversationsRequest.GcsSourceOrBuilder
 Configuration for Cloud Storage bucket sources.
 
Protobuf type google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
See Also:
  • Field Details

    • BUCKET_URI_FIELD_NUMBER

      public static final int BUCKET_URI_FIELD_NUMBER
      See Also:
    • BUCKET_OBJECT_TYPE_FIELD_NUMBER

      public static final int BUCKET_OBJECT_TYPE_FIELD_NUMBER
      See Also:
    • METADATA_BUCKET_URI_FIELD_NUMBER

      public static final int METADATA_BUCKET_URI_FIELD_NUMBER
      See Also:
    • CUSTOM_METADATA_KEYS_FIELD_NUMBER

      public static final int CUSTOM_METADATA_KEYS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IngestConversationsRequest.GcsSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static IngestConversationsRequest.GcsSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IngestConversationsRequest.GcsSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected IngestConversationsRequest.GcsSource.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static IngestConversationsRequest.GcsSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<IngestConversationsRequest.GcsSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<IngestConversationsRequest.GcsSource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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