Class ImageAnnotationContext.Builder (3.1.3)

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.v1p2beta1.ImageAnnotationContext

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageAnnotationContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

build()

public ImageAnnotationContext build()
Returns
TypeDescription
ImageAnnotationContext

buildPartial()

public ImageAnnotationContext buildPartial()
Returns
TypeDescription
ImageAnnotationContext

clear()

public ImageAnnotationContext.Builder clear()
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImageAnnotationContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageAnnotationContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageAnnotationContext.Builder
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
TypeDescription
ImageAnnotationContext.Builder

This builder for chaining.

clearUri()

public ImageAnnotationContext.Builder clearUri()

The URI of the file used to produce the image.

string uri = 1;

Returns
TypeDescription
ImageAnnotationContext.Builder

This builder for chaining.

clone()

public ImageAnnotationContext.Builder clone()
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

getDefaultInstanceForType()

public ImageAnnotationContext getDefaultInstanceForType()
Returns
TypeDescription
ImageAnnotationContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
int

The pageNumber.

getUri()

public String getUri()

The URI of the file used to produce the image.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the file used to produce the image.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageAnnotationContext other)

public ImageAnnotationContext.Builder mergeFrom(ImageAnnotationContext other)
Parameter
NameDescription
otherImageAnnotationContext
Returns
TypeDescription
ImageAnnotationContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageAnnotationContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageAnnotationContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageAnnotationContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImageAnnotationContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageAnnotationContext.Builder
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
NameDescription
valueint

The pageNumber to set.

Returns
TypeDescription
ImageAnnotationContext.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImageAnnotationContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageAnnotationContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageAnnotationContext.Builder
Overrides

setUri(String value)

public ImageAnnotationContext.Builder setUri(String value)

The URI of the file used to produce the image.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
ImageAnnotationContext.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ImageAnnotationContext.Builder setUriBytes(ByteString value)

The URI of the file used to produce the image.

string uri = 1;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
ImageAnnotationContext.Builder

This builder for chaining.