public final class InstanceConfig extends GeneratedMessageV3 implements InstanceConfigOrBuilder
Configuration parameters for a new instance.
Protobuf type google.cloud.baremetalsolution.v2.InstanceConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int ACCOUNT_NETWORKS_ENABLED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CLIENT_NETWORK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int HYPERTHREADING_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INSTANCE_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LOGICAL_INTERFACES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NETWORK_CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NETWORK_TEMPLATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OS_IMAGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PRIVATE_NETWORK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SSH_KEY_NAMES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int USER_NOTE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static InstanceConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static InstanceConfig.Builder newBuilder()
public static InstanceConfig.Builder newBuilder(InstanceConfig prototype)
public static InstanceConfig parseDelimitedFrom(InputStream input)
public static InstanceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InstanceConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static InstanceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstanceConfig parseFrom(ByteString data)
public static InstanceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstanceConfig parseFrom(CodedInputStream input)
public static InstanceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InstanceConfig parseFrom(InputStream input)
public static InstanceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InstanceConfig parseFrom(ByteBuffer data)
public static InstanceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<InstanceConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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.
|
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];
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];
public InstanceConfig getDefaultInstanceForType()
public boolean getHyperthreading()
Whether the instance should be provisioned with Hyperthreading enabled.
bool hyperthreading = 4;
Returns |
---|
Type | Description |
boolean | The hyperthreading.
|
A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.
string id = 2;
Returns |
---|
Type | Description |
String | The id.
|
public ByteString getIdBytes()
A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.
string id = 2;
public String getInstanceType()
Returns |
---|
Type | Description |
String | The instanceType.
|
public ByteString getInstanceTypeBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for instanceType.
|
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
|
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 | |
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;
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
|
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> | |
Output only. The name of the instance config.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
String | The name.
|
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.
|
public InstanceConfig.NetworkConfig getNetworkConfig()
The type of network configuration on the instance.
.google.cloud.baremetalsolution.v2.InstanceConfig.NetworkConfig network_config = 10;
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.
|
public String getNetworkTemplate()
Server network template name. Filled if InstanceConfig.multivlan_config is
true.
string network_template = 11;
Returns |
---|
Type | Description |
String | The networkTemplate.
|
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.
|
public String getOsImage()
Returns |
---|
Type | Description |
String | The osImage.
|
public ByteString getOsImageBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for osImage.
|
public Parser<InstanceConfig> getParserForType()
Overrides
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];
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];
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
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.
|
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.
|
public ProtocolStringList getSshKeyNamesList()
List of names of ssh keys used to provision the instance.
repeated string ssh_key_names = 13;
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.
|
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.
|
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.
|
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InstanceConfig.Builder newBuilderForType()
protected InstanceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public InstanceConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides