Class Dataset (2.37.0)

public final class Dataset extends GeneratedMessageV3 implements DatasetOrBuilder

A singleton resource under a Processor which configures a collection of documents.

Protobuf type google.cloud.documentai.v1beta3.Dataset

Implements

DatasetOrBuilder

Static Fields

DOCUMENT_WAREHOUSE_CONFIG_FIELD_NUMBER

public static final int DOCUMENT_WAREHOUSE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_MANAGED_CONFIG_FIELD_NUMBER

public static final int GCS_MANAGED_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SPANNER_INDEXING_CONFIG_FIELD_NUMBER

public static final int SPANNER_INDEXING_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

UNMANAGED_DATASET_CONFIG_FIELD_NUMBER

public static final int UNMANAGED_DATASET_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Dataset getDefaultInstance()
Returns
TypeDescription
Dataset

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Dataset.Builder newBuilder()
Returns
TypeDescription
Dataset.Builder

newBuilder(Dataset prototype)

public static Dataset.Builder newBuilder(Dataset prototype)
Parameter
NameDescription
prototypeDataset
Returns
TypeDescription
Dataset.Builder

parseDelimitedFrom(InputStream input)

public static Dataset parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Dataset parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Dataset parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Dataset parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Dataset parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Dataset parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Dataset
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Dataset> parser()
Returns
TypeDescription
Parser<Dataset>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Dataset getDefaultInstanceForType()
Returns
TypeDescription
Dataset

getDocumentWarehouseConfig()

public Dataset.DocumentWarehouseConfig getDocumentWarehouseConfig()

Optional. Document AI Warehouse-based dataset configuration.

.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.DocumentWarehouseConfig

The documentWarehouseConfig.

getDocumentWarehouseConfigOrBuilder()

public Dataset.DocumentWarehouseConfigOrBuilder getDocumentWarehouseConfigOrBuilder()

Optional. Document AI Warehouse-based dataset configuration.

.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.DocumentWarehouseConfigOrBuilder

getGcsManagedConfig()

public Dataset.GCSManagedConfig getGcsManagedConfig()

Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location.

.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.GCSManagedConfig

The gcsManagedConfig.

getGcsManagedConfigOrBuilder()

public Dataset.GCSManagedConfigOrBuilder getGcsManagedConfigOrBuilder()

Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location.

.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.GCSManagedConfigOrBuilder

getIndexingSourceCase()

public Dataset.IndexingSourceCase getIndexingSourceCase()
Returns
TypeDescription
Dataset.IndexingSourceCase

getName()

public String getName()

Dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Dataset> getParserForType()
Returns
TypeDescription
Parser<Dataset>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpannerIndexingConfig()

public Dataset.SpannerIndexingConfig getSpannerIndexingConfig()

Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search.

.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.SpannerIndexingConfig

The spannerIndexingConfig.

getSpannerIndexingConfigOrBuilder()

public Dataset.SpannerIndexingConfigOrBuilder getSpannerIndexingConfigOrBuilder()

Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search.

.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.SpannerIndexingConfigOrBuilder

getState()

public Dataset.State getState()

Required. State of the dataset. Ignored when updating dataset.

.google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Dataset.State

The state.

getStateValue()

public int getStateValue()

Required. State of the dataset. Ignored when updating dataset.

.google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStorageSourceCase()

public Dataset.StorageSourceCase getStorageSourceCase()
Returns
TypeDescription
Dataset.StorageSourceCase

getUnmanagedDatasetConfig()

public Dataset.UnmanagedDatasetConfig getUnmanagedDatasetConfig()

Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed).

.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.UnmanagedDatasetConfig

The unmanagedDatasetConfig.

getUnmanagedDatasetConfigOrBuilder()

public Dataset.UnmanagedDatasetConfigOrBuilder getUnmanagedDatasetConfigOrBuilder()

Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed).

.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Dataset.UnmanagedDatasetConfigOrBuilder

hasDocumentWarehouseConfig()

public boolean hasDocumentWarehouseConfig()

Optional. Document AI Warehouse-based dataset configuration.

.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the documentWarehouseConfig field is set.

hasGcsManagedConfig()

public boolean hasGcsManagedConfig()

Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location.

.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the gcsManagedConfig field is set.

hasSpannerIndexingConfig()

public boolean hasSpannerIndexingConfig()

Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search.

.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the spannerIndexingConfig field is set.

hasUnmanagedDatasetConfig()

public boolean hasUnmanagedDatasetConfig()

Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed).

.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the unmanagedDatasetConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Dataset.Builder newBuilderForType()
Returns
TypeDescription
Dataset.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Dataset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Dataset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Dataset.Builder toBuilder()
Returns
TypeDescription
Dataset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException