Class Dataset (2.53.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
Type Description
int

GCS_MANAGED_CONFIG_FIELD_NUMBER

public static final int GCS_MANAGED_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SATISFIES_PZI_FIELD_NUMBER

public static final int SATISFIES_PZI_FIELD_NUMBER
Field Value
Type Description
int

SATISFIES_PZS_FIELD_NUMBER

public static final int SATISFIES_PZS_FIELD_NUMBER
Field Value
Type Description
int

SPANNER_INDEXING_CONFIG_FIELD_NUMBER

public static final int SPANNER_INDEXING_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UNMANAGED_DATASET_CONFIG_FIELD_NUMBER

public static final int UNMANAGED_DATASET_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Dataset getDefaultInstance()
Returns
Type Description
Dataset

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Dataset.Builder newBuilder()
Returns
Type Description
Dataset.Builder

newBuilder(Dataset prototype)

public static Dataset.Builder newBuilder(Dataset prototype)
Parameter
Name Description
prototype Dataset
Returns
Type Description
Dataset.Builder

parseDelimitedFrom(InputStream input)

public static Dataset parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Dataset parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Dataset parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Dataset parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Dataset parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Dataset parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Dataset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Dataset
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Dataset> parser()
Returns
Type Description
Parser<Dataset>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Dataset getDefaultInstanceForType()
Returns
Type Description
Dataset

getDocumentWarehouseConfig() (deprecated)

public Dataset.DocumentWarehouseConfig getDocumentWarehouseConfig()

Deprecated. google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=98

Optional. Deprecated. Warehouse-based dataset configuration is not supported.

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

Returns
Type Description
Dataset.DocumentWarehouseConfig

The documentWarehouseConfig.

getDocumentWarehouseConfigOrBuilder() (deprecated)

public Dataset.DocumentWarehouseConfigOrBuilder getDocumentWarehouseConfigOrBuilder()

Optional. Deprecated. Warehouse-based dataset configuration is not supported.

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

Returns
Type Description
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
Type Description
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
Type Description
Dataset.GCSManagedConfigOrBuilder

getIndexingSourceCase()

public Dataset.IndexingSourceCase getIndexingSourceCase()
Returns
Type Description
Dataset.IndexingSourceCase

getName()

public String getName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Dataset> getParserForType()
Returns
Type Description
Parser<Dataset>
Overrides

getSatisfiesPzi()

public boolean getSatisfiesPzi()

Output only. Reserved for future use.

bool satisfies_pzi = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzi.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

Output only. Reserved for future use.

bool satisfies_pzs = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzs.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for state.

getStorageSourceCase()

public Dataset.StorageSourceCase getStorageSourceCase()
Returns
Type Description
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
Type Description
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
Type Description
Dataset.UnmanagedDatasetConfigOrBuilder

hasDocumentWarehouseConfig() (deprecated)

public boolean hasDocumentWarehouseConfig()

Deprecated. google.cloud.documentai.v1beta3.Dataset.document_warehouse_config is deprecated. See google/cloud/documentai/v1beta3/dataset.proto;l=98

Optional. Deprecated. Warehouse-based dataset configuration is not supported.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the unmanagedDatasetConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Dataset.Builder newBuilderForType()
Returns
Type Description
Dataset.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Dataset.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Dataset.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Dataset.Builder toBuilder()
Returns
Type Description
Dataset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException