public static final class ImageAnnotationContext.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
ImageAnnotationContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImageAnnotationContext |
build() |
ImageAnnotationContext |
buildPartial() |
ImageAnnotationContext.Builder |
clear() |
ImageAnnotationContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImageAnnotationContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.
|
ImageAnnotationContext.Builder |
clearUri()
The URI of the file used to produce the image.
|
ImageAnnotationContext.Builder |
clone() |
ImageAnnotationContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getPageNumber()
If the file was a PDF or TIFF, this field gives the page number within
the file used to produce the image.
|
String |
getUri()
The URI of the file used to produce the image.
|
com.google.protobuf.ByteString |
getUriBytes()
The URI of the file used to produce the image.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImageAnnotationContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImageAnnotationContext.Builder |
mergeFrom(ImageAnnotationContext other) |
ImageAnnotationContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImageAnnotationContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImageAnnotationContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
ImageAnnotationContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImageAnnotationContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImageAnnotationContext.Builder |
setUri(String value)
The URI of the file used to produce the image.
|
ImageAnnotationContext.Builder |
setUriBytes(com.google.protobuf.ByteString value)
The URI of the file used to produce the image.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImageAnnotationContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImageAnnotationContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImageAnnotationContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder mergeFrom(ImageAnnotationContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public ImageAnnotationContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageAnnotationContext.Builder>IOExceptionpublic String getUri()
The URI of the file used to produce the image.
string uri = 1;getUri in interface ImageAnnotationContextOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The URI of the file used to produce the image.
string uri = 1;getUriBytes in interface ImageAnnotationContextOrBuilderpublic ImageAnnotationContext.Builder setUri(String value)
The URI of the file used to produce the image.
string uri = 1;value - The uri to set.public ImageAnnotationContext.Builder clearUri()
The URI of the file used to produce the image.
string uri = 1;public ImageAnnotationContext.Builder setUriBytes(com.google.protobuf.ByteString value)
The URI of the file used to produce the image.
string uri = 1;value - The bytes for uri to set.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;getPageNumber in interface ImageAnnotationContextOrBuilderpublic 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;value - The pageNumber to set.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;public final ImageAnnotationContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>public final ImageAnnotationContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageAnnotationContext.Builder>Copyright © 2020 Google LLC. All rights reserved.