Class PersonVehicleDetectionConfig (0.2.0)

public final class PersonVehicleDetectionConfig extends GeneratedMessageV3 implements PersonVehicleDetectionConfigOrBuilder

Message describing PersonVehicleDetectionConfig.

Protobuf type google.cloud.visionai.v1.PersonVehicleDetectionConfig

Static Fields

ENABLE_PEOPLE_COUNTING_FIELD_NUMBER

public static final int ENABLE_PEOPLE_COUNTING_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_VEHICLE_COUNTING_FIELD_NUMBER

public static final int ENABLE_VEHICLE_COUNTING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PersonVehicleDetectionConfig getDefaultInstance()
Returns
Type Description
PersonVehicleDetectionConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PersonVehicleDetectionConfig.Builder newBuilder()
Returns
Type Description
PersonVehicleDetectionConfig.Builder

newBuilder(PersonVehicleDetectionConfig prototype)

public static PersonVehicleDetectionConfig.Builder newBuilder(PersonVehicleDetectionConfig prototype)
Parameter
Name Description
prototype PersonVehicleDetectionConfig
Returns
Type Description
PersonVehicleDetectionConfig.Builder

parseDelimitedFrom(InputStream input)

public static PersonVehicleDetectionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PersonVehicleDetectionConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PersonVehicleDetectionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PersonVehicleDetectionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PersonVehicleDetectionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PersonVehicleDetectionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PersonVehicleDetectionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonVehicleDetectionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PersonVehicleDetectionConfig> parser()
Returns
Type Description
Parser<PersonVehicleDetectionConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PersonVehicleDetectionConfig getDefaultInstanceForType()
Returns
Type Description
PersonVehicleDetectionConfig

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;

Returns
Type Description
boolean

The enablePeopleCounting.

getEnableVehicleCounting()

public boolean getEnableVehicleCounting()

Whether to count the appearances of vehicles, output counts will have 'vehicle' as the key.

bool enable_vehicle_counting = 2;

Returns
Type Description
boolean

The enableVehicleCounting.

getParserForType()

public Parser<PersonVehicleDetectionConfig> getParserForType()
Returns
Type Description
Parser<PersonVehicleDetectionConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PersonVehicleDetectionConfig.Builder newBuilderForType()
Returns
Type Description
PersonVehicleDetectionConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PersonVehicleDetectionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersonVehicleDetectionConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PersonVehicleDetectionConfig.Builder toBuilder()
Returns
Type Description
PersonVehicleDetectionConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException