Class InstanceConfig.Builder (0.43.0)

public static final class InstanceConfig.Builder extends GeneratedMessageV3.Builder<InstanceConfig.Builder> implements InstanceConfigOrBuilder

Configuration parameters for a new instance.

Protobuf type google.cloud.baremetalsolution.v2.InstanceConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLogicalInterfaces(Iterable<? extends LogicalInterface> values)

public InstanceConfig.Builder addAllLogicalInterfaces(Iterable<? extends LogicalInterface> values)

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
values Iterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface>
Returns
Type Description
InstanceConfig.Builder

addAllSshKeyNames(Iterable<String> values)

public InstanceConfig.Builder addAllSshKeyNames(Iterable<String> values)

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

repeated string ssh_key_names = 13;

Parameter
Name Description
values Iterable<String>

The sshKeyNames to add.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

addLogicalInterfaces(LogicalInterface value)

public InstanceConfig.Builder addLogicalInterfaces(LogicalInterface value)

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
value LogicalInterface
Returns
Type Description
InstanceConfig.Builder

addLogicalInterfaces(LogicalInterface.Builder builderForValue)

public InstanceConfig.Builder addLogicalInterfaces(LogicalInterface.Builder builderForValue)

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
builderForValue LogicalInterface.Builder
Returns
Type Description
InstanceConfig.Builder

addLogicalInterfaces(int index, LogicalInterface value)

public InstanceConfig.Builder addLogicalInterfaces(int index, LogicalInterface value)

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;

Parameters
Name Description
index int
value LogicalInterface
Returns
Type Description
InstanceConfig.Builder

addLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

public InstanceConfig.Builder addLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue LogicalInterface.Builder
Returns
Type Description
InstanceConfig.Builder

addLogicalInterfacesBuilder()

public LogicalInterface.Builder addLogicalInterfacesBuilder()

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
LogicalInterface.Builder

addLogicalInterfacesBuilder(int index)

public LogicalInterface.Builder addLogicalInterfacesBuilder(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 int
Returns
Type Description
LogicalInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConfig.Builder
Overrides

addSshKeyNames(String value)

public InstanceConfig.Builder addSshKeyNames(String value)

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

repeated string ssh_key_names = 13;

Parameter
Name Description
value String

The sshKeyNames to add.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

addSshKeyNamesBytes(ByteString value)

public InstanceConfig.Builder addSshKeyNamesBytes(ByteString value)

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

repeated string ssh_key_names = 13;

Parameter
Name Description
value ByteString

The bytes of the sshKeyNames to add.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

build()

public InstanceConfig build()
Returns
Type Description
InstanceConfig

buildPartial()

public InstanceConfig buildPartial()
Returns
Type Description
InstanceConfig

clear()

public InstanceConfig.Builder clear()
Returns
Type Description
InstanceConfig.Builder
Overrides

clearAccountNetworksEnabled()

public InstanceConfig.Builder clearAccountNetworksEnabled()

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

bool account_networks_enabled = 9;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearClientNetwork() (deprecated)

public InstanceConfig.Builder clearClientNetwork()

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

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

Returns
Type Description
InstanceConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public InstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceConfig.Builder
Overrides

clearHyperthreading()

public InstanceConfig.Builder clearHyperthreading()

Whether the instance should be provisioned with Hyperthreading enabled.

bool hyperthreading = 4;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearId()

public InstanceConfig.Builder clearId()

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

string id = 2;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearInstanceType()

public InstanceConfig.Builder clearInstanceType()

Instance type. Available types

string instance_type = 3;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearLogicalInterfaces()

public InstanceConfig.Builder clearLogicalInterfaces()

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
InstanceConfig.Builder

clearName()

public InstanceConfig.Builder clearName()

Output only. The name of the instance config.

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

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearNetworkConfig()

public InstanceConfig.Builder clearNetworkConfig()

The type of network configuration on the instance.

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

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearNetworkTemplate()

public InstanceConfig.Builder clearNetworkTemplate()

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

string network_template = 11;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceConfig.Builder
Overrides

clearOsImage()

public InstanceConfig.Builder clearOsImage()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearPrivateNetwork() (deprecated)

public InstanceConfig.Builder clearPrivateNetwork()

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
InstanceConfig.Builder

clearSshKeyNames()

public InstanceConfig.Builder clearSshKeyNames()

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

repeated string ssh_key_names = 13;

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

clearUserNote()

public InstanceConfig.Builder clearUserNote()

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
InstanceConfig.Builder

This builder for chaining.

clone()

public InstanceConfig.Builder clone()
Returns
Type Description
InstanceConfig.Builder
Overrides

getAccountNetworksEnabled()

public boolean getAccountNetworksEnabled()

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

bool account_networks_enabled = 9;

Returns
Type Description
boolean

The accountNetworksEnabled.

getClientNetwork() (deprecated)

public 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
InstanceConfig.NetworkAddress

The clientNetwork.

getClientNetworkBuilder() (deprecated)

public InstanceConfig.NetworkAddress.Builder getClientNetworkBuilder()

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

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

Returns
Type Description
InstanceConfig.NetworkAddress.Builder

getClientNetworkOrBuilder() (deprecated)

public 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
InstanceConfig.NetworkAddressOrBuilder

getDefaultInstanceForType()

public InstanceConfig getDefaultInstanceForType()
Returns
Type Description
InstanceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHyperthreading()

public boolean getHyperthreading()

Whether the instance should be provisioned with Hyperthreading enabled.

bool hyperthreading = 4;

Returns
Type Description
boolean

The hyperthreading.

getId()

public String getId()

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

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getInstanceType()

public String getInstanceType()

Instance type. Available types

string instance_type = 3;

Returns
Type Description
String

The instanceType.

getInstanceTypeBytes()

public ByteString getInstanceTypeBytes()

Instance type. Available types

string instance_type = 3;

Returns
Type Description
ByteString

The bytes for instanceType.

getLogicalInterfaces(int index)

public 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 int
Returns
Type Description
LogicalInterface

getLogicalInterfacesBuilder(int index)

public LogicalInterface.Builder getLogicalInterfacesBuilder(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 int
Returns
Type Description
LogicalInterface.Builder

getLogicalInterfacesBuilderList()

public List<LogicalInterface.Builder> getLogicalInterfacesBuilderList()

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
List<Builder>

getLogicalInterfacesCount()

public 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
int

getLogicalInterfacesList()

public 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
List<LogicalInterface>

getLogicalInterfacesOrBuilder(int index)

public 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 int
Returns
Type Description
LogicalInterfaceOrBuilder

getLogicalInterfacesOrBuilderList()

public 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
List<? extends com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>

getName()

public String getName()

Output only. The name of the instance config.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the instance config.

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

Returns
Type Description
ByteString

The bytes for name.

getNetworkConfig()

public InstanceConfig.NetworkConfig getNetworkConfig()

The type of network configuration on the instance.

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

Returns
Type Description
InstanceConfig.NetworkConfig

The networkConfig.

getNetworkConfigValue()

public int getNetworkConfigValue()

The type of network configuration on the instance.

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

Returns
Type Description
int

The enum numeric value on the wire for networkConfig.

getNetworkTemplate()

public String getNetworkTemplate()

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

string network_template = 11;

Returns
Type Description
String

The networkTemplate.

getNetworkTemplateBytes()

public ByteString getNetworkTemplateBytes()

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

string network_template = 11;

Returns
Type Description
ByteString

The bytes for networkTemplate.

getOsImage()

public String getOsImage()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
Type Description
String

The osImage.

getOsImageBytes()

public ByteString getOsImageBytes()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
Type Description
ByteString

The bytes for osImage.

getPrivateNetwork() (deprecated)

public 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
InstanceConfig.NetworkAddress

The privateNetwork.

getPrivateNetworkBuilder() (deprecated)

public InstanceConfig.NetworkAddress.Builder getPrivateNetworkBuilder()

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
InstanceConfig.NetworkAddress.Builder

getPrivateNetworkOrBuilder() (deprecated)

public 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
InstanceConfig.NetworkAddressOrBuilder

getSshKeyNames(int index)

public 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 int

The index of the element to return.

Returns
Type Description
String

The sshKeyNames at the given index.

getSshKeyNamesBytes(int index)

public 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 int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sshKeyNames at the given index.

getSshKeyNamesCount()

public int getSshKeyNamesCount()

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

repeated string ssh_key_names = 13;

Returns
Type Description
int

The count of sshKeyNames.

getSshKeyNamesList()

public ProtocolStringList getSshKeyNamesList()

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

repeated string ssh_key_names = 13;

Returns
Type Description
ProtocolStringList

A list containing the sshKeyNames.

getUserNote()

public 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
String

The userNote.

getUserNoteBytes()

public 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
ByteString

The bytes for userNote.

hasClientNetwork() (deprecated)

public 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
boolean

Whether the clientNetwork field is set.

hasPrivateNetwork() (deprecated)

public 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
boolean

Whether the privateNetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeClientNetwork(InstanceConfig.NetworkAddress value) (deprecated)

public InstanceConfig.Builder mergeClientNetwork(InstanceConfig.NetworkAddress value)

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

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

Parameter
Name Description
value InstanceConfig.NetworkAddress
Returns
Type Description
InstanceConfig.Builder

mergeFrom(InstanceConfig other)

public InstanceConfig.Builder mergeFrom(InstanceConfig other)
Parameter
Name Description
other InstanceConfig
Returns
Type Description
InstanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceConfig.Builder
Overrides

mergePrivateNetwork(InstanceConfig.NetworkAddress value) (deprecated)

public InstanceConfig.Builder mergePrivateNetwork(InstanceConfig.NetworkAddress value)

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

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

Parameter
Name Description
value InstanceConfig.NetworkAddress
Returns
Type Description
InstanceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceConfig.Builder
Overrides

removeLogicalInterfaces(int index)

public InstanceConfig.Builder removeLogicalInterfaces(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 int
Returns
Type Description
InstanceConfig.Builder

setAccountNetworksEnabled(boolean value)

public InstanceConfig.Builder setAccountNetworksEnabled(boolean value)

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

bool account_networks_enabled = 9;

Parameter
Name Description
value boolean

The accountNetworksEnabled to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setClientNetwork(InstanceConfig.NetworkAddress value) (deprecated)

public InstanceConfig.Builder setClientNetwork(InstanceConfig.NetworkAddress value)

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

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

Parameter
Name Description
value InstanceConfig.NetworkAddress
Returns
Type Description
InstanceConfig.Builder

setClientNetwork(InstanceConfig.NetworkAddress.Builder builderForValue) (deprecated)

public InstanceConfig.Builder setClientNetwork(InstanceConfig.NetworkAddress.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue InstanceConfig.NetworkAddress.Builder
Returns
Type Description
InstanceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConfig.Builder
Overrides

setHyperthreading(boolean value)

public InstanceConfig.Builder setHyperthreading(boolean value)

Whether the instance should be provisioned with Hyperthreading enabled.

bool hyperthreading = 4;

Parameter
Name Description
value boolean

The hyperthreading to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setId(String value)

public InstanceConfig.Builder setId(String value)

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

string id = 2;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public InstanceConfig.Builder setIdBytes(ByteString value)

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

string id = 2;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setInstanceType(String value)

public InstanceConfig.Builder setInstanceType(String value)

Instance type. Available types

string instance_type = 3;

Parameter
Name Description
value String

The instanceType to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setInstanceTypeBytes(ByteString value)

public InstanceConfig.Builder setInstanceTypeBytes(ByteString value)

Instance type. Available types

string instance_type = 3;

Parameter
Name Description
value ByteString

The bytes for instanceType to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setLogicalInterfaces(int index, LogicalInterface value)

public InstanceConfig.Builder setLogicalInterfaces(int index, LogicalInterface value)

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;

Parameters
Name Description
index int
value LogicalInterface
Returns
Type Description
InstanceConfig.Builder

setLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

public InstanceConfig.Builder setLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue LogicalInterface.Builder
Returns
Type Description
InstanceConfig.Builder

setName(String value)

public InstanceConfig.Builder setName(String value)

Output only. The name of the instance config.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstanceConfig.Builder setNameBytes(ByteString value)

Output only. The name of the instance config.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setNetworkConfig(InstanceConfig.NetworkConfig value)

public InstanceConfig.Builder setNetworkConfig(InstanceConfig.NetworkConfig value)

The type of network configuration on the instance.

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

Parameter
Name Description
value InstanceConfig.NetworkConfig

The networkConfig to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setNetworkConfigValue(int value)

public InstanceConfig.Builder setNetworkConfigValue(int value)

The type of network configuration on the instance.

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

Parameter
Name Description
value int

The enum numeric value on the wire for networkConfig to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setNetworkTemplate(String value)

public InstanceConfig.Builder setNetworkTemplate(String value)

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

string network_template = 11;

Parameter
Name Description
value String

The networkTemplate to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setNetworkTemplateBytes(ByteString value)

public InstanceConfig.Builder setNetworkTemplateBytes(ByteString value)

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

string network_template = 11;

Parameter
Name Description
value ByteString

The bytes for networkTemplate to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setOsImage(String value)

public InstanceConfig.Builder setOsImage(String value)

OS image to initialize the instance. Available images

string os_image = 5;

Parameter
Name Description
value String

The osImage to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setOsImageBytes(ByteString value)

public InstanceConfig.Builder setOsImageBytes(ByteString value)

OS image to initialize the instance. Available images

string os_image = 5;

Parameter
Name Description
value ByteString

The bytes for osImage to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setPrivateNetwork(InstanceConfig.NetworkAddress value) (deprecated)

public InstanceConfig.Builder setPrivateNetwork(InstanceConfig.NetworkAddress value)

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

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

Parameter
Name Description
value InstanceConfig.NetworkAddress
Returns
Type Description
InstanceConfig.Builder

setPrivateNetwork(InstanceConfig.NetworkAddress.Builder builderForValue) (deprecated)

public InstanceConfig.Builder setPrivateNetwork(InstanceConfig.NetworkAddress.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue InstanceConfig.NetworkAddress.Builder
Returns
Type Description
InstanceConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceConfig.Builder
Overrides

setSshKeyNames(int index, String value)

public InstanceConfig.Builder setSshKeyNames(int index, String value)

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

repeated string ssh_key_names = 13;

Parameters
Name Description
index int

The index to set the value at.

value String

The sshKeyNames to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceConfig.Builder
Overrides

setUserNote(String value)

public InstanceConfig.Builder setUserNote(String value)

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

string user_note = 8;

Parameter
Name Description
value String

The userNote to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.

setUserNoteBytes(ByteString value)

public InstanceConfig.Builder setUserNoteBytes(ByteString value)

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

string user_note = 8;

Parameter
Name Description
value ByteString

The bytes for userNote to set.

Returns
Type Description
InstanceConfig.Builder

This builder for chaining.