Class TextAnnotation.TextProperty (3.42.0)

publicstaticfinalclass TextAnnotation.TextPropertyextendsGeneratedMessageV3implementsTextAnnotation.TextPropertyOrBuilder

Additional information detected on the structural component.

Protobuf type google.cloud.vision.v1.TextAnnotation.TextProperty

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DETECTED_BREAK_FIELD_NUMBER

publicstaticfinalintDETECTED_BREAK_FIELD_NUMBER
Field Value
Type Description
int

DETECTED_LANGUAGES_FIELD_NUMBER

publicstaticfinalintDETECTED_LANGUAGES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTextAnnotation.TextPropertygetDefaultInstance()
Returns
Type Description
TextAnnotation.TextProperty

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTextAnnotation.TextProperty.BuildernewBuilder()
Returns
Type Description
TextAnnotation.TextProperty.Builder

newBuilder(TextAnnotation.TextProperty prototype)

publicstaticTextAnnotation.TextProperty.BuildernewBuilder(TextAnnotation.TextPropertyprototype)
Parameter
Name Description
prototype TextAnnotation.TextProperty
Returns
Type Description
TextAnnotation.TextProperty.Builder

parseDelimitedFrom(InputStream input)

publicstaticTextAnnotation.TextPropertyparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTextAnnotation.TextPropertyparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTextAnnotation.TextPropertyparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTextAnnotation.TextPropertyparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTextAnnotation.TextPropertyparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTextAnnotation.TextPropertyparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTextAnnotation.TextPropertyparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextAnnotation.TextProperty
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<TextAnnotation.TextProperty>parser()
Returns
Type Description
Parser<TextProperty>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicTextAnnotation.TextPropertygetDefaultInstanceForType()
Returns
Type Description
TextAnnotation.TextProperty

getDetectedBreak()

publicTextAnnotation.DetectedBreakgetDetectedBreak()

Detected start or end of a text segment.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.DetectedBreak

The detectedBreak.

getDetectedBreakOrBuilder()

publicTextAnnotation.DetectedBreakOrBuildergetDetectedBreakOrBuilder()

Detected start or end of a text segment.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
TextAnnotation.DetectedBreakOrBuilder

getDetectedLanguages(int index)

publicTextAnnotation.DetectedLanguagegetDetectedLanguages(intindex)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguage

getDetectedLanguagesCount()

publicintgetDetectedLanguagesCount()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
int

getDetectedLanguagesList()

publicList<TextAnnotation.DetectedLanguage>getDetectedLanguagesList()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
List<DetectedLanguage>

getDetectedLanguagesOrBuilder(int index)

publicTextAnnotation.DetectedLanguageOrBuildergetDetectedLanguagesOrBuilder(intindex)

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.DetectedLanguageOrBuilder

getDetectedLanguagesOrBuilderList()

publicList<?extendsTextAnnotation.DetectedLanguageOrBuilder>getDetectedLanguagesOrBuilderList()

A list of detected languages together with confidence.

repeated .google.cloud.vision.v1.TextAnnotation.DetectedLanguage detected_languages = 1;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.TextAnnotation.DetectedLanguageOrBuilder>

getParserForType()

publicParser<TextAnnotation.TextProperty>getParserForType()
Returns
Type Description
Parser<TextProperty>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasDetectedBreak()

publicbooleanhasDetectedBreak()

Detected start or end of a text segment.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak detected_break = 2;

Returns
Type Description
boolean

Whether the detectedBreak field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTextAnnotation.TextProperty.BuildernewBuilderForType()
Returns
Type Description
TextAnnotation.TextProperty.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTextAnnotation.TextProperty.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TextAnnotation.TextProperty.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicTextAnnotation.TextProperty.BuildertoBuilder()
Returns
Type Description
TextAnnotation.TextProperty.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.