Class DocumentOutputConfig (2.9.0)

public final class DocumentOutputConfig extends GeneratedMessageV3 implements DocumentOutputConfigOrBuilder

Config that controls the output of documents. All documents will be written as a JSON file.

Protobuf type google.cloud.documentai.v1beta3.DocumentOutputConfig

Static Fields

GCS_OUTPUT_CONFIG_FIELD_NUMBER

public static final int GCS_OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DocumentOutputConfig getDefaultInstance()
Returns
TypeDescription
DocumentOutputConfig

getDescriptor()

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

newBuilder()

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

newBuilder(DocumentOutputConfig prototype)

public static DocumentOutputConfig.Builder newBuilder(DocumentOutputConfig prototype)
Parameter
NameDescription
prototypeDocumentOutputConfig
Returns
TypeDescription
DocumentOutputConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DocumentOutputConfig getDefaultInstanceForType()
Returns
TypeDescription
DocumentOutputConfig

getDestinationCase()

public DocumentOutputConfig.DestinationCase getDestinationCase()
Returns
TypeDescription
DocumentOutputConfig.DestinationCase

getGcsOutputConfig()

public DocumentOutputConfig.GcsOutputConfig getGcsOutputConfig()

Output config to write the results to Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
DocumentOutputConfig.GcsOutputConfig

The gcsOutputConfig.

getGcsOutputConfigOrBuilder()

public DocumentOutputConfig.GcsOutputConfigOrBuilder getGcsOutputConfigOrBuilder()

Output config to write the results to Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
DocumentOutputConfig.GcsOutputConfigOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasGcsOutputConfig()

public boolean hasGcsOutputConfig()

Output config to write the results to Cloud Storage.

.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
boolean

Whether the gcsOutputConfig 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 DocumentOutputConfig.Builder newBuilderForType()
Returns
TypeDescription
DocumentOutputConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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