public static final class ImageContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder> implements ImageContextOrBuilder
Image context and/or feature-specific parameters.Protobuf type
google.cloud.vision.v1.ImageContext| Modifier and Type | Method and Description |
|---|---|
ImageContext.Builder |
addAllLanguageHints(java.lang.Iterable<java.lang.String> values)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
addLanguageHints(java.lang.String value)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
addLanguageHintsBytes(com.google.protobuf.ByteString value)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ImageContext |
build() |
ImageContext |
buildPartial() |
ImageContext.Builder |
clear() |
ImageContext.Builder |
clearCropHintsParams()
Parameters for crop hints annotation request.
|
ImageContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImageContext.Builder |
clearLanguageHints()
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
clearLatLongRect()
lat/long rectangle that specifies the location of the image.
|
ImageContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImageContext.Builder |
clone() |
CropHintsParams |
getCropHintsParams()
Parameters for crop hints annotation request.
|
CropHintsParams.Builder |
getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
|
CropHintsParamsOrBuilder |
getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
|
ImageContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLanguageHints(int index)
List of languages to use for TEXT_DETECTION.
|
com.google.protobuf.ByteString |
getLanguageHintsBytes(int index)
List of languages to use for TEXT_DETECTION.
|
int |
getLanguageHintsCount()
List of languages to use for TEXT_DETECTION.
|
com.google.protobuf.ProtocolStringList |
getLanguageHintsList()
List of languages to use for TEXT_DETECTION.
|
LatLongRect |
getLatLongRect()
lat/long rectangle that specifies the location of the image.
|
LatLongRect.Builder |
getLatLongRectBuilder()
lat/long rectangle that specifies the location of the image.
|
LatLongRectOrBuilder |
getLatLongRectOrBuilder()
lat/long rectangle that specifies the location of the image.
|
boolean |
hasCropHintsParams()
Parameters for crop hints annotation request.
|
boolean |
hasLatLongRect()
lat/long rectangle that specifies the location of the image.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ImageContext.Builder |
mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
|
ImageContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImageContext.Builder |
mergeFrom(ImageContext other) |
ImageContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImageContext.Builder |
mergeLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
|
ImageContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImageContext.Builder |
setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
|
ImageContext.Builder |
setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
|
ImageContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ImageContext.Builder |
setLanguageHints(int index,
java.lang.String value)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
setLatLongRect(LatLongRect.Builder builderForValue)
lat/long rectangle that specifies the location of the image.
|
ImageContext.Builder |
setLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
|
ImageContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ImageContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, 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<ImageContext.Builder>public ImageContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.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<ImageContext.Builder>public ImageContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ImageContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ImageContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ImageContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(ImageContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImageContext.Builder>java.io.IOExceptionpublic boolean hasLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;hasLatLongRect in interface ImageContextOrBuilderpublic LatLongRect getLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;getLatLongRect in interface ImageContextOrBuilderpublic ImageContext.Builder setLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder setLatLongRect(LatLongRect.Builder builderForValue)
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder mergeLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder clearLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public LatLongRect.Builder getLatLongRectBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public LatLongRectOrBuilder getLatLongRectOrBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;getLatLongRectOrBuilder in interface ImageContextOrBuilderpublic com.google.protobuf.ProtocolStringList getLanguageHintsList()
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;getLanguageHintsList in interface ImageContextOrBuilderpublic int getLanguageHintsCount()
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;getLanguageHintsCount in interface ImageContextOrBuilderpublic java.lang.String getLanguageHints(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;getLanguageHints in interface ImageContextOrBuilderpublic com.google.protobuf.ByteString getLanguageHintsBytes(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;getLanguageHintsBytes in interface ImageContextOrBuilderpublic ImageContext.Builder setLanguageHints(int index, java.lang.String value)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;public ImageContext.Builder addLanguageHints(java.lang.String value)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;public ImageContext.Builder addAllLanguageHints(java.lang.Iterable<java.lang.String> values)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;public ImageContext.Builder clearLanguageHints()
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;public ImageContext.Builder addLanguageHintsBytes(com.google.protobuf.ByteString value)
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](/vision/docs/languages).
repeated string language_hints = 2;public boolean hasCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;hasCropHintsParams in interface ImageContextOrBuilderpublic CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;getCropHintsParams in interface ImageContextOrBuilderpublic ImageContext.Builder setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder clearCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;public CropHintsParams.Builder getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;getCropHintsParamsOrBuilder in interface ImageContextOrBuilderpublic final ImageContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>public final ImageContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>