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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clear
public ClassificationProto.VideoClassificationAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
getDefaultInstanceForType
public ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClassificationProto.VideoClassificationAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClassificationProto.VideoClassificationAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClassificationProto.VideoClassificationAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
setField
public ClassificationProto.VideoClassificationAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clearField
public ClassificationProto.VideoClassificationAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
clearOneof
public ClassificationProto.VideoClassificationAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
addRepeatedField
public ClassificationProto.VideoClassificationAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeFrom
public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeFrom
public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(ClassificationProto.VideoClassificationAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getTypein 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:
getTypeBytesin 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:
hasClassificationAnnotationin 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:
getClassificationAnnotationin 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:
getClassificationAnnotationOrBuilderin 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:
hasTimeSegmentin 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:
getTimeSegmentin 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:
getTimeSegmentOrBuilderin interfaceClassificationProto.VideoClassificationAnnotationOrBuilder
-
setUnknownFields
public final ClassificationProto.VideoClassificationAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
mergeUnknownFields
public final ClassificationProto.VideoClassificationAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
-