# Google Cloud Ai Platform V1 Client - Class InputMetadata (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class InputMetadata.

Metadata of the input of a feature.

Fields other than
[InputMetadata.input_baselines](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata#_Google_Cloud_AIPlatform_V1_ExplanationMetadata_InputMetadata__getInputBaselines__)
are applicable only for Models that are using Vertex AI-provided images for
Tensorflow.

Generated from protobuf message `google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1 \\ ExplanationMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ input_baselines` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value>` Baseline inputs for this feature. If no baseline is specified, Vertex AI chooses the baseline for this feature. If multiple baselines are specified, Vertex AI returns the average attributions across them in [Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__). For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape of each baseline must match the shape of the input tensor. If a scalar is provided, we broadcast to the same shape as the input tensor. For custom images, the element of the baselines must be in the same format as the feature's input in the [instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplainRequest#_Google_Cloud_AIPlatform_V1_ExplainRequest__getInstances__)\[\]. The schema of any single instance may be specified via Endpoint's DeployedModels' [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.DeployedModel#_Google_Cloud_AIPlatform_V1_DeployedModel__getModel__) [PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__) [instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__). |
| `↳ input_tensor_name` | `string` Name of the input tensor for this feature. Required and is only applicable to Vertex AI-provided images for Tensorflow. |
| `↳ encoding` | `int` Defines how the feature is encoded into the input tensor. Defaults to IDENTITY. |
| `↳ modality` | `string` Modality of the feature. Valid values are: numeric, image. Defaults to numeric. |
| `↳ feature_value_domain` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.FeatureValueDomain` The domain details of the input feature value. Like min/max, original mean or standard deviation if normalized. |
| `↳ indices_tensor_name` | `string` Specifies the index of the values of the input tensor. Required when the input tensor is a sparse representation. Refer to Tensorflow documentation for more details: <https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>. |
| `↳ dense_shape_tensor_name` | `string` Specifies the shape of the values of the input if the input is a sparse representation. Refer to Tensorflow documentation for more details: <https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>. |
| `↳ index_feature_mapping` | `string[]` A list of feature names for each index in the input tensor. Required when the input [InputMetadata.encoding](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata#_Google_Cloud_AIPlatform_V1_ExplanationMetadata_InputMetadata__getEncoding__) is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. |
| `↳ encoded_tensor_name` | `string` Encoded tensor is a transformation of the input tensor. Must be provided if choosing [Integrated Gradients attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getIntegratedGradientsAttribution__) or [XRAI attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getXraiAttribution__) and the input tensor is not differentiable. An encoded tensor is generated if the input tensor is encoded by a lookup table. |
| `↳ encoded_baselines` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value>` A list of baselines for the encoded tensor. The shape of each baseline should match the shape of the encoded tensor. If a scalar is provided, Vertex AI broadcasts to the same shape as the encoded tensor. |
| `↳ visualization` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.Visualization` Visualization configurations for image explanation. |
| `↳ group_name` | `string` Name of the group that the input belongs to. Features with the same group name will be treated as one feature when computing attributions. Features grouped together can have different shapes in value. If provided, there will be one single attribution generated in [Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__), keyed by the group name. |

### getInputBaselines

Baseline inputs for this feature.

If no baseline is specified, Vertex AI chooses the baseline for this
feature. If multiple baselines are specified, Vertex AI returns the
average attributions across them in
[Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__).
For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
of each baseline must match the shape of the input tensor. If a scalar is
provided, we broadcast to the same shape as the input tensor.
For custom images, the element of the baselines must be in the same
format as the feature's input in the
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplainRequest#_Google_Cloud_AIPlatform_V1_ExplainRequest__getInstances__)\[\]. The
schema of any single instance may be specified via Endpoint's
DeployedModels' [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.DeployedModel#_Google_Cloud_AIPlatform_V1_DeployedModel__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__).

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

### setInputBaselines

Baseline inputs for this feature.

If no baseline is specified, Vertex AI chooses the baseline for this
feature. If multiple baselines are specified, Vertex AI returns the
average attributions across them in
[Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__).
For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape
of each baseline must match the shape of the input tensor. If a scalar is
provided, we broadcast to the same shape as the input tensor.
For custom images, the element of the baselines must be in the same
format as the feature's input in the
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplainRequest#_Google_Cloud_AIPlatform_V1_ExplainRequest__getInstances__)\[\]. The
schema of any single instance may be specified via Endpoint's
DeployedModels' [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.DeployedModel#_Google_Cloud_AIPlatform_V1_DeployedModel__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__).

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

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

### getInputTensorName

Name of the input tensor for this feature. Required and is only
applicable to Vertex AI-provided images for Tensorflow.

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

### setInputTensorName

Name of the input tensor for this feature. Required and is only
applicable to Vertex AI-provided images for Tensorflow.

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

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

### getEncoding

Defines how the feature is encoded into the input tensor. Defaults to
IDENTITY.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Encoding](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.Encoding). |

### setEncoding

Defines how the feature is encoded into the input tensor. Defaults to
IDENTITY.

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

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

### getModality

Modality of the feature. Valid values are: numeric, image. Defaults to
numeric.

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

### setModality

Modality of the feature. Valid values are: numeric, image. Defaults to
numeric.

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

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

### getFeatureValueDomain

The domain details of the input feature value. Like min/max, original
mean or standard deviation if normalized.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.FeatureValueDomain|null` |   |

### hasFeatureValueDomain

### clearFeatureValueDomain

### setFeatureValueDomain

The domain details of the input feature value. Like min/max, original
mean or standard deviation if normalized.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.FeatureValueDomain` |

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

### getIndicesTensorName

Specifies the index of the values of the input tensor.

Required when the input tensor is a sparse representation. Refer to
Tensorflow documentation for more details:
<https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>.

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

### setIndicesTensorName

Specifies the index of the values of the input tensor.

Required when the input tensor is a sparse representation. Refer to
Tensorflow documentation for more details:
<https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>.

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

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

### getDenseShapeTensorName

Specifies the shape of the values of the input if the input is a sparse
representation. Refer to Tensorflow documentation for more details:
<https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>.

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

### setDenseShapeTensorName

Specifies the shape of the values of the input if the input is a sparse
representation. Refer to Tensorflow documentation for more details:
<https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor>.

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

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

### getIndexFeatureMapping

A list of feature names for each index in the input tensor.

Required when the input
[InputMetadata.encoding](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata#_Google_Cloud_AIPlatform_V1_ExplanationMetadata_InputMetadata__getEncoding__)
is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR.

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

### setIndexFeatureMapping

A list of feature names for each index in the input tensor.

Required when the input
[InputMetadata.encoding](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata#_Google_Cloud_AIPlatform_V1_ExplanationMetadata_InputMetadata__getEncoding__)
is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR.

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

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

### getEncodedTensorName

Encoded tensor is a transformation of the input tensor. Must be provided
if choosing
[Integrated Gradients
attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getIntegratedGradientsAttribution__)
or [XRAI
attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getXraiAttribution__)
and the input tensor is not differentiable.

An encoded tensor is generated if the input tensor is encoded by a lookup
table.

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

### setEncodedTensorName

Encoded tensor is a transformation of the input tensor. Must be provided
if choosing
[Integrated Gradients
attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getIntegratedGradientsAttribution__)
or [XRAI
attribution](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationParameters#_Google_Cloud_AIPlatform_V1_ExplanationParameters__getXraiAttribution__)
and the input tensor is not differentiable.

An encoded tensor is generated if the input tensor is encoded by a lookup
table.

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

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

### getEncodedBaselines

A list of baselines for the encoded tensor.

The shape of each baseline should match the shape of the encoded tensor.
If a scalar is provided, Vertex AI broadcasts to the same shape as the
encoded tensor.

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

### setEncodedBaselines

A list of baselines for the encoded tensor.

The shape of each baseline should match the shape of the encoded tensor.
If a scalar is provided, Vertex AI broadcasts to the same shape as the
encoded tensor.

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

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

### getVisualization

Visualization configurations for image explanation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.Visualization|null` |   |

### hasVisualization

### clearVisualization

### setVisualization

Visualization configurations for image explanation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationMetadata.InputMetadata.Visualization` |

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

### getGroupName

Name of the group that the input belongs to. Features with the same group
name will be treated as one feature when computing attributions. Features
grouped together can have different shapes in value. If provided, there
will be one single attribution generated in
[Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__),
keyed by the group name.

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

### setGroupName

Name of the group that the input belongs to. Features with the same group
name will be treated as one feature when computing attributions. Features
grouped together can have different shapes in value. If provided, there
will be one single attribution generated in
[Attribution.feature_attributions](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Attribution#_Google_Cloud_AIPlatform_V1_Attribution__getFeatureAttributions__),
keyed by the group name.

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

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