Google Cloud Vision Ai V1 Client - Class OperatorDefinition (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class OperatorDefinition.
Defines the interface of an Operator.
Arguments to an operator are input/output streams that are getting processesed/returned while attributes are fixed configuration parameters.
Generated from protobuf message google.cloud.visionai.v1.OperatorDefinition
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ operator |
string
The name of this operator. Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector, PetDetector1. |
↳ input_args |
array<OperatorDefinition\ArgumentDefinition>
Declares input arguments. |
↳ output_args |
array<OperatorDefinition\ArgumentDefinition>
Declares output arguments. |
↳ attributes |
array<OperatorDefinition\AttributeDefinition>
Declares the attributes. |
↳ resources |
ResourceSpecification
The resources for running the operator. |
↳ short_description |
string
Short description of the operator. |
↳ description |
string
Full description of the operator. |
getOperator
The name of this operator.
Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector, PetDetector1.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOperator
The name of this operator.
Tentatively [A-Z][a-zA-Z0-9]*, e.g., BboxCounter, PetDetector, PetDetector1.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInputArgs
Declares input arguments.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<OperatorDefinition\ArgumentDefinition> |
|
setInputArgs
Declares input arguments.
| Parameter | |
|---|---|
| Name | Description |
var |
array<OperatorDefinition\ArgumentDefinition>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOutputArgs
Declares output arguments.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<OperatorDefinition\ArgumentDefinition> |
|
setOutputArgs
Declares output arguments.
| Parameter | |
|---|---|
| Name | Description |
var |
array<OperatorDefinition\ArgumentDefinition>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttributes
Declares the attributes.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<OperatorDefinition\AttributeDefinition> |
|
setAttributes
Declares the attributes.
| Parameter | |
|---|---|
| Name | Description |
var |
array<OperatorDefinition\AttributeDefinition>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResources
The resources for running the operator.
| Returns | |
|---|---|
| Type | Description |
ResourceSpecification|null |
|
hasResources
clearResources
setResources
The resources for running the operator.
| Parameter | |
|---|---|
| Name | Description |
var |
ResourceSpecification
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getShortDescription
Short description of the operator.
| Returns | |
|---|---|
| Type | Description |
string |
|
setShortDescription
Short description of the operator.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Full description of the operator.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Full description of the operator.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|