# Interface ExecutionTemplate.VertexAIParametersOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder)

    public static interface ExecutionTemplate.VertexAIParametersOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsEnv(String key)

    public abstract boolean containsEnv(String key)

Environment variables.
At most 100 environment variables can be specified and unique.
Example: `GCP_BUCKET=gs://my-bucket/samples/`

`map<string, string> env = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getEnv()

    public abstract Map<String,String> getEnv()

Use [#getEnvMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder#com_google_events_cloud_notebooks_v1_ExecutionTemplate_VertexAIParametersOrBuilder_getEnvMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getEnvCount()

    public abstract int getEnvCount()

Environment variables.
At most 100 environment variables can be specified and unique.
Example: `GCP_BUCKET=gs://my-bucket/samples/`

`map<string, string> env = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getEnvMap()

    public abstract Map<String,String> getEnvMap()

Environment variables.
At most 100 environment variables can be specified and unique.
Example: `GCP_BUCKET=gs://my-bucket/samples/`

`map<string, string> env = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getEnvOrDefault(String key, String defaultValue)

    public abstract String getEnvOrDefault(String key, String defaultValue)

Environment variables.
At most 100 environment variables can be specified and unique.
Example: `GCP_BUCKET=gs://my-bucket/samples/`

`map<string, string> env = 2;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getEnvOrThrow(String key)

    public abstract String getEnvOrThrow(String key)

Environment variables.
At most 100 environment variables can be specified and unique.
Example: `GCP_BUCKET=gs://my-bucket/samples/`

`map<string, string> env = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getNetwork()

    public abstract String getNetwork()

The full name of the Compute Engine
[network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
to which the Job should be peered. For example,
`projects/12345/global/networks/myVPC`.
[Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert)
is of the form `projects/{project}/global/networks/{network}`.
Where `{project}` is a project number, as in `12345`, and `{network}` is
a network name.
Private services access must already be configured for the network. If
left unspecified, the job is not peered with any network.

`string network = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The network. |

### getNetworkBytes()

    public abstract ByteString getNetworkBytes()

The full name of the Compute Engine
[network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
to which the Job should be peered. For example,
`projects/12345/global/networks/myVPC`.
[Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert)
is of the form `projects/{project}/global/networks/{network}`.
Where `{project}` is a project number, as in `12345`, and `{network}` is
a network name.
Private services access must already be configured for the network. If
left unspecified, the job is not peered with any network.

`string network = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for network. |