- 3.74.0 (latest)
- 3.73.0
- 3.72.0
- 3.71.0
- 3.70.0
- 3.68.0
- 3.66.0
- 3.65.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
public static final class ImageContext.Builder extends GeneratedMessageV3.Builder<ImageContext.Builder> implements ImageContextOrBuilderImage context and/or feature-specific parameters.
Protobuf type google.cloud.vision.v1.ImageContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ImageContext.BuilderImplements
ImageContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllLanguageHints(Iterable<String> values)
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.
repeated string language_hints = 2;
| Name | Description |
| values | Iterable<String>The languageHints to add. |
| Type | Description |
| ImageContext.Builder | This builder for chaining. |
addLanguageHints(String value)
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.
repeated string language_hints = 2;
| Name | Description |
| value | StringThe languageHints to add. |
| Type | Description |
| ImageContext.Builder | This builder for chaining. |
addLanguageHintsBytes(ByteString value)
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.
repeated string language_hints = 2;
| Name | Description |
| value | ByteStringThe bytes of the languageHints to add. |
| Type | Description |
| ImageContext.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| ImageContext.Builder |
build()
public ImageContext build()| Type | Description |
| ImageContext |
buildPartial()
public ImageContext buildPartial()| Type | Description |
| ImageContext |
clear()
public ImageContext.Builder clear()| Type | Description |
| ImageContext.Builder |
clearCropHintsParams()
public ImageContext.Builder clearCropHintsParams()Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Type | Description |
| ImageContext.Builder |
clearField(Descriptors.FieldDescriptor field)
public ImageContext.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| ImageContext.Builder |
clearLanguageHints()
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.
repeated string language_hints = 2;
| Type | Description |
| ImageContext.Builder | This builder for chaining. |
clearLatLongRect()
public ImageContext.Builder clearLatLongRect()Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Type | Description |
| ImageContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| ImageContext.Builder |
clearProductSearchParams()
public ImageContext.Builder clearProductSearchParams()Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Type | Description |
| ImageContext.Builder |
clearTextDetectionParams()
public ImageContext.Builder clearTextDetectionParams()Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Type | Description |
| ImageContext.Builder |
clearWebDetectionParams()
public ImageContext.Builder clearWebDetectionParams()Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Type | Description |
| ImageContext.Builder |
clone()
public ImageContext.Builder clone()| Type | Description |
| ImageContext.Builder |
getCropHintsParams()
public CropHintsParams getCropHintsParams()Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Type | Description |
| CropHintsParams | The cropHintsParams. |
getCropHintsParamsBuilder()
public CropHintsParams.Builder getCropHintsParamsBuilder()Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Type | Description |
| CropHintsParams.Builder |
getCropHintsParamsOrBuilder()
public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Type | Description |
| CropHintsParamsOrBuilder |
getDefaultInstanceForType()
public ImageContext getDefaultInstanceForType()| Type | Description |
| ImageContext |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getLanguageHints(int index)
public 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.
repeated string language_hints = 2;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The languageHints at the given index. |
getLanguageHintsBytes(int index)
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.
repeated string language_hints = 2;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the languageHints at the given index. |
getLanguageHintsCount()
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.
repeated string language_hints = 2;
| Type | Description |
| int | The count of languageHints. |
getLanguageHintsList()
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.
repeated string language_hints = 2;
| Type | Description |
| ProtocolStringList | A list containing the languageHints. |
getLatLongRect()
public LatLongRect getLatLongRect()Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Type | Description |
| LatLongRect | The latLongRect. |
getLatLongRectBuilder()
public LatLongRect.Builder getLatLongRectBuilder()Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Type | Description |
| LatLongRect.Builder |
getLatLongRectOrBuilder()
public LatLongRectOrBuilder getLatLongRectOrBuilder()Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Type | Description |
| LatLongRectOrBuilder |
getProductSearchParams()
public ProductSearchParams getProductSearchParams()Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Type | Description |
| ProductSearchParams | The productSearchParams. |
getProductSearchParamsBuilder()
public ProductSearchParams.Builder getProductSearchParamsBuilder()Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Type | Description |
| ProductSearchParams.Builder |
getProductSearchParamsOrBuilder()
public ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder()Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Type | Description |
| ProductSearchParamsOrBuilder |
getTextDetectionParams()
public TextDetectionParams getTextDetectionParams()Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Type | Description |
| TextDetectionParams | The textDetectionParams. |
getTextDetectionParamsBuilder()
public TextDetectionParams.Builder getTextDetectionParamsBuilder()Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Type | Description |
| TextDetectionParams.Builder |
getTextDetectionParamsOrBuilder()
public TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Type | Description |
| TextDetectionParamsOrBuilder |
getWebDetectionParams()
public WebDetectionParams getWebDetectionParams()Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Type | Description |
| WebDetectionParams | The webDetectionParams. |
getWebDetectionParamsBuilder()
public WebDetectionParams.Builder getWebDetectionParamsBuilder()Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Type | Description |
| WebDetectionParams.Builder |
getWebDetectionParamsOrBuilder()
public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Type | Description |
| WebDetectionParamsOrBuilder |
hasCropHintsParams()
public boolean hasCropHintsParams()Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Type | Description |
| boolean | Whether the cropHintsParams field is set. |
hasLatLongRect()
public boolean hasLatLongRect()Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Type | Description |
| boolean | Whether the latLongRect field is set. |
hasProductSearchParams()
public boolean hasProductSearchParams()Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Type | Description |
| boolean | Whether the productSearchParams field is set. |
hasTextDetectionParams()
public boolean hasTextDetectionParams()Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Type | Description |
| boolean | Whether the textDetectionParams field is set. |
hasWebDetectionParams()
public boolean hasWebDetectionParams()Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Type | Description |
| boolean | Whether the webDetectionParams field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeCropHintsParams(CropHintsParams value)
public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Name | Description |
| value | CropHintsParams |
| Type | Description |
| ImageContext.Builder |
mergeFrom(ImageContext other)
public ImageContext.Builder mergeFrom(ImageContext other)| Name | Description |
| other | ImageContext |
| Type | Description |
| ImageContext.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ImageContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| ImageContext.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public ImageContext.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| ImageContext.Builder |
mergeLatLongRect(LatLongRect value)
public ImageContext.Builder mergeLatLongRect(LatLongRect value)Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Name | Description |
| value | LatLongRect |
| Type | Description |
| ImageContext.Builder |
mergeProductSearchParams(ProductSearchParams value)
public ImageContext.Builder mergeProductSearchParams(ProductSearchParams value)Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Name | Description |
| value | ProductSearchParams |
| Type | Description |
| ImageContext.Builder |
mergeTextDetectionParams(TextDetectionParams value)
public ImageContext.Builder mergeTextDetectionParams(TextDetectionParams value)Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Name | Description |
| value | TextDetectionParams |
| Type | Description |
| ImageContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| ImageContext.Builder |
mergeWebDetectionParams(WebDetectionParams value)
public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Name | Description |
| value | WebDetectionParams |
| Type | Description |
| ImageContext.Builder |
setCropHintsParams(CropHintsParams value)
public ImageContext.Builder setCropHintsParams(CropHintsParams value)Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Name | Description |
| value | CropHintsParams |
| Type | Description |
| ImageContext.Builder |
setCropHintsParams(CropHintsParams.Builder builderForValue)
public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
| Name | Description |
| builderForValue | CropHintsParams.Builder |
| Type | Description |
| ImageContext.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ImageContext.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| ImageContext.Builder |
setLanguageHints(int index, String value)
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.
repeated string language_hints = 2;
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe languageHints to set. |
| Type | Description |
| ImageContext.Builder | This builder for chaining. |
setLatLongRect(LatLongRect value)
public ImageContext.Builder setLatLongRect(LatLongRect value)Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Name | Description |
| value | LatLongRect |
| Type | Description |
| ImageContext.Builder |
setLatLongRect(LatLongRect.Builder builderForValue)
public ImageContext.Builder setLatLongRect(LatLongRect.Builder builderForValue)Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
| Name | Description |
| builderForValue | LatLongRect.Builder |
| Type | Description |
| ImageContext.Builder |
setProductSearchParams(ProductSearchParams value)
public ImageContext.Builder setProductSearchParams(ProductSearchParams value)Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Name | Description |
| value | ProductSearchParams |
| Type | Description |
| ImageContext.Builder |
setProductSearchParams(ProductSearchParams.Builder builderForValue)
public ImageContext.Builder setProductSearchParams(ProductSearchParams.Builder builderForValue)Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
| Name | Description |
| builderForValue | ProductSearchParams.Builder |
| Type | Description |
| ImageContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| ImageContext.Builder |
setTextDetectionParams(TextDetectionParams value)
public ImageContext.Builder setTextDetectionParams(TextDetectionParams value)Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Name | Description |
| value | TextDetectionParams |
| Type | Description |
| ImageContext.Builder |
setTextDetectionParams(TextDetectionParams.Builder builderForValue)
public ImageContext.Builder setTextDetectionParams(TextDetectionParams.Builder builderForValue)Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
| Name | Description |
| builderForValue | TextDetectionParams.Builder |
| Type | Description |
| ImageContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageContext.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| ImageContext.Builder |
setWebDetectionParams(WebDetectionParams value)
public ImageContext.Builder setWebDetectionParams(WebDetectionParams value)Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Name | Description |
| value | WebDetectionParams |
| Type | Description |
| ImageContext.Builder |
setWebDetectionParams(WebDetectionParams.Builder builderForValue)
public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
| Name | Description |
| builderForValue | WebDetectionParams.Builder |
| Type | Description |
| ImageContext.Builder |