Class InstanceConfig (0.43.0)

public final class InstanceConfig extends GeneratedMessageV3 implements InstanceConfigOrBuilder

Configuration parameters for a new instance.

Protobuf type google.cloud.baremetalsolution.v2.InstanceConfig

Static Fields

ACCOUNT_NETWORKS_ENABLED_FIELD_NUMBER

public static final int ACCOUNT_NETWORKS_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

CLIENT_NETWORK_FIELD_NUMBER

public static final int CLIENT_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

HYPERTHREADING_FIELD_NUMBER

public static final int HYPERTHREADING_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_TYPE_FIELD_NUMBER

public static final int INSTANCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

LOGICAL_INTERFACES_FIELD_NUMBER

public static final int LOGICAL_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_CONFIG_FIELD_NUMBER

public static final int NETWORK_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_TEMPLATE_FIELD_NUMBER

public static final int NETWORK_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

OS_IMAGE_FIELD_NUMBER

public static final int OS_IMAGE_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_NETWORK_FIELD_NUMBER

public static final int PRIVATE_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

SSH_KEY_NAMES_FIELD_NUMBER

public static final int SSH_KEY_NAMES_FIELD_NUMBER
Field Value
Type Description
int

USER_NOTE_FIELD_NUMBER

public static final int USER_NOTE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InstanceConfig getDefaultInstance()
Returns
Type Description
InstanceConfig

getDescriptor()

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

newBuilder()

public static InstanceConfig.Builder newBuilder()
Returns
Type Description
InstanceConfig.Builder

newBuilder(InstanceConfig prototype)

public static InstanceConfig.Builder newBuilder(InstanceConfig prototype)
Parameter
Name Description
prototype InstanceConfig
Returns
Type Description
InstanceConfig.Builder

parseDelimitedFrom(InputStream input)

public static InstanceConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InstanceConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InstanceConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InstanceConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InstanceConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InstanceConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InstanceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InstanceConfig> parser()
Returns
Type Description
Parser<InstanceConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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

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.

getParserForType()

public Parser<InstanceConfig> getParserForType()
Returns
Type Description
Parser<InstanceConfig>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InstanceConfig.Builder newBuilderForType()
Returns
Type Description
InstanceConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InstanceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InstanceConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InstanceConfig.Builder toBuilder()
Returns
Type Description
InstanceConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException