Class ImageContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
- com.google.cloud.vision.v1p1beta1.ImageContext.Builder
-
- All Implemented Interfaces:
ImageContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImageContext
public static final class ImageContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder> implements ImageContextOrBuilder
Image context and/or feature-specific parameters.
Protobuf typegoogle.cloud.vision.v1p1beta1.ImageContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageContext.BuilderaddAllLanguageHints(Iterable<String> values)List of languages to use for TEXT_DETECTION.ImageContext.BuilderaddLanguageHints(String value)List of languages to use for TEXT_DETECTION.ImageContext.BuilderaddLanguageHintsBytes(com.google.protobuf.ByteString value)List of languages to use for TEXT_DETECTION.ImageContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImageContextbuild()ImageContextbuildPartial()ImageContext.Builderclear()ImageContext.BuilderclearCropHintsParams()Parameters for crop hints annotation request.ImageContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ImageContext.BuilderclearLanguageHints()List of languages to use for TEXT_DETECTION.ImageContext.BuilderclearLatLongRect()lat/long rectangle that specifies the location of the image.ImageContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ImageContext.BuilderclearTextDetectionParams()Parameters for text detection and document text detection.ImageContext.BuilderclearWebDetectionParams()Parameters for web detection.ImageContext.Builderclone()CropHintsParamsgetCropHintsParams()Parameters for crop hints annotation request.CropHintsParams.BuildergetCropHintsParamsBuilder()Parameters for crop hints annotation request.CropHintsParamsOrBuildergetCropHintsParamsOrBuilder()Parameters for crop hints annotation request.ImageContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLanguageHints(int index)List of languages to use for TEXT_DETECTION.com.google.protobuf.ByteStringgetLanguageHintsBytes(int index)List of languages to use for TEXT_DETECTION.intgetLanguageHintsCount()List of languages to use for TEXT_DETECTION.com.google.protobuf.ProtocolStringListgetLanguageHintsList()List of languages to use for TEXT_DETECTION.LatLongRectgetLatLongRect()lat/long rectangle that specifies the location of the image.LatLongRect.BuildergetLatLongRectBuilder()lat/long rectangle that specifies the location of the image.LatLongRectOrBuildergetLatLongRectOrBuilder()lat/long rectangle that specifies the location of the image.TextDetectionParamsgetTextDetectionParams()Parameters for text detection and document text detection.TextDetectionParams.BuildergetTextDetectionParamsBuilder()Parameters for text detection and document text detection.TextDetectionParamsOrBuildergetTextDetectionParamsOrBuilder()Parameters for text detection and document text detection.WebDetectionParamsgetWebDetectionParams()Parameters for web detection.WebDetectionParams.BuildergetWebDetectionParamsBuilder()Parameters for web detection.WebDetectionParamsOrBuildergetWebDetectionParamsOrBuilder()Parameters for web detection.booleanhasCropHintsParams()Parameters for crop hints annotation request.booleanhasLatLongRect()lat/long rectangle that specifies the location of the image.booleanhasTextDetectionParams()Parameters for text detection and document text detection.booleanhasWebDetectionParams()Parameters for web detection.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ImageContext.BuildermergeCropHintsParams(CropHintsParams value)Parameters for crop hints annotation request.ImageContext.BuildermergeFrom(ImageContext other)ImageContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ImageContext.BuildermergeFrom(com.google.protobuf.Message other)ImageContext.BuildermergeLatLongRect(LatLongRect value)lat/long rectangle that specifies the location of the image.ImageContext.BuildermergeTextDetectionParams(TextDetectionParams value)Parameters for text detection and document text detection.ImageContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImageContext.BuildermergeWebDetectionParams(WebDetectionParams value)Parameters for web detection.ImageContext.BuildersetCropHintsParams(CropHintsParams value)Parameters for crop hints annotation request.ImageContext.BuildersetCropHintsParams(CropHintsParams.Builder builderForValue)Parameters for crop hints annotation request.ImageContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ImageContext.BuildersetLanguageHints(int index, String value)List of languages to use for TEXT_DETECTION.ImageContext.BuildersetLatLongRect(LatLongRect value)lat/long rectangle that specifies the location of the image.ImageContext.BuildersetLatLongRect(LatLongRect.Builder builderForValue)lat/long rectangle that specifies the location of the image.ImageContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ImageContext.BuildersetTextDetectionParams(TextDetectionParams value)Parameters for text detection and document text detection.ImageContext.BuildersetTextDetectionParams(TextDetectionParams.Builder builderForValue)Parameters for text detection and document text detection.ImageContext.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ImageContext.BuildersetWebDetectionParams(WebDetectionParams value)Parameters for web detection.ImageContext.BuildersetWebDetectionParams(WebDetectionParams.Builder builderForValue)Parameters for web detection.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
clear
public ImageContext.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
getDefaultInstanceForType
public ImageContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ImageContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ImageContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ImageContext.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
setField
public ImageContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
clearField
public ImageContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
clearOneof
public ImageContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
setRepeatedField
public ImageContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
addRepeatedField
public ImageContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
mergeFrom
public ImageContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageContext.Builder>
-
mergeFrom
public ImageContext.Builder mergeFrom(ImageContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
mergeFrom
public ImageContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageContext.Builder>- Throws:
IOException
-
hasLatLongRect
public boolean hasLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;- Specified by:
hasLatLongRectin interfaceImageContextOrBuilder- Returns:
- Whether the latLongRect field is set.
-
getLatLongRect
public LatLongRect getLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;- Specified by:
getLatLongRectin interfaceImageContextOrBuilder- Returns:
- The latLongRect.
-
setLatLongRect
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;
-
setLatLongRect
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;
-
mergeLatLongRect
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;
-
clearLatLongRect
public ImageContext.Builder clearLatLongRect()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
-
getLatLongRectBuilder
public LatLongRect.Builder getLatLongRectBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;
-
getLatLongRectOrBuilder
public LatLongRectOrBuilder getLatLongRectOrBuilder()
lat/long rectangle that specifies the location of the image.
.google.cloud.vision.v1p1beta1.LatLongRect lat_long_rect = 1;- Specified by:
getLatLongRectOrBuilderin interfaceImageContextOrBuilder
-
getLanguageHintsList
public 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;- Specified by:
getLanguageHintsListin interfaceImageContextOrBuilder- Returns:
- A list containing the languageHints.
-
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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Specified by:
getLanguageHintsCountin interfaceImageContextOrBuilder- Returns:
- The count of languageHints.
-
getLanguageHints
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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Specified by:
getLanguageHintsin interfaceImageContextOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The languageHints at the given index.
-
getLanguageHintsBytes
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;- Specified by:
getLanguageHintsBytesin interfaceImageContextOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageHints at the given index.
-
setLanguageHints
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;- Parameters:
index- The index to set the value at.value- The languageHints to set.- Returns:
- This builder for chaining.
-
addLanguageHints
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;- Parameters:
value- The languageHints to add.- Returns:
- This builder for chaining.
-
addAllLanguageHints
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;- Parameters:
values- The languageHints to add.- Returns:
- This builder for chaining.
-
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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;- Returns:
- This builder for chaining.
-
addLanguageHintsBytes
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;- Parameters:
value- The bytes of the languageHints to add.- Returns:
- This builder for chaining.
-
hasCropHintsParams
public boolean hasCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;- Specified by:
hasCropHintsParamsin interfaceImageContextOrBuilder- Returns:
- Whether the cropHintsParams field is set.
-
getCropHintsParams
public CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;- Specified by:
getCropHintsParamsin interfaceImageContextOrBuilder- Returns:
- The cropHintsParams.
-
setCropHintsParams
public ImageContext.Builder setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
setCropHintsParams
public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
mergeCropHintsParams
public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
clearCropHintsParams
public ImageContext.Builder clearCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
getCropHintsParamsBuilder
public CropHintsParams.Builder getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;
-
getCropHintsParamsOrBuilder
public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p1beta1.CropHintsParams crop_hints_params = 4;- Specified by:
getCropHintsParamsOrBuilderin interfaceImageContextOrBuilder
-
hasWebDetectionParams
public boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;- Specified by:
hasWebDetectionParamsin interfaceImageContextOrBuilder- Returns:
- Whether the webDetectionParams field is set.
-
getWebDetectionParams
public WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;- Specified by:
getWebDetectionParamsin interfaceImageContextOrBuilder- Returns:
- The webDetectionParams.
-
setWebDetectionParams
public ImageContext.Builder setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
setWebDetectionParams
public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
mergeWebDetectionParams
public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
clearWebDetectionParams
public ImageContext.Builder clearWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
getWebDetectionParamsBuilder
public WebDetectionParams.Builder getWebDetectionParamsBuilder()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;
-
getWebDetectionParamsOrBuilder
public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1p1beta1.WebDetectionParams web_detection_params = 6;- Specified by:
getWebDetectionParamsOrBuilderin interfaceImageContextOrBuilder
-
hasTextDetectionParams
public boolean hasTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;- Specified by:
hasTextDetectionParamsin interfaceImageContextOrBuilder- Returns:
- Whether the textDetectionParams field is set.
-
getTextDetectionParams
public TextDetectionParams getTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;- Specified by:
getTextDetectionParamsin interfaceImageContextOrBuilder- Returns:
- The textDetectionParams.
-
setTextDetectionParams
public ImageContext.Builder setTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
setTextDetectionParams
public ImageContext.Builder setTextDetectionParams(TextDetectionParams.Builder builderForValue)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
mergeTextDetectionParams
public ImageContext.Builder mergeTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
clearTextDetectionParams
public ImageContext.Builder clearTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
getTextDetectionParamsBuilder
public TextDetectionParams.Builder getTextDetectionParamsBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;
-
getTextDetectionParamsOrBuilder
public TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p1beta1.TextDetectionParams text_detection_params = 12;- Specified by:
getTextDetectionParamsOrBuilderin interfaceImageContextOrBuilder
-
setUnknownFields
public final ImageContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
mergeUnknownFields
public final ImageContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ImageContext.Builder>
-
-