Class PersonVehicleDetectionConfig.Builder

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

public static final class PersonVehicleDetectionConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PersonVehicleDetectionConfig.Builder> implements PersonVehicleDetectionConfigOrBuilder
 Message describing PersonVehicleDetectionConfig.
 
Protobuf type google.cloud.visionai.v1.PersonVehicleDetectionConfig
  • 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<PersonVehicleDetectionConfig.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<PersonVehicleDetectionConfig.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<PersonVehicleDetectionConfig.Builder>
    • getDefaultInstanceForType

      public PersonVehicleDetectionConfig 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

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

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

      public PersonVehicleDetectionConfig.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<PersonVehicleDetectionConfig.Builder>
      Throws:
      IOException
    • getEnablePeopleCounting

      public boolean getEnablePeopleCounting()
       At least one of enable_people_counting and enable_vehicle_counting fields
       must be set to true.
       Whether to count the appearances of people, output counts have 'people' as
       the key.
       
      bool enable_people_counting = 1;
      Specified by:
      getEnablePeopleCounting in interface PersonVehicleDetectionConfigOrBuilder
      Returns:
      The enablePeopleCounting.
    • setEnablePeopleCounting

      public PersonVehicleDetectionConfig.Builder setEnablePeopleCounting(boolean value)
       At least one of enable_people_counting and enable_vehicle_counting fields
       must be set to true.
       Whether to count the appearances of people, output counts have 'people' as
       the key.
       
      bool enable_people_counting = 1;
      Parameters:
      value - The enablePeopleCounting to set.
      Returns:
      This builder for chaining.
    • clearEnablePeopleCounting

      public PersonVehicleDetectionConfig.Builder clearEnablePeopleCounting()
       At least one of enable_people_counting and enable_vehicle_counting fields
       must be set to true.
       Whether to count the appearances of people, output counts have 'people' as
       the key.
       
      bool enable_people_counting = 1;
      Returns:
      This builder for chaining.
    • getEnableVehicleCounting

      public boolean getEnableVehicleCounting()
       Whether to count the appearances of vehicles, output counts will have
       'vehicle' as the key.
       
      bool enable_vehicle_counting = 2;
      Specified by:
      getEnableVehicleCounting in interface PersonVehicleDetectionConfigOrBuilder
      Returns:
      The enableVehicleCounting.
    • setEnableVehicleCounting

      public PersonVehicleDetectionConfig.Builder setEnableVehicleCounting(boolean value)
       Whether to count the appearances of vehicles, output counts will have
       'vehicle' as the key.
       
      bool enable_vehicle_counting = 2;
      Parameters:
      value - The enableVehicleCounting to set.
      Returns:
      This builder for chaining.
    • clearEnableVehicleCounting

      public PersonVehicleDetectionConfig.Builder clearEnableVehicleCounting()
       Whether to count the appearances of vehicles, output counts will have
       'vehicle' as the key.
       
      bool enable_vehicle_counting = 2;
      Returns:
      This builder for chaining.