Send feedback Class ImageAnnotationContext.Builder (3.61.0) Stay organized with collections Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class ImageAnnotationContext . Builder extends GeneratedMessageV3 . Builder<ImageAnnotationContext . Builder > implements ImageAnnotationContextOrBuilder
If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.
Protobuf type google.cloud.vision.v1p4beta1.ImageAnnotationContext
Inherited Members com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageAnnotationContext . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides build()
public ImageAnnotationContext build ()
buildPartial()
public ImageAnnotationContext buildPartial ()
clear()
public ImageAnnotationContext . Builder clear ()
Overrides clearField(Descriptors.FieldDescriptor field)
public ImageAnnotationContext . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides clearOneof(Descriptors.OneofDescriptor oneof)
public ImageAnnotationContext . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides clearPageNumber()
public ImageAnnotationContext . Builder clearPageNumber ()
If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.
int32 page_number = 2;
clearUri()
public ImageAnnotationContext . Builder clearUri ()
The URI of the file used to produce the image.
string uri = 1;
clone()
public ImageAnnotationContext . Builder clone ()
Overrides getDefaultInstanceForType()
public ImageAnnotationContext getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides getPageNumber()
public int getPageNumber ()
If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.
int32 page_number = 2;
Returns Type Description int
The pageNumber.
getUri() The URI of the file used to produce the image.
string uri = 1;
Returns Type Description String
The uri.
getUriBytes()
public ByteString getUriBytes ()
The URI of the file used to produce the image.
string uri = 1;
Returns Type Description ByteString
The bytes for uri.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides isInitialized()
public final boolean isInitialized ()
Overrides mergeFrom(ImageAnnotationContext other)
public ImageAnnotationContext . Builder mergeFrom ( ImageAnnotationContext other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageAnnotationContext . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides mergeFrom(Message other)
public ImageAnnotationContext . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageAnnotationContext . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides setField(Descriptors.FieldDescriptor field, Object value)
public ImageAnnotationContext . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides setPageNumber(int value)
public ImageAnnotationContext . Builder setPageNumber ( int value )
If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image.
int32 page_number = 2;
Parameter Name Description value
int
The pageNumber to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageAnnotationContext . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides setUnknownFields(UnknownFieldSet unknownFields)
public final ImageAnnotationContext . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides setUri(String value)
public ImageAnnotationContext . Builder setUri ( String value )
The URI of the file used to produce the image.
string uri = 1;
Parameter Name Description value
String
The uri to set.
setUriBytes(ByteString value)
public ImageAnnotationContext . Builder setUriBytes ( ByteString value )
The URI of the file used to produce the image.
string uri = 1;
Parameter Name Description value
ByteString
The bytes for uri to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-05 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-05 UTC."],[],[]]