Package com.google.cloud.compute.v1
Interface ReservationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Reservation,Reservation.Builder
public interface ReservationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsResourcePolicies(String key)Resource policies to be added to this reservation.StringgetCommitment()[Output Only] Full or partial URL to a parent commitment.com.google.protobuf.ByteStringgetCommitmentBytes()[Output Only] Full or partial URL to a parent commitment.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.longgetId()[Output Only] The unique identifier for the resource.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetName()The name of the resource, provided by the client when initially creating the resource.com.google.protobuf.ByteStringgetNameBytes()The name of the resource, provided by the client when initially creating the resource.Map<String,String>getResourcePolicies()Deprecated.intgetResourcePoliciesCount()Resource policies to be added to this reservation.Map<String,String>getResourcePoliciesMap()Resource policies to be added to this reservation.StringgetResourcePoliciesOrDefault(String key, String defaultValue)Resource policies to be added to this reservation.StringgetResourcePoliciesOrThrow(String key)Resource policies to be added to this reservation.AllocationResourceStatusgetResourceStatus()[Output Only] Status information for Reservation resource.AllocationResourceStatusOrBuildergetResourceStatusOrBuilder()[Output Only] Status information for Reservation resource.booleangetSatisfiesPzs()[Output Only] Reserved for future use.StringgetSelfLink()[Output Only] Server-defined fully-qualified URL for this resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined fully-qualified URL for this resource.ShareSettingsgetShareSettings()Specify share-settings to create a shared reservation.ShareSettingsOrBuildergetShareSettingsOrBuilder()Specify share-settings to create a shared reservation.AllocationSpecificSKUReservationgetSpecificReservation()Reservation for instances with specific machine shapes.AllocationSpecificSKUReservationOrBuildergetSpecificReservationOrBuilder()Reservation for instances with specific machine shapes.booleangetSpecificReservationRequired()Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.StringgetStatus()[Output Only] The status of the reservation.com.google.protobuf.ByteStringgetStatusBytes()[Output Only] The status of the reservation.StringgetZone()Zone in which the reservation resides.com.google.protobuf.ByteStringgetZoneBytes()Zone in which the reservation resides.booleanhasCommitment()[Output Only] Full or partial URL to a parent commitment.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDescription()An optional description of this resource.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()[Output Only] Type of the resource.booleanhasName()The name of the resource, provided by the client when initially creating the resource.booleanhasResourceStatus()[Output Only] Status information for Reservation resource.booleanhasSatisfiesPzs()[Output Only] Reserved for future use.booleanhasSelfLink()[Output Only] Server-defined fully-qualified URL for this resource.booleanhasShareSettings()Specify share-settings to create a shared reservation.booleanhasSpecificReservation()Reservation for instances with specific machine shapes.booleanhasSpecificReservationRequired()Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.booleanhasStatus()[Output Only] The status of the reservation.booleanhasZone()Zone in which the reservation resides.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasCommitment
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;- Returns:
- Whether the commitment field is set.
-
getCommitment
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;- Returns:
- The commitment.
-
getCommitmentBytes
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;- Returns:
- The bytes for commitment.
-
hasCreationTimestamp
boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The bytes for description.
-
hasId
boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- Whether the id field is set.
-
getId
long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- The id.
-
hasKind
boolean hasKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;- Returns:
- Whether the kind field is set.
-
getKind
String getKind()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#reservations for reservations.
optional string kind = 3292052;- Returns:
- The bytes for kind.
-
hasName
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;- Returns:
- Whether the name field is set.
-
getName
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;- Returns:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
getResourcePoliciesCount
int getResourcePoliciesCount()
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
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;
-
getResourcePolicies
@Deprecated Map<String,String> getResourcePolicies()
Deprecated.UsegetResourcePoliciesMap()instead.
-
getResourcePoliciesMap
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;
-
getResourcePoliciesOrDefault
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;
-
getResourcePoliciesOrThrow
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;
-
hasResourceStatus
boolean hasResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;- Returns:
- Whether the resourceStatus field is set.
-
getResourceStatus
AllocationResourceStatus getResourceStatus()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;- Returns:
- The resourceStatus.
-
getResourceStatusOrBuilder
AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
[Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
-
hasSatisfiesPzs
boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- The satisfiesPzs.
-
hasSelfLink
boolean hasSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Returns:
- The bytes for selfLink.
-
hasShareSettings
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;- Returns:
- Whether the shareSettings field is set.
-
getShareSettings
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;- Returns:
- The shareSettings.
-
getShareSettingsOrBuilder
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;
-
hasSpecificReservation
boolean hasSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;- Returns:
- Whether the specificReservation field is set.
-
getSpecificReservation
AllocationSpecificSKUReservation getSpecificReservation()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;- Returns:
- The specificReservation.
-
getSpecificReservationOrBuilder
AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
-
hasSpecificReservationRequired
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;- Returns:
- Whether the specificReservationRequired field is set.
-
getSpecificReservationRequired
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;- Returns:
- The specificReservationRequired.
-
hasStatus
boolean hasStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- Whether the status field is set.
-
getStatus
String getStatus()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- The status.
-
getStatusBytes
com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the reservation. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- The bytes for status.
-
hasZone
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;- Returns:
- Whether the zone field is set.
-
getZone
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;- Returns:
- The zone.
-
getZoneBytes
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;- Returns:
- The bytes for zone.
-
-