Class GcsIngestPipeline.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GcsIngestPipeline.Builder>
-
- com.google.cloud.contentwarehouse.v1.GcsIngestPipeline.Builder
-
- All Implemented Interfaces:
GcsIngestPipelineOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GcsIngestPipeline
public static final class GcsIngestPipeline.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GcsIngestPipeline.Builder> implements GcsIngestPipelineOrBuilder
The configuration of the Cloud Storage Ingestion pipeline.
Protobuf typegoogle.cloud.contentwarehouse.v1.GcsIngestPipeline
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GcsIngestPipeline.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GcsIngestPipeline
build()
GcsIngestPipeline
buildPartial()
GcsIngestPipeline.Builder
clear()
GcsIngestPipeline.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GcsIngestPipeline.Builder
clearInputPath()
The input Cloud Storage folder.GcsIngestPipeline.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GcsIngestPipeline.Builder
clearPipelineConfig()
Optional.GcsIngestPipeline.Builder
clearProcessorType()
The Doc AI processor type name.GcsIngestPipeline.Builder
clearSchemaName()
The Document Warehouse schema resource name.GcsIngestPipeline.Builder
clearSkipIngestedDocuments()
The flag whether to skip ingested documents.GcsIngestPipeline.Builder
clone()
GcsIngestPipeline
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInputPath()
The input Cloud Storage folder.com.google.protobuf.ByteString
getInputPathBytes()
The input Cloud Storage folder.IngestPipelineConfig
getPipelineConfig()
Optional.IngestPipelineConfig.Builder
getPipelineConfigBuilder()
Optional.IngestPipelineConfigOrBuilder
getPipelineConfigOrBuilder()
Optional.String
getProcessorType()
The Doc AI processor type name.com.google.protobuf.ByteString
getProcessorTypeBytes()
The Doc AI processor type name.String
getSchemaName()
The Document Warehouse schema resource name.com.google.protobuf.ByteString
getSchemaNameBytes()
The Document Warehouse schema resource name.boolean
getSkipIngestedDocuments()
The flag whether to skip ingested documents.boolean
hasPipelineConfig()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GcsIngestPipeline.Builder
mergeFrom(GcsIngestPipeline other)
GcsIngestPipeline.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GcsIngestPipeline.Builder
mergeFrom(com.google.protobuf.Message other)
GcsIngestPipeline.Builder
mergePipelineConfig(IngestPipelineConfig value)
Optional.GcsIngestPipeline.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GcsIngestPipeline.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GcsIngestPipeline.Builder
setInputPath(String value)
The input Cloud Storage folder.GcsIngestPipeline.Builder
setInputPathBytes(com.google.protobuf.ByteString value)
The input Cloud Storage folder.GcsIngestPipeline.Builder
setPipelineConfig(IngestPipelineConfig value)
Optional.GcsIngestPipeline.Builder
setPipelineConfig(IngestPipelineConfig.Builder builderForValue)
Optional.GcsIngestPipeline.Builder
setProcessorType(String value)
The Doc AI processor type name.GcsIngestPipeline.Builder
setProcessorTypeBytes(com.google.protobuf.ByteString value)
The Doc AI processor type name.GcsIngestPipeline.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GcsIngestPipeline.Builder
setSchemaName(String value)
The Document Warehouse schema resource name.GcsIngestPipeline.Builder
setSchemaNameBytes(com.google.protobuf.ByteString value)
The Document Warehouse schema resource name.GcsIngestPipeline.Builder
setSkipIngestedDocuments(boolean value)
The flag whether to skip ingested documents.GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
clear
public GcsIngestPipeline.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<GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
getDefaultInstanceForType
public GcsIngestPipeline getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GcsIngestPipeline build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GcsIngestPipeline buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
setField
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
clearField
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
clearOneof
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
setRepeatedField
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
addRepeatedField
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
-
mergeFrom
public GcsIngestPipeline.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GcsIngestPipeline.Builder>
-
mergeFrom
public GcsIngestPipeline.Builder mergeFrom(GcsIngestPipeline other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsIngestPipeline.Builder>
-
mergeFrom
public GcsIngestPipeline.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<GcsIngestPipeline.Builder>
- Throws:
IOException
-
getInputPath
public String getInputPath()
The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs://<bucket-name>/<folder-name>`.
string input_path = 1;
- Specified by:
getInputPath
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The inputPath.
-
getInputPathBytes
public com.google.protobuf.ByteString getInputPathBytes()
The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs://<bucket-name>/<folder-name>`.
string input_path = 1;
- Specified by:
getInputPathBytes
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The bytes for inputPath.
-
setInputPath
public GcsIngestPipeline.Builder setInputPath(String value)
The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs://<bucket-name>/<folder-name>`.
string input_path = 1;
- Parameters:
value
- The inputPath to set.- Returns:
- This builder for chaining.
-
clearInputPath
public GcsIngestPipeline.Builder clearInputPath()
The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs://<bucket-name>/<folder-name>`.
string input_path = 1;
- Returns:
- This builder for chaining.
-
setInputPathBytes
public GcsIngestPipeline.Builder setInputPathBytes(com.google.protobuf.ByteString value)
The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: `gs://<bucket-name>/<folder-name>`.
string input_path = 1;
- Parameters:
value
- The bytes for inputPath to set.- Returns:
- This builder for chaining.
-
getSchemaName
public String getSchemaName()
The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string schema_name = 2;
- Specified by:
getSchemaName
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The schemaName.
-
getSchemaNameBytes
public com.google.protobuf.ByteString getSchemaNameBytes()
The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string schema_name = 2;
- Specified by:
getSchemaNameBytes
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The bytes for schemaName.
-
setSchemaName
public GcsIngestPipeline.Builder setSchemaName(String value)
The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string schema_name = 2;
- Parameters:
value
- The schemaName to set.- Returns:
- This builder for chaining.
-
clearSchemaName
public GcsIngestPipeline.Builder clearSchemaName()
The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string schema_name = 2;
- Returns:
- This builder for chaining.
-
setSchemaNameBytes
public GcsIngestPipeline.Builder setSchemaNameBytes(com.google.protobuf.ByteString value)
The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string schema_name = 2;
- Parameters:
value
- The bytes for schemaName to set.- Returns:
- This builder for chaining.
-
getProcessorType
public String getProcessorType()
The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format.
string processor_type = 3;
- Specified by:
getProcessorType
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The processorType.
-
getProcessorTypeBytes
public com.google.protobuf.ByteString getProcessorTypeBytes()
The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format.
string processor_type = 3;
- Specified by:
getProcessorTypeBytes
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The bytes for processorType.
-
setProcessorType
public GcsIngestPipeline.Builder setProcessorType(String value)
The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format.
string processor_type = 3;
- Parameters:
value
- The processorType to set.- Returns:
- This builder for chaining.
-
clearProcessorType
public GcsIngestPipeline.Builder clearProcessorType()
The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format.
string processor_type = 3;
- Returns:
- This builder for chaining.
-
setProcessorTypeBytes
public GcsIngestPipeline.Builder setProcessorTypeBytes(com.google.protobuf.ByteString value)
The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format.
string processor_type = 3;
- Parameters:
value
- The bytes for processorType to set.- Returns:
- This builder for chaining.
-
getSkipIngestedDocuments
public boolean getSkipIngestedDocuments()
The flag whether to skip ingested documents. If it is set to true, documents in Cloud Storage contains key "status" with value "status=ingested" in custom metadata will be skipped to ingest.
bool skip_ingested_documents = 4;
- Specified by:
getSkipIngestedDocuments
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The skipIngestedDocuments.
-
setSkipIngestedDocuments
public GcsIngestPipeline.Builder setSkipIngestedDocuments(boolean value)
The flag whether to skip ingested documents. If it is set to true, documents in Cloud Storage contains key "status" with value "status=ingested" in custom metadata will be skipped to ingest.
bool skip_ingested_documents = 4;
- Parameters:
value
- The skipIngestedDocuments to set.- Returns:
- This builder for chaining.
-
clearSkipIngestedDocuments
public GcsIngestPipeline.Builder clearSkipIngestedDocuments()
The flag whether to skip ingested documents. If it is set to true, documents in Cloud Storage contains key "status" with value "status=ingested" in custom metadata will be skipped to ingest.
bool skip_ingested_documents = 4;
- Returns:
- This builder for chaining.
-
hasPipelineConfig
public boolean hasPipelineConfig()
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasPipelineConfig
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- Whether the pipelineConfig field is set.
-
getPipelineConfig
public IngestPipelineConfig getPipelineConfig()
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPipelineConfig
in interfaceGcsIngestPipelineOrBuilder
- Returns:
- The pipelineConfig.
-
setPipelineConfig
public GcsIngestPipeline.Builder setPipelineConfig(IngestPipelineConfig value)
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
-
setPipelineConfig
public GcsIngestPipeline.Builder setPipelineConfig(IngestPipelineConfig.Builder builderForValue)
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
-
mergePipelineConfig
public GcsIngestPipeline.Builder mergePipelineConfig(IngestPipelineConfig value)
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
-
clearPipelineConfig
public GcsIngestPipeline.Builder clearPipelineConfig()
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getPipelineConfigBuilder
public IngestPipelineConfig.Builder getPipelineConfigBuilder()
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
-
getPipelineConfigOrBuilder
public IngestPipelineConfigOrBuilder getPipelineConfigOrBuilder()
Optional. The config for the Cloud Storage Ingestion pipeline. It provides additional customization options to run the pipeline and can be skipped if it is not applicable.
.google.cloud.contentwarehouse.v1.IngestPipelineConfig pipeline_config = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPipelineConfigOrBuilder
in interfaceGcsIngestPipelineOrBuilder
-
setUnknownFields
public final GcsIngestPipeline.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsIngestPipeline.Builder>
-
mergeUnknownFields
public final GcsIngestPipeline.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GcsIngestPipeline.Builder>
-
-