public static final class AnnotateFileRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder> implements AnnotateFileRequestOrBuilder
A request to annotate one single file, e.g. a PDF, TIFF or GIF file.Protobuf type
google.cloud.vision.v1p4beta1.AnnotateFileRequest| Modifier and Type | Method and Description |
|---|---|
AnnotateFileRequest.Builder |
addAllFeatures(Iterable<? extends Feature> values)
Required.
|
AnnotateFileRequest.Builder |
addAllPages(Iterable<? extends Integer> values)
Pages of the file to perform image annotation.
|
AnnotateFileRequest.Builder |
addFeatures(Feature.Builder builderForValue)
Required.
|
AnnotateFileRequest.Builder |
addFeatures(Feature value)
Required.
|
AnnotateFileRequest.Builder |
addFeatures(int index,
Feature.Builder builderForValue)
Required.
|
AnnotateFileRequest.Builder |
addFeatures(int index,
Feature value)
Required.
|
Feature.Builder |
addFeaturesBuilder()
Required.
|
Feature.Builder |
addFeaturesBuilder(int index)
Required.
|
AnnotateFileRequest.Builder |
addPages(int value)
Pages of the file to perform image annotation.
|
AnnotateFileRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotateFileRequest |
build() |
AnnotateFileRequest |
buildPartial() |
AnnotateFileRequest.Builder |
clear() |
AnnotateFileRequest.Builder |
clearFeatures()
Required.
|
AnnotateFileRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AnnotateFileRequest.Builder |
clearImageContext()
Additional context that may accompany the image(s) in the file.
|
AnnotateFileRequest.Builder |
clearInputConfig()
Required.
|
AnnotateFileRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnnotateFileRequest.Builder |
clearPages()
Pages of the file to perform image annotation.
|
AnnotateFileRequest.Builder |
clone() |
AnnotateFileRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Feature |
getFeatures(int index)
Required.
|
Feature.Builder |
getFeaturesBuilder(int index)
Required.
|
List<Feature.Builder> |
getFeaturesBuilderList()
Required.
|
int |
getFeaturesCount()
Required.
|
List<Feature> |
getFeaturesList()
Required.
|
FeatureOrBuilder |
getFeaturesOrBuilder(int index)
Required.
|
List<? extends FeatureOrBuilder> |
getFeaturesOrBuilderList()
Required.
|
ImageContext |
getImageContext()
Additional context that may accompany the image(s) in the file.
|
ImageContext.Builder |
getImageContextBuilder()
Additional context that may accompany the image(s) in the file.
|
ImageContextOrBuilder |
getImageContextOrBuilder()
Additional context that may accompany the image(s) in the file.
|
InputConfig |
getInputConfig()
Required.
|
InputConfig.Builder |
getInputConfigBuilder()
Required.
|
InputConfigOrBuilder |
getInputConfigOrBuilder()
Required.
|
int |
getPages(int index)
Pages of the file to perform image annotation.
|
int |
getPagesCount()
Pages of the file to perform image annotation.
|
List<Integer> |
getPagesList()
Pages of the file to perform image annotation.
|
boolean |
hasImageContext()
Additional context that may accompany the image(s) in the file.
|
boolean |
hasInputConfig()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotateFileRequest.Builder |
mergeFrom(AnnotateFileRequest other) |
AnnotateFileRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AnnotateFileRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
AnnotateFileRequest.Builder |
mergeImageContext(ImageContext value)
Additional context that may accompany the image(s) in the file.
|
AnnotateFileRequest.Builder |
mergeInputConfig(InputConfig value)
Required.
|
AnnotateFileRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AnnotateFileRequest.Builder |
removeFeatures(int index)
Required.
|
AnnotateFileRequest.Builder |
setFeatures(int index,
Feature.Builder builderForValue)
Required.
|
AnnotateFileRequest.Builder |
setFeatures(int index,
Feature value)
Required.
|
AnnotateFileRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotateFileRequest.Builder |
setImageContext(ImageContext.Builder builderForValue)
Additional context that may accompany the image(s) in the file.
|
AnnotateFileRequest.Builder |
setImageContext(ImageContext value)
Additional context that may accompany the image(s) in the file.
|
AnnotateFileRequest.Builder |
setInputConfig(InputConfig.Builder builderForValue)
Required.
|
AnnotateFileRequest.Builder |
setInputConfig(InputConfig value)
Required.
|
AnnotateFileRequest.Builder |
setPages(int index,
int value)
Pages of the file to perform image annotation.
|
AnnotateFileRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AnnotateFileRequest.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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.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<AnnotateFileRequest.Builder>public AnnotateFileRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotateFileRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotateFileRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotateFileRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.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<AnnotateFileRequest.Builder>public AnnotateFileRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.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<AnnotateFileRequest.Builder>public AnnotateFileRequest.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<AnnotateFileRequest.Builder>public AnnotateFileRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.Builder mergeFrom(AnnotateFileRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public AnnotateFileRequest.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<AnnotateFileRequest.Builder>IOExceptionpublic boolean hasInputConfig()
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;hasInputConfig in interface AnnotateFileRequestOrBuilderpublic InputConfig getInputConfig()
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;getInputConfig in interface AnnotateFileRequestOrBuilderpublic AnnotateFileRequest.Builder setInputConfig(InputConfig value)
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;public AnnotateFileRequest.Builder setInputConfig(InputConfig.Builder builderForValue)
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;public AnnotateFileRequest.Builder mergeInputConfig(InputConfig value)
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;public AnnotateFileRequest.Builder clearInputConfig()
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;public InputConfig.Builder getInputConfigBuilder()
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;public InputConfigOrBuilder getInputConfigOrBuilder()
Required. Information about the input file.
.google.cloud.vision.v1p4beta1.InputConfig input_config = 1;getInputConfigOrBuilder in interface AnnotateFileRequestOrBuilderpublic List<Feature> getFeaturesList()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;getFeaturesList in interface AnnotateFileRequestOrBuilderpublic int getFeaturesCount()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;getFeaturesCount in interface AnnotateFileRequestOrBuilderpublic Feature getFeatures(int index)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;getFeatures in interface AnnotateFileRequestOrBuilderpublic AnnotateFileRequest.Builder setFeatures(int index, Feature value)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder setFeatures(int index, Feature.Builder builderForValue)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder addFeatures(Feature value)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder addFeatures(int index, Feature value)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder addFeatures(Feature.Builder builderForValue)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder addFeatures(int index, Feature.Builder builderForValue)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder addAllFeatures(Iterable<? extends Feature> values)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder clearFeatures()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public AnnotateFileRequest.Builder removeFeatures(int index)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public Feature.Builder getFeaturesBuilder(int index)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public FeatureOrBuilder getFeaturesOrBuilder(int index)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;getFeaturesOrBuilder in interface AnnotateFileRequestOrBuilderpublic List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;getFeaturesOrBuilderList in interface AnnotateFileRequestOrBuilderpublic Feature.Builder addFeaturesBuilder()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public Feature.Builder addFeaturesBuilder(int index)
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public List<Feature.Builder> getFeaturesBuilderList()
Required. Requested features.
repeated .google.cloud.vision.v1p4beta1.Feature features = 2;public boolean hasImageContext()
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;hasImageContext in interface AnnotateFileRequestOrBuilderpublic ImageContext getImageContext()
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;getImageContext in interface AnnotateFileRequestOrBuilderpublic AnnotateFileRequest.Builder setImageContext(ImageContext value)
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;public AnnotateFileRequest.Builder setImageContext(ImageContext.Builder builderForValue)
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;public AnnotateFileRequest.Builder mergeImageContext(ImageContext value)
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;public AnnotateFileRequest.Builder clearImageContext()
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;public ImageContext.Builder getImageContextBuilder()
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;public ImageContextOrBuilder getImageContextOrBuilder()
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1p4beta1.ImageContext image_context = 3;getImageContextOrBuilder in interface AnnotateFileRequestOrBuilderpublic List<Integer> getPagesList()
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;getPagesList in interface AnnotateFileRequestOrBuilderpublic int getPagesCount()
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;getPagesCount in interface AnnotateFileRequestOrBuilderpublic int getPages(int index)
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;getPages in interface AnnotateFileRequestOrBuilderindex - The index of the element to return.public AnnotateFileRequest.Builder setPages(int index, int value)
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;index - The index to set the value at.value - The pages to set.public AnnotateFileRequest.Builder addPages(int value)
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;value - The pages to add.public AnnotateFileRequest.Builder addAllPages(Iterable<? extends Integer> values)
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;values - The pages to add.public AnnotateFileRequest.Builder clearPages()
Pages of the file to perform image annotation. Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative. Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page. If the file is GIF instead of PDF or TIFF, page refers to GIF frames. If this field is empty, by default the service performs image annotation for the first 5 pages of the file.
repeated int32 pages = 4;public final AnnotateFileRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>public final AnnotateFileRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateFileRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.