Class FaceFrame.Builder

  • All Implemented Interfaces:
    FaceFrameOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    FaceFrame

    public static final class FaceFrame.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
    implements FaceFrameOrBuilder
     Video frame level annotation results for face detection.
     
    Protobuf type google.cloud.videointelligence.v1beta2.FaceFrame
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • clear

        public FaceFrame.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.GeneratedMessageV3.Builder<FaceFrame.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.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • getDefaultInstanceForType

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

        public FaceFrame build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FaceFrame buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FaceFrame.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • setField

        public FaceFrame.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • clearField

        public FaceFrame.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • clearOneof

        public FaceFrame.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • setRepeatedField

        public FaceFrame.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • addRepeatedField

        public FaceFrame.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • mergeFrom

        public FaceFrame.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<FaceFrame.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • mergeFrom

        public FaceFrame.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<FaceFrame.Builder>
        Throws:
        IOException
      • getNormalizedBoundingBoxesList

        public List<NormalizedBoundingBox> getNormalizedBoundingBoxesList()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
        Specified by:
        getNormalizedBoundingBoxesList in interface FaceFrameOrBuilder
      • getNormalizedBoundingBoxesCount

        public int getNormalizedBoundingBoxesCount()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
        Specified by:
        getNormalizedBoundingBoxesCount in interface FaceFrameOrBuilder
      • getNormalizedBoundingBoxes

        public NormalizedBoundingBox getNormalizedBoundingBoxes​(int index)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
        Specified by:
        getNormalizedBoundingBoxes in interface FaceFrameOrBuilder
      • setNormalizedBoundingBoxes

        public FaceFrame.Builder setNormalizedBoundingBoxes​(int index,
                                                            NormalizedBoundingBox value)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • setNormalizedBoundingBoxes

        public FaceFrame.Builder setNormalizedBoundingBoxes​(int index,
                                                            NormalizedBoundingBox.Builder builderForValue)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addNormalizedBoundingBoxes

        public FaceFrame.Builder addNormalizedBoundingBoxes​(NormalizedBoundingBox value)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addNormalizedBoundingBoxes

        public FaceFrame.Builder addNormalizedBoundingBoxes​(int index,
                                                            NormalizedBoundingBox value)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addNormalizedBoundingBoxes

        public FaceFrame.Builder addNormalizedBoundingBoxes​(NormalizedBoundingBox.Builder builderForValue)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addNormalizedBoundingBoxes

        public FaceFrame.Builder addNormalizedBoundingBoxes​(int index,
                                                            NormalizedBoundingBox.Builder builderForValue)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addAllNormalizedBoundingBoxes

        public FaceFrame.Builder addAllNormalizedBoundingBoxes​(Iterable<? extends NormalizedBoundingBox> values)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • clearNormalizedBoundingBoxes

        public FaceFrame.Builder clearNormalizedBoundingBoxes()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • removeNormalizedBoundingBoxes

        public FaceFrame.Builder removeNormalizedBoundingBoxes​(int index)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • getNormalizedBoundingBoxesBuilder

        public NormalizedBoundingBox.Builder getNormalizedBoundingBoxesBuilder​(int index)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • getNormalizedBoundingBoxesOrBuilder

        public NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxesOrBuilder​(int index)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
        Specified by:
        getNormalizedBoundingBoxesOrBuilder in interface FaceFrameOrBuilder
      • getNormalizedBoundingBoxesOrBuilderList

        public List<? extends NormalizedBoundingBoxOrBuilder> getNormalizedBoundingBoxesOrBuilderList()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
        Specified by:
        getNormalizedBoundingBoxesOrBuilderList in interface FaceFrameOrBuilder
      • addNormalizedBoundingBoxesBuilder

        public NormalizedBoundingBox.Builder addNormalizedBoundingBoxesBuilder()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • addNormalizedBoundingBoxesBuilder

        public NormalizedBoundingBox.Builder addNormalizedBoundingBoxesBuilder​(int index)
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • getNormalizedBoundingBoxesBuilderList

        public List<NormalizedBoundingBox.Builder> getNormalizedBoundingBoxesBuilderList()
         Normalized Bounding boxes in a frame.
         There can be more than one boxes if the same face is detected in multiple
         locations within the current frame.
         
        repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;
      • hasTimeOffset

        public boolean hasTimeOffset()
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
        Specified by:
        hasTimeOffset in interface FaceFrameOrBuilder
        Returns:
        Whether the timeOffset field is set.
      • getTimeOffset

        public com.google.protobuf.Duration getTimeOffset()
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
        Specified by:
        getTimeOffset in interface FaceFrameOrBuilder
        Returns:
        The timeOffset.
      • setTimeOffset

        public FaceFrame.Builder setTimeOffset​(com.google.protobuf.Duration value)
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
      • setTimeOffset

        public FaceFrame.Builder setTimeOffset​(com.google.protobuf.Duration.Builder builderForValue)
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
      • mergeTimeOffset

        public FaceFrame.Builder mergeTimeOffset​(com.google.protobuf.Duration value)
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
      • clearTimeOffset

        public FaceFrame.Builder clearTimeOffset()
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
      • getTimeOffsetBuilder

        public com.google.protobuf.Duration.Builder getTimeOffsetBuilder()
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
      • getTimeOffsetOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder()
         Time-offset, relative to the beginning of the video,
         corresponding to the video frame for this location.
         
        .google.protobuf.Duration time_offset = 2;
        Specified by:
        getTimeOffsetOrBuilder in interface FaceFrameOrBuilder
      • setUnknownFields

        public final FaceFrame.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>
      • mergeUnknownFields

        public final FaceFrame.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FaceFrame.Builder>