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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
    • clear

      public Reservation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Reservation.Builder>
    • getDefaultInstanceForType

      public Reservation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Reservation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Reservation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Reservation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Reservation.Builder>
    • mergeFrom

      public Reservation.Builder mergeFrom(Reservation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasAdvancedDeploymentControl in interface ReservationOrBuilder
      Returns:
      Whether the advancedDeploymentControl field is set.
    • getAdvancedDeploymentControl

      public ReservationAdvancedDeploymentControl 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:
      getAdvancedDeploymentControl in interface ReservationOrBuilder
      Returns:
      The advancedDeploymentControl.
    • setAdvancedDeploymentControl

      public Reservation.Builder setAdvancedDeploymentControl(ReservationAdvancedDeploymentControl value)
       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

      public Reservation.Builder clearAdvancedDeploymentControl()
       Advanced control for cluster management, applicable only to DENSE
       deployment type reservations.
       
      optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144;
    • getAdvancedDeploymentControlBuilder

      public ReservationAdvancedDeploymentControl.Builder getAdvancedDeploymentControlBuilder()
       Advanced control for cluster management, applicable only to DENSE
       deployment type reservations.
       
      optional .google.cloud.compute.v1.ReservationAdvancedDeploymentControl advanced_deployment_control = 410618144;
    • getAdvancedDeploymentControlOrBuilder

      public ReservationAdvancedDeploymentControlOrBuilder 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:
      getAdvancedDeploymentControlOrBuilder in interface ReservationOrBuilder
    • hasAggregateReservation

      public boolean hasAggregateReservation()
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
      Specified by:
      hasAggregateReservation in interface ReservationOrBuilder
      Returns:
      Whether the aggregateReservation field is set.
    • getAggregateReservation

      public AllocationAggregateReservation getAggregateReservation()
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
      Specified by:
      getAggregateReservation in interface ReservationOrBuilder
      Returns:
      The aggregateReservation.
    • setAggregateReservation

      public Reservation.Builder setAggregateReservation(AllocationAggregateReservation value)
       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

      public Reservation.Builder mergeAggregateReservation(AllocationAggregateReservation value)
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
    • clearAggregateReservation

      public Reservation.Builder clearAggregateReservation()
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
    • getAggregateReservationBuilder

      public AllocationAggregateReservation.Builder getAggregateReservationBuilder()
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
    • getAggregateReservationOrBuilder

      public AllocationAggregateReservationOrBuilder getAggregateReservationOrBuilder()
       Reservation for aggregated resources, providing shape flexibility.
       
      optional .google.cloud.compute.v1.AllocationAggregateReservation aggregate_reservation = 291567948;
      Specified by:
      getAggregateReservationOrBuilder in interface ReservationOrBuilder
    • 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:
      hasCommitment in interface ReservationOrBuilder
      Returns:
      Whether the commitment field is set.
    • getCommitment

      public String 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:
      getCommitment in interface ReservationOrBuilder
      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:
      getCommitmentBytes in interface ReservationOrBuilder
      Returns:
      The bytes for commitment.
    • setCommitment

      public Reservation.Builder setCommitment(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setCommitmentBytes(com.google.protobuf.ByteString value)
       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:
      hasConfidentialComputeType in interface ReservationOrBuilder
      Returns:
      Whether the confidentialComputeType field is set.
    • getConfidentialComputeType

      public String getConfidentialComputeType()
      
       Check the ConfidentialComputeType enum for the list of possible values.
       
      optional string confidential_compute_type = 386447257;
      Specified by:
      getConfidentialComputeType in interface ReservationOrBuilder
      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:
      getConfidentialComputeTypeBytes in interface ReservationOrBuilder
      Returns:
      The bytes for confidentialComputeType.
    • setConfidentialComputeType

      public Reservation.Builder setConfidentialComputeType(String value)
      
       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

      public Reservation.Builder clearConfidentialComputeType()
      
       Check the ConfidentialComputeType enum for the list of possible values.
       
      optional string confidential_compute_type = 386447257;
      Returns:
      This builder for chaining.
    • setConfidentialComputeTypeBytes

      public Reservation.Builder setConfidentialComputeTypeBytes(com.google.protobuf.ByteString value)
      
       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:
      hasCreationTimestamp in interface ReservationOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface ReservationOrBuilder
      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:
      getCreationTimestampBytes in interface ReservationOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public Reservation.Builder setCreationTimestamp(String value)
       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

      public Reservation.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public Reservation.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       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:
      hasDeleteAfterDuration in interface ReservationOrBuilder
      Returns:
      Whether the deleteAfterDuration field is set.
    • getDeleteAfterDuration

      public Duration getDeleteAfterDuration()
       Duration time relative to reservation creation when Compute Engine will
       automatically delete this resource.
       
      optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;
      Specified by:
      getDeleteAfterDuration in interface ReservationOrBuilder
      Returns:
      The deleteAfterDuration.
    • setDeleteAfterDuration

      public Reservation.Builder setDeleteAfterDuration(Duration value)
       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

      public Reservation.Builder setDeleteAfterDuration(Duration.Builder builderForValue)
       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

      public Reservation.Builder mergeDeleteAfterDuration(Duration value)
       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

      public Reservation.Builder 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

      public Duration.Builder 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

      public DurationOrBuilder getDeleteAfterDurationOrBuilder()
       Duration time relative to reservation creation when Compute Engine will
       automatically delete this resource.
       
      optional .google.cloud.compute.v1.Duration delete_after_duration = 323997099;
      Specified by:
      getDeleteAfterDurationOrBuilder in interface ReservationOrBuilder
    • 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:
      hasDeleteAtTime in interface ReservationOrBuilder
      Returns:
      Whether the deleteAtTime field is set.
    • getDeleteAtTime

      public String 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:
      getDeleteAtTime in interface ReservationOrBuilder
      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:
      getDeleteAtTimeBytes in interface ReservationOrBuilder
      Returns:
      The bytes for deleteAtTime.
    • setDeleteAtTime

      public Reservation.Builder setDeleteAtTime(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setDeleteAtTimeBytes(com.google.protobuf.ByteString value)
       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:
      hasDeploymentType in interface ReservationOrBuilder
      Returns:
      Whether the deploymentType field is set.
    • getDeploymentType

      public String 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:
      getDeploymentType in interface ReservationOrBuilder
      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:
      getDeploymentTypeBytes in interface ReservationOrBuilder
      Returns:
      The bytes for deploymentType.
    • setDeploymentType

      public Reservation.Builder setDeploymentType(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setDeploymentTypeBytes(com.google.protobuf.ByteString value)
       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:
      hasDescription in interface ReservationOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface ReservationOrBuilder
      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:
      getDescriptionBytes in interface ReservationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Reservation.Builder setDescription(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      hasEarlyAccessMaintenance in interface ReservationOrBuilder
      Returns:
      Whether the earlyAccessMaintenance field is set.
    • getEarlyAccessMaintenance

      public String 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:
      getEarlyAccessMaintenance in interface ReservationOrBuilder
      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:
      getEarlyAccessMaintenanceBytes in interface ReservationOrBuilder
      Returns:
      The bytes for earlyAccessMaintenance.
    • setEarlyAccessMaintenance

      public Reservation.Builder setEarlyAccessMaintenance(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setEarlyAccessMaintenanceBytes(com.google.protobuf.ByteString value)
       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:
      hasEnableEmergentMaintenance in interface ReservationOrBuilder
      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:
      getEnableEmergentMaintenance in interface ReservationOrBuilder
      Returns:
      The enableEmergentMaintenance.
    • setEnableEmergentMaintenance

      public Reservation.Builder setEnableEmergentMaintenance(boolean value)
       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

      public Reservation.Builder 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:
      hasId in interface ReservationOrBuilder
      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:
      getId in interface ReservationOrBuilder
      Returns:
      The id.
    • setId

      public Reservation.Builder setId(long value)
       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

      public Reservation.Builder 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:
      hasKind in interface ReservationOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface ReservationOrBuilder
      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:
      getKindBytes in interface ReservationOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Reservation.Builder setKind(String value)
       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

      public Reservation.Builder clearKind()
       Output only. [Output Only] Type of the resource. Alwayscompute#reservations for reservations.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public Reservation.Builder setKindBytes(com.google.protobuf.ByteString value)
       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:
      getLinkedCommitmentsList in interface ReservationOrBuilder
      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:
      getLinkedCommitmentsCount in interface ReservationOrBuilder
      Returns:
      The count of linkedCommitments.
    • getLinkedCommitments

      public String getLinkedCommitments(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:
      getLinkedCommitments in interface ReservationOrBuilder
      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:
      getLinkedCommitmentsBytes in interface ReservationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the linkedCommitments at the given index.
    • setLinkedCommitments

      public Reservation.Builder setLinkedCommitments(int index, String value)
       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

      public Reservation.Builder addLinkedCommitments(String value)
       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

      public Reservation.Builder addAllLinkedCommitments(Iterable<String> values)
       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

      public Reservation.Builder 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

      public Reservation.Builder addLinkedCommitmentsBytes(com.google.protobuf.ByteString value)
       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:
      hasName in interface ReservationOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public 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
       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:
      getName in interface ReservationOrBuilder
      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:
      getNameBytes in interface ReservationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Reservation.Builder setName(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasParams in interface ReservationOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public ReservationParams 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:
      getParams in interface ReservationOrBuilder
      Returns:
      The params.
    • setParams

      public Reservation.Builder setParams(ReservationParams value)
       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

      public Reservation.Builder setParams(ReservationParams.Builder builderForValue)
       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

      public Reservation.Builder mergeParams(ReservationParams value)
       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

      public Reservation.Builder 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

      public ReservationParams.Builder 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

      public ReservationParamsOrBuilder 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:
      getParamsOrBuilder in interface ReservationOrBuilder
    • 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:
      hasProtectionTier in interface ReservationOrBuilder
      Returns:
      Whether the protectionTier field is set.
    • getProtectionTier

      public String 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:
      getProtectionTier in interface ReservationOrBuilder
      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:
      getProtectionTierBytes in interface ReservationOrBuilder
      Returns:
      The bytes for protectionTier.
    • setProtectionTier

      public Reservation.Builder 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).
       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

      public Reservation.Builder 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

      public Reservation.Builder 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).
       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:
      hasReservationSharingPolicy in interface ReservationOrBuilder
      Returns:
      Whether the reservationSharingPolicy field is set.
    • getReservationSharingPolicy

      public AllocationReservationSharingPolicy getReservationSharingPolicy()
       Specify the reservation sharing policy. If unspecified, the reservation
       will not be shared with Google Cloud managed services.
       
      optional .google.cloud.compute.v1.AllocationReservationSharingPolicy reservation_sharing_policy = 205970120;
      Specified by:
      getReservationSharingPolicy in interface ReservationOrBuilder
      Returns:
      The reservationSharingPolicy.
    • setReservationSharingPolicy

      public Reservation.Builder setReservationSharingPolicy(AllocationReservationSharingPolicy value)
       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

      public Reservation.Builder mergeReservationSharingPolicy(AllocationReservationSharingPolicy value)
       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

      public Reservation.Builder 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

      public AllocationReservationSharingPolicy.Builder 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

      public AllocationReservationSharingPolicyOrBuilder getReservationSharingPolicyOrBuilder()
       Specify the reservation sharing policy. If unspecified, the reservation
       will not be shared with Google Cloud managed services.
       
      optional .google.cloud.compute.v1.AllocationReservationSharingPolicy reservation_sharing_policy = 205970120;
      Specified by:
      getReservationSharingPolicyOrBuilder in interface ReservationOrBuilder
    • getResourcePoliciesCount

      public int getResourcePoliciesCount()
      Description copied from interface: ReservationOrBuilder
       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:
      getResourcePoliciesCount in interface ReservationOrBuilder
    • containsResourcePolicies

      public 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;
      Specified by:
      containsResourcePolicies in interface ReservationOrBuilder
    • getResourcePolicies

      @Deprecated public Map<String,String> getResourcePolicies()
      Deprecated.
      Specified by:
      getResourcePolicies in interface ReservationOrBuilder
    • getResourcePoliciesMap

      public 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;
      Specified by:
      getResourcePoliciesMap in interface ReservationOrBuilder
    • getResourcePoliciesOrDefault

      public 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;
      Specified by:
      getResourcePoliciesOrDefault in interface ReservationOrBuilder
    • getResourcePoliciesOrThrow

      public 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;
      Specified by:
      getResourcePoliciesOrThrow in interface ReservationOrBuilder
    • clearResourcePolicies

      public Reservation.Builder clearResourcePolicies()
    • removeResourcePolicies

      public Reservation.Builder removeResourcePolicies(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;
    • getMutableResourcePolicies

      @Deprecated public Map<String,String> getMutableResourcePolicies()
      Deprecated.
      Use alternate mutation accessors instead.
    • putResourcePolicies

      public Reservation.Builder putResourcePolicies(String key, String value)
       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

      public Reservation.Builder putAllResourcePolicies(Map<String,String> values)
       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:
      hasResourceStatus in interface ReservationOrBuilder
      Returns:
      Whether the resourceStatus field is set.
    • getResourceStatus

      public AllocationResourceStatus getResourceStatus()
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
      Specified by:
      getResourceStatus in interface ReservationOrBuilder
      Returns:
      The resourceStatus.
    • setResourceStatus

      public Reservation.Builder setResourceStatus(AllocationResourceStatus value)
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
    • setResourceStatus

      public Reservation.Builder setResourceStatus(AllocationResourceStatus.Builder builderForValue)
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
    • mergeResourceStatus

      public Reservation.Builder mergeResourceStatus(AllocationResourceStatus value)
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
    • clearResourceStatus

      public Reservation.Builder clearResourceStatus()
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
    • getResourceStatusBuilder

      public AllocationResourceStatus.Builder getResourceStatusBuilder()
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
    • getResourceStatusOrBuilder

      public AllocationResourceStatusOrBuilder getResourceStatusOrBuilder()
       Output only. [Output Only] Status information for Reservation resource.
       
      optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
      Specified by:
      getResourceStatusOrBuilder in interface ReservationOrBuilder
    • hasSatisfiesPzs

      public boolean hasSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      hasSatisfiesPzs in interface ReservationOrBuilder
      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:
      getSatisfiesPzs in interface ReservationOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Reservation.Builder setSatisfiesPzs(boolean value)
       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

      public Reservation.Builder 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:
      hasSchedulingType in interface ReservationOrBuilder
      Returns:
      Whether the schedulingType field is set.
    • getSchedulingType

      public String 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:
      getSchedulingType in interface ReservationOrBuilder
      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:
      getSchedulingTypeBytes in interface ReservationOrBuilder
      Returns:
      The bytes for schedulingType.
    • setSchedulingType

      public Reservation.Builder setSchedulingType(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setSchedulingTypeBytes(com.google.protobuf.ByteString value)
       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:
      hasSelfLink in interface ReservationOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface ReservationOrBuilder
      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:
      getSelfLinkBytes in interface ReservationOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public Reservation.Builder setSelfLink(String value)
       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

      public Reservation.Builder clearSelfLink()
       Output only. [Output Only] Server-defined fully-qualified URL for this resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public Reservation.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       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.
    • hasShareSettings

      public 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;
      Specified by:
      hasShareSettings in interface ReservationOrBuilder
      Returns:
      Whether the shareSettings field is set.
    • getShareSettings

      public 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;
      Specified by:
      getShareSettings in interface ReservationOrBuilder
      Returns:
      The shareSettings.
    • setShareSettings

      public Reservation.Builder setShareSettings(ShareSettings value)
       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;
    • setShareSettings

      public Reservation.Builder setShareSettings(ShareSettings.Builder builderForValue)
       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;
    • mergeShareSettings

      public Reservation.Builder mergeShareSettings(ShareSettings value)
       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;
    • clearShareSettings

      public Reservation.Builder clearShareSettings()
       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;
    • getShareSettingsBuilder

      public ShareSettings.Builder getShareSettingsBuilder()
       Specify share-settings to create a shared reservation. This property is
       optional. For more information about the syntax and options for this
       field and its subfields, see the guide for creating
       a shared reservation.
       
      optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;
    • getShareSettingsOrBuilder

      public 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;
      Specified by:
      getShareSettingsOrBuilder in interface ReservationOrBuilder
    • hasSpecificReservation

      public boolean hasSpecificReservation()
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
      Specified by:
      hasSpecificReservation in interface ReservationOrBuilder
      Returns:
      Whether the specificReservation field is set.
    • getSpecificReservation

      public AllocationSpecificSKUReservation getSpecificReservation()
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
      Specified by:
      getSpecificReservation in interface ReservationOrBuilder
      Returns:
      The specificReservation.
    • setSpecificReservation

      public Reservation.Builder setSpecificReservation(AllocationSpecificSKUReservation value)
       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

      public Reservation.Builder mergeSpecificReservation(AllocationSpecificSKUReservation value)
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
    • clearSpecificReservation

      public Reservation.Builder clearSpecificReservation()
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
    • getSpecificReservationBuilder

      public AllocationSpecificSKUReservation.Builder getSpecificReservationBuilder()
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
    • getSpecificReservationOrBuilder

      public AllocationSpecificSKUReservationOrBuilder getSpecificReservationOrBuilder()
       Reservation for instances with specific machine shapes.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
      Specified by:
      getSpecificReservationOrBuilder in interface ReservationOrBuilder
    • 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:
      hasSpecificReservationRequired in interface ReservationOrBuilder
      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:
      getSpecificReservationRequired in interface ReservationOrBuilder
      Returns:
      The specificReservationRequired.
    • setSpecificReservationRequired

      public Reservation.Builder setSpecificReservationRequired(boolean value)
       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

      public Reservation.Builder 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:
      hasStatus in interface ReservationOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String 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:
      getStatus in interface ReservationOrBuilder
      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:
      getStatusBytes in interface ReservationOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public Reservation.Builder setStatus(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setStatusBytes(com.google.protobuf.ByteString value)
       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:
      hasZone in interface ReservationOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public 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;
      Specified by:
      getZone in interface ReservationOrBuilder
      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:
      getZoneBytes in interface ReservationOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public Reservation.Builder setZone(String value)
       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

      public Reservation.Builder 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

      public Reservation.Builder setZoneBytes(com.google.protobuf.ByteString value)
       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.