Package com.google.cloud.compute.v1
Class Reservation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
com.google.cloud.compute.v1.Reservation.Builder
- All Implemented Interfaces:
ReservationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Reservation
public static final class Reservation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllLinkedCommitments(Iterable<String> values) Output only.addLinkedCommitments(String value) Output only.addLinkedCommitmentsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Advanced control for cluster management, applicable only to DENSE deployment type reservations.Reservation for aggregated resources, providing shape flexibility.Output only.Check the ConfidentialComputeType enum for the list of possible values.Output only.Duration time relative to reservation creation when Compute Engine will automatically delete this resource.Absolute time in future when the reservation will be auto-deleted by Compute Engine.Specifies the deployment strategy for this reservation.An optional description of this resource.Indicates the early access maintenance for the reservation.Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.clearId()Output only.Output only.Output only.The name of the resource, provided by the client when initially creating the resource.Input only.Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).Specify the reservation sharing policy.Output only.Output only.The type of maintenance for the reservation.Output only.Specify share-settings to create a shared reservation.Reservation for instances with specific machine shapes.Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.Output only.Zone in which the reservation resides.booleanResource policies to be added to this reservation.Advanced control for cluster management, applicable only to DENSE deployment type reservations.Advanced control for cluster management, applicable only to DENSE deployment type reservations.Advanced control for cluster management, applicable only to DENSE deployment type reservations.Reservation for aggregated resources, providing shape flexibility.Reservation for aggregated resources, providing shape flexibility.Reservation for aggregated resources, providing shape flexibility.Output only.com.google.protobuf.ByteStringOutput only.Check the ConfidentialComputeType enum for the list of possible values.com.google.protobuf.ByteStringCheck the ConfidentialComputeType enum for the list of possible values.Output only.com.google.protobuf.ByteStringOutput only.Duration time relative to reservation creation when Compute Engine will automatically delete this resource.Duration time relative to reservation creation when Compute Engine will automatically delete this resource.Duration time relative to reservation creation when Compute Engine will automatically delete this resource.Absolute time in future when the reservation will be auto-deleted by Compute Engine.com.google.protobuf.ByteStringAbsolute time in future when the reservation will be auto-deleted by Compute Engine.Specifies the deployment strategy for this reservation.com.google.protobuf.ByteStringSpecifies the deployment strategy for this reservation.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIndicates the early access maintenance for the reservation.com.google.protobuf.ByteStringIndicates the early access maintenance for the reservation.booleanIndicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.getLinkedCommitments(int index) Output only.com.google.protobuf.ByteStringgetLinkedCommitmentsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Deprecated.getName()The name of the resource, provided by the client when initially creating the resource.com.google.protobuf.ByteStringThe name of the resource, provided by the client when initially creating the resource.Input only.Input only.Input only.Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).com.google.protobuf.ByteStringProtection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).Specify the reservation sharing policy.Specify the reservation sharing policy.Specify the reservation sharing policy.Deprecated.intResource policies to be added to this reservation.Resource policies to be added to this reservation.getResourcePoliciesOrDefault(String key, String defaultValue) Resource policies to be added to this reservation.Resource policies to be added to this reservation.Output only.Output only.Output only.booleanOutput only.The type of maintenance for the reservation.com.google.protobuf.ByteStringThe type of maintenance for the reservation.Output only.com.google.protobuf.ByteStringOutput only.Specify share-settings to create a shared reservation.Specify share-settings to create a shared reservation.Specify share-settings to create a shared reservation.Reservation for instances with specific machine shapes.Reservation for instances with specific machine shapes.Reservation for instances with specific machine shapes.booleanIndicates whether the reservation can be consumed by VMs with affinity for "any" reservation.Output only.com.google.protobuf.ByteStringOutput only.getZone()Zone in which the reservation resides.com.google.protobuf.ByteStringZone in which the reservation resides.booleanAdvanced control for cluster management, applicable only to DENSE deployment type reservations.booleanReservation for aggregated resources, providing shape flexibility.booleanOutput only.booleanCheck the ConfidentialComputeType enum for the list of possible values.booleanOutput only.booleanDuration time relative to reservation creation when Compute Engine will automatically delete this resource.booleanAbsolute time in future when the reservation will be auto-deleted by Compute Engine.booleanSpecifies the deployment strategy for this reservation.booleanAn optional description of this resource.booleanIndicates the early access maintenance for the reservation.booleanIndicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.booleanhasId()Output only.booleanhasKind()Output only.booleanhasName()The name of the resource, provided by the client when initially creating the resource.booleanInput only.booleanProtection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).booleanSpecify the reservation sharing policy.booleanOutput only.booleanOutput only.booleanThe type of maintenance for the reservation.booleanOutput only.booleanSpecify share-settings to create a shared reservation.booleanReservation for instances with specific machine shapes.booleanIndicates whether the reservation can be consumed by VMs with affinity for "any" reservation.booleanOutput only.booleanhasZone()Zone in which the reservation resides.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanAdvanced control for cluster management, applicable only to DENSE deployment type reservations.Reservation for aggregated resources, providing shape flexibility.mergeDeleteAfterDuration(Duration value) Duration time relative to reservation creation when Compute Engine will automatically delete this resource.mergeFrom(Reservation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeParams(ReservationParams value) Input only.Specify the reservation sharing policy.Output only.mergeShareSettings(ShareSettings value) Specify share-settings to create a shared reservation.Reservation for instances with specific machine shapes.putAllResourcePolicies(Map<String, String> values) Resource policies to be added to this reservation.putResourcePolicies(String key, String value) Resource policies to be added to this reservation.Resource policies to be added to this reservation.Advanced control for cluster management, applicable only to DENSE deployment type reservations.setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl.Builder builderForValue) Advanced control for cluster management, applicable only to DENSE deployment type reservations.Reservation for aggregated resources, providing shape flexibility.setAggregateReservation(AllocationAggregateReservation.Builder builderForValue) Reservation for aggregated resources, providing shape flexibility.setCommitment(String value) Output only.setCommitmentBytes(com.google.protobuf.ByteString value) Output only.setConfidentialComputeType(String value) Check the ConfidentialComputeType enum for the list of possible values.setConfidentialComputeTypeBytes(com.google.protobuf.ByteString value) Check the ConfidentialComputeType enum for the list of possible values.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDeleteAfterDuration(Duration value) Duration time relative to reservation creation when Compute Engine will automatically delete this resource.setDeleteAfterDuration(Duration.Builder builderForValue) Duration time relative to reservation creation when Compute Engine will automatically delete this resource.setDeleteAtTime(String value) Absolute time in future when the reservation will be auto-deleted by Compute Engine.setDeleteAtTimeBytes(com.google.protobuf.ByteString value) Absolute time in future when the reservation will be auto-deleted by Compute Engine.setDeploymentType(String value) Specifies the deployment strategy for this reservation.setDeploymentTypeBytes(com.google.protobuf.ByteString value) Specifies the deployment strategy for this reservation.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setEarlyAccessMaintenance(String value) Indicates the early access maintenance for the reservation.setEarlyAccessMaintenanceBytes(com.google.protobuf.ByteString value) Indicates the early access maintenance for the reservation.setEnableEmergentMaintenance(boolean value) Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLinkedCommitments(int index, String value) Output only.The name of the resource, provided by the client when initially creating the resource.setNameBytes(com.google.protobuf.ByteString value) The name of the resource, provided by the client when initially creating the resource.setParams(ReservationParams value) Input only.setParams(ReservationParams.Builder builderForValue) Input only.setProtectionTier(String value) Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).setProtectionTierBytes(com.google.protobuf.ByteString value) Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures).Specify the reservation sharing policy.setReservationSharingPolicy(AllocationReservationSharingPolicy.Builder builderForValue) Specify the reservation sharing policy.Output only.setResourceStatus(AllocationResourceStatus.Builder builderForValue) Output only.setSatisfiesPzs(boolean value) Output only.setSchedulingType(String value) The type of maintenance for the reservation.setSchedulingTypeBytes(com.google.protobuf.ByteString value) The type of maintenance for the reservation.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setShareSettings(ShareSettings value) Specify share-settings to create a shared reservation.setShareSettings(ShareSettings.Builder builderForValue) Specify share-settings to create a shared reservation.Reservation for instances with specific machine shapes.setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue) Reservation for instances with specific machine shapes.setSpecificReservationRequired(boolean value) Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation.Output only.setStatusBytes(com.google.protobuf.ByteString value) Output only.Zone in which the reservation resides.setZoneBytes(com.google.protobuf.ByteString value) Zone in which the reservation resides.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Reservation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
-
mergeFrom
public Reservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Reservation.Builder>- Throws:
IOException
-
hasAdvancedDeploymentControl
public boolean hasAdvancedDeploymentControl()Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144;- Specified by:
hasAdvancedDeploymentControlin interfaceReservationOrBuilder- Returns:
- Whether the advancedDeploymentControl field is set.
-
getAdvancedDeploymentControl
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144;- Specified by:
getAdvancedDeploymentControlin interfaceReservationOrBuilder- Returns:
- The advancedDeploymentControl.
-
setAdvancedDeploymentControl
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; -
setAdvancedDeploymentControl
public Reservation.Builder setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl.Builder builderForValue) Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; -
mergeAdvancedDeploymentControl
public Reservation.Builder mergeAdvancedDeploymentControl(ReservationAdvancedDeploymentControl value) Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; -
clearAdvancedDeploymentControl
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; -
getAdvancedDeploymentControlBuilder
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144; -
getAdvancedDeploymentControlOrBuilder
Advanced control for cluster management, applicable only to DENSE deployment type reservations.
optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144;- Specified by:
getAdvancedDeploymentControlOrBuilderin interfaceReservationOrBuilder
-
hasAggregateReservation
public boolean hasAggregateReservation()Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;- Specified by:
hasAggregateReservationin interfaceReservationOrBuilder- Returns:
- Whether the aggregateReservation field is set.
-
getAggregateReservation
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;- Specified by:
getAggregateReservationin interfaceReservationOrBuilder- Returns:
- The aggregateReservation.
-
setAggregateReservation
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948; -
setAggregateReservation
public Reservation.Builder setAggregateReservation(AllocationAggregateReservation.Builder builderForValue) Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948; -
mergeAggregateReservation
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948; -
clearAggregateReservation
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948; -
getAggregateReservationBuilder
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948; -
getAggregateReservationOrBuilder
Reservation for aggregated resources, providing shape flexibility.
optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;- Specified by:
getAggregateReservationOrBuilderin interfaceReservationOrBuilder
-
hasCommitment
public boolean hasCommitment()Output only. [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;- Specified by:
hasCommitmentin interfaceReservationOrBuilder- Returns:
- Whether the commitment field is set.
-
getCommitment
Output only. [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;- Specified by:
getCommitmentin interfaceReservationOrBuilder- Returns:
- The commitment.
-
getCommitmentBytes
public com.google.protobuf.ByteString getCommitmentBytes()Output only. [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;- Specified by:
getCommitmentBytesin interfaceReservationOrBuilder- Returns:
- The bytes for commitment.
-
setCommitment
Output only. [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;- Parameters:
value- The commitment to set.- Returns:
- This builder for chaining.
-
clearCommitment
Output only. [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:
- This builder for chaining.
-
setCommitmentBytes
Output only. [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;- Parameters:
value- The bytes for commitment to set.- Returns:
- This builder for chaining.
-
hasConfidentialComputeType
public boolean hasConfidentialComputeType()Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Specified by:
hasConfidentialComputeTypein interfaceReservationOrBuilder- Returns:
- Whether the confidentialComputeType field is set.
-
getConfidentialComputeType
Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Specified by:
getConfidentialComputeTypein interfaceReservationOrBuilder- Returns:
- The confidentialComputeType.
-
getConfidentialComputeTypeBytes
public com.google.protobuf.ByteString getConfidentialComputeTypeBytes()Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Specified by:
getConfidentialComputeTypeBytesin interfaceReservationOrBuilder- Returns:
- The bytes for confidentialComputeType.
-
setConfidentialComputeType
Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Parameters:
value- The confidentialComputeType to set.- Returns:
- This builder for chaining.
-
clearConfidentialComputeType
Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Returns:
- This builder for chaining.
-
setConfidentialComputeTypeBytes
Check the ConfidentialComputeType enum for the list of possible values.
optional string confidential_compute_type = 386447257;- Parameters:
value- The bytes for confidentialComputeType to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceReservationOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceReservationOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceReservationOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDeleteAfterDuration
public 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;- Specified by:
hasDeleteAfterDurationin interfaceReservationOrBuilder- Returns:
- Whether the deleteAfterDuration field is set.
-
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;- Specified by:
getDeleteAfterDurationin interfaceReservationOrBuilder- Returns:
- The deleteAfterDuration.
-
setDeleteAfterDuration
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; -
setDeleteAfterDuration
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; -
mergeDeleteAfterDuration
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; -
clearDeleteAfterDuration
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099; -
getDeleteAfterDurationBuilder
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
Duration time relative to reservation creation when Compute Engine will automatically delete this resource.
optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;- Specified by:
getDeleteAfterDurationOrBuilderin interfaceReservationOrBuilder
-
hasDeleteAtTime
public boolean hasDeleteAtTime()Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Specified by:
hasDeleteAtTimein interfaceReservationOrBuilder- Returns:
- Whether the deleteAtTime field is set.
-
getDeleteAtTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Specified by:
getDeleteAtTimein interfaceReservationOrBuilder- Returns:
- The deleteAtTime.
-
getDeleteAtTimeBytes
public com.google.protobuf.ByteString getDeleteAtTimeBytes()Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Specified by:
getDeleteAtTimeBytesin interfaceReservationOrBuilder- Returns:
- The bytes for deleteAtTime.
-
setDeleteAtTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Parameters:
value- The deleteAtTime to set.- Returns:
- This builder for chaining.
-
clearDeleteAtTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Returns:
- This builder for chaining.
-
setDeleteAtTimeBytes
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented inRFC3339 text format.
optional string delete_at_time = 83294405;- Parameters:
value- The bytes for deleteAtTime to set.- Returns:
- This builder for chaining.
-
hasDeploymentType
public boolean hasDeploymentType()Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;- Specified by:
hasDeploymentTypein interfaceReservationOrBuilder- Returns:
- Whether the deploymentType field is set.
-
getDeploymentType
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;- Specified by:
getDeploymentTypein interfaceReservationOrBuilder- Returns:
- The deploymentType.
-
getDeploymentTypeBytes
public 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;- Specified by:
getDeploymentTypeBytesin interfaceReservationOrBuilder- Returns:
- The bytes for deploymentType.
-
setDeploymentType
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;- Parameters:
value- The deploymentType to set.- Returns:
- This builder for chaining.
-
clearDeploymentType
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;- Returns:
- This builder for chaining.
-
setDeploymentTypeBytes
Specifies the deployment strategy for this reservation. Check the DeploymentType enum for the list of possible values.
optional string deployment_type = 396722292;- Parameters:
value- The bytes for deploymentType to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceReservationOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceReservationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceReservationOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasEarlyAccessMaintenance
public boolean hasEarlyAccessMaintenance()Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Specified by:
hasEarlyAccessMaintenancein interfaceReservationOrBuilder- Returns:
- Whether the earlyAccessMaintenance field is set.
-
getEarlyAccessMaintenance
Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Specified by:
getEarlyAccessMaintenancein interfaceReservationOrBuilder- Returns:
- The earlyAccessMaintenance.
-
getEarlyAccessMaintenanceBytes
public com.google.protobuf.ByteString getEarlyAccessMaintenanceBytes()Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Specified by:
getEarlyAccessMaintenanceBytesin interfaceReservationOrBuilder- Returns:
- The bytes for earlyAccessMaintenance.
-
setEarlyAccessMaintenance
Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Parameters:
value- The earlyAccessMaintenance to set.- Returns:
- This builder for chaining.
-
clearEarlyAccessMaintenance
Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Returns:
- This builder for chaining.
-
setEarlyAccessMaintenanceBytes
Indicates the early access maintenance for the reservation. If this field is absent or set to NO_EARLY_ACCESS, the reservation is not enrolled in early access maintenance and the standard notice applies. Check the EarlyAccessMaintenance enum for the list of possible values.
optional string early_access_maintenance = 343918356;- Parameters:
value- The bytes for earlyAccessMaintenance to set.- Returns:
- This builder for chaining.
-
hasEnableEmergentMaintenance
public boolean hasEnableEmergentMaintenance()Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;- Specified by:
hasEnableEmergentMaintenancein interfaceReservationOrBuilder- Returns:
- Whether the enableEmergentMaintenance field is set.
-
getEnableEmergentMaintenance
public boolean getEnableEmergentMaintenance()Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;- Specified by:
getEnableEmergentMaintenancein interfaceReservationOrBuilder- Returns:
- The enableEmergentMaintenance.
-
setEnableEmergentMaintenance
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;- Parameters:
value- The enableEmergentMaintenance to set.- Returns:
- This builder for chaining.
-
clearEnableEmergentMaintenance
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors.
optional bool enable_emergent_maintenance = 353759497;- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceReservationOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceReservationOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Specified by:
hasKindin interfaceReservationOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Specified by:
getKindin interfaceReservationOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceReservationOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
getLinkedCommitmentsList
public com.google.protobuf.ProtocolStringList getLinkedCommitmentsList()Output only. [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;- Specified by:
getLinkedCommitmentsListin interfaceReservationOrBuilder- Returns:
- A list containing the linkedCommitments.
-
getLinkedCommitmentsCount
public int getLinkedCommitmentsCount()Output only. [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;- Specified by:
getLinkedCommitmentsCountin interfaceReservationOrBuilder- Returns:
- The count of linkedCommitments.
-
getLinkedCommitments
Output only. [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;- Specified by:
getLinkedCommitmentsin interfaceReservationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The linkedCommitments at the given index.
-
getLinkedCommitmentsBytes
public com.google.protobuf.ByteString getLinkedCommitmentsBytes(int index) Output only. [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;- Specified by:
getLinkedCommitmentsBytesin interfaceReservationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the linkedCommitments at the given index.
-
setLinkedCommitments
Output only. [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;- Parameters:
index- The index to set the value at.value- The linkedCommitments to set.- Returns:
- This builder for chaining.
-
addLinkedCommitments
Output only. [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;- Parameters:
value- The linkedCommitments to add.- Returns:
- This builder for chaining.
-
addAllLinkedCommitments
Output only. [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;- Parameters:
values- The linkedCommitments to add.- Returns:
- This builder for chaining.
-
clearLinkedCommitments
Output only. [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;- Returns:
- This builder for chaining.
-
addLinkedCommitmentsBytes
Output only. [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;- Parameters:
value- The bytes of the linkedCommitments to add.- Returns:
- This builder for chaining.
-
hasName
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 withRFC1035. 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;- Specified by:
hasNamein interfaceReservationOrBuilder- Returns:
- Whether the name field is set.
-
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 withRFC1035. 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;- Specified by:
getNamein interfaceReservationOrBuilder- Returns:
- The name.
-
getNameBytes
public 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 withRFC1035. 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;- Specified by:
getNameBytesin interfaceReservationOrBuilder- Returns:
- The bytes for name.
-
setName
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 withRFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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 withRFC1035. 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:
- This builder for chaining.
-
setNameBytes
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 withRFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasParams
public boolean hasParams()Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862;- Specified by:
hasParamsin interfaceReservationOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862;- Specified by:
getParamsin interfaceReservationOrBuilder- Returns:
- The params.
-
setParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862; -
setParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862; -
mergeParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862; -
clearParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862; -
getParamsBuilder
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862; -
getParamsOrBuilder
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.ReservationParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceReservationOrBuilder
-
hasProtectionTier
public boolean hasProtectionTier()Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Specified by:
hasProtectionTierin interfaceReservationOrBuilder- Returns:
- Whether the protectionTier field is set.
-
getProtectionTier
Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Specified by:
getProtectionTierin interfaceReservationOrBuilder- Returns:
- The protectionTier.
-
getProtectionTierBytes
public com.google.protobuf.ByteString getProtectionTierBytes()Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Specified by:
getProtectionTierBytesin interfaceReservationOrBuilder- Returns:
- The bytes for protectionTier.
-
setProtectionTier
Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Parameters:
value- The protectionTier to set.- Returns:
- This builder for chaining.
-
clearProtectionTier
Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Returns:
- This builder for chaining.
-
setProtectionTierBytes
Protection tier for the workload which specifies the workload expectations in the event of infrastructure failures at data center (e.g. power and/or cooling failures). Check the ProtectionTier enum for the list of possible values.
optional string protection_tier = 503959432;- Parameters:
value- The bytes for protectionTier to set.- Returns:
- This builder for chaining.
-
hasReservationSharingPolicy
public 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;- Specified by:
hasReservationSharingPolicyin interfaceReservationOrBuilder- Returns:
- Whether the reservationSharingPolicy field is set.
-
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;- Specified by:
getReservationSharingPolicyin interfaceReservationOrBuilder- Returns:
- The reservationSharingPolicy.
-
setReservationSharingPolicy
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; -
setReservationSharingPolicy
public Reservation.Builder setReservationSharingPolicy(AllocationReservationSharingPolicy.Builder builderForValue) 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; -
mergeReservationSharingPolicy
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; -
clearReservationSharingPolicy
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; -
getReservationSharingPolicyBuilder
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
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;- Specified by:
getReservationSharingPolicyOrBuilderin interfaceReservationOrBuilder
-
getResourcePoliciesCount
public int getResourcePoliciesCount()Description copied from interface: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;- Specified by:
getResourcePoliciesCountin interfaceReservationOrBuilder
-
containsResourcePolicies
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;- Specified by:
containsResourcePoliciesin interfaceReservationOrBuilder
-
getResourcePolicies
Deprecated.UsegetResourcePoliciesMap()instead.- Specified by:
getResourcePoliciesin interfaceReservationOrBuilder
-
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;- Specified by:
getResourcePoliciesMapin interfaceReservationOrBuilder
-
getResourcePoliciesOrDefault
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;- Specified by:
getResourcePoliciesOrDefaultin interfaceReservationOrBuilder
-
getResourcePoliciesOrThrow
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;- Specified by:
getResourcePoliciesOrThrowin interfaceReservationOrBuilder
-
clearResourcePolicies
-
removeResourcePolicies
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; -
getMutableResourcePolicies
Deprecated.Use alternate mutation accessors instead. -
putResourcePolicies
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; -
putAllResourcePolicies
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
public boolean hasResourceStatus()Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;- Specified by:
hasResourceStatusin interfaceReservationOrBuilder- Returns:
- Whether the resourceStatus field is set.
-
getResourceStatus
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusin interfaceReservationOrBuilder- Returns:
- The resourceStatus.
-
setResourceStatus
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315; -
setResourceStatus
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315; -
mergeResourceStatus
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315; -
clearResourceStatus
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315; -
getResourceStatusBuilder
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315; -
getResourceStatusOrBuilder
Output only. [Output Only] Status information for Reservation resource.
optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusOrBuilderin interfaceReservationOrBuilder
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
hasSatisfiesPzsin interfaceReservationOrBuilder- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
getSatisfiesPzsin interfaceReservationOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- This builder for chaining.
-
hasSchedulingType
public boolean hasSchedulingType()The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Specified by:
hasSchedulingTypein interfaceReservationOrBuilder- Returns:
- Whether the schedulingType field is set.
-
getSchedulingType
The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Specified by:
getSchedulingTypein interfaceReservationOrBuilder- Returns:
- The schedulingType.
-
getSchedulingTypeBytes
public com.google.protobuf.ByteString getSchedulingTypeBytes()The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Specified by:
getSchedulingTypeBytesin interfaceReservationOrBuilder- Returns:
- The bytes for schedulingType.
-
setSchedulingType
The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Parameters:
value- The schedulingType to set.- Returns:
- This builder for chaining.
-
clearSchedulingType
The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Returns:
- This builder for chaining.
-
setSchedulingTypeBytes
The type of maintenance for the reservation. Check the SchedulingType enum for the list of possible values.
optional string scheduling_type = 199835397;- Parameters:
value- The bytes for schedulingType to set.- Returns:
- This builder for chaining.
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceReservationOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceReservationOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceReservationOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] Server-defined fully-qualified URL for this resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSpecificReservation
public boolean hasSpecificReservation()Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;- Specified by:
hasSpecificReservationin interfaceReservationOrBuilder- Returns:
- Whether the specificReservation field is set.
-
getSpecificReservation
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;- Specified by:
getSpecificReservationin interfaceReservationOrBuilder- Returns:
- The specificReservation.
-
setSpecificReservation
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951; -
setSpecificReservation
public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation.Builder builderForValue) Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951; -
mergeSpecificReservation
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951; -
clearSpecificReservation
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951; -
getSpecificReservationBuilder
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951; -
getSpecificReservationOrBuilder
Reservation for instances with specific machine shapes.
optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;- Specified by:
getSpecificReservationOrBuilderin interfaceReservationOrBuilder
-
hasSpecificReservationRequired
public 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;- Specified by:
hasSpecificReservationRequiredin interfaceReservationOrBuilder- Returns:
- Whether the specificReservationRequired field is set.
-
getSpecificReservationRequired
public 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;- Specified by:
getSpecificReservationRequiredin interfaceReservationOrBuilder- Returns:
- The specificReservationRequired.
-
setSpecificReservationRequired
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;- Parameters:
value- The specificReservationRequired to set.- Returns:
- This builder for chaining.
-
clearSpecificReservationRequired
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:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Output only. [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;- Specified by:
hasStatusin interfaceReservationOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Output only. [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;- Specified by:
getStatusin interfaceReservationOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Output only. [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;- Specified by:
getStatusBytesin interfaceReservationOrBuilder- Returns:
- The bytes for status.
-
setStatus
Output only. [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;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. [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;- Returns:
- This builder for chaining.
-
setStatusBytes
Output only. [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;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasZone
public 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;- Specified by:
hasZonein interfaceReservationOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;- Specified by:
getZonein interfaceReservationOrBuilder- Returns:
- The zone.
-
getZoneBytes
public 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;- Specified by:
getZoneBytesin interfaceReservationOrBuilder- Returns:
- The bytes for zone.
-
setZone
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-