Class ExportToCdwPipeline.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
- com.google.cloud.contentwarehouse.v1.ExportToCdwPipeline.Builder
-
- All Implemented Interfaces:
ExportToCdwPipelineOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ExportToCdwPipeline
public static final class ExportToCdwPipeline.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder> implements ExportToCdwPipelineOrBuilder
The configuration of exporting documents from the Document Warehouse to CDW pipeline.
Protobuf typegoogle.cloud.contentwarehouse.v1.ExportToCdwPipeline
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportToCdwPipeline.Builder
addAllDocuments(Iterable<String> values)
The list of all the resource names of the documents to be processed.ExportToCdwPipeline.Builder
addDocuments(String value)
The list of all the resource names of the documents to be processed.ExportToCdwPipeline.Builder
addDocumentsBytes(com.google.protobuf.ByteString value)
The list of all the resource names of the documents to be processed.ExportToCdwPipeline.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExportToCdwPipeline
build()
ExportToCdwPipeline
buildPartial()
ExportToCdwPipeline.Builder
clear()
ExportToCdwPipeline.Builder
clearDocAiDataset()
Optional.ExportToCdwPipeline.Builder
clearDocuments()
The list of all the resource names of the documents to be processed.ExportToCdwPipeline.Builder
clearExportFolderPath()
The Cloud Storage folder path used to store the exported documents before being sent to CDW.ExportToCdwPipeline.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExportToCdwPipeline.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExportToCdwPipeline.Builder
clearTrainingSplitRatio()
Ratio of training dataset split.ExportToCdwPipeline.Builder
clone()
ExportToCdwPipeline
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDocAiDataset()
Optional.com.google.protobuf.ByteString
getDocAiDatasetBytes()
Optional.String
getDocuments(int index)
The list of all the resource names of the documents to be processed.com.google.protobuf.ByteString
getDocumentsBytes(int index)
The list of all the resource names of the documents to be processed.int
getDocumentsCount()
The list of all the resource names of the documents to be processed.com.google.protobuf.ProtocolStringList
getDocumentsList()
The list of all the resource names of the documents to be processed.String
getExportFolderPath()
The Cloud Storage folder path used to store the exported documents before being sent to CDW.com.google.protobuf.ByteString
getExportFolderPathBytes()
The Cloud Storage folder path used to store the exported documents before being sent to CDW.float
getTrainingSplitRatio()
Ratio of training dataset split.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExportToCdwPipeline.Builder
mergeFrom(ExportToCdwPipeline other)
ExportToCdwPipeline.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExportToCdwPipeline.Builder
mergeFrom(com.google.protobuf.Message other)
ExportToCdwPipeline.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExportToCdwPipeline.Builder
setDocAiDataset(String value)
Optional.ExportToCdwPipeline.Builder
setDocAiDatasetBytes(com.google.protobuf.ByteString value)
Optional.ExportToCdwPipeline.Builder
setDocuments(int index, String value)
The list of all the resource names of the documents to be processed.ExportToCdwPipeline.Builder
setExportFolderPath(String value)
The Cloud Storage folder path used to store the exported documents before being sent to CDW.ExportToCdwPipeline.Builder
setExportFolderPathBytes(com.google.protobuf.ByteString value)
The Cloud Storage folder path used to store the exported documents before being sent to CDW.ExportToCdwPipeline.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExportToCdwPipeline.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExportToCdwPipeline.Builder
setTrainingSplitRatio(float value)
Ratio of training dataset split.ExportToCdwPipeline.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
clear
public ExportToCdwPipeline.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
getDefaultInstanceForType
public ExportToCdwPipeline getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExportToCdwPipeline build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExportToCdwPipeline buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExportToCdwPipeline.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
setField
public ExportToCdwPipeline.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
clearField
public ExportToCdwPipeline.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
clearOneof
public ExportToCdwPipeline.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
setRepeatedField
public ExportToCdwPipeline.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
addRepeatedField
public ExportToCdwPipeline.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
mergeFrom
public ExportToCdwPipeline.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportToCdwPipeline.Builder>
-
mergeFrom
public ExportToCdwPipeline.Builder mergeFrom(ExportToCdwPipeline other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
mergeFrom
public ExportToCdwPipeline.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportToCdwPipeline.Builder>
- Throws:
IOException
-
getDocumentsList
public com.google.protobuf.ProtocolStringList getDocumentsList()
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Specified by:
getDocumentsList
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- A list containing the documents.
-
getDocumentsCount
public int getDocumentsCount()
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Specified by:
getDocumentsCount
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The count of documents.
-
getDocuments
public String getDocuments(int index)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Specified by:
getDocuments
in interfaceExportToCdwPipelineOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The documents at the given index.
-
getDocumentsBytes
public com.google.protobuf.ByteString getDocumentsBytes(int index)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Specified by:
getDocumentsBytes
in interfaceExportToCdwPipelineOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the documents at the given index.
-
setDocuments
public ExportToCdwPipeline.Builder setDocuments(int index, String value)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Parameters:
index
- The index to set the value at.value
- The documents to set.- Returns:
- This builder for chaining.
-
addDocuments
public ExportToCdwPipeline.Builder addDocuments(String value)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Parameters:
value
- The documents to add.- Returns:
- This builder for chaining.
-
addAllDocuments
public ExportToCdwPipeline.Builder addAllDocuments(Iterable<String> values)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Parameters:
values
- The documents to add.- Returns:
- This builder for chaining.
-
clearDocuments
public ExportToCdwPipeline.Builder clearDocuments()
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Returns:
- This builder for chaining.
-
addDocumentsBytes
public ExportToCdwPipeline.Builder addDocumentsBytes(com.google.protobuf.ByteString value)
The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string documents = 1;
- Parameters:
value
- The bytes of the documents to add.- Returns:
- This builder for chaining.
-
getExportFolderPath
public String getExportFolderPath()
The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs://<bucket-name>/<folder-name>`.
string export_folder_path = 2;
- Specified by:
getExportFolderPath
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The exportFolderPath.
-
getExportFolderPathBytes
public com.google.protobuf.ByteString getExportFolderPathBytes()
The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs://<bucket-name>/<folder-name>`.
string export_folder_path = 2;
- Specified by:
getExportFolderPathBytes
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The bytes for exportFolderPath.
-
setExportFolderPath
public ExportToCdwPipeline.Builder setExportFolderPath(String value)
The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs://<bucket-name>/<folder-name>`.
string export_folder_path = 2;
- Parameters:
value
- The exportFolderPath to set.- Returns:
- This builder for chaining.
-
clearExportFolderPath
public ExportToCdwPipeline.Builder clearExportFolderPath()
The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs://<bucket-name>/<folder-name>`.
string export_folder_path = 2;
- Returns:
- This builder for chaining.
-
setExportFolderPathBytes
public ExportToCdwPipeline.Builder setExportFolderPathBytes(com.google.protobuf.ByteString value)
The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: `gs://<bucket-name>/<folder-name>`.
string export_folder_path = 2;
- Parameters:
value
- The bytes for exportFolderPath to set.- Returns:
- This builder for chaining.
-
getDocAiDataset
public String getDocAiDataset()
Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDocAiDataset
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The docAiDataset.
-
getDocAiDatasetBytes
public com.google.protobuf.ByteString getDocAiDatasetBytes()
Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDocAiDatasetBytes
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The bytes for docAiDataset.
-
setDocAiDataset
public ExportToCdwPipeline.Builder setDocAiDataset(String value)
Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The docAiDataset to set.- Returns:
- This builder for chaining.
-
clearDocAiDataset
public ExportToCdwPipeline.Builder clearDocAiDataset()
Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setDocAiDatasetBytes
public ExportToCdwPipeline.Builder setDocAiDatasetBytes(com.google.protobuf.ByteString value)
Optional. The CDW dataset resource name. This field is optional. If not set, the documents will be exported to Cloud Storage only. Format: projects/{project}/locations/{location}/processors/{processor}/dataset
string doc_ai_dataset = 3 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for docAiDataset to set.- Returns:
- This builder for chaining.
-
getTrainingSplitRatio
public float getTrainingSplitRatio()
Ratio of training dataset split. When importing into Document AI Workbench, documents will be automatically split into training and test split category with the specified ratio. This field is required if doc_ai_dataset is set.
float training_split_ratio = 4;
- Specified by:
getTrainingSplitRatio
in interfaceExportToCdwPipelineOrBuilder
- Returns:
- The trainingSplitRatio.
-
setTrainingSplitRatio
public ExportToCdwPipeline.Builder setTrainingSplitRatio(float value)
Ratio of training dataset split. When importing into Document AI Workbench, documents will be automatically split into training and test split category with the specified ratio. This field is required if doc_ai_dataset is set.
float training_split_ratio = 4;
- Parameters:
value
- The trainingSplitRatio to set.- Returns:
- This builder for chaining.
-
clearTrainingSplitRatio
public ExportToCdwPipeline.Builder clearTrainingSplitRatio()
Ratio of training dataset split. When importing into Document AI Workbench, documents will be automatically split into training and test split category with the specified ratio. This field is required if doc_ai_dataset is set.
float training_split_ratio = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExportToCdwPipeline.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
mergeUnknownFields
public final ExportToCdwPipeline.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportToCdwPipeline.Builder>
-
-