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.GeneratedMessage.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.GeneratedMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
implements ClassificationProto.VideoClassificationAnnotationOrBuilder
Contains annotation details specific to video classification.Protobuf type
google.cloud.automl.v1beta1.VideoClassificationAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only .Output only .Output only.Output only .Output only .Output only .static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only .Output only .Output only .getType()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only .booleanOutput only .protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only .mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimeSegment(TimeSegment value) Output only .Output only .Output only .setTimeSegment(TimeSegment value) Output only .setTimeSegment(TimeSegment.Builder builderForValue) Output only .Output only.setTypeBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; -
getClassificationAnnotationBuilder
Output only . The classification details of this annotation.
.google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; -
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
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
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
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3; -
getTimeSegmentBuilder
Output only . The time segment of the video to which the annotation applies.
.google.cloud.automl.v1beta1.TimeSegment time_segment = 3; -
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
-