Class IngestConversationsRequest.GcsSource (2.53.0)

public static final class IngestConversationsRequest.GcsSource extends GeneratedMessageV3 implements IngestConversationsRequest.GcsSourceOrBuilder

Configuration for Cloud Storage bucket sources.

Protobuf type google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > IngestConversationsRequest.GcsSource

Static Fields

BUCKET_OBJECT_TYPE_FIELD_NUMBER

public static final int BUCKET_OBJECT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

BUCKET_URI_FIELD_NUMBER

public static final int BUCKET_URI_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_METADATA_KEYS_FIELD_NUMBER

public static final int CUSTOM_METADATA_KEYS_FIELD_NUMBER
Field Value
Type Description
int

METADATA_BUCKET_URI_FIELD_NUMBER

public static final int METADATA_BUCKET_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static IngestConversationsRequest.GcsSource getDefaultInstance()
Returns
Type Description
IngestConversationsRequest.GcsSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static IngestConversationsRequest.GcsSource.Builder newBuilder()
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

newBuilder(IngestConversationsRequest.GcsSource prototype)

public static IngestConversationsRequest.GcsSource.Builder newBuilder(IngestConversationsRequest.GcsSource prototype)
Parameter
Name Description
prototype IngestConversationsRequest.GcsSource
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

parseDelimitedFrom(InputStream input)

public static IngestConversationsRequest.GcsSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static IngestConversationsRequest.GcsSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static IngestConversationsRequest.GcsSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static IngestConversationsRequest.GcsSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static IngestConversationsRequest.GcsSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static IngestConversationsRequest.GcsSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static IngestConversationsRequest.GcsSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<IngestConversationsRequest.GcsSource> parser()
Returns
Type Description
Parser<GcsSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBucketObjectType()

public IngestConversationsRequest.GcsSource.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];

Returns
Type Description
IngestConversationsRequest.GcsSource.BucketObjectType

The bucketObjectType.

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

Returns
Type Description
int

The enum numeric value on the wire for bucketObjectType.

getBucketUri()

public String getBucketUri()

Required. The Cloud Storage bucket containing source objects.

string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The bucketUri.

getBucketUriBytes()

public ByteString getBucketUriBytes()

Required. The Cloud Storage bucket containing source objects.

string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for bucketUri.

getCustomMetadataKeys(int index)

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 20 labels per conversation.

repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The customMetadataKeys at the given index.

getCustomMetadataKeysBytes(int index)

public 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 20 labels per conversation.

repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the customMetadataKeys at the given index.

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 20 labels per conversation.

repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of customMetadataKeys.

getCustomMetadataKeysList()

public 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 20 labels per conversation.

repeated string custom_metadata_keys = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the customMetadataKeys.

getDefaultInstanceForType()

public IngestConversationsRequest.GcsSource getDefaultInstanceForType()
Returns
Type Description
IngestConversationsRequest.GcsSource

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

Returns
Type Description
String

The metadataBucketUri.

getMetadataBucketUriBytes()

public 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];

Returns
Type Description
ByteString

The bytes for metadataBucketUri.

getParserForType()

public Parser<IngestConversationsRequest.GcsSource> getParserForType()
Returns
Type Description
Parser<GcsSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

Returns
Type Description
boolean

Whether the metadataBucketUri field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public IngestConversationsRequest.GcsSource.Builder newBuilderForType()
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected IngestConversationsRequest.GcsSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public IngestConversationsRequest.GcsSource.Builder toBuilder()
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException