public final class DocumentInputConfig extends GeneratedMessageV3 implements DocumentInputConfigOrBuilder
Input configuration of a Document.
Protobuf type google.cloud.automl.v1.DocumentInputConfig
Static Fields
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
Static Methods
public static DocumentInputConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static DocumentInputConfig.Builder newBuilder()
Returns
public static DocumentInputConfig.Builder newBuilder(DocumentInputConfig prototype)
Parameter
Returns
public static DocumentInputConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DocumentInputConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentInputConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static DocumentInputConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentInputConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static DocumentInputConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentInputConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DocumentInputConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentInputConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DocumentInputConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentInputConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static DocumentInputConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<DocumentInputConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public DocumentInputConfig getDefaultInstanceForType()
Returns
public GcsSource getGcsSource()
The Google Cloud Storage location of the document file. Only a single path
should be given.
Max supported size: 512MB.
Supported extensions: .PDF.
.google.cloud.automl.v1.GcsSource gcs_source = 1;
Returns
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Google Cloud Storage location of the document file. Only a single path
should be given.
Max supported size: 512MB.
Supported extensions: .PDF.
.google.cloud.automl.v1.GcsSource gcs_source = 1;
Returns
public Parser<DocumentInputConfig> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasGcsSource()
The Google Cloud Storage location of the document file. Only a single path
should be given.
Max supported size: 512MB.
Supported extensions: .PDF.
.google.cloud.automl.v1.GcsSource gcs_source = 1;
Returns
Type | Description |
boolean | Whether the gcsSource field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DocumentInputConfig.Builder newBuilderForType()
Returns
protected DocumentInputConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public DocumentInputConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions