public final class Instance extends GeneratedMessageV3 implements InstanceOrBuilder
A server.
Protobuf type google.cloud.baremetalsolution.v2.Instance
Static Fields
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int HYPERTHREADING_ENABLED_FIELD_NUMBER
Field Value
public static final int INTERACTIVE_SERIAL_CONSOLE_ENABLED_FIELD_NUMBER
Field Value
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int LUNS_FIELD_NUMBER
Field Value
public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int NETWORKS_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
public static Instance getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Instance.Builder newBuilder()
Returns
public static Instance.Builder newBuilder(Instance prototype)
Parameter
Returns
public static Instance parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Instance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Instance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Instance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Instance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Instance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Instance parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Instance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Instance> parser()
Returns
Methods
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 7;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCreateTime()
Output only. Create a time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create a time stamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public Instance getDefaultInstanceForType()
Returns
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.
|
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
Type | Description |
boolean | The interactiveSerialConsoleEnabled.
|
public Map<String,String> getLabels()
Returns
public int getLabelsCount()
Labels as key value pairs.
map<string, string> labels = 7;
Returns
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 7;
Returns
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 7;
Parameters
Returns
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 7;
Parameter
Returns
public Lun getLuns(int index)
List of LUNs associated with this server.
repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;
Parameter
Returns
public int getLunsCount()
List of LUNs associated with this server.
repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;
Returns
public List<Lun> getLunsList()
List of LUNs associated with this server.
repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;
Returns
public LunOrBuilder getLunsOrBuilder(int index)
List of LUNs associated with this server.
repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;
Parameter
Returns
public List<? extends LunOrBuilder> getLunsOrBuilderList()
List of LUNs associated with this server.
repeated .google.cloud.baremetalsolution.v2.Lun luns = 8;
Returns
Type | Description |
List<? extends com.google.cloud.baremetalsolution.v2.LunOrBuilder> | |
public String getMachineType()
Returns
Type | Description |
String | The machineType.
|
public ByteString getMachineTypeBytes()
Returns
Type | Description |
ByteString | The bytes for machineType.
|
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
Type | Description |
String | The name.
|
public 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
public Network getNetworks(int index)
List of networks associated with this server.
repeated .google.cloud.baremetalsolution.v2.Network networks = 9;
Parameter
Returns
public int getNetworksCount()
List of networks associated with this server.
repeated .google.cloud.baremetalsolution.v2.Network networks = 9;
Returns
public List<Network> getNetworksList()
List of networks associated with this server.
repeated .google.cloud.baremetalsolution.v2.Network networks = 9;
Returns
public NetworkOrBuilder getNetworksOrBuilder(int index)
List of networks associated with this server.
repeated .google.cloud.baremetalsolution.v2.Network networks = 9;
Parameter
Returns
public List<? extends NetworkOrBuilder> getNetworksOrBuilderList()
List of networks associated with this server.
repeated .google.cloud.baremetalsolution.v2.Network networks = 9;
Returns
Type | Description |
List<? extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder> | |
public Parser<Instance> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public Instance.State getState()
The state of the server.
.google.cloud.baremetalsolution.v2.Instance.State state = 5;
Returns
public int getStateValue()
The state of the server.
.google.cloud.baremetalsolution.v2.Instance.State state = 5;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
Output only. Update a time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update a time stamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.
|
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Instance.Builder newBuilderForType()
Returns
protected Instance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Instance.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions