public final class Reservation extends com.google.protobuf.GeneratedMessageV3 implements ReservationOrBuilder
Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.Protobuf type
google.cloud.compute.v1.Reservation| Modifier and Type | Class and Description |
|---|---|
static class |
Reservation.Builder
Represents a reservation resource.
|
static class |
Reservation.DeploymentType
Specifies the deployment strategy for this reservation.
|
static class |
Reservation.Status
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATE_RESERVATION_FIELD_NUMBER |
static int |
COMMITMENT_FIELD_NUMBER |
static int |
CREATION_TIMESTAMP_FIELD_NUMBER |
static int |
DELETE_AFTER_DURATION_FIELD_NUMBER |
static int |
DELETE_AT_TIME_FIELD_NUMBER |
static int |
DEPLOYMENT_TYPE_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ENABLE_EMERGENT_MAINTENANCE_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
LINKED_COMMITMENTS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESERVATION_SHARING_POLICY_FIELD_NUMBER |
static int |
RESOURCE_POLICIES_FIELD_NUMBER |
static int |
RESOURCE_STATUS_FIELD_NUMBER |
static int |
SATISFIES_PZS_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
SHARE_SETTINGS_FIELD_NUMBER |
static int |
SPECIFIC_RESERVATION_FIELD_NUMBER |
static int |
SPECIFIC_RESERVATION_REQUIRED_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
ZONE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsResourcePolicies(String key)
Resource policies to be added to this reservation.
|
boolean |
equals(Object obj) |
AllocationAggregateReservation |
getAggregateReservation()
Reservation for aggregated resources, providing shape flexibility.
|
AllocationAggregateReservationOrBuilder |
getAggregateReservationOrBuilder()
Reservation for aggregated resources, providing shape flexibility.
|
String |
getCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
com.google.protobuf.ByteString |
getCommitmentBytes()
[Output Only] Full or partial URL to a parent commitment.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
static Reservation |
getDefaultInstance() |
Reservation |
getDefaultInstanceForType() |
Duration |
getDeleteAfterDuration()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
|
DurationOrBuilder |
getDeleteAfterDurationOrBuilder()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
|
String |
getDeleteAtTime()
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
|
com.google.protobuf.ByteString |
getDeleteAtTimeBytes()
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
|
String |
getDeploymentType()
Specifies the deployment strategy for this reservation.
|
com.google.protobuf.ByteString |
getDeploymentTypeBytes()
Specifies the deployment strategy for this reservation.
|
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEnableEmergentMaintenance()
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
String |
getLinkedCommitments(int index)
[Output Only] Full or partial URL to parent commitments.
|
com.google.protobuf.ByteString |
getLinkedCommitmentsBytes(int index)
[Output Only] Full or partial URL to parent commitments.
|
int |
getLinkedCommitmentsCount()
[Output Only] Full or partial URL to parent commitments.
|
com.google.protobuf.ProtocolStringList |
getLinkedCommitmentsList()
[Output Only] Full or partial URL to parent commitments.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the resource, provided by the client when initially creating the resource.
|
com.google.protobuf.Parser<Reservation> |
getParserForType() |
AllocationReservationSharingPolicy |
getReservationSharingPolicy()
Specify the reservation sharing policy.
|
AllocationReservationSharingPolicyOrBuilder |
getReservationSharingPolicyOrBuilder()
Specify the reservation sharing policy.
|
Map<String,String> |
getResourcePolicies()
Deprecated.
|
int |
getResourcePoliciesCount()
Resource policies to be added to this reservation.
|
Map<String,String> |
getResourcePoliciesMap()
Resource policies to be added to this reservation.
|
String |
getResourcePoliciesOrDefault(String key,
String defaultValue)
Resource policies to be added to this reservation.
|
String |
getResourcePoliciesOrThrow(String key)
Resource policies to be added to this reservation.
|
AllocationResourceStatus |
getResourceStatus()
[Output Only] Status information for Reservation resource.
|
AllocationResourceStatusOrBuilder |
getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
|
boolean |
getSatisfiesPzs()
[Output Only] Reserved for future use.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
|
int |
getSerializedSize() |
ShareSettings |
getShareSettings()
Specify share-settings to create a shared reservation.
|
ShareSettingsOrBuilder |
getShareSettingsOrBuilder()
Specify share-settings to create a shared reservation.
|
AllocationSpecificSKUReservation |
getSpecificReservation()
Reservation for instances with specific machine shapes.
|
AllocationSpecificSKUReservationOrBuilder |
getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
|
boolean |
getSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
String |
getStatus()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress.
|
String |
getZone()
Zone in which the reservation resides.
|
com.google.protobuf.ByteString |
getZoneBytes()
Zone in which the reservation resides.
|
boolean |
hasAggregateReservation()
Reservation for aggregated resources, providing shape flexibility.
|
boolean |
hasCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDeleteAfterDuration()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
|
boolean |
hasDeleteAtTime()
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
|
boolean |
hasDeploymentType()
Specifies the deployment strategy for this reservation.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasEnableEmergentMaintenance()
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
|
int |
hashCode() |
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasName()
The name of the resource, provided by the client when initially creating the resource.
|
boolean |
hasReservationSharingPolicy()
Specify the reservation sharing policy.
|
boolean |
hasResourceStatus()
[Output Only] Status information for Reservation resource.
|
boolean |
hasSatisfiesPzs()
[Output Only] Reserved for future use.
|
boolean |
hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
boolean |
hasShareSettings()
Specify share-settings to create a shared reservation.
|
boolean |
hasSpecificReservation()
Reservation for instances with specific machine shapes.
|
boolean |
hasSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.
|
boolean |
hasStatus()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress.
|
boolean |
hasZone()
Zone in which the reservation resides.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Reservation.Builder |
newBuilder() |
static Reservation.Builder |
newBuilder(Reservation prototype) |
Reservation.Builder |
newBuilderForType() |
protected Reservation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Reservation |
parseDelimitedFrom(InputStream input) |
static Reservation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reservation |
parseFrom(byte[] data) |
static Reservation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reservation |
parseFrom(ByteBuffer data) |
static Reservation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reservation |
parseFrom(com.google.protobuf.ByteString data) |
static Reservation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reservation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Reservation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reservation |
parseFrom(InputStream input) |
static Reservation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Reservation> |
parser() |
Reservation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AGGREGATE_RESERVATION_FIELD_NUMBER
public static final int COMMITMENT_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
public static final int DELETE_AFTER_DURATION_FIELD_NUMBER
public static final int DELETE_AT_TIME_FIELD_NUMBER
public static final int DEPLOYMENT_TYPE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ENABLE_EMERGENT_MAINTENANCE_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int LINKED_COMMITMENTS_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int RESERVATION_SHARING_POLICY_FIELD_NUMBER
public static final int RESOURCE_POLICIES_FIELD_NUMBER
public static final int RESOURCE_STATUS_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int SHARE_SETTINGS_FIELD_NUMBER
public static final int SPECIFIC_RESERVATION_FIELD_NUMBER
public static final int SPECIFIC_RESERVATION_REQUIRED_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasAggregateReservation()
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
hasAggregateReservation in interface ReservationOrBuilderpublic AllocationAggregateReservation getAggregateReservation()
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
getAggregateReservation in interface ReservationOrBuilderpublic AllocationAggregateReservationOrBuilder getAggregateReservationOrBuilder()
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
getAggregateReservationOrBuilder in interface ReservationOrBuilderpublic boolean hasCommitment()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;hasCommitment in interface ReservationOrBuilderpublic String getCommitment()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;getCommitment in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getCommitmentBytes()
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
optional string commitment = 482134805;getCommitmentBytes in interface ReservationOrBuilderpublic boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface ReservationOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface ReservationOrBuilderpublic boolean hasDeleteAfterDuration()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;hasDeleteAfterDuration in interface ReservationOrBuilderpublic Duration getDeleteAfterDuration()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;getDeleteAfterDuration in interface ReservationOrBuilderpublic DurationOrBuilder getDeleteAfterDurationOrBuilder()
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;getDeleteAfterDurationOrBuilder in interface ReservationOrBuilderpublic boolean hasDeleteAtTime()
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format.
optional string delete_at_time = 83294405;hasDeleteAtTime in interface ReservationOrBuilderpublic String getDeleteAtTime()
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format.
optional string delete_at_time = 83294405;getDeleteAtTime in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getDeleteAtTimeBytes()
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format.
optional string delete_at_time = 83294405;getDeleteAtTimeBytes in interface ReservationOrBuilderpublic boolean hasDeploymentType()
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;hasDeploymentType in interface ReservationOrBuilderpublic String getDeploymentType()
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;getDeploymentType in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getDeploymentTypeBytes()
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;getDeploymentTypeBytes in interface ReservationOrBuilderpublic boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface ReservationOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface ReservationOrBuilderpublic boolean hasEnableEmergentMaintenance()
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;hasEnableEmergentMaintenance in interface ReservationOrBuilderpublic boolean getEnableEmergentMaintenance()
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;getEnableEmergentMaintenance in interface ReservationOrBuilderpublic boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface ReservationOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface ReservationOrBuilderpublic boolean hasKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;hasKind in interface ReservationOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;getKind in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;getKindBytes in interface ReservationOrBuilderpublic com.google.protobuf.ProtocolStringList getLinkedCommitmentsList()
[Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
repeated string linked_commitments = 470957784;getLinkedCommitmentsList in interface ReservationOrBuilderpublic int getLinkedCommitmentsCount()
[Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
repeated string linked_commitments = 470957784;getLinkedCommitmentsCount in interface ReservationOrBuilderpublic String getLinkedCommitments(int index)
[Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
repeated string linked_commitments = 470957784;getLinkedCommitments in interface ReservationOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLinkedCommitmentsBytes(int index)
[Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments.
repeated string linked_commitments = 470957784;getLinkedCommitmentsBytes in interface ReservationOrBuilderindex - The index of the value to return.public boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface ReservationOrBuilderpublic String getName()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface ReservationOrBuilderpublic boolean hasReservationSharingPolicy()
Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services.
optional .google.cloud.compute.v1.AllocationReservationSharingPolicy reservation_sharing_policy = 205970120;
hasReservationSharingPolicy in interface ReservationOrBuilderpublic AllocationReservationSharingPolicy getReservationSharingPolicy()
Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services.
optional .google.cloud.compute.v1.AllocationReservationSharingPolicy reservation_sharing_policy = 205970120;
getReservationSharingPolicy in interface ReservationOrBuilderpublic AllocationReservationSharingPolicyOrBuilder getReservationSharingPolicyOrBuilder()
Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Google Cloud managed services.
optional .google.cloud.compute.v1.AllocationReservationSharingPolicy reservation_sharing_policy = 205970120;
getReservationSharingPolicyOrBuilder in interface ReservationOrBuilderpublic int getResourcePoliciesCount()
ReservationOrBuilderResource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;getResourcePoliciesCount in interface ReservationOrBuilderpublic boolean containsResourcePolicies(String key)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;containsResourcePolicies in interface ReservationOrBuilder@Deprecated public Map<String,String> getResourcePolicies()
getResourcePoliciesMap() instead.getResourcePolicies in interface ReservationOrBuilderpublic Map<String,String> getResourcePoliciesMap()
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;getResourcePoliciesMap in interface ReservationOrBuilderpublic String getResourcePoliciesOrDefault(String key, String defaultValue)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;getResourcePoliciesOrDefault in interface ReservationOrBuilderpublic String getResourcePoliciesOrThrow(String key)
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
map<string, string> resource_policies = 22220385;getResourcePoliciesOrThrow in interface ReservationOrBuilderpublic boolean hasResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
hasResourceStatus in interface ReservationOrBuilderpublic AllocationResourceStatus getResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
getResourceStatus in interface ReservationOrBuilderpublic AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
getResourceStatusOrBuilder in interface ReservationOrBuilderpublic boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;hasSatisfiesPzs in interface ReservationOrBuilderpublic boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;getSatisfiesPzs in interface ReservationOrBuilderpublic boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;hasSelfLink in interface ReservationOrBuilderpublic String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLink in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;getSelfLinkBytes in interface ReservationOrBuilderpublic boolean hasShareSettings()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;hasShareSettings in interface ReservationOrBuilderpublic ShareSettings getShareSettings()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;getShareSettings in interface ReservationOrBuilderpublic ShareSettingsOrBuilder getShareSettingsOrBuilder()
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;getShareSettingsOrBuilder in interface ReservationOrBuilderpublic boolean hasSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
hasSpecificReservation in interface ReservationOrBuilderpublic AllocationSpecificSKUReservation getSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
getSpecificReservation in interface ReservationOrBuilderpublic AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
getSpecificReservationOrBuilder in interface ReservationOrBuilderpublic boolean hasSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;hasSpecificReservationRequired in interface ReservationOrBuilderpublic boolean getSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
optional bool specific_reservation_required = 226550687;getSpecificReservationRequired in interface ReservationOrBuilderpublic boolean hasStatus()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface ReservationOrBuilderpublic String getStatus()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the reservation. - CREATING: Reservation resources are being allocated. - READY: Reservation resources have been allocated, and the reservation is ready for use. - DELETING: Reservation deletion is in progress. - UPDATING: Reservation update is in progress. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface ReservationOrBuilderpublic boolean hasZone()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;hasZone in interface ReservationOrBuilderpublic String getZone()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;getZone in interface ReservationOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;getZoneBytes in interface ReservationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Reservation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reservation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Reservation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Reservation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Reservation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Reservation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Reservation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Reservation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Reservation.Builder newBuilder()
public static Reservation.Builder newBuilder(Reservation prototype)
public Reservation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Reservation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Reservation getDefaultInstance()
public static com.google.protobuf.Parser<Reservation> parser()
public com.google.protobuf.Parser<Reservation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Reservation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.