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(Iterable<String> values)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
addLanguageHints(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,
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()
Not used.
|
ImageContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImageContext.Builder |
clearProductSearchParams()
Parameters for product search.
|
ImageContext.Builder |
clearTextDetectionParams()
Parameters for text detection and document text detection.
|
ImageContext.Builder |
clearWebDetectionParams()
Parameters for web detection.
|
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() |
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()
Not used.
|
LatLongRect.Builder |
getLatLongRectBuilder()
Not used.
|
LatLongRectOrBuilder |
getLatLongRectOrBuilder()
Not used.
|
ProductSearchParams |
getProductSearchParams()
Parameters for product search.
|
ProductSearchParams.Builder |
getProductSearchParamsBuilder()
Parameters for product search.
|
ProductSearchParamsOrBuilder |
getProductSearchParamsOrBuilder()
Parameters for product search.
|
TextDetectionParams |
getTextDetectionParams()
Parameters for text detection and document text detection.
|
TextDetectionParams.Builder |
getTextDetectionParamsBuilder()
Parameters for text detection and document text detection.
|
TextDetectionParamsOrBuilder |
getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
|
WebDetectionParams |
getWebDetectionParams()
Parameters for web detection.
|
WebDetectionParams.Builder |
getWebDetectionParamsBuilder()
Parameters for web detection.
|
WebDetectionParamsOrBuilder |
getWebDetectionParamsOrBuilder()
Parameters for web detection.
|
boolean |
hasCropHintsParams()
Parameters for crop hints annotation request.
|
boolean |
hasLatLongRect()
Not used.
|
boolean |
hasProductSearchParams()
Parameters for product search.
|
boolean |
hasTextDetectionParams()
Parameters for text detection and document text detection.
|
boolean |
hasWebDetectionParams()
Parameters for web detection.
|
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)
Not used.
|
ImageContext.Builder |
mergeProductSearchParams(ProductSearchParams value)
Parameters for product search.
|
ImageContext.Builder |
mergeTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
|
ImageContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImageContext.Builder |
mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
|
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,
Object value) |
ImageContext.Builder |
setLanguageHints(int index,
String value)
List of languages to use for TEXT_DETECTION.
|
ImageContext.Builder |
setLatLongRect(LatLongRect.Builder builderForValue)
Not used.
|
ImageContext.Builder |
setLatLongRect(LatLongRect value)
Not used.
|
ImageContext.Builder |
setProductSearchParams(ProductSearchParams.Builder builderForValue)
Parameters for product search.
|
ImageContext.Builder |
setProductSearchParams(ProductSearchParams value)
Parameters for product search.
|
ImageContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImageContext.Builder |
setTextDetectionParams(TextDetectionParams.Builder builderForValue)
Parameters for text detection and document text detection.
|
ImageContext.Builder |
setTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
|
ImageContext.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImageContext.Builder |
setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
|
ImageContext.Builder |
setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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, 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, 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, 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 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>IOExceptionpublic boolean hasLatLongRect()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;hasLatLongRect in interface ImageContextOrBuilderpublic LatLongRect getLatLongRect()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;getLatLongRect in interface ImageContextOrBuilderpublic ImageContext.Builder setLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder setLatLongRect(LatLongRect.Builder builderForValue)
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder mergeLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public ImageContext.Builder clearLatLongRect()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public LatLongRect.Builder getLatLongRectBuilder()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;public LatLongRectOrBuilder getLatLongRectOrBuilder()
Not used.
.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](https://cloud.google.com/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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;getLanguageHintsCount in interface ImageContextOrBuilderpublic 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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;getLanguageHints in interface ImageContextOrBuilderindex - The index of the element to return.public 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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;getLanguageHintsBytes in interface ImageContextOrBuilderindex - The index of the value to return.public ImageContext.Builder setLanguageHints(int index, 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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;index - The index to set the value at.value - The languageHints to set.public ImageContext.Builder addLanguageHints(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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;value - The languageHints to add.public ImageContext.Builder addAllLanguageHints(Iterable<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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;values - The languageHints to add.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](https://cloud.google.com/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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;value - The bytes of the languageHints to add.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 boolean hasProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;hasProductSearchParams in interface ImageContextOrBuilderpublic ProductSearchParams getProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;getProductSearchParams in interface ImageContextOrBuilderpublic ImageContext.Builder setProductSearchParams(ProductSearchParams value)
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;public ImageContext.Builder setProductSearchParams(ProductSearchParams.Builder builderForValue)
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;public ImageContext.Builder mergeProductSearchParams(ProductSearchParams value)
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;public ImageContext.Builder clearProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;public ProductSearchParams.Builder getProductSearchParamsBuilder()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;public ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;getProductSearchParamsOrBuilder in interface ImageContextOrBuilderpublic boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;hasWebDetectionParams in interface ImageContextOrBuilderpublic WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;getWebDetectionParams in interface ImageContextOrBuilderpublic ImageContext.Builder setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;public ImageContext.Builder clearWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;public WebDetectionParams.Builder getWebDetectionParamsBuilder()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;getWebDetectionParamsOrBuilder in interface ImageContextOrBuilderpublic boolean hasTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;hasTextDetectionParams in interface ImageContextOrBuilderpublic TextDetectionParams getTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;getTextDetectionParams in interface ImageContextOrBuilderpublic ImageContext.Builder setTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;public ImageContext.Builder setTextDetectionParams(TextDetectionParams.Builder builderForValue)
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;public ImageContext.Builder mergeTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;public ImageContext.Builder clearTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;public TextDetectionParams.Builder getTextDetectionParamsBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;public TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;getTextDetectionParamsOrBuilder 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>Copyright © 2023 Google LLC. All rights reserved.