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.v1p2beta1.ImageContextgetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ImageContext.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ImageContext build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ImageContext buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ImageContext.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(ImageContext other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ImageContext.Builder>public ImageContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ImageContext.Builder>java.io.IOExceptionpublic boolean hasLatLongRect()
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;hasLatLongRect in interface ImageContextOrBuilderpublic LatLongRect getLatLongRect()
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;getLatLongRect in interface ImageContextOrBuilderpublic ImageContext.Builder setLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;public ImageContext.Builder setLatLongRect(LatLongRect.Builder builderForValue)
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;public ImageContext.Builder mergeLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;public ImageContext.Builder clearLatLongRect()
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;public LatLongRect.Builder getLatLongRectBuilder()
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;public LatLongRectOrBuilder getLatLongRectOrBuilder()
Not used.
.google.cloud.vision.v1p2beta1.LatLongRect lat_long_rect = 1;getLatLongRectOrBuilder in interface ImageContextOrBuilderpublic 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 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(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.v1p2beta1.CropHintsParams crop_hints_params = 4;hasCropHintsParams in interface ImageContextOrBuilderpublic CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;getCropHintsParams in interface ImageContextOrBuilderpublic ImageContext.Builder setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;public ImageContext.Builder clearCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;public CropHintsParams.Builder getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p2beta1.CropHintsParams crop_hints_params = 4;getCropHintsParamsOrBuilder in interface ImageContextOrBuilderpublic boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;hasWebDetectionParams in interface ImageContextOrBuilderpublic WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;getWebDetectionParams in interface ImageContextOrBuilderpublic ImageContext.Builder setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder clearWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;public WebDetectionParams.Builder getWebDetectionParamsBuilder()
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1p2beta1.WebDetectionParams web_detection_params = 6;getWebDetectionParamsOrBuilder in interface ImageContextOrBuilderpublic final ImageContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ImageContext.Builder>public final ImageContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ImageContext.Builder>