Class ReservationSlot (1.105.0)

public final class ReservationSlot extends GeneratedMessage implements ReservationSlotOrBuilder

Represents a reservation slot resource.

Protobuf type google.cloud.compute.v1.ReservationSlot

Static Fields

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PHYSICAL_TOPOLOGY_FIELD_NUMBER

public static final int PHYSICAL_TOPOLOGY_FIELD_NUMBER
Field Value
Type Description
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
Type Description
int
public static final int SELF_LINK_WITH_ID_FIELD_NUMBER
Field Value
Type Description
int

SHARE_SETTINGS_FIELD_NUMBER

public static final int SHARE_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReservationSlot getDefaultInstance()
Returns
Type Description
ReservationSlot

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ReservationSlot.Builder newBuilder()
Returns
Type Description
ReservationSlot.Builder

newBuilder(ReservationSlot prototype)

public static ReservationSlot.Builder newBuilder(ReservationSlot prototype)
Parameter
Name Description
prototype ReservationSlot
Returns
Type Description
ReservationSlot.Builder

parseDelimitedFrom(InputStream input)

public static ReservationSlot parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReservationSlot parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReservationSlot parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReservationSlot parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReservationSlot parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReservationSlot parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReservationSlot parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationSlot
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReservationSlot> parser()
Returns
Type Description
Parser<ReservationSlot>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreationTimestamp()

public String getCreationTimestamp()

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public ReservationSlot getDefaultInstanceForType()
Returns
Type Description
ReservationSlot

getId()

public long getId()

Output only. [Output Only] The unique identifier for this resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getKind()

public String getKind()

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

Output only. [Output Only] The name of the reservation slot.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. [Output Only] The name of the reservation slot.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ReservationSlot> getParserForType()
Returns
Type Description
Parser<ReservationSlot>
Overrides

getPhysicalTopology()

public ReservationSlotPhysicalTopology getPhysicalTopology()

Output only. [Output Only] The physical topology of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;

Returns
Type Description
ReservationSlotPhysicalTopology

The physicalTopology.

getPhysicalTopologyOrBuilder()

public ReservationSlotPhysicalTopologyOrBuilder getPhysicalTopologyOrBuilder()

Output only. [Output Only] The physical topology of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;

Returns
Type Description
ReservationSlotPhysicalTopologyOrBuilder
public String getSelfLink()

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

optional string self_link_with_id = 44520962;

Returns
Type Description
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

optional string self_link_with_id = 44520962;

Returns
Type Description
ByteString

The bytes for selfLinkWithId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getShareSettings()

public ShareSettings getShareSettings()

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
Type Description
ShareSettings

The shareSettings.

getShareSettingsOrBuilder()

public ShareSettingsOrBuilder getShareSettingsOrBuilder()

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
Type Description
ShareSettingsOrBuilder

getState()

public String getState()

Output only. [Output Only] The state of the reservation slot. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

Output only. [Output Only] The state of the reservation slot. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

getStatus()

public ReservationSlotStatus getStatus()

Output only. [Output Only] The status of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;

Returns
Type Description
ReservationSlotStatus

The status.

getStatusOrBuilder()

public ReservationSlotStatusOrBuilder getStatusOrBuilder()

Output only. [Output Only] The status of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;

Returns
Type Description
ReservationSlotStatusOrBuilder

getZone()

public String getZone()

Output only. [Output Only] The zone in which the reservation slot resides.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. [Output Only] The zone in which the reservation slot resides.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasId()

public boolean hasId()

Output only. [Output Only] The unique identifier for this resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

Output only. [Output Only] The name of the reservation slot.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPhysicalTopology()

public boolean hasPhysicalTopology()

Output only. [Output Only] The physical topology of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotPhysicalTopology physical_topology = 279778519;

Returns
Type Description
boolean

Whether the physicalTopology field is set.

public boolean hasSelfLink()

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

optional string self_link_with_id = 44520962;

Returns
Type Description
boolean

Whether the selfLinkWithId field is set.

hasShareSettings()

public boolean hasShareSettings()

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;

Returns
Type Description
boolean

Whether the shareSettings field is set.

hasState()

public boolean hasState()

Output only. [Output Only] The state of the reservation slot. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hasStatus()

public boolean hasStatus()

Output only. [Output Only] The status of the reservation slot.

optional .google.cloud.compute.v1.ReservationSlotStatus status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

hasZone()

public boolean hasZone()

Output only. [Output Only] The zone in which the reservation slot resides.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ReservationSlot.Builder newBuilderForType()
Returns
Type Description
ReservationSlot.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ReservationSlot.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReservationSlot.Builder
Overrides

toBuilder()

public ReservationSlot.Builder toBuilder()
Returns
Type Description
ReservationSlot.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException