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.v1p4beta1.ImageContext
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ImageContext.Builder>
public ImageContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ImageContext.Builder>
IOException
public boolean hasLatLongRect()
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
hasLatLongRect
in interface ImageContextOrBuilder
public LatLongRect getLatLongRect()
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
getLatLongRect
in interface ImageContextOrBuilder
public ImageContext.Builder setLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
public ImageContext.Builder setLatLongRect(LatLongRect.Builder builderForValue)
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
public ImageContext.Builder mergeLatLongRect(LatLongRect value)
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
public ImageContext.Builder clearLatLongRect()
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
public LatLongRect.Builder getLatLongRectBuilder()
Not used.
.google.cloud.vision.v1p4beta1.LatLongRect lat_long_rect = 1;
public LatLongRectOrBuilder getLatLongRectOrBuilder()
Not used.
.google.cloud.vision.v1p4beta1.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](https://cloud.google.com/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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;
getLanguageHintsCount
in interface ImageContextOrBuilder
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;
getLanguageHints
in interface ImageContextOrBuilder
index
- The index of the element to return.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](https://cloud.google.com/vision/docs/languages).
repeated string language_hints = 2;
getLanguageHintsBytes
in interface ImageContextOrBuilder
index
- 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(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.v1p4beta1.CropHintsParams crop_hints_params = 4;
hasCropHintsParams
in interface ImageContextOrBuilder
public CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
getCropHintsParams
in interface ImageContextOrBuilder
public ImageContext.Builder setCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder setCropHintsParams(CropHintsParams.Builder builderForValue)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder mergeCropHintsParams(CropHintsParams value)
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
public ImageContext.Builder clearCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
public CropHintsParams.Builder getCropHintsParamsBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1p4beta1.CropHintsParams crop_hints_params = 4;
getCropHintsParamsOrBuilder
in interface ImageContextOrBuilder
public boolean hasFaceRecognitionParams()
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
hasFaceRecognitionParams
in interface ImageContextOrBuilder
public FaceRecognitionParams getFaceRecognitionParams()
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
getFaceRecognitionParams
in interface ImageContextOrBuilder
public ImageContext.Builder setFaceRecognitionParams(FaceRecognitionParams value)
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
public ImageContext.Builder setFaceRecognitionParams(FaceRecognitionParams.Builder builderForValue)
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
public ImageContext.Builder mergeFaceRecognitionParams(FaceRecognitionParams value)
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
public ImageContext.Builder clearFaceRecognitionParams()
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
public FaceRecognitionParams.Builder getFaceRecognitionParamsBuilder()
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
public FaceRecognitionParamsOrBuilder getFaceRecognitionParamsOrBuilder()
Parameters for face recognition.
.google.cloud.vision.v1p4beta1.FaceRecognitionParams face_recognition_params = 10;
getFaceRecognitionParamsOrBuilder
in interface ImageContextOrBuilder
public boolean hasProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
hasProductSearchParams
in interface ImageContextOrBuilder
public ProductSearchParams getProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
getProductSearchParams
in interface ImageContextOrBuilder
public ImageContext.Builder setProductSearchParams(ProductSearchParams value)
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
public ImageContext.Builder setProductSearchParams(ProductSearchParams.Builder builderForValue)
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
public ImageContext.Builder mergeProductSearchParams(ProductSearchParams value)
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
public ImageContext.Builder clearProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
public ProductSearchParams.Builder getProductSearchParamsBuilder()
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
public ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder()
Parameters for product search.
.google.cloud.vision.v1p4beta1.ProductSearchParams product_search_params = 5;
getProductSearchParamsOrBuilder
in interface ImageContextOrBuilder
public boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
hasWebDetectionParams
in interface ImageContextOrBuilder
public WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
getWebDetectionParams
in interface ImageContextOrBuilder
public ImageContext.Builder setWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder setWebDetectionParams(WebDetectionParams.Builder builderForValue)
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder mergeWebDetectionParams(WebDetectionParams value)
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
public ImageContext.Builder clearWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
public WebDetectionParams.Builder getWebDetectionParamsBuilder()
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1p4beta1.WebDetectionParams web_detection_params = 6;
getWebDetectionParamsOrBuilder
in interface ImageContextOrBuilder
public boolean hasTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
hasTextDetectionParams
in interface ImageContextOrBuilder
public TextDetectionParams getTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
getTextDetectionParams
in interface ImageContextOrBuilder
public ImageContext.Builder setTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
public ImageContext.Builder setTextDetectionParams(TextDetectionParams.Builder builderForValue)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
public ImageContext.Builder mergeTextDetectionParams(TextDetectionParams value)
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
public ImageContext.Builder clearTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
public TextDetectionParams.Builder getTextDetectionParamsBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
public TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1p4beta1.TextDetectionParams text_detection_params = 12;
getTextDetectionParamsOrBuilder
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>
Copyright © 2022 Google LLC. All rights reserved.