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.v1p3beta1.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