public static final class ImageContext.Builder extends GeneratedMessageV3.Builder<ImageContext.Builder> implements ImageContextOrBuilder
Image context and/or feature-specific parameters.Protobuf type
google.cloud.vision.v1p1beta1.ImageContext
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ImageContext build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ImageContext buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ImageContext.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ImageContext.Builder>
public ImageContext.Builder mergeFrom(ImageContext other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ImageContext.Builder>
java.io.IOException
public boolean hasLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
hasLatLongRect
in interface ImageContextOrBuilder
public LatLongRect getLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
getLatLongRect
in interface ImageContextOrBuilder
public ImageContext.Builder setLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.LatLongRect lat_long_rect = 1;
public ImageContext.Builder mergeLatLongRect(LatLongRect value)
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
public ImageContext.Builder clearLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
public LatLongRect.Builder getLatLongRectBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
public LatLongRectOrBuilder getLatLongRectOrBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
getLatLongRectOrBuilder
in interface ImageContextOrBuilder
public 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 ImageContextOrBuilder
public 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 ImageContextOrBuilder
public 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 ImageContextOrBuilder
public 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 ImageContextOrBuilder
public 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(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.v1p1beta1.CropHintsParams crop_hints_params = 4;
hasCropHintsParams
in interface ImageContextOrBuilder
public CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
getCropHintsParams
in interface ImageContextOrBuilder
public ImageContext.Builder setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder clearCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
public CropHintsParams.Builder getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
getCropHintsParamsOrBuilder
in interface ImageContextOrBuilder
public boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
hasWebDetectionParams
in interface ImageContextOrBuilder
public WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
getWebDetectionParams
in interface ImageContextOrBuilder
public ImageContext.Builder setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder clearWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
public WebDetectionParams.Builder getWebDetectionParamsBuilder()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
getWebDetectionParamsOrBuilder
in interface ImageContextOrBuilder
public final ImageContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public final ImageContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ImageContext.Builder>