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 boolean
containsResourcePolicies(String key)
Resource policies to be added to this reservation.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.String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.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
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.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.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.com.google.protobuf.ByteString
getStatusBytes()
[Output Only] The status of the reservation.String
getZone()
Zone in which the reservation resides.com.google.protobuf.ByteString
getZoneBytes()
Zone in which the reservation resides.boolean
hasCommitment()
[Output Only] Full or partial URL to a parent commitment.boolean
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.boolean
hasDescription()
An optional description of this resource.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
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.boolean
hasZone()
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.
-
-