public static final class InputConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder> implements InputConfigOrBuilder
The desired input location and metadata.Protobuf type
google.cloud.documentai.v1beta2.InputConfig| Modifier and Type | Method and Description |
|---|---|
InputConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InputConfig |
build() |
InputConfig |
buildPartial() |
InputConfig.Builder |
clear() |
InputConfig.Builder |
clearContents()
Content in bytes, represented as a stream of bytes.
|
InputConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InputConfig.Builder |
clearGcsSource()
The Google Cloud Storage location to read the input from.
|
InputConfig.Builder |
clearMimeType()
Required.
|
InputConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InputConfig.Builder |
clearSource() |
InputConfig.Builder |
clone() |
com.google.protobuf.ByteString |
getContents()
Content in bytes, represented as a stream of bytes.
|
InputConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GcsSource |
getGcsSource()
The Google Cloud Storage location to read the input from.
|
GcsSource.Builder |
getGcsSourceBuilder()
The Google Cloud Storage location to read the input from.
|
GcsSourceOrBuilder |
getGcsSourceOrBuilder()
The Google Cloud Storage location to read the input from.
|
String |
getMimeType()
Required.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
Required.
|
InputConfig.SourceCase |
getSourceCase() |
boolean |
hasContents()
Content in bytes, represented as a stream of bytes.
|
boolean |
hasGcsSource()
The Google Cloud Storage location to read the input from.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InputConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InputConfig.Builder |
mergeFrom(InputConfig other) |
InputConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
InputConfig.Builder |
mergeGcsSource(GcsSource value)
The Google Cloud Storage location to read the input from.
|
InputConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InputConfig.Builder |
setContents(com.google.protobuf.ByteString value)
Content in bytes, represented as a stream of bytes.
|
InputConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InputConfig.Builder |
setGcsSource(GcsSource.Builder builderForValue)
The Google Cloud Storage location to read the input from.
|
InputConfig.Builder |
setGcsSource(GcsSource value)
The Google Cloud Storage location to read the input from.
|
InputConfig.Builder |
setMimeType(String value)
Required.
|
InputConfig.Builder |
setMimeTypeBytes(com.google.protobuf.ByteString value)
Required.
|
InputConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InputConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InputConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InputConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InputConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>public InputConfig.Builder mergeFrom(InputConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public InputConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InputConfig.Builder>IOExceptionpublic InputConfig.SourceCase getSourceCase()
getSourceCase in interface InputConfigOrBuilderpublic InputConfig.Builder clearSource()
public boolean hasGcsSource()
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;hasGcsSource in interface InputConfigOrBuilderpublic GcsSource getGcsSource()
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;getGcsSource in interface InputConfigOrBuilderpublic InputConfig.Builder setGcsSource(GcsSource value)
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;public InputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;public InputConfig.Builder mergeGcsSource(GcsSource value)
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;public InputConfig.Builder clearGcsSource()
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;public GcsSource.Builder getGcsSourceBuilder()
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Google Cloud Storage location to read the input from. This must be a single file.
.google.cloud.documentai.v1beta2.GcsSource gcs_source = 1;getGcsSourceOrBuilder in interface InputConfigOrBuilderpublic boolean hasContents()
Content in bytes, represented as a stream of bytes. Note: As with all `bytes` fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64. This field only works for synchronous ProcessDocument method.
bytes contents = 3;hasContents in interface InputConfigOrBuilderpublic com.google.protobuf.ByteString getContents()
Content in bytes, represented as a stream of bytes. Note: As with all `bytes` fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64. This field only works for synchronous ProcessDocument method.
bytes contents = 3;getContents in interface InputConfigOrBuilderpublic InputConfig.Builder setContents(com.google.protobuf.ByteString value)
Content in bytes, represented as a stream of bytes. Note: As with all `bytes` fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64. This field only works for synchronous ProcessDocument method.
bytes contents = 3;value - The contents to set.public InputConfig.Builder clearContents()
Content in bytes, represented as a stream of bytes. Note: As with all `bytes` fields, proto buffer messages use a pure binary representation, whereas JSON representations use base64. This field only works for synchronous ProcessDocument method.
bytes contents = 3;public String getMimeType()
Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];getMimeType in interface InputConfigOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];getMimeTypeBytes in interface InputConfigOrBuilderpublic InputConfig.Builder setMimeType(String value)
Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];value - The mimeType to set.public InputConfig.Builder clearMimeType()
Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];public InputConfig.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with [ProcessDocumentRequest.automl_params][google.cloud.documentai.v1beta2.ProcessDocumentRequest.automl_params] field set. The JSON file needs to be in [Document][google.cloud.documentai.v1beta2.Document] format.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for mimeType to set.public final InputConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>public final InputConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InputConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.