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

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

Defines an attribute of an operator.

Generated from protobuf message google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition

Namespace

Google \ Cloud \ VisionAI \ V1 \ OperatorDefinition

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ attribute string

The name of the attribute. Tentatively a-z?, e.g., max_frames_per_video, resize_height.

↳ type string

The type of this attribute. See attribute_value.proto for possibilities.

↳ default_value Google\Cloud\VisionAI\V1\AttributeValue

The default value for the attribute.

getAttribute

The name of the attribute.

Tentatively a-z?, e.g., max_frames_per_video, resize_height.

Returns
Type Description
string

setAttribute

The name of the attribute.

Tentatively a-z?, e.g., max_frames_per_video, resize_height.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The type of this attribute.

See attribute_value.proto for possibilities.

Returns
Type Description
string

setType

The type of this attribute.

See attribute_value.proto for possibilities.

Parameter
Name Description
var string
Returns
Type Description
$this

getDefaultValue

The default value for the attribute.

Returns
Type Description
Google\Cloud\VisionAI\V1\AttributeValue|null

hasDefaultValue

clearDefaultValue

setDefaultValue

The default value for the attribute.

Parameter
Name Description
var Google\Cloud\VisionAI\V1\AttributeValue
Returns
Type Description
$this