Class InstanceConfig.Builder (0.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The sshKeyNames to add.

Returns
TypeDescription
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
NameDescription
valueLogicalInterface
Returns
TypeDescription
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
NameDescription
builderForValueLogicalInterface.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLogicalInterface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogicalInterface.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
LogicalInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sshKeyNames to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the sshKeyNames to add.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

build()

public InstanceConfig build()
Returns
TypeDescription
InstanceConfig

buildPartial()

public InstanceConfig buildPartial()
Returns
TypeDescription
InstanceConfig

clear()

public InstanceConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
InstanceConfig.Builder

This builder for chaining.

clearClientNetwork()

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

clearField(Descriptors.FieldDescriptor field)

public InstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceConfig.Builder
Overrides

clearHyperthreading()

public InstanceConfig.Builder clearHyperthreading()

Whether the instance should be provisioned with Hyperthreading enabled.

bool hyperthreading = 4;

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

This builder for chaining.

clearInstanceType()

public InstanceConfig.Builder clearInstanceType()

Instance type. Available types

string instance_type = 3;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceConfig.Builder
Overrides

clearOsImage()

public InstanceConfig.Builder clearOsImage()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

clearPrivateNetwork()

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

This builder for chaining.

clone()

public InstanceConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
InstanceConfig.NetworkAddress

The clientNetwork.

getClientNetworkBuilder()

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

getClientNetworkOrBuilder()

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

getDefaultInstanceForType()

public InstanceConfig getDefaultInstanceForType()
Returns
TypeDescription
InstanceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHyperthreading()

public boolean getHyperthreading()

Whether the instance should be provisioned with Hyperthreading enabled.

bool hyperthreading = 4;

Returns
TypeDescription
boolean

The hyperthreading.

getId()

public String getId()

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

string id = 2;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 2;

Returns
TypeDescription
ByteString

The bytes for id.

getInstanceType()

public String getInstanceType()

Instance type. Available types

string instance_type = 3;

Returns
TypeDescription
String

The instanceType.

getInstanceTypeBytes()

public ByteString getInstanceTypeBytes()

Instance type. Available types

string instance_type = 3;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The networkTemplate.

getNetworkTemplateBytes()

public ByteString getNetworkTemplateBytes()

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

string network_template = 11;

Returns
TypeDescription
ByteString

The bytes for networkTemplate.

getOsImage()

public String getOsImage()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
TypeDescription
String

The osImage.

getOsImageBytes()

public ByteString getOsImageBytes()

OS image to initialize the instance. Available images

string os_image = 5;

Returns
TypeDescription
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
TypeDescription
InstanceConfig.NetworkAddress

The privateNetwork.

getPrivateNetworkBuilder()

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

getPrivateNetworkOrBuilder()

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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the privateNetwork field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeClientNetwork(InstanceConfig.NetworkAddress value)

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
NameDescription
valueInstanceConfig.NetworkAddress
Returns
TypeDescription
InstanceConfig.Builder

mergeFrom(InstanceConfig other)

public InstanceConfig.Builder mergeFrom(InstanceConfig other)
Parameter
NameDescription
otherInstanceConfig
Returns
TypeDescription
InstanceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceConfig.Builder
Overrides

mergePrivateNetwork(InstanceConfig.NetworkAddress value)

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
NameDescription
valueInstanceConfig.NetworkAddress
Returns
TypeDescription
InstanceConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueboolean

The accountNetworksEnabled to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setClientNetwork(InstanceConfig.NetworkAddress value)

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
NameDescription
valueInstanceConfig.NetworkAddress
Returns
TypeDescription
InstanceConfig.Builder

setClientNetwork(InstanceConfig.NetworkAddress.Builder builderForValue)

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
NameDescription
builderForValueInstanceConfig.NetworkAddress.Builder
Returns
TypeDescription
InstanceConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The hyperthreading to set.

Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setInstanceType(String value)

public InstanceConfig.Builder setInstanceType(String value)

Instance type. Available types

string instance_type = 3;

Parameter
NameDescription
valueString

The instanceType to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setInstanceTypeBytes(ByteString value)

public InstanceConfig.Builder setInstanceTypeBytes(ByteString value)

Instance type. Available types

string instance_type = 3;

Parameter
NameDescription
valueByteString

The bytes for instanceType to set.

Returns
TypeDescription
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
NameDescription
indexint
valueLogicalInterface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogicalInterface.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueInstanceConfig.NetworkConfig

The networkConfig to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The networkTemplate to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for networkTemplate to set.

Returns
TypeDescription
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
NameDescription
valueString

The osImage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for osImage to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setPrivateNetwork(InstanceConfig.NetworkAddress value)

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
NameDescription
valueInstanceConfig.NetworkAddress
Returns
TypeDescription
InstanceConfig.Builder

setPrivateNetwork(InstanceConfig.NetworkAddress.Builder builderForValue)

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
NameDescription
builderForValueInstanceConfig.NetworkAddress.Builder
Returns
TypeDescription
InstanceConfig.Builder

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

public InstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The sshKeyNames to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The userNote to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for userNote to set.

Returns
TypeDescription
InstanceConfig.Builder

This builder for chaining.