Package com.google.cloud.automl.v1beta1
Class ClassificationProto.VideoClassificationAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
- com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder
-
- All Implemented Interfaces:
ClassificationProto.VideoClassificationAnnotationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ClassificationProto.VideoClassificationAnnotation
public static final class ClassificationProto.VideoClassificationAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder> implements ClassificationProto.VideoClassificationAnnotationOrBuilder
Contains annotation details specific to video classification.
Protobuf typegoogle.cloud.automl.v1beta1.VideoClassificationAnnotation
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clear
public ClassificationProto.VideoClassificationAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
getDefaultInstanceForType
public ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClassificationProto.VideoClassificationAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClassificationProto.VideoClassificationAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClassificationProto.VideoClassificationAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
setField
public ClassificationProto.VideoClassificationAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clearField
public ClassificationProto.VideoClassificationAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clearOneof
public ClassificationProto.VideoClassificationAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
setRepeatedField
public ClassificationProto.VideoClassificationAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
addRepeatedField
public ClassificationProto.VideoClassificationAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeFrom
public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeFrom
public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(ClassificationProto.VideoClassificationAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeFrom
public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
- Throws:
IOException
-
getType
public String getType()
Output only. Expresses the type of video classification. Possible values: * `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
string type = 1;
- Specified by:
getType
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Output only. Expresses the type of video classification. Possible values: * `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
string type = 1;
- Specified by:
getTypeBytes
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- The bytes for type.
-
setType
public ClassificationProto.VideoClassificationAnnotation.Builder setType(String value)
Output only. Expresses the type of video classification. Possible values: * `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
string type = 1;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public ClassificationProto.VideoClassificationAnnotation.Builder clearType()
Output only. Expresses the type of video classification. Possible values: * `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
string type = 1;
- Returns:
- This builder for chaining.
-
setTypeBytes
public ClassificationProto.VideoClassificationAnnotation.Builder setTypeBytes(com.google.protobuf.ByteString value)
Output only. Expresses the type of video classification. Possible values: * `segment` - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * `shot`- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * `1s_interval` - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
string type = 1;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasClassificationAnnotation
public boolean hasClassificationAnnotation()
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
- Specified by:
hasClassificationAnnotation
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- Whether the classificationAnnotation field is set.
-
getClassificationAnnotation
public ClassificationProto.ClassificationAnnotation getClassificationAnnotation()
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
- Specified by:
getClassificationAnnotation
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- The classificationAnnotation.
-
setClassificationAnnotation
public ClassificationProto.VideoClassificationAnnotation.Builder setClassificationAnnotation(ClassificationProto.ClassificationAnnotation value)
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
-
setClassificationAnnotation
public ClassificationProto.VideoClassificationAnnotation.Builder setClassificationAnnotation(ClassificationProto.ClassificationAnnotation.Builder builderForValue)
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
-
mergeClassificationAnnotation
public ClassificationProto.VideoClassificationAnnotation.Builder mergeClassificationAnnotation(ClassificationProto.ClassificationAnnotation value)
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
-
clearClassificationAnnotation
public ClassificationProto.VideoClassificationAnnotation.Builder clearClassificationAnnotation()
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
-
getClassificationAnnotationBuilder
public ClassificationProto.ClassificationAnnotation.Builder getClassificationAnnotationBuilder()
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
-
getClassificationAnnotationOrBuilder
public ClassificationProto.ClassificationAnnotationOrBuilder getClassificationAnnotationOrBuilder()
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
- Specified by:
getClassificationAnnotationOrBuilder
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
-
hasTimeSegment
public boolean hasTimeSegment()
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
- Specified by:
hasTimeSegment
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- Whether the timeSegment field is set.
-
getTimeSegment
public TimeSegment getTimeSegment()
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
- Specified by:
getTimeSegment
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
- Returns:
- The timeSegment.
-
setTimeSegment
public ClassificationProto.VideoClassificationAnnotation.Builder setTimeSegment(TimeSegment value)
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
-
setTimeSegment
public ClassificationProto.VideoClassificationAnnotation.Builder setTimeSegment(TimeSegment.Builder builderForValue)
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
-
mergeTimeSegment
public ClassificationProto.VideoClassificationAnnotation.Builder mergeTimeSegment(TimeSegment value)
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
-
clearTimeSegment
public ClassificationProto.VideoClassificationAnnotation.Builder clearTimeSegment()
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
-
getTimeSegmentBuilder
public TimeSegment.Builder getTimeSegmentBuilder()
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
-
getTimeSegmentOrBuilder
public TimeSegmentOrBuilder getTimeSegmentOrBuilder()
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
- Specified by:
getTimeSegmentOrBuilder
in interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
-
setUnknownFields
public final ClassificationProto.VideoClassificationAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeUnknownFields
public final ClassificationProto.VideoClassificationAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
-