public static final class TextAnnotation.TextProperty.Builder extends GeneratedMessageV3.Builder<TextAnnotation.TextProperty.Builder> implements TextAnnotation.TextPropertyOrBuilder
Additional information detected on the structural component.
Protobuf type google.cloud.vision.v1p2beta1.TextAnnotation.TextProperty
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllDetectedLanguages(Iterable<? extends TextAnnotation.DetectedLanguage> values)
public TextAnnotation.TextProperty.Builder addAllDetectedLanguages(Iterable<? extends TextAnnotation.DetectedLanguage> values)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage>
|
Returns
addDetectedLanguages(TextAnnotation.DetectedLanguage value)
public TextAnnotation.TextProperty.Builder addDetectedLanguages(TextAnnotation.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
addDetectedLanguages(TextAnnotation.DetectedLanguage.Builder builderForValue)
public TextAnnotation.TextProperty.Builder addDetectedLanguages(TextAnnotation.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
addDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)
public TextAnnotation.TextProperty.Builder addDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameters
Returns
addDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)
public TextAnnotation.TextProperty.Builder addDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameters
Returns
addDetectedLanguagesBuilder()
public TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
addDetectedLanguagesBuilder(int index)
public TextAnnotation.DetectedLanguage.Builder addDetectedLanguagesBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextAnnotation.TextProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextAnnotation.TextProperty build()
Returns
buildPartial()
public TextAnnotation.TextProperty buildPartial()
Returns
clear()
public TextAnnotation.TextProperty.Builder clear()
Returns
Overrides
clearDetectedBreak()
public TextAnnotation.TextProperty.Builder clearDetectedBreak()
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Returns
clearDetectedLanguages()
public TextAnnotation.TextProperty.Builder clearDetectedLanguages()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextAnnotation.TextProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextAnnotation.TextProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TextAnnotation.TextProperty.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TextAnnotation.TextProperty getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDetectedBreak()
public TextAnnotation.DetectedBreak getDetectedBreak()
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Returns
getDetectedBreakBuilder()
public TextAnnotation.DetectedBreak.Builder getDetectedBreakBuilder()
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Returns
getDetectedBreakOrBuilder()
public TextAnnotation.DetectedBreakOrBuilder getDetectedBreakOrBuilder()
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Returns
getDetectedLanguages(int index)
public TextAnnotation.DetectedLanguage getDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
getDetectedLanguagesBuilder(int index)
public TextAnnotation.DetectedLanguage.Builder getDetectedLanguagesBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
getDetectedLanguagesBuilderList()
public List<TextAnnotation.DetectedLanguage.Builder> getDetectedLanguagesBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
getDetectedLanguagesCount()
public int getDetectedLanguagesCount()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
getDetectedLanguagesList()
public List<TextAnnotation.DetectedLanguage> getDetectedLanguagesList()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
getDetectedLanguagesOrBuilder(int index)
public TextAnnotation.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
getDetectedLanguagesOrBuilderList()
public List<? extends TextAnnotation.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguageOrBuilder> | |
hasDetectedBreak()
public boolean hasDetectedBreak()
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Returns
Type | Description |
boolean | Whether the detectedBreak field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDetectedBreak(TextAnnotation.DetectedBreak value)
public TextAnnotation.TextProperty.Builder mergeDetectedBreak(TextAnnotation.DetectedBreak value)
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Parameter
Returns
mergeFrom(TextAnnotation.TextProperty other)
public TextAnnotation.TextProperty.Builder mergeFrom(TextAnnotation.TextProperty other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextAnnotation.TextProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextAnnotation.TextProperty.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextAnnotation.TextProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeDetectedLanguages(int index)
public TextAnnotation.TextProperty.Builder removeDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameter
Returns
setDetectedBreak(TextAnnotation.DetectedBreak value)
public TextAnnotation.TextProperty.Builder setDetectedBreak(TextAnnotation.DetectedBreak value)
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Parameter
Returns
setDetectedBreak(TextAnnotation.DetectedBreak.Builder builderForValue)
public TextAnnotation.TextProperty.Builder setDetectedBreak(TextAnnotation.DetectedBreak.Builder builderForValue)
Detected start or end of a text segment.
.google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak detected_break = 2;
Parameter
Returns
setDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)
public TextAnnotation.TextProperty.Builder setDetectedLanguages(int index, TextAnnotation.DetectedLanguage value)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameters
Returns
setDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)
public TextAnnotation.TextProperty.Builder setDetectedLanguages(int index, TextAnnotation.DetectedLanguage.Builder builderForValue)
A list of detected languages together with confidence.
repeated .google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage detected_languages = 1;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextAnnotation.TextProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextAnnotation.TextProperty.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextAnnotation.TextProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides