Class Instance.Builder (0.20.0)

public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder

A server.

Protobuf type google.cloud.baremetalsolution.v2.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLogicalInterfaces(Iterable<? extends LogicalInterface> values)

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface>
Returns
TypeDescription
Instance.Builder

addAllLuns(Iterable<? extends Lun> values)

public Instance.Builder addAllLuns(Iterable<? extends Lun> values)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.Lun>
Returns
TypeDescription
Instance.Builder

addAllNetworks(Iterable<? extends Network> values)

public Instance.Builder addAllNetworks(Iterable<? extends Network> values)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.Network>
Returns
TypeDescription
Instance.Builder

addLogicalInterfaces(LogicalInterface value)

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameter
NameDescription
valueLogicalInterface
Returns
TypeDescription
Instance.Builder

addLogicalInterfaces(LogicalInterface.Builder builderForValue)

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameter
NameDescription
builderForValueLogicalInterface.Builder
Returns
TypeDescription
Instance.Builder

addLogicalInterfaces(int index, LogicalInterface value)

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameters
NameDescription
indexint
valueLogicalInterface
Returns
TypeDescription
Instance.Builder

addLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameters
NameDescription
indexint
builderForValueLogicalInterface.Builder
Returns
TypeDescription
Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogicalInterface.Builder

addLuns(Lun value)

public Instance.Builder addLuns(Lun value)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameter
NameDescription
valueLun
Returns
TypeDescription
Instance.Builder

addLuns(Lun.Builder builderForValue)

public Instance.Builder addLuns(Lun.Builder builderForValue)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameter
NameDescription
builderForValueLun.Builder
Returns
TypeDescription
Instance.Builder

addLuns(int index, Lun value)

public Instance.Builder addLuns(int index, Lun value)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameters
NameDescription
indexint
valueLun
Returns
TypeDescription
Instance.Builder

addLuns(int index, Lun.Builder builderForValue)

public Instance.Builder addLuns(int index, Lun.Builder builderForValue)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameters
NameDescription
indexint
builderForValueLun.Builder
Returns
TypeDescription
Instance.Builder

addLunsBuilder()

public Lun.Builder addLunsBuilder()

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Returns
TypeDescription
Lun.Builder

addLunsBuilder(int index)

public Lun.Builder addLunsBuilder(int index)

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Lun.Builder

addNetworks(Network value)

public Instance.Builder addNetworks(Network value)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameter
NameDescription
valueNetwork
Returns
TypeDescription
Instance.Builder

addNetworks(Network.Builder builderForValue)

public Instance.Builder addNetworks(Network.Builder builderForValue)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameter
NameDescription
builderForValueNetwork.Builder
Returns
TypeDescription
Instance.Builder

addNetworks(int index, Network value)

public Instance.Builder addNetworks(int index, Network value)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameters
NameDescription
indexint
valueNetwork
Returns
TypeDescription
Instance.Builder

addNetworks(int index, Network.Builder builderForValue)

public Instance.Builder addNetworks(int index, Network.Builder builderForValue)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameters
NameDescription
indexint
builderForValueNetwork.Builder
Returns
TypeDescription
Instance.Builder

addNetworksBuilder()

public Network.Builder addNetworksBuilder()

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Returns
TypeDescription
Network.Builder

addNetworksBuilder(int index)

public Network.Builder addNetworksBuilder(int index)

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
Network.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.Builder
Overrides

build()

public Instance build()
Returns
TypeDescription
Instance

buildPartial()

public Instance buildPartial()
Returns
TypeDescription
Instance

clear()

public Instance.Builder clear()
Returns
TypeDescription
Instance.Builder
Overrides

clearCreateTime()

public Instance.Builder clearCreateTime()

Output only. Create a time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHyperthreadingEnabled()

public Instance.Builder clearHyperthreadingEnabled()

True if you enable hyperthreading for the server, otherwise false. The default value is false.

bool hyperthreading_enabled = 6;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearId()

public Instance.Builder clearId()

An identifier for the Instance, generated by the backend.

string id = 11;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearInteractiveSerialConsoleEnabled()

public Instance.Builder clearInteractiveSerialConsoleEnabled()

True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.

bool interactive_serial_console_enabled = 10;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearLabels()

public Instance.Builder clearLabels()
Returns
TypeDescription
Instance.Builder

clearLogicalInterfaces()

public Instance.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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Returns
TypeDescription
Instance.Builder

clearLuns()

public Instance.Builder clearLuns()

List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;

Returns
TypeDescription
Instance.Builder

clearMachineType()

public Instance.Builder clearMachineType()

The server type. Available server types

string machine_type = 4;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearName()

public Instance.Builder clearName()

Output only. The resource name of this Instance. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/instances/{instance}

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearNetworkTemplate()

public Instance.Builder clearNetworkTemplate()

Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond<bond_mode>" or "nic".

string network_template = 14 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearNetworks()

public Instance.Builder clearNetworks()

List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9;

Returns
TypeDescription
Instance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsImage()

public Instance.Builder clearOsImage()

The OS image currently installed on the server.

string os_image = 12;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearPod()

public Instance.Builder clearPod()

Immutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.

string pod = 13 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearState()

public Instance.Builder clearState()

The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearUpdateTime()

public Instance.Builder clearUpdateTime()

Output only. Update a time stamp.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

clone()

public Instance.Builder clone()
Returns
TypeDescription
Instance.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Create a time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create a time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create a time stamp.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
TypeDescription
Instance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHyperthreadingEnabled()

public boolean getHyperthreadingEnabled()

True if you enable hyperthreading for the server, otherwise false. The default value is false.

bool hyperthreading_enabled = 6;

Returns
TypeDescription
boolean

The hyperthreadingEnabled.

getId()

public String getId()

An identifier for the Instance, generated by the backend.

string id = 11;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

An identifier for the Instance, generated by the backend.

string id = 11;

Returns
TypeDescription
ByteString

The bytes for id.

getInteractiveSerialConsoleEnabled()

public boolean getInteractiveSerialConsoleEnabled()

True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.

bool interactive_serial_console_enabled = 10;

Returns
TypeDescription
boolean

The interactiveSerialConsoleEnabled.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

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. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

repeated .google.cloud.baremetalsolution.v2.LogicalInterface logical_interfaces = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogicalInterface.Builder

getLogicalInterfacesBuilderList()

public List<LogicalInterface.Builder> getLogicalInterfacesBuilderList()

List of logical interfaces for the instance