Class VideoClassificationPredictionResult.Builder (3.48.0)

public static final class VideoClassificationPredictionResult.Builder extends GeneratedMessageV3.Builder<VideoClassificationPredictionResult.Builder> implements VideoClassificationPredictionResultOrBuilder

Prediction output format for Video Classification.

Protobuf type google.cloud.aiplatform.v1beta1.schema.predict.prediction.VideoClassificationPredictionResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationPredictionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

build()

public VideoClassificationPredictionResult build()
Returns
Type Description
VideoClassificationPredictionResult

buildPartial()

public VideoClassificationPredictionResult buildPartial()
Returns
Type Description
VideoClassificationPredictionResult

clear()

public VideoClassificationPredictionResult.Builder clear()
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

clearConfidence()

public VideoClassificationPredictionResult.Builder clearConfidence()

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Returns
Type Description
VideoClassificationPredictionResult.Builder

clearDisplayName()

public VideoClassificationPredictionResult.Builder clearDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VideoClassificationPredictionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

clearId()

public VideoClassificationPredictionResult.Builder clearId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoClassificationPredictionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

clearTimeSegmentEnd()

public VideoClassificationPredictionResult.Builder clearTimeSegmentEnd()

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Returns
Type Description
VideoClassificationPredictionResult.Builder

clearTimeSegmentStart()

public VideoClassificationPredictionResult.Builder clearTimeSegmentStart()

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Returns
Type Description
VideoClassificationPredictionResult.Builder

clearType()

public VideoClassificationPredictionResult.Builder clearType()

The type of the prediction. The requested types can be configured via parameters. This will be one of

  • segment-classification
  • shot-classification
  • one-sec-interval-classification

string type = 3;

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

clone()

public VideoClassificationPredictionResult.Builder clone()
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

getConfidence()

public FloatValue getConfidence()

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Returns
Type Description
FloatValue

The confidence.

getConfidenceBuilder()

public FloatValue.Builder getConfidenceBuilder()

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Returns
Type Description
Builder

getConfidenceOrBuilder()

public FloatValueOrBuilder getConfidenceOrBuilder()

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Returns
Type Description
FloatValueOrBuilder

getDefaultInstanceForType()

public VideoClassificationPredictionResult getDefaultInstanceForType()
Returns
Type Description
VideoClassificationPredictionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getTimeSegmentEnd()

public Duration getTimeSegmentEnd()

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Returns
Type Description
Duration

The timeSegmentEnd.

getTimeSegmentEndBuilder()

public Duration.Builder getTimeSegmentEndBuilder()

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Returns
Type Description
Builder

getTimeSegmentEndOrBuilder()

public DurationOrBuilder getTimeSegmentEndOrBuilder()

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Returns
Type Description
DurationOrBuilder

getTimeSegmentStart()

public Duration getTimeSegmentStart()

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Returns
Type Description
Duration

The timeSegmentStart.

getTimeSegmentStartBuilder()

public Duration.Builder getTimeSegmentStartBuilder()

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Returns
Type Description
Builder

getTimeSegmentStartOrBuilder()

public DurationOrBuilder getTimeSegmentStartOrBuilder()

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Returns
Type Description
DurationOrBuilder

getType()

public String getType()

The type of the prediction. The requested types can be configured via parameters. This will be one of

  • segment-classification
  • shot-classification
  • one-sec-interval-classification

string type = 3;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the prediction. The requested types can be configured via parameters. This will be one of

  • segment-classification
  • shot-classification
  • one-sec-interval-classification

string type = 3;

Returns
Type Description
ByteString

The bytes for type.

hasConfidence()

public boolean hasConfidence()

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Returns
Type Description
boolean

Whether the confidence field is set.

hasTimeSegmentEnd()

public boolean hasTimeSegmentEnd()

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Returns
Type Description
boolean

Whether the timeSegmentEnd field is set.

hasTimeSegmentStart()

public boolean hasTimeSegmentStart()

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Returns
Type Description
boolean

Whether the timeSegmentStart field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfidence(FloatValue value)

public VideoClassificationPredictionResult.Builder mergeConfidence(FloatValue value)

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Parameter
Name Description
value FloatValue
Returns
Type Description
VideoClassificationPredictionResult.Builder

mergeFrom(VideoClassificationPredictionResult other)

public VideoClassificationPredictionResult.Builder mergeFrom(VideoClassificationPredictionResult other)
Parameter
Name Description
other VideoClassificationPredictionResult
Returns
Type Description
VideoClassificationPredictionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoClassificationPredictionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VideoClassificationPredictionResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

mergeTimeSegmentEnd(Duration value)

public VideoClassificationPredictionResult.Builder mergeTimeSegmentEnd(Duration value)

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Parameter
Name Description
value Duration
Returns
Type Description
VideoClassificationPredictionResult.Builder

mergeTimeSegmentStart(Duration value)

public VideoClassificationPredictionResult.Builder mergeTimeSegmentStart(Duration value)

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Parameter
Name Description
value Duration
Returns
Type Description
VideoClassificationPredictionResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationPredictionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

setConfidence(FloatValue value)

public VideoClassificationPredictionResult.Builder setConfidence(FloatValue value)

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Parameter
Name Description
value FloatValue
Returns
Type Description
VideoClassificationPredictionResult.Builder

setConfidence(FloatValue.Builder builderForValue)

public VideoClassificationPredictionResult.Builder setConfidence(FloatValue.Builder builderForValue)

The Model's confidence in correction of this prediction, higher value means higher confidence.

.google.protobuf.FloatValue confidence = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoClassificationPredictionResult.Builder

setDisplayName(String value)

public VideoClassificationPredictionResult.Builder setDisplayName(String value)

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public VideoClassificationPredictionResult.Builder setDisplayNameBytes(ByteString value)

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationPredictionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

setId(String value)

public VideoClassificationPredictionResult.Builder setId(String value)

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VideoClassificationPredictionResult.Builder setIdBytes(ByteString value)

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

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

public VideoClassificationPredictionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides

setTimeSegmentEnd(Duration value)

public VideoClassificationPredictionResult.Builder setTimeSegmentEnd(Duration value)

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Parameter
Name Description
value Duration
Returns
Type Description
VideoClassificationPredictionResult.Builder

setTimeSegmentEnd(Duration.Builder builderForValue)

public VideoClassificationPredictionResult.Builder setTimeSegmentEnd(Duration.Builder builderForValue)

The end, exclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentEnd' from the input instance, for other types it is the end of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_end = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoClassificationPredictionResult.Builder

setTimeSegmentStart(Duration value)

public VideoClassificationPredictionResult.Builder setTimeSegmentStart(Duration value)

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Parameter
Name Description
value Duration
Returns
Type Description
VideoClassificationPredictionResult.Builder

setTimeSegmentStart(Duration.Builder builderForValue)

public VideoClassificationPredictionResult.Builder setTimeSegmentStart(Duration.Builder builderForValue)

The beginning, inclusive, of the video's time segment in which the AnnotationSpec has been identified. Expressed as a number of seconds as measured from the start of the video, with fractions up to a microsecond precision, and with "s" appended at the end. Note that for 'segment-classification' prediction type, this equals the original 'timeSegmentStart' from the input instance, for other types it is the start of a shot or a 1 second interval respectively.

.google.protobuf.Duration time_segment_start = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VideoClassificationPredictionResult.Builder

setType(String value)

public VideoClassificationPredictionResult.Builder setType(String value)

The type of the prediction. The requested types can be configured via parameters. This will be one of

  • segment-classification
  • shot-classification
  • one-sec-interval-classification

string type = 3;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public VideoClassificationPredictionResult.Builder setTypeBytes(ByteString value)

The type of the prediction. The requested types can be configured via parameters. This will be one of

  • segment-classification
  • shot-classification
  • one-sec-interval-classification

string type = 3;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
VideoClassificationPredictionResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationPredictionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VideoClassificationPredictionResult.Builder
Overrides