Google Cloud Vision Ai V1 Client - Class PacketType (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class PacketType.

The message that represents the data type of a packet.

Generated from protobuf message google.cloud.visionai.v1.PacketType

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type_class string

The type class of the packet. Its possible values are: "gst", "protobuf", and "string".

↳ type_descriptor PacketType\TypeDescriptor

The type descriptor.

getTypeClass

The type class of the packet. Its possible values are: "gst", "protobuf", and "string".

Returns
Type Description
string

setTypeClass

The type class of the packet. Its possible values are: "gst", "protobuf", and "string".

Parameter
Name Description
var string
Returns
Type Description
$this

getTypeDescriptor

The type descriptor.

Returns
Type Description
PacketType\TypeDescriptor|null

hasTypeDescriptor

clearTypeDescriptor

setTypeDescriptor

The type descriptor.

Parameter
Name Description
var PacketType\TypeDescriptor
Returns
Type Description
$this