# Google Cloud Vision Ai V1 Client - Class Processor (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Processor.

Message describing Processor object.

Next ID: 19

Generated from protobuf message `google.cloud.visionai.v1.Processor`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` name of resource. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Create timestamp. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. \[Output only\] Update timestamp. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels as key value pairs. |
| `↳ display_name` | `string` Required. A user friendly display name for the processor. |
| `↳ description` | `string` Illustrative sentences for describing the functionality of the processor. |
| `↳ processor_type` | `int` Output only. Processor Type. |
| `↳ model_type` | `int` Model Type. |
| `↳ custom_processor_source_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CustomProcessorSourceInfo` Source info for customer created processor. |
| `↳ state` | `int` Output only. State of the Processor. |
| `↳ processor_io_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ProcessorIOSpec` Output only. \[Output only\] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer. |
| `↳ configuration_typeurl` | `string` Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor. |
| `↳ supported_annotation_types` | `int[]` |
| `↳ supports_post_processing` | `bool` Indicates if the processor supports post processing. |
| `↳ supported_instance_types` | `int[]` Which instance types this processor supports; if empty, this default to STREAMING_PREDICTION. |

### getName

name of resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

name of resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. \[Output only\] Create timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. \[Output only\] Create timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. \[Output only\] Update timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. \[Output only\] Update timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Labels as key value pairs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Labels as key value pairs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. A user friendly display name for the processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. A user friendly display name for the processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Illustrative sentences for describing the functionality of the processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Illustrative sentences for describing the functionality of the processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProcessorType

Output only. Processor Type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ProcessorType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Processor.ProcessorType). |

### setProcessorType

Output only. Processor Type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ProcessorType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Processor.ProcessorType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getModelType

Model Type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ModelType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ModelType). |

### setModelType

Model Type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ModelType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ModelType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCustomProcessorSourceInfo

Source info for customer created processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CustomProcessorSourceInfo|null` |   |

### hasCustomProcessorSourceInfo

### clearCustomProcessorSourceInfo

### setCustomProcessorSourceInfo

Source info for customer created processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CustomProcessorSourceInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. State of the Processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ProcessorState](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Processor.ProcessorState). |

### setState

Output only. State of the Processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ProcessorState](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.Processor.ProcessorState). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProcessorIoSpec

Output only. \[Output only\] The input / output specifications of a
processor, each type of processor has fixed input / output specs which
cannot be altered by customer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ProcessorIOSpec|null` |   |

### hasProcessorIoSpec

### clearProcessorIoSpec

### setProcessorIoSpec

Output only. \[Output only\] The input / output specifications of a
processor, each type of processor has fixed input / output specs which
cannot be altered by customer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.ProcessorIOSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfigurationTypeurl

Output only. The corresponding configuration can be used in the Application
to customize the behavior of the processor.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setConfigurationTypeurl

Output only. The corresponding configuration can be used in the Application
to customize the behavior of the processor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSupportedAnnotationTypes

Generated from protobuf field `repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setSupportedAnnotationTypes

Generated from protobuf field `repeated .google.cloud.visionai.v1.StreamAnnotationType supported_annotation_types = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSupportsPostProcessing

Indicates if the processor supports post processing.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSupportsPostProcessing

Indicates if the processor supports post processing.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSupportedInstanceTypes

Which instance types this processor supports; if empty, this default to
STREAMING_PREDICTION.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setSupportedInstanceTypes

Which instance types this processor supports; if empty, this default to
STREAMING_PREDICTION.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |