Class LabelFrame.Builder (2.23.0)

public static final class LabelFrame.Builder extends GeneratedMessageV3.Builder<LabelFrame.Builder> implements LabelFrameOrBuilder

Video frame level annotation results for label detection.

Protobuf type google.cloud.videointelligence.v1.LabelFrame

Implements

LabelFrameOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LabelFrame build()
Returns
TypeDescription
LabelFrame

buildPartial()

public LabelFrame buildPartial()
Returns
TypeDescription
LabelFrame

clear()

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

clearConfidence()

public LabelFrame.Builder clearConfidence()

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

float confidence = 2;

Returns
TypeDescription
LabelFrame.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeOffset()

public LabelFrame.Builder clearTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
TypeDescription
LabelFrame.Builder

clone()

public LabelFrame.Builder clone()
Returns
TypeDescription
LabelFrame.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 LabelFrame getDefaultInstanceForType()
Returns
TypeDescription
LabelFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTimeOffset()

public Duration getTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
TypeDescription
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
TypeDescription
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
TypeDescription
DurationOrBuilder

hasTimeOffset()

public boolean hasTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Returns
TypeDescription
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LabelFrame other)

public LabelFrame.Builder mergeFrom(LabelFrame other)
Parameter
NameDescription
otherLabelFrame
Returns
TypeDescription
LabelFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeOffset(Duration value)

public LabelFrame.Builder mergeTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
LabelFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidence(float value)

public LabelFrame.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
LabelFrame.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTimeOffset(Duration value)

public LabelFrame.Builder setTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
LabelFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public LabelFrame.Builder setTimeOffset(Duration.Builder builderForValue)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LabelFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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