Interface InstanceOrBuilder (0.2.0)

public interface InstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public abstract 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.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create a time stamp.

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

Returns
TypeDescription
TimestampOrBuilder

getHyperthreadingEnabled()

public abstract 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.

getInteractiveSerialConsoleEnabled()

public abstract 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 abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public abstract 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 abstract 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 abstract String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLuns(int index)

public abstract Lun getLuns(int index)

List of LUNs associated with this server.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Lun

getLunsCount()

public abstract int getLunsCount()

List of LUNs associated with this server.

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

Returns
TypeDescription
int

getLunsList()

public abstract List<Lun> getLunsList()

List of LUNs associated with this server.

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

Returns
TypeDescription
List<Lun>

getLunsOrBuilder(int index)

public abstract LunOrBuilder getLunsOrBuilder(int index)

List of LUNs associated with this server.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LunOrBuilder

getLunsOrBuilderList()

public abstract List<? extends LunOrBuilder> getLunsOrBuilderList()

List of LUNs associated with this server.

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

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

getMachineType()

public abstract String getMachineType()

The server type. Available server types

string machine_type = 4;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public abstract ByteString getMachineTypeBytes()

The server type. Available server types

string machine_type = 4;

Returns
TypeDescription
ByteString

The bytes for machineType.

getName()

public abstract String getName()

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
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

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
ByteString

The bytes for name.

getNetworks(int index)

public abstract Network getNetworks(int index)

List of networks associated with this server.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Network

getNetworksCount()

public abstract int getNetworksCount()

List of networks associated with this server.

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

Returns
TypeDescription
int

getNetworksList()

public abstract List<Network> getNetworksList()

List of networks associated with this server.

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

Returns
TypeDescription
List<Network>

getNetworksOrBuilder(int index)

public abstract NetworkOrBuilder getNetworksOrBuilder(int index)

List of networks associated with this server.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkOrBuilder

getNetworksOrBuilderList()

public abstract List<? extends NetworkOrBuilder> getNetworksOrBuilderList()

List of networks associated with this server.

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

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

getState()

public abstract Instance.State getState()

The state of the server.

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

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public abstract int getStateValue()

The state of the server.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Update a time stamp.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update a time stamp.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Create a time stamp.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Update a time stamp.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.