Class VideoClassificationPredictionResult.Builder (3.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoClassificationPredictionResult build()
Returns
TypeDescription
VideoClassificationPredictionResult

buildPartial()

public VideoClassificationPredictionResult buildPartial()
Returns
TypeDescription
VideoClassificationPredictionResult

clear()

public VideoClassificationPredictionResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
VideoClassificationPredictionResult.Builder

clearDisplayName()

public VideoClassificationPredictionResult.Builder clearDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
TypeDescription
VideoClassificationPredictionResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public VideoClassificationPredictionResult.Builder clearId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
TypeDescription
VideoClassificationPredictionResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoClassificationPredictionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VideoClassificationPredictionResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VideoClassificationPredictionResult getDefaultInstanceForType()
Returns
TypeDescription
VideoClassificationPredictionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the AnnotationSpec that had been identified.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getId()

public String getId()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

The resource ID of the AnnotationSpec that had been identified.

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeSegmentStart field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueFloatValue
Returns
TypeDescription
VideoClassificationPredictionResult.Builder

mergeFrom(VideoClassificationPredictionResult other)

public VideoClassificationPredictionResult.Builder mergeFrom(VideoClassificationPredictionResult other)
Parameter
NameDescription
otherVideoClassificationPredictionResult
Returns
TypeDescription
VideoClassificationPredictionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VideoClassificationPredictionResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
VideoClassificationPredictionResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoClassificationPredictionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFloatValue
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
VideoClassificationPredictionResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VideoClassificationPredictionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
VideoClassificationPredictionResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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