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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LabelFrame build()
Returns
buildPartial()
public LabelFrame buildPartial()
Returns
clear()
public LabelFrame.Builder clear()
Returns
Overrides
clearConfidence()
public LabelFrame.Builder clearConfidence()
Confidence that the label is accurate. Range: [0, 1].
float confidence = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public LabelFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public LabelFrame.Builder clone()
Returns
Overrides
getConfidence()
public float getConfidence()
Confidence that the label is accurate. Range: [0, 1].
float confidence = 2;
Returns
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public LabelFrame getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Type | Description |
boolean | Whether the timeOffset field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LabelFrame other)
public LabelFrame.Builder mergeFrom(LabelFrame other)
Parameter
Returns
public LabelFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LabelFrame.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setConfidence(float value)
public LabelFrame.Builder setConfidence(float value)
Confidence that the label is accurate. Range: [0, 1].
float confidence = 2;
Parameter
Name | Description |
value | float
The confidence to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LabelFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LabelFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Name | Description |
builderForValue | Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides