# Interface InstanceConfigOrBuilder (0.91.0)

0.91.0 (latest) 0.88.0 0.87.0 0.85.0 0.83.0 0.82.0 0.81.0 0.80.0 0.78.0 0.76.0 0.75.0 0.74.0 0.73.0 0.72.0 0.70.0 0.68.0 0.67.0 0.64.0 0.63.0 0.62.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.49.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.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.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.8 0.2.1 0.1.1

    public interface InstanceConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAccountNetworksEnabled()

    public abstract boolean getAccountNetworksEnabled()

If true networks can be from different projects of the same vendor account.

`bool account_networks_enabled = 9;`

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

### getClientNetwork() (deprecated)

    public abstract InstanceConfig.NetworkAddress getClientNetwork()

**Deprecated.** *google.cloud.baremetalsolution.v2.InstanceConfig.client_network is deprecated. See
google/cloud/baremetalsolution/v2/provisioning.proto;l=283*

Client network address. Filled if InstanceConfig.multivlan_config is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress client_network = 6 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress` | The clientNetwork. |

### getClientNetworkOrBuilder() (deprecated)

    public abstract InstanceConfig.NetworkAddressOrBuilder getClientNetworkOrBuilder()

Client network address. Filled if InstanceConfig.multivlan_config is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress client_network = 6 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddressOrBuilder` |   |

### getHyperthreading()

    public abstract boolean getHyperthreading()

Whether the instance should be provisioned with Hyperthreading enabled.

`bool hyperthreading = 4;`

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

### getId()

    public abstract String getId()

A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.

`string id = 2;`

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

### getIdBytes()

    public abstract ByteString getIdBytes()

A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.

`string id = 2;`

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

### getInstanceType()

    public abstract String getInstanceType()

Instance type.
[Available
types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

`string instance_type = 3;`

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

### getInstanceTypeBytes()

    public abstract ByteString getInstanceTypeBytes()

Instance type.
[Available
types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

`string instance_type = 3;`

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

### getLogicalInterfaces(int index)

    public abstract LogicalInterface getLogicalInterfaces(int index)

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. Filled if InstanceConfig.multivlan_config is true.

`repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.LogicalInterface` |   |

### getLogicalInterfacesCount()

    public abstract int getLogicalInterfacesCount()

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. Filled if InstanceConfig.multivlan_config is true.

`repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
`

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

### getLogicalInterfacesList()

    public abstract List<LogicalInterface> getLogicalInterfacesList()

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. Filled if InstanceConfig.multivlan_config is true.

`repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.LogicalInterface>` |   |

### getLogicalInterfacesOrBuilder(int index)

    public abstract LogicalInterfaceOrBuilder getLogicalInterfacesOrBuilder(int index)

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. Filled if InstanceConfig.multivlan_config is true.

`repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder` |   |

### getLogicalInterfacesOrBuilderList()

    public abstract List<? extends LogicalInterfaceOrBuilder> getLogicalInterfacesOrBuilderList()

List of logical interfaces for the instance. The number of logical
interfaces will be the same as number of hardware bond/nic on the chosen
network template. Filled if InstanceConfig.multivlan_config is true.

`repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 12;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>` |   |

### getName()

    public abstract String getName()

Output only. The name of the instance config.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The name of the instance config.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getNetworkConfig()

    public abstract InstanceConfig.NetworkConfig getNetworkConfig()

The type of network configuration on the instance.

`.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig` | The networkConfig. |

### getNetworkConfigValue()

    public abstract int getNetworkConfigValue()

The type of network configuration on the instance.

`.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for networkConfig. |

### getNetworkTemplate()

    public abstract String getNetworkTemplate()

Server network template name. Filled if InstanceConfig.multivlan_config is
true.

`string network_template = 11;`

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

### getNetworkTemplateBytes()

    public abstract ByteString getNetworkTemplateBytes()

Server network template name. Filled if InstanceConfig.multivlan_config is
true.

`string network_template = 11;`

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

### getOsImage()

    public abstract String getOsImage()

OS image to initialize the instance.
[Available
images](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

`string os_image = 5;`

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

### getOsImageBytes()

    public abstract ByteString getOsImageBytes()

OS image to initialize the instance.
[Available
images](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)

`string os_image = 5;`

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

### getPrivateNetwork() (deprecated)

    public abstract InstanceConfig.NetworkAddress getPrivateNetwork()

**Deprecated.** *google.cloud.baremetalsolution.v2.InstanceConfig.private_network is deprecated. See
google/cloud/baremetalsolution/v2/provisioning.proto;l=287*

Private network address, if any. Filled if InstanceConfig.multivlan_config
is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress private_network = 7 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress` | The privateNetwork. |

### getPrivateNetworkOrBuilder() (deprecated)

    public abstract InstanceConfig.NetworkAddressOrBuilder getPrivateNetworkOrBuilder()

Private network address, if any. Filled if InstanceConfig.multivlan_config
is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress private_network = 7 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/com.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddressOrBuilder` |   |

### getSshKeyNames(int index)

    public abstract String getSshKeyNames(int index)

List of names of ssh keys used to provision the instance.

`repeated string ssh_key_names = 13;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The sshKeyNames at the given index. |

### getSshKeyNamesBytes(int index)

    public abstract ByteString getSshKeyNamesBytes(int index)

List of names of ssh keys used to provision the instance.

`repeated string ssh_key_names = 13;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the sshKeyNames at the given index. |

### getSshKeyNamesCount()

    public abstract int getSshKeyNamesCount()

List of names of ssh keys used to provision the instance.

`repeated string ssh_key_names = 13;`

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

### getSshKeyNamesList()

    public abstract List<String> getSshKeyNamesList()

List of names of ssh keys used to provision the instance.

`repeated string ssh_key_names = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the sshKeyNames. |

### getUserNote()

    public abstract String getUserNote()

User note field, it can be used by customers to add additional information
for the BMS Ops team .

`string user_note = 8;`

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

### getUserNoteBytes()

    public abstract ByteString getUserNoteBytes()

User note field, it can be used by customers to add additional information
for the BMS Ops team .

`string user_note = 8;`

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

### hasClientNetwork() (deprecated)

    public abstract boolean hasClientNetwork()

**Deprecated.** *google.cloud.baremetalsolution.v2.InstanceConfig.client_network is deprecated. See
google/cloud/baremetalsolution/v2/provisioning.proto;l=283*

Client network address. Filled if InstanceConfig.multivlan_config is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress client_network = 6 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the clientNetwork field is set. |

### hasPrivateNetwork() (deprecated)

    public abstract boolean hasPrivateNetwork()

**Deprecated.** *google.cloud.baremetalsolution.v2.InstanceConfig.private_network is deprecated. See
google/cloud/baremetalsolution/v2/provisioning.proto;l=287*

Private network address, if any. Filled if InstanceConfig.multivlan_config
is false.

`
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress private_network = 7 [deprecated = true];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the privateNetwork field is set. |