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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
    • getDefaultInstanceForType

      public ClassificationProto.VideoClassificationAnnotation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ClassificationProto.VideoClassificationAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassificationProto.VideoClassificationAnnotation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ClassificationProto.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 interface ClassificationProto.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:
      hasClassificationAnnotation in interface ClassificationProto.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 interface ClassificationProto.VideoClassificationAnnotationOrBuilder
      Returns:
      The classificationAnnotation.
    • setClassificationAnnotation

       Output only . The classification details of this annotation.
       
      .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
    • setClassificationAnnotation

       Output only . The classification details of this annotation.
       
      .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2;
    • mergeClassificationAnnotation

       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 interface ClassificationProto.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 interface ClassificationProto.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 interface ClassificationProto.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

       Output only . The time segment of the video to which the
       annotation applies.
       
      .google.cloud.automl.v1beta1.TimeSegment time_segment = 3;
    • mergeTimeSegment

       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

      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 interface ClassificationProto.VideoClassificationAnnotationOrBuilder