Class TextAnnotation.DetectedBreak.Builder (2.1.2)

public static final class TextAnnotation.DetectedBreak.Builder extends GeneratedMessageV3.Builder<TextAnnotation.DetectedBreak.Builder> implements TextAnnotation.DetectedBreakOrBuilder

Detected start or end of a structural component.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.DetectedBreak.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

build()

public TextAnnotation.DetectedBreak build()
Returns
TypeDescription
TextAnnotation.DetectedBreak

buildPartial()

public TextAnnotation.DetectedBreak buildPartial()
Returns
TypeDescription
TextAnnotation.DetectedBreak

clear()

public TextAnnotation.DetectedBreak.Builder clear()
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TextAnnotation.DetectedBreak.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

clearIsPrefix()

public TextAnnotation.DetectedBreak.Builder clearIsPrefix()

True if break prepends the element.

bool is_prefix = 2;

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TextAnnotation.DetectedBreak.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

clearType()

public TextAnnotation.DetectedBreak.Builder clearType()

Detected break type.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1;

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

This builder for chaining.

clone()

public TextAnnotation.DetectedBreak.Builder clone()
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

getDefaultInstanceForType()

public TextAnnotation.DetectedBreak getDefaultInstanceForType()
Returns
TypeDescription
TextAnnotation.DetectedBreak

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsPrefix()

public boolean getIsPrefix()

True if break prepends the element.

bool is_prefix = 2;

Returns
TypeDescription
boolean

The isPrefix.

getType()

public TextAnnotation.DetectedBreak.BreakType getType()

Detected break type.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1;

Returns
TypeDescription
TextAnnotation.DetectedBreak.BreakType

The type.

getTypeValue()

public int getTypeValue()

Detected break type.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextAnnotation.DetectedBreak other)

public TextAnnotation.DetectedBreak.Builder mergeFrom(TextAnnotation.DetectedBreak other)
Parameter
NameDescription
otherTextAnnotation.DetectedBreak
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextAnnotation.DetectedBreak.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextAnnotation.DetectedBreak.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.DetectedBreak.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TextAnnotation.DetectedBreak.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

setIsPrefix(boolean value)

public TextAnnotation.DetectedBreak.Builder setIsPrefix(boolean value)

True if break prepends the element.

bool is_prefix = 2;

Parameter
NameDescription
valueboolean

The isPrefix to set.

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TextAnnotation.DetectedBreak.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides

setType(TextAnnotation.DetectedBreak.BreakType value)

public TextAnnotation.DetectedBreak.Builder setType(TextAnnotation.DetectedBreak.BreakType value)

Detected break type.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1;

Parameter
NameDescription
valueTextAnnotation.DetectedBreak.BreakType

The type to set.

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

This builder for chaining.

setTypeValue(int value)

public TextAnnotation.DetectedBreak.Builder setTypeValue(int value)

Detected break type.

.google.cloud.vision.v1.TextAnnotation.DetectedBreak.BreakType type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TextAnnotation.DetectedBreak.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextAnnotation.DetectedBreak.Builder
Overrides