Class LabelSegment.Builder (2.33.0)

public static final class LabelSegment.Builder extends GeneratedMessageV3.Builder<LabelSegment.Builder> implements LabelSegmentOrBuilder

Video segment level annotation results for label detection.

Protobuf type google.cloud.videointelligence.v1beta2.LabelSegment

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelSegment build()
Returns
TypeDescription
LabelSegment

buildPartial()

public LabelSegment buildPartial()
Returns
TypeDescription
LabelSegment

clear()

public LabelSegment.Builder clear()
Returns
TypeDescription
LabelSegment.Builder
Overrides

clearConfidence()

public LabelSegment.Builder clearConfidence()

Confidence that the label is accurate. Range: [0, 1].

float confidence = 2;

Returns
TypeDescription
LabelSegment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegment()

public LabelSegment.Builder clearSegment()

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
TypeDescription
LabelSegment.Builder

clone()

public LabelSegment.Builder clone()
Returns
TypeDescription
LabelSegment.Builder
Overrides

getConfidence()

public float getConfidence()

Confidence that the label is accurate. Range: [0, 1].

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public LabelSegment getDefaultInstanceForType()
Returns
TypeDescription
LabelSegment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSegment()

public VideoSegment getSegment()

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
TypeDescription
VideoSegment

The segment.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
TypeDescription
VideoSegment.Builder

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
TypeDescription
VideoSegmentOrBuilder

hasSegment()

public boolean hasSegment()

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Returns
TypeDescription
boolean

Whether the segment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LabelSegment other)

public LabelSegment.Builder mergeFrom(LabelSegment other)
Parameter
NameDescription
otherLabelSegment
Returns
TypeDescription
LabelSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegment(VideoSegment value)

public LabelSegment.Builder mergeSegment(VideoSegment value)

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
LabelSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidence(float value)

public LabelSegment.Builder setConfidence(float value)

Confidence that the label is accurate. Range: [0, 1].

float confidence = 2;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
LabelSegment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSegment(VideoSegment value)

public LabelSegment.Builder setSegment(VideoSegment value)

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
LabelSegment.Builder

setSegment(VideoSegment.Builder builderForValue)

public LabelSegment.Builder setSegment(VideoSegment.Builder builderForValue)

Video segment where a label was detected.

.google.cloud.videointelligence.v1beta2.VideoSegment segment = 1;

Parameter
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
LabelSegment.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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