Send feedback
Class ImageAnnotationContext.Builder (2.1.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.1 keyboard_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
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageAnnotationContext . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ImageAnnotationContext build ()
Returns
buildPartial()
public ImageAnnotationContext buildPartial ()
Returns
clear()
public ImageAnnotationContext . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ImageAnnotationContext . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageAnnotationContext . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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;
Returns
clearUri()
public ImageAnnotationContext . Builder clearUri ()
The URI of the file used to produce the image.
string uri = 1;
Returns
clone()
public ImageAnnotationContext . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ImageAnnotationContext getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
getUriBytes()
public ByteString getUriBytes ()
The URI of the file used to produce the image.
string uri = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ImageAnnotationContext other)
public ImageAnnotationContext . Builder mergeFrom ( ImageAnnotationContext other )
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageAnnotationContext . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImageAnnotationContext . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageAnnotationContext . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ImageAnnotationContext . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageAnnotationContext . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageAnnotationContext . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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.
Returns
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.
Returns
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-01-21 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-01-21 UTC."],[],[]]