Package com.google.cloud.vision.v1
Class AnnotateFileRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotateFileRequest.Builder>
com.google.cloud.vision.v1.AnnotateFileRequest.Builder
- All Implemented Interfaces:
AnnotateFileRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotateFileRequest
public static final class AnnotateFileRequest.Builder
extends com.google.protobuf.GeneratedMessage.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.v1.AnnotateFileRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllFeatures(Iterable<? extends Feature> values) Required.addAllPages(Iterable<? extends Integer> values) Pages of the file to perform image annotation.addFeatures(int index, Feature value) Required.addFeatures(int index, Feature.Builder builderForValue) Required.addFeatures(Feature value) Required.addFeatures(Feature.Builder builderForValue) Required.Required.addFeaturesBuilder(int index) Required.addPages(int value) Pages of the file to perform image annotation.build()clear()Required.Additional context that may accompany the image(s) in the file.Required.Pages of the file to perform image annotation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFeatures(int index) Required.getFeaturesBuilder(int index) Required.Required.intRequired.Required.getFeaturesOrBuilder(int index) Required.List<? extends FeatureOrBuilder>Required.Additional context that may accompany the image(s) in the file.Additional context that may accompany the image(s) in the file.Additional context that may accompany the image(s) in the file.Required.Required.Required.intgetPages(int index) Pages of the file to perform image annotation.intPages of the file to perform image annotation.Pages of the file to perform image annotation.booleanAdditional context that may accompany the image(s) in the file.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AnnotateFileRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeImageContext(ImageContext value) Additional context that may accompany the image(s) in the file.mergeInputConfig(InputConfig value) Required.removeFeatures(int index) Required.setFeatures(int index, Feature value) Required.setFeatures(int index, Feature.Builder builderForValue) Required.setImageContext(ImageContext value) Additional context that may accompany the image(s) in the file.setImageContext(ImageContext.Builder builderForValue) Additional context that may accompany the image(s) in the file.setInputConfig(InputConfig value) Required.setInputConfig(InputConfig.Builder builderForValue) Required.setPages(int index, int value) Pages of the file to perform image annotation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateFileRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateFileRequest.Builder>
-
mergeFrom
public AnnotateFileRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateFileRequest.Builder>- Throws:
IOException
-
hasInputConfig
public boolean hasInputConfig()Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
hasInputConfigin interfaceAnnotateFileRequestOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
getInputConfigin interfaceAnnotateFileRequestOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1; -
setInputConfig
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1; -
mergeInputConfig
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1; -
clearInputConfig
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1; -
getInputConfigBuilder
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1; -
getInputConfigOrBuilder
Required. Information about the input file.
.google.cloud.vision.v1.InputConfig input_config = 1;- Specified by:
getInputConfigOrBuilderin interfaceAnnotateFileRequestOrBuilder
-
getFeaturesList
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;- Specified by:
getFeaturesListin interfaceAnnotateFileRequestOrBuilder
-
getFeaturesCount
public int getFeaturesCount()Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;- Specified by:
getFeaturesCountin interfaceAnnotateFileRequestOrBuilder
-
getFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;- Specified by:
getFeaturesin interfaceAnnotateFileRequestOrBuilder
-
setFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
setFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addAllFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
clearFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
removeFeatures
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
getFeaturesBuilder
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
getFeaturesOrBuilder
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;- Specified by:
getFeaturesOrBuilderin interfaceAnnotateFileRequestOrBuilder
-
getFeaturesOrBuilderList
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2;- Specified by:
getFeaturesOrBuilderListin interfaceAnnotateFileRequestOrBuilder
-
addFeaturesBuilder
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
addFeaturesBuilder
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
getFeaturesBuilderList
Required. Requested features.
repeated .google.cloud.vision.v1.Feature features = 2; -
hasImageContext
public boolean hasImageContext()Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3;- Specified by:
hasImageContextin interfaceAnnotateFileRequestOrBuilder- Returns:
- Whether the imageContext field is set.
-
getImageContext
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3;- Specified by:
getImageContextin interfaceAnnotateFileRequestOrBuilder- Returns:
- The imageContext.
-
setImageContext
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3; -
setImageContext
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3; -
mergeImageContext
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3; -
clearImageContext
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3; -
getImageContextBuilder
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3; -
getImageContextOrBuilder
Additional context that may accompany the image(s) in the file.
.google.cloud.vision.v1.ImageContext image_context = 3;- Specified by:
getImageContextOrBuilderin interfaceAnnotateFileRequestOrBuilder
-
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;- Specified by:
getPagesListin interfaceAnnotateFileRequestOrBuilder- Returns:
- A list containing the pages.
-
getPagesCount
public 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;- Specified by:
getPagesCountin interfaceAnnotateFileRequestOrBuilder- Returns:
- The count of pages.
-
getPages
public 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;- Specified by:
getPagesin interfaceAnnotateFileRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pages at the given index.
-
setPages
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;- Parameters:
index- The index to set the value at.value- The pages to set.- Returns:
- This builder for chaining.
-
addPages
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;- Parameters:
value- The pages to add.- Returns:
- This builder for chaining.
-
addAllPages
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;- Parameters:
values- The pages to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-