Class IngestConversationsRequest.GcsSource.Builder (2.54.0)

public static final class IngestConversationsRequest.GcsSource.Builder extends GeneratedMessageV3.Builder<IngestConversationsRequest.GcsSource.Builder> implements IngestConversationsRequest.GcsSourceOrBuilder

Configuration for Cloud Storage bucket sources.

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

Static Methods

getDescriptor()

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

Methods

addAllCustomMetadataKeys(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The customMetadataKeys to add.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

addCustomMetadataKeys(String value)

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

Parameter
Name Description
value String

The customMetadataKeys to add.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

addCustomMetadataKeysBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes of the customMetadataKeys to add.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IngestConversationsRequest.GcsSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

build()

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

buildPartial()

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

clear()

public IngestConversationsRequest.GcsSource.Builder clear()
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

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
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

clearBucketUri()

public IngestConversationsRequest.GcsSource.Builder clearBucketUri()

Required. The Cloud Storage bucket containing source objects.

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

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

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
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public IngestConversationsRequest.GcsSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

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
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IngestConversationsRequest.GcsSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

clone()

public IngestConversationsRequest.GcsSource.Builder clone()
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
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 100 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 100 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 100 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 100 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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IngestConversationsRequest.GcsSource other)

public IngestConversationsRequest.GcsSource.Builder mergeFrom(IngestConversationsRequest.GcsSource other)
Parameter
Name Description
other IngestConversationsRequest.GcsSource
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IngestConversationsRequest.GcsSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IngestConversationsRequest.GcsSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IngestConversationsRequest.GcsSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

setBucketObjectType(IngestConversationsRequest.GcsSource.BucketObjectType value)

public IngestConversationsRequest.GcsSource.Builder setBucketObjectType(IngestConversationsRequest.GcsSource.BucketObjectType 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];

Parameter
Name Description
value IngestConversationsRequest.GcsSource.BucketObjectType

The bucketObjectType to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setBucketObjectTypeValue(int value)

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

Parameter
Name Description
value int

The enum numeric value on the wire for bucketObjectType to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setBucketUri(String value)

public IngestConversationsRequest.GcsSource.Builder setBucketUri(String value)

Required. The Cloud Storage bucket containing source objects.

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

Parameter
Name Description
value String

The bucketUri to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setBucketUriBytes(ByteString value)

public IngestConversationsRequest.GcsSource.Builder setBucketUriBytes(ByteString value)

Required. The Cloud Storage bucket containing source objects.

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

Parameter
Name Description
value ByteString

The bytes for bucketUri to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setCustomMetadataKeys(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The customMetadataKeys to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public IngestConversationsRequest.GcsSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

setMetadataBucketUri(String value)

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

Parameter
Name Description
value String

The metadataBucketUri to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setMetadataBucketUriBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for metadataBucketUri to set.

Returns
Type Description
IngestConversationsRequest.GcsSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IngestConversationsRequest.GcsSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IngestConversationsRequest.GcsSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IngestConversationsRequest.GcsSource.Builder
Overrides