Class PersonDetectionConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
com.google.cloud.videointelligence.v1.PersonDetectionConfig.Builder
All Implemented Interfaces:
PersonDetectionConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PersonDetectionConfig

public static final class PersonDetectionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder> implements PersonDetectionConfigOrBuilder
 Config for PERSON_DETECTION.
 
Protobuf type google.cloud.videointelligence.v1.PersonDetectionConfig
  • 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<PersonDetectionConfig.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<PersonDetectionConfig.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<PersonDetectionConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public PersonDetectionConfig.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<PersonDetectionConfig.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<PersonDetectionConfig.Builder>
    • mergeFrom

      public PersonDetectionConfig.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<PersonDetectionConfig.Builder>
      Throws:
      IOException
    • getIncludeBoundingBoxes

      public boolean getIncludeBoundingBoxes()
       Whether bounding boxes are included in the person detection annotation
       output.
       
      bool include_bounding_boxes = 1;
      Specified by:
      getIncludeBoundingBoxes in interface PersonDetectionConfigOrBuilder
      Returns:
      The includeBoundingBoxes.
    • setIncludeBoundingBoxes

      public PersonDetectionConfig.Builder setIncludeBoundingBoxes(boolean value)
       Whether bounding boxes are included in the person detection annotation
       output.
       
      bool include_bounding_boxes = 1;
      Parameters:
      value - The includeBoundingBoxes to set.
      Returns:
      This builder for chaining.
    • clearIncludeBoundingBoxes

      public PersonDetectionConfig.Builder clearIncludeBoundingBoxes()
       Whether bounding boxes are included in the person detection annotation
       output.
       
      bool include_bounding_boxes = 1;
      Returns:
      This builder for chaining.
    • getIncludePoseLandmarks

      public boolean getIncludePoseLandmarks()
       Whether to enable pose landmarks detection. Ignored if
       'include_bounding_boxes' is set to false.
       
      bool include_pose_landmarks = 2;
      Specified by:
      getIncludePoseLandmarks in interface PersonDetectionConfigOrBuilder
      Returns:
      The includePoseLandmarks.
    • setIncludePoseLandmarks

      public PersonDetectionConfig.Builder setIncludePoseLandmarks(boolean value)
       Whether to enable pose landmarks detection. Ignored if
       'include_bounding_boxes' is set to false.
       
      bool include_pose_landmarks = 2;
      Parameters:
      value - The includePoseLandmarks to set.
      Returns:
      This builder for chaining.
    • clearIncludePoseLandmarks

      public PersonDetectionConfig.Builder clearIncludePoseLandmarks()
       Whether to enable pose landmarks detection. Ignored if
       'include_bounding_boxes' is set to false.
       
      bool include_pose_landmarks = 2;
      Returns:
      This builder for chaining.
    • getIncludeAttributes

      public boolean getIncludeAttributes()
       Whether to enable person attributes detection, such as cloth color (black,
       blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
       etc.
       Ignored if 'include_bounding_boxes' is set to false.
       
      bool include_attributes = 3;
      Specified by:
      getIncludeAttributes in interface PersonDetectionConfigOrBuilder
      Returns:
      The includeAttributes.
    • setIncludeAttributes

      public PersonDetectionConfig.Builder setIncludeAttributes(boolean value)
       Whether to enable person attributes detection, such as cloth color (black,
       blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
       etc.
       Ignored if 'include_bounding_boxes' is set to false.
       
      bool include_attributes = 3;
      Parameters:
      value - The includeAttributes to set.
      Returns:
      This builder for chaining.
    • clearIncludeAttributes

      public PersonDetectionConfig.Builder clearIncludeAttributes()
       Whether to enable person attributes detection, such as cloth color (black,
       blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
       etc.
       Ignored if 'include_bounding_boxes' is set to false.
       
      bool include_attributes = 3;
      Returns:
      This builder for chaining.