Class Instance.Builder (0.46.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface>
Returns
Type Description
Instance.Builder

addAllLuns(Iterable<? extends Lun> values)

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

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.Lun>
Returns
Type Description
Instance.Builder

addAllNetworks(Iterable<? extends Network> values)

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

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.Network>
Returns
Type Description
Instance.Builder

addAllVolumes(Iterable<? extends Volume> values)

public Instance.Builder addAllVolumes(Iterable<? extends Volume> values)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.Volume>
Returns
Type Description
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
Name Description
value LogicalInterface
Returns
Type Description
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
Name Description
builderForValue LogicalInterface.Builder
Returns
Type Description
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
Name Description
index int
value LogicalInterface
Returns
Type Description
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
Name Description
index int
builderForValue LogicalInterface.Builder
Returns
Type Description
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
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. 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
Name Description
index int
Returns
Type Description
LogicalInterface.Builder

addLuns(Lun value)

public Instance.Builder addLuns(Lun value)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Lun
Returns
Type Description
Instance.Builder

addLuns(Lun.Builder builderForValue)

public Instance.Builder addLuns(Lun.Builder builderForValue)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Lun.Builder
Returns
Type Description
Instance.Builder

addLuns(int index, Lun value)

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

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
value Lun
Returns
Type Description
Instance.Builder

addLuns(int index, Lun.Builder builderForValue)

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

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
builderForValue Lun.Builder
Returns
Type Description
Instance.Builder

addLunsBuilder()

public Lun.Builder addLunsBuilder()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Lun.Builder

addLunsBuilder(int index)

public Lun.Builder addLunsBuilder(int index)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
Lun.Builder

addNetworks(Network value)

public Instance.Builder addNetworks(Network value)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Network
Returns
Type Description
Instance.Builder

addNetworks(Network.Builder builderForValue)

public Instance.Builder addNetworks(Network.Builder builderForValue)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Network.Builder
Returns
Type Description
Instance.Builder

addNetworks(int index, Network value)

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

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Network
Returns
Type Description
Instance.Builder

addNetworks(int index, Network.Builder builderForValue)

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

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Network.Builder
Returns
Type Description
Instance.Builder

addNetworksBuilder()

public Network.Builder addNetworksBuilder()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Network.Builder

addNetworksBuilder(int index)

public Network.Builder addNetworksBuilder(int index)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Network.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVolumes(Volume value)

public Instance.Builder addVolumes(Volume value)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Volume
Returns
Type Description
Instance.Builder

addVolumes(Volume.Builder builderForValue)

public Instance.Builder addVolumes(Volume.Builder builderForValue)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Volume.Builder
Returns
Type Description
Instance.Builder

addVolumes(int index, Volume value)

public Instance.Builder addVolumes(int index, Volume value)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Volume
Returns
Type Description
Instance.Builder

addVolumes(int index, Volume.Builder builderForValue)

public Instance.Builder addVolumes(int index, Volume.Builder builderForValue)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Instance.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

build()

public Instance build()
Returns
Type Description
Instance

buildPartial()

public Instance buildPartial()
Returns
Type Description
Instance

clear()

public Instance.Builder clear()
Returns
Type Description
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
Type Description
Instance.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFirmwareVersion()

public Instance.Builder clearFirmwareVersion()

Output only. The firmware version for the instance.

string firmware_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

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
Type Description
Instance.Builder

This builder for chaining.

clearId()

public Instance.Builder clearId()

Output only. An identifier for the Instance, generated by the backend.

string id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearInteractiveSerialConsoleEnabled()

public Instance.Builder clearInteractiveSerialConsoleEnabled()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearLabels()

public Instance.Builder clearLabels()
Returns
Type Description
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
Type Description
Instance.Builder

clearLoginInfo()

public Instance.Builder clearLoginInfo()

Output only. Text field about info for logging in.

string login_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearLuns()

public Instance.Builder clearLuns()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Instance.Builder

clearMachineType()

public Instance.Builder clearMachineType()

Immutable. The server type. Available server types

string machine_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Instance.Builder

This builder for chaining.

clearName()

public Instance.Builder clearName()

Immutable. 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) = IMMUTABLE];

Returns
Type Description
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
Type Description
Instance.Builder

This builder for chaining.

clearNetworks()

public Instance.Builder clearNetworks()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOsImage()

public Instance.Builder clearOsImage()

The OS image currently installed on the server.

string os_image = 12;

Returns
Type Description
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
Type Description
Instance.Builder

This builder for chaining.

clearState()

public Instance.Builder clearState()

Output only. The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
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
Type Description
Instance.Builder

clearVolumes()

public Instance.Builder clearVolumes()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Instance.Builder

clearWorkloadProfile()

public Instance.Builder clearWorkloadProfile()

The workload profile for the instance.

.google.cloud.baremetalsolution.v2.WorkloadProfile workload_profile = 18;

Returns
Type Description
Instance.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Create a time stamp.

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

Returns
Type Description
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
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create a time stamp.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
Type Description
Instance

getDescriptorForType()

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

getFirmwareVersion()

public String getFirmwareVersion()

Output only. The firmware version for the instance.

string firmware_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The firmwareVersion.

getFirmwareVersionBytes()

public ByteString getFirmwareVersionBytes()

Output only. The firmware version for the instance.

string firmware_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for firmwareVersion.

getHyperthreadingEnabled()

public boolean getHyperthreadingEnabled()

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

bool hyperthreading_enabled = 6;

Returns
Type Description
boolean

The hyperthreadingEnabled.

getId()

public String getId()

Output only. An identifier for the Instance, generated by the backend.

string id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. An identifier for the Instance, generated by the backend.

string id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getInteractiveSerialConsoleEnabled()

public boolean getInteractiveSerialConsoleEnabled()

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The interactiveSerialConsoleEnabled.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 7;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 7;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
Name Description
key String
Returns
Type Description
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
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. 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
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. 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
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. 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
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. 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
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. 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
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. 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
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.LogicalInterfaceOrBuilder>

getLoginInfo()

public String getLoginInfo()

Output only. Text field about info for logging in.

string login_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The loginInfo.

getLoginInfoBytes()

public ByteString getLoginInfoBytes()

Output only. Text field about info for logging in.

string login_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for loginInfo.

getLuns(int index)

public Lun getLuns(int index)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
Lun

getLunsBuilder(int index)

public Lun.Builder getLunsBuilder(int index)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
Lun.Builder

getLunsBuilderList()

public List<Lun.Builder> getLunsBuilderList()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<Builder>

getLunsCount()

public int getLunsCount()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

getLunsList()

public List<Lun> getLunsList()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<Lun>

getLunsOrBuilder(int index)

public LunOrBuilder getLunsOrBuilder(int index)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
LunOrBuilder

getLunsOrBuilderList()

public List<? extends LunOrBuilder> getLunsOrBuilderList()

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.LunOrBuilder>

getMachineType()

public String getMachineType()

Immutable. The server type. Available server types

string machine_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Immutable. The server type. Available server types

string machine_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for machineType.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Immutable. 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) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. 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) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getNetworkTemplate()

public String getNetworkTemplate()

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
Type Description
String

The networkTemplate.

getNetworkTemplateBytes()

public ByteString getNetworkTemplateBytes()

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
Type Description
ByteString

The bytes for networkTemplate.

getNetworks(int index)

public Network getNetworks(int index)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Network

getNetworksBuilder(int index)

public Network.Builder getNetworksBuilder(int index)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Network.Builder

getNetworksBuilderList()

public List<Network.Builder> getNetworksBuilderList()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getNetworksCount()

public int getNetworksCount()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getNetworksList()

public List<Network> getNetworksList()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Network>

getNetworksOrBuilder(int index)

public NetworkOrBuilder getNetworksOrBuilder(int index)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
NetworkOrBuilder

getNetworksOrBuilderList()

public List<? extends NetworkOrBuilder> getNetworksOrBuilderList()

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>

getOsImage()

public String getOsImage()

The OS image currently installed on the server.

string os_image = 12;

Returns
Type Description
String

The osImage.

getOsImageBytes()

public ByteString getOsImageBytes()

The OS image currently installed on the server.

string os_image = 12;

Returns
Type Description
ByteString

The bytes for osImage.

getPod()

public String getPod()

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
Type Description
String

The pod.

getPodBytes()

public ByteString getPodBytes()

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
Type Description
ByteString

The bytes for pod.

getState()

public Instance.State getState()

Output only. The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update a time stamp.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update a time stamp.

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

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update a time stamp.

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

Returns
Type Description
TimestampOrBuilder

getVolumes(int index)

public Volume getVolumes(int index)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Volume

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Builder>

getVolumesCount()

public int getVolumesCount()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
int

getVolumesList()

public List<Volume> getVolumesList()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>

getWorkloadProfile()

public WorkloadProfile getWorkloadProfile()

The workload profile for the instance.

.google.cloud.baremetalsolution.v2.WorkloadProfile workload_profile = 18;

Returns
Type Description
WorkloadProfile

The workloadProfile.

getWorkloadProfileValue()

public int getWorkloadProfileValue()

The workload profile for the instance.

.google.cloud.baremetalsolution.v2.WorkloadProfile workload_profile = 18;

Returns
Type Description
int

The enum numeric value on the wire for workloadProfile.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create a time stamp.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update a time stamp.

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

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Instance.Builder mergeCreateTime(Timestamp value)

Output only. Create a time stamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

mergeFrom(Instance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Instance.Builder mergeUpdateTime(Timestamp value)

Output only. Update a time stamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

putAllLabels(Map<String,String> values)

public Instance.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Instance.Builder

putLabels(String key, String value)

public Instance.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 7;

Parameters
Name Description
key String
value String
Returns
Type Description
Instance.Builder

removeLabels(String key)

public Instance.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
Name Description
key String
Returns
Type Description
Instance.Builder

removeLogicalInterfaces(int index)

public Instance.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. 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
Name Description
index int
Returns
Type Description
Instance.Builder

removeLuns(int index)

public Instance.Builder removeLuns(int index)

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

removeNetworks(int index)

public Instance.Builder removeNetworks(int index)

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

removeVolumes(int index)

public Instance.Builder removeVolumes(int index)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Instance.Builder

setCreateTime(Timestamp value)

public Instance.Builder setCreateTime(Timestamp value)

Output only. Create a time stamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create a time stamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirmwareVersion(String value)

public Instance.Builder setFirmwareVersion(String value)

Output only. The firmware version for the instance.

string firmware_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The firmwareVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setFirmwareVersionBytes(ByteString value)

public Instance.Builder setFirmwareVersionBytes(ByteString value)

Output only. The firmware version for the instance.

string firmware_version = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for firmwareVersion to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setHyperthreadingEnabled(boolean value)

public Instance.Builder setHyperthreadingEnabled(boolean value)

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

bool hyperthreading_enabled = 6;

Parameter
Name Description
value boolean

The hyperthreadingEnabled to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setId(String value)

public Instance.Builder setId(String value)

Output only. An identifier for the Instance, generated by the backend.

string id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Instance.Builder setIdBytes(ByteString value)

Output only. An identifier for the Instance, generated by the backend.

string id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setInteractiveSerialConsoleEnabled(boolean value)

public Instance.Builder setInteractiveSerialConsoleEnabled(boolean value)

Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The interactiveSerialConsoleEnabled to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setLogicalInterfaces(int index, LogicalInterface value)

public Instance.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. 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
Name Description
index int
value LogicalInterface
Returns
Type Description
Instance.Builder

setLogicalInterfaces(int index, LogicalInterface.Builder builderForValue)

public Instance.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. 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
Name Description
index int
builderForValue LogicalInterface.Builder
Returns
Type Description
Instance.Builder

setLoginInfo(String value)

public Instance.Builder setLoginInfo(String value)

Output only. Text field about info for logging in.

string login_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The loginInfo to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setLoginInfoBytes(ByteString value)

public Instance.Builder setLoginInfoBytes(ByteString value)

Output only. Text field about info for logging in.

string login_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for loginInfo to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setLuns(int index, Lun value)

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

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
value Lun
Returns
Type Description
Instance.Builder

setLuns(int index, Lun.Builder builderForValue)

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

Immutable. List of LUNs associated with this server.

repeated .google.cloud.baremetalsolution.v2.Lun luns = 8 [(.google.api.field_behavior) = IMMUTABLE];

Parameters
Name Description
index int
builderForValue Lun.Builder
Returns
Type Description
Instance.Builder

setMachineType(String value)

public Instance.Builder setMachineType(String value)

Immutable. The server type. Available server types

string machine_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public Instance.Builder setMachineTypeBytes(ByteString value)

Immutable. The server type. Available server types

string machine_type = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setName(String value)

public Instance.Builder setName(String value)

Immutable. 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) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Instance.Builder setNameBytes(ByteString value)

Immutable. 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) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNetworkTemplate(String value)

public Instance.Builder setNetworkTemplate(String value)

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) = { ... }

Parameter
Name Description
value String

The networkTemplate to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNetworkTemplateBytes(ByteString value)

public Instance.Builder setNetworkTemplateBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for networkTemplate to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setNetworks(int index, Network value)

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

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Network
Returns
Type Description
Instance.Builder

setNetworks(int index, Network.Builder builderForValue)

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

Output only. List of networks associated with this server.

repeated .google.cloud.baremetalsolution.v2.Network networks = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Network.Builder
Returns
Type Description
Instance.Builder

setOsImage(String value)

public Instance.Builder setOsImage(String value)

The OS image currently installed on the server.

string os_image = 12;

Parameter
Name Description
value String

The osImage to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setOsImageBytes(ByteString value)

public Instance.Builder setOsImageBytes(ByteString value)

The OS image currently installed on the server.

string os_image = 12;

Parameter
Name Description
value ByteString

The bytes for osImage to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setPod(String value)

public Instance.Builder setPod(String value)

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];

Parameter
Name Description
value String

The pod to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setPodBytes(ByteString value)

public Instance.Builder setPodBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for pod to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

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

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

setState(Instance.State value)

public Instance.Builder setState(Instance.State value)

Output only. The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Instance.State

The state to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Builder setStateValue(int value)

Output only. The state of the server.

.google.cloud.baremetalsolution.v2.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Instance.Builder setUpdateTime(Timestamp value)

Output only. Update a time stamp.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Instance.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Instance.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update a time stamp.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Instance.Builder

setVolumes(int index, Volume value)

public Instance.Builder setVolumes(int index, Volume value)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Volume
Returns
Type Description
Instance.Builder

setVolumes(int index, Volume.Builder builderForValue)

public Instance.Builder setVolumes(int index, Volume.Builder builderForValue)

Input only. List of Volumes to attach to this Instance on creation. This field won't be populated in Get/List responses.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 16 [(.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
Instance.Builder

setWorkloadProfile(WorkloadProfile value)

public Instance.Builder setWorkloadProfile(WorkloadProfile value)

The workload profile for the instance.

.google.cloud.baremetalsolution.v2.WorkloadProfile workload_profile = 18;

Parameter
Name Description
value WorkloadProfile

The workloadProfile to set.

Returns
Type Description
Instance.Builder

This builder for chaining.

setWorkloadProfileValue(int value)

public Instance.Builder setWorkloadProfileValue(int value)

The workload profile for the instance.

.google.cloud.baremetalsolution.v2.WorkloadProfile workload_profile = 18;

Parameter
Name Description
value int

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

Returns
Type Description
Instance.Builder

This builder for chaining.