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 Summary
Modifier and TypeMethodDescriptionaddAllCustomMetadataKeys(Iterable<String> values) Optional.addCustomMetadataKeys(String value) Optional.addCustomMetadataKeysBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Required.Optional.Optional.Optional.intOptional.Required.com.google.protobuf.ByteStringRequired.getCustomMetadataKeys(int index) Optional.com.google.protobuf.ByteStringgetCustomMetadataKeysBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setBucketObjectTypeValue(int value) Optional.setBucketUri(String value) Required.setBucketUriBytes(com.google.protobuf.ByteString value) Required.setCustomMetadataKeys(int index, String value) Optional.setMetadataBucketUri(String value) Optional.setMetadataBucketUriBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IngestConversationsRequest.GcsSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IngestConversationsRequest.GcsSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IngestConversationsRequest.GcsSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestConversationsRequest.GcsSource.Builder>
-
mergeFrom
public IngestConversationsRequest.GcsSource.Builder mergeFrom(IngestConversationsRequest.GcsSource other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestConversationsRequest.GcsSource.Builder>- Throws:
IOException
-
getBucketUri
Required. The Cloud Storage bucket containing source objects.
string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBucketUriin interfaceIngestConversationsRequest.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:
getBucketUriBytesin interfaceIngestConversationsRequest.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:
getBucketObjectTypeValuein interfaceIngestConversationsRequest.GcsSourceOrBuilder- Returns:
- The enum numeric value on the wire for bucketObjectType.
-
setBucketObjectTypeValue
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:
getBucketObjectTypein interfaceIngestConversationsRequest.GcsSourceOrBuilder- Returns:
- The bucketObjectType.
-
setBucketObjectType
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];- Parameters:
value- The bucketObjectType to set.- Returns:
- This builder for chaining.
-
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:
hasMetadataBucketUriin interfaceIngestConversationsRequest.GcsSourceOrBuilder- Returns:
- Whether the metadataBucketUri field is set.
-
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:
getMetadataBucketUriin interfaceIngestConversationsRequest.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:
getMetadataBucketUriBytesin interfaceIngestConversationsRequest.GcsSourceOrBuilder- Returns:
- The bytes for metadataBucketUri.
-
setMetadataBucketUri
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
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:
getCustomMetadataKeysListin interfaceIngestConversationsRequest.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:
getCustomMetadataKeysCountin interfaceIngestConversationsRequest.GcsSourceOrBuilder- Returns:
- The count of customMetadataKeys.
-
getCustomMetadataKeys
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:
getCustomMetadataKeysin interfaceIngestConversationsRequest.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:
getCustomMetadataKeysBytesin interfaceIngestConversationsRequest.GcsSourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the customMetadataKeys at the given index.
-
setCustomMetadataKeys
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
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
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.
-