public static final class IngestConversationsRequest.GcsSource.Builder extends GeneratedMessage.Builder<IngestConversationsRequest.GcsSource.Builder> implements IngestConversationsRequest.GcsSourceOrBuilderConfiguration for Cloud Storage bucket sources.
Protobuf type
google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > IngestConversationsRequest.GcsSource.BuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the customMetadataKeys to add. |
| Returns | |
|---|---|
| Type | Description |
IngestConversationsRequest.GcsSource.Builder |
This builder for chaining. |
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 |
|
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. |
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. |
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 |
intThe 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 |
intThe 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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.BucketObjectTypeThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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 |
intThe index to set the value at. |
value |
StringThe customMetadataKeys to set. |
| Returns | |
|---|---|
| Type | Description |
IngestConversationsRequest.GcsSource.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for metadataBucketUri to set. |
| Returns | |
|---|---|
| Type | Description |
IngestConversationsRequest.GcsSource.Builder |
This builder for chaining. |