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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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.
|