Class Commitment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Commitment.Builder>
com.google.cloud.compute.v1.Commitment.Builder
All Implemented Interfaces:
CommitmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Commitment

public static final class Commitment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Commitment.Builder> implements CommitmentOrBuilder
 Represents a regional resource-based commitment resource.

 Creating this commitment resource means that you are purchasing a
 resource-based committed use contract, with an explicit start and end time.
 You can purchase resource-based commitments for both hardware and software
 resources. For more information, read
 Resource-based committed use discounts
 
Protobuf type google.cloud.compute.v1.Commitment
  • Method Details

    • getDescriptor

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

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

      public Commitment.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<Commitment.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<Commitment.Builder>
    • getDefaultInstanceForType

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

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

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

      public Commitment.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<Commitment.Builder>
    • mergeFrom

      public Commitment.Builder mergeFrom(Commitment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Commitment.Builder>
    • mergeFrom

      public Commitment.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<Commitment.Builder>
      Throws:
      IOException
    • hasAutoRenew

      public boolean hasAutoRenew()
       Specifies whether to automatically renew the commitment at the end of its
       current term. The default value is false. If you set the field
       to true, each time your commitment reaches the end of its
       term, Compute Engine automatically renews it for another term. You can
       update this field anytime before the commitment expires. For example, if
       the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can
       update this field until 11:59 PM UTC-8 on January 2, 2027.
       
      optional bool auto_renew = 495520765;
      Specified by:
      hasAutoRenew in interface CommitmentOrBuilder
      Returns:
      Whether the autoRenew field is set.
    • getAutoRenew

      public boolean getAutoRenew()
       Specifies whether to automatically renew the commitment at the end of its
       current term. The default value is false. If you set the field
       to true, each time your commitment reaches the end of its
       term, Compute Engine automatically renews it for another term. You can
       update this field anytime before the commitment expires. For example, if
       the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can
       update this field until 11:59 PM UTC-8 on January 2, 2027.
       
      optional bool auto_renew = 495520765;
      Specified by:
      getAutoRenew in interface CommitmentOrBuilder
      Returns:
      The autoRenew.
    • setAutoRenew

      public Commitment.Builder setAutoRenew(boolean value)
       Specifies whether to automatically renew the commitment at the end of its
       current term. The default value is false. If you set the field
       to true, each time your commitment reaches the end of its
       term, Compute Engine automatically renews it for another term. You can
       update this field anytime before the commitment expires. For example, if
       the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can
       update this field until 11:59 PM UTC-8 on January 2, 2027.
       
      optional bool auto_renew = 495520765;
      Parameters:
      value - The autoRenew to set.
      Returns:
      This builder for chaining.
    • clearAutoRenew

      public Commitment.Builder clearAutoRenew()
       Specifies whether to automatically renew the commitment at the end of its
       current term. The default value is false. If you set the field
       to true, each time your commitment reaches the end of its
       term, Compute Engine automatically renews it for another term. You can
       update this field anytime before the commitment expires. For example, if
       the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can
       update this field until 11:59 PM UTC-8 on January 2, 2027.
       
      optional bool auto_renew = 495520765;
      Returns:
      This builder for chaining.
    • hasCategory

      public boolean hasCategory()
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Specified by:
      hasCategory in interface CommitmentOrBuilder
      Returns:
      Whether the category field is set.
    • getCategory

      public String getCategory()
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Specified by:
      getCategory in interface CommitmentOrBuilder
      Returns:
      The category.
    • getCategoryBytes

      public com.google.protobuf.ByteString getCategoryBytes()
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Specified by:
      getCategoryBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for category.
    • setCategory

      public Commitment.Builder setCategory(String value)
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public Commitment.Builder clearCategory()
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Returns:
      This builder for chaining.
    • setCategoryBytes

      public Commitment.Builder setCategoryBytes(com.google.protobuf.ByteString value)
       The category of the commitment; specifies whether the commitment is for
       hardware or software resources. Category MACHINE specifies
       that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources.
       Category LICENSE specifies that you are committing to software
       licenses, listed in licenseResources.
       Note that if you specify MACHINE commitments, then you must
       also specify a type to indicate the machine series of the
       hardware resource that you are committing to.
       Check the Category enum for the list of possible values.
       
      optional string category = 50511102;
      Parameters:
      value - The bytes for category 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 CommitmentOrBuilder
      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 CommitmentOrBuilder
      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 CommitmentOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public Commitment.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 Commitment.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public Commitment.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.
    • hasCustomEndTimestamp

      public boolean hasCustomEndTimestamp()
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Specified by:
      hasCustomEndTimestamp in interface CommitmentOrBuilder
      Returns:
      Whether the customEndTimestamp field is set.
    • getCustomEndTimestamp

      public String getCustomEndTimestamp()
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Specified by:
      getCustomEndTimestamp in interface CommitmentOrBuilder
      Returns:
      The customEndTimestamp.
    • getCustomEndTimestampBytes

      public com.google.protobuf.ByteString getCustomEndTimestampBytes()
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Specified by:
      getCustomEndTimestampBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for customEndTimestamp.
    • setCustomEndTimestamp

      public Commitment.Builder setCustomEndTimestamp(String value)
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Parameters:
      value - The customEndTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCustomEndTimestamp

      public Commitment.Builder clearCustomEndTimestamp()
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Returns:
      This builder for chaining.
    • setCustomEndTimestampBytes

      public Commitment.Builder setCustomEndTimestampBytes(com.google.protobuf.ByteString value)
       [Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired
       commitment's end date is later than the start date + term duration.
       
      optional string custom_end_timestamp = 181770852;
      Parameters:
      value - The bytes for customEndTimestamp to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       An optional description of the commitment. You can provide this property
       when you create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface CommitmentOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of the commitment. You can provide this property
       when you create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface CommitmentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of the commitment. You can provide this property
       when you create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Commitment.Builder setDescription(String value)
       An optional description of the commitment. You can 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 Commitment.Builder clearDescription()
       An optional description of the commitment. You can provide this property
       when you create the resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Commitment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of the commitment. You can 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.
    • hasEndTimestamp

      public boolean hasEndTimestamp()
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Specified by:
      hasEndTimestamp in interface CommitmentOrBuilder
      Returns:
      Whether the endTimestamp field is set.
    • getEndTimestamp

      public String getEndTimestamp()
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Specified by:
      getEndTimestamp in interface CommitmentOrBuilder
      Returns:
      The endTimestamp.
    • getEndTimestampBytes

      public com.google.protobuf.ByteString getEndTimestampBytes()
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Specified by:
      getEndTimestampBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for endTimestamp.
    • setEndTimestamp

      public Commitment.Builder setEndTimestamp(String value)
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Parameters:
      value - The endTimestamp to set.
      Returns:
      This builder for chaining.
    • clearEndTimestamp

      public Commitment.Builder clearEndTimestamp()
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Returns:
      This builder for chaining.
    • setEndTimestampBytes

      public Commitment.Builder setEndTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Commitment end time inRFC3339
       text format.
       
      optional string end_timestamp = 468096690;
      Parameters:
      value - The bytes for endTimestamp to set.
      Returns:
      This builder for chaining.
    • getExistingReservationsList

      public com.google.protobuf.ProtocolStringList getExistingReservationsList()
      repeated string existing_reservations = 493028443;
      Specified by:
      getExistingReservationsList in interface CommitmentOrBuilder
      Returns:
      A list containing the existingReservations.
    • getExistingReservationsCount

      public int getExistingReservationsCount()
      repeated string existing_reservations = 493028443;
      Specified by:
      getExistingReservationsCount in interface CommitmentOrBuilder
      Returns:
      The count of existingReservations.
    • getExistingReservations

      public String getExistingReservations(int index)
      repeated string existing_reservations = 493028443;
      Specified by:
      getExistingReservations in interface CommitmentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The existingReservations at the given index.
    • getExistingReservationsBytes

      public com.google.protobuf.ByteString getExistingReservationsBytes(int index)
      repeated string existing_reservations = 493028443;
      Specified by:
      getExistingReservationsBytes in interface CommitmentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the existingReservations at the given index.
    • setExistingReservations

      public Commitment.Builder setExistingReservations(int index, String value)
      repeated string existing_reservations = 493028443;
      Parameters:
      index - The index to set the value at.
      value - The existingReservations to set.
      Returns:
      This builder for chaining.
    • addExistingReservations

      public Commitment.Builder addExistingReservations(String value)
      repeated string existing_reservations = 493028443;
      Parameters:
      value - The existingReservations to add.
      Returns:
      This builder for chaining.
    • addAllExistingReservations

      public Commitment.Builder addAllExistingReservations(Iterable<String> values)
      repeated string existing_reservations = 493028443;
      Parameters:
      values - The existingReservations to add.
      Returns:
      This builder for chaining.
    • clearExistingReservations

      public Commitment.Builder clearExistingReservations()
      repeated string existing_reservations = 493028443;
      Returns:
      This builder for chaining.
    • addExistingReservationsBytes

      public Commitment.Builder addExistingReservationsBytes(com.google.protobuf.ByteString value)
      repeated string existing_reservations = 493028443;
      Parameters:
      value - The bytes of the existingReservations to add.
      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 CommitmentOrBuilder
      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 CommitmentOrBuilder
      Returns:
      The id.
    • setId

      public Commitment.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 Commitment.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. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface CommitmentOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface CommitmentOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Commitment.Builder setKind(String value)
       Output only. [Output Only] Type of the resource. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Commitment.Builder clearKind()
       Output only. [Output Only] Type of the resource. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public Commitment.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of the resource. Always compute#commitment
       for commitments.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasLicenseResource

      public boolean hasLicenseResource()
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
      Specified by:
      hasLicenseResource in interface CommitmentOrBuilder
      Returns:
      Whether the licenseResource field is set.
    • getLicenseResource

      public LicenseResourceCommitment getLicenseResource()
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
      Specified by:
      getLicenseResource in interface CommitmentOrBuilder
      Returns:
      The licenseResource.
    • setLicenseResource

      public Commitment.Builder setLicenseResource(LicenseResourceCommitment value)
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
    • setLicenseResource

      public Commitment.Builder setLicenseResource(LicenseResourceCommitment.Builder builderForValue)
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
    • mergeLicenseResource

      public Commitment.Builder mergeLicenseResource(LicenseResourceCommitment value)
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
    • clearLicenseResource

      public Commitment.Builder clearLicenseResource()
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
    • getLicenseResourceBuilder

      public LicenseResourceCommitment.Builder getLicenseResourceBuilder()
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
    • getLicenseResourceOrBuilder

      public LicenseResourceCommitmentOrBuilder getLicenseResourceOrBuilder()
       The license specification required as part of a license commitment.
       
      optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
      Specified by:
      getLicenseResourceOrBuilder in interface CommitmentOrBuilder
    • getMergeSourceCommitmentsList

      public com.google.protobuf.ProtocolStringList getMergeSourceCommitmentsList()
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Specified by:
      getMergeSourceCommitmentsList in interface CommitmentOrBuilder
      Returns:
      A list containing the mergeSourceCommitments.
    • getMergeSourceCommitmentsCount

      public int getMergeSourceCommitmentsCount()
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Specified by:
      getMergeSourceCommitmentsCount in interface CommitmentOrBuilder
      Returns:
      The count of mergeSourceCommitments.
    • getMergeSourceCommitments

      public String getMergeSourceCommitments(int index)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Specified by:
      getMergeSourceCommitments in interface CommitmentOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The mergeSourceCommitments at the given index.
    • getMergeSourceCommitmentsBytes

      public com.google.protobuf.ByteString getMergeSourceCommitmentsBytes(int index)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Specified by:
      getMergeSourceCommitmentsBytes in interface CommitmentOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mergeSourceCommitments at the given index.
    • setMergeSourceCommitments

      public Commitment.Builder setMergeSourceCommitments(int index, String value)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Parameters:
      index - The index to set the value at.
      value - The mergeSourceCommitments to set.
      Returns:
      This builder for chaining.
    • addMergeSourceCommitments

      public Commitment.Builder addMergeSourceCommitments(String value)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Parameters:
      value - The mergeSourceCommitments to add.
      Returns:
      This builder for chaining.
    • addAllMergeSourceCommitments

      public Commitment.Builder addAllMergeSourceCommitments(Iterable<String> values)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Parameters:
      values - The mergeSourceCommitments to add.
      Returns:
      This builder for chaining.
    • clearMergeSourceCommitments

      public Commitment.Builder clearMergeSourceCommitments()
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Returns:
      This builder for chaining.
    • addMergeSourceCommitmentsBytes

      public Commitment.Builder addMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value)
       The list of source commitments that you are merging to create the new
       merged commitment. For more information, see
       Merging commitments.
       
      repeated string merge_source_commitments = 188093761;
      Parameters:
      value - The bytes of the mergeSourceCommitments to add.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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 CommitmentOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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 CommitmentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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 CommitmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Commitment.Builder setName(String value)
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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 Commitment.Builder clearName()
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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 Commitment.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the commitment. You must specify a name when you purchase the
       commitment. The 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.CommitmentParams params = 78313862;
      Specified by:
      hasParams in interface CommitmentOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public CommitmentParams getParams()
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
      Specified by:
      getParams in interface CommitmentOrBuilder
      Returns:
      The params.
    • setParams

      public Commitment.Builder setParams(CommitmentParams value)
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
    • setParams

      public Commitment.Builder setParams(CommitmentParams.Builder builderForValue)
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
    • mergeParams

      public Commitment.Builder mergeParams(CommitmentParams value)
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
    • clearParams

      public Commitment.Builder clearParams()
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
    • getParamsBuilder

      public CommitmentParams.Builder getParamsBuilder()
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
    • getParamsOrBuilder

      public CommitmentParamsOrBuilder getParamsOrBuilder()
       Input only. Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.CommitmentParams params = 78313862;
      Specified by:
      getParamsOrBuilder in interface CommitmentOrBuilder
    • hasPlan

      public boolean hasPlan()
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Specified by:
      hasPlan in interface CommitmentOrBuilder
      Returns:
      Whether the plan field is set.
    • getPlan

      public String getPlan()
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Specified by:
      getPlan in interface CommitmentOrBuilder
      Returns:
      The plan.
    • getPlanBytes

      public com.google.protobuf.ByteString getPlanBytes()
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Specified by:
      getPlanBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for plan.
    • setPlan

      public Commitment.Builder setPlan(String value)
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Parameters:
      value - The plan to set.
      Returns:
      This builder for chaining.
    • clearPlan

      public Commitment.Builder clearPlan()
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Returns:
      This builder for chaining.
    • setPlanBytes

      public Commitment.Builder setPlanBytes(com.google.protobuf.ByteString value)
       The minimum time duration that you commit to purchasing resources.
       The plan that you choose determines the preset term length of the
       commitment (which is 1 year or 3 years) and affects the discount rate that
       you receive for your resources. Committing to a longer time duration
       typically gives you a higher discount rate. The supported values for this
       field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).
       Check the Plan enum for the list of possible values.
       
      optional string plan = 3443497;
      Parameters:
      value - The bytes for plan to set.
      Returns:
      This builder for chaining.
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface CommitmentOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface CommitmentOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public Commitment.Builder setRegion(String value)
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public Commitment.Builder clearRegion()
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public Commitment.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] URL of the region where the commitment and committed
       resources are located.
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getReservationsList

      public List<Reservation> getReservationsList()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
      Specified by:
      getReservationsList in interface CommitmentOrBuilder
    • getReservationsCount

      public int getReservationsCount()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
      Specified by:
      getReservationsCount in interface CommitmentOrBuilder
    • getReservations

      public Reservation getReservations(int index)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
      Specified by:
      getReservations in interface CommitmentOrBuilder
    • setReservations

      public Commitment.Builder setReservations(int index, Reservation value)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • setReservations

      public Commitment.Builder setReservations(int index, Reservation.Builder builderForValue)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addReservations

      public Commitment.Builder addReservations(Reservation value)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addReservations

      public Commitment.Builder addReservations(int index, Reservation value)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addReservations

      public Commitment.Builder addReservations(Reservation.Builder builderForValue)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addReservations

      public Commitment.Builder addReservations(int index, Reservation.Builder builderForValue)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addAllReservations

      public Commitment.Builder addAllReservations(Iterable<? extends Reservation> values)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • clearReservations

      public Commitment.Builder clearReservations()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • removeReservations

      public Commitment.Builder removeReservations(int index)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • getReservationsBuilder

      public Reservation.Builder getReservationsBuilder(int index)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • getReservationsOrBuilder

      public ReservationOrBuilder getReservationsOrBuilder(int index)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
      Specified by:
      getReservationsOrBuilder in interface CommitmentOrBuilder
    • getReservationsOrBuilderList

      public List<? extends ReservationOrBuilder> getReservationsOrBuilderList()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
      Specified by:
      getReservationsOrBuilderList in interface CommitmentOrBuilder
    • addReservationsBuilder

      public Reservation.Builder addReservationsBuilder()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • addReservationsBuilder

      public Reservation.Builder addReservationsBuilder(int index)
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • getReservationsBuilderList

      public List<Reservation.Builder> getReservationsBuilderList()
       The list of new reservations that you want to create and attach to this
       commitment.
      
       You must attach reservations to your commitment if your commitment
       specifies any GPUs or Local SSD disks. For more information, see
       Attach reservations to resource-based commitments.
      
       Specify this property only if you want to create new
       reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
       
      repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
    • hasResourceStatus

      public boolean hasResourceStatus()
       Output only. [Output Only] Status information for Commitment resource.
       
      optional .google.cloud.compute.v1.CommitmentResourceStatus resource_status = 249429315;
      Specified by:
      hasResourceStatus in interface CommitmentOrBuilder
      Returns:
      Whether the resourceStatus field is set.
    • getResourceStatus

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

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

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

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

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

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

      public CommitmentResourceStatusOrBuilder getResourceStatusOrBuilder()
       Output only. [Output Only] Status information for Commitment resource.
       
      optional .google.cloud.compute.v1.CommitmentResourceStatus resource_status = 249429315;
      Specified by:
      getResourceStatusOrBuilder in interface CommitmentOrBuilder
    • getResourcesList

      public List<ResourceCommitment> getResourcesList()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
      Specified by:
      getResourcesList in interface CommitmentOrBuilder
    • getResourcesCount

      public int getResourcesCount()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
      Specified by:
      getResourcesCount in interface CommitmentOrBuilder
    • getResources

      public ResourceCommitment getResources(int index)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
      Specified by:
      getResources in interface CommitmentOrBuilder
    • setResources

      public Commitment.Builder setResources(int index, ResourceCommitment value)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • setResources

      public Commitment.Builder setResources(int index, ResourceCommitment.Builder builderForValue)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addResources

      public Commitment.Builder addResources(ResourceCommitment value)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addResources

      public Commitment.Builder addResources(int index, ResourceCommitment value)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addResources

      public Commitment.Builder addResources(ResourceCommitment.Builder builderForValue)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addResources

      public Commitment.Builder addResources(int index, ResourceCommitment.Builder builderForValue)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addAllResources

      public Commitment.Builder addAllResources(Iterable<? extends ResourceCommitment> values)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • clearResources

      public Commitment.Builder clearResources()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • removeResources

      public Commitment.Builder removeResources(int index)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • getResourcesBuilder

      public ResourceCommitment.Builder getResourcesBuilder(int index)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • getResourcesOrBuilder

      public ResourceCommitmentOrBuilder getResourcesOrBuilder(int index)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
      Specified by:
      getResourcesOrBuilder in interface CommitmentOrBuilder
    • getResourcesOrBuilderList

      public List<? extends ResourceCommitmentOrBuilder> getResourcesOrBuilderList()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
      Specified by:
      getResourcesOrBuilderList in interface CommitmentOrBuilder
    • addResourcesBuilder

      public ResourceCommitment.Builder addResourcesBuilder()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • addResourcesBuilder

      public ResourceCommitment.Builder addResourcesBuilder(int index)
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • getResourcesBuilderList

      public List<ResourceCommitment.Builder> getResourcesBuilderList()
       The list of all the hardware resources, with their types and amounts, that
       you want to commit to. Specify as a separate entry in the list for each
       individual resource type.
       
      repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface CommitmentOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface CommitmentOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public Commitment.Builder setSelfLink(String value)
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

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

      public Commitment.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasSplitSourceCommitment

      public boolean hasSplitSourceCommitment()
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Specified by:
      hasSplitSourceCommitment in interface CommitmentOrBuilder
      Returns:
      Whether the splitSourceCommitment field is set.
    • getSplitSourceCommitment

      public String getSplitSourceCommitment()
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Specified by:
      getSplitSourceCommitment in interface CommitmentOrBuilder
      Returns:
      The splitSourceCommitment.
    • getSplitSourceCommitmentBytes

      public com.google.protobuf.ByteString getSplitSourceCommitmentBytes()
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Specified by:
      getSplitSourceCommitmentBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for splitSourceCommitment.
    • setSplitSourceCommitment

      public Commitment.Builder setSplitSourceCommitment(String value)
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Parameters:
      value - The splitSourceCommitment to set.
      Returns:
      This builder for chaining.
    • clearSplitSourceCommitment

      public Commitment.Builder clearSplitSourceCommitment()
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Returns:
      This builder for chaining.
    • setSplitSourceCommitmentBytes

      public Commitment.Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)
       The source commitment from which you are transferring resources to create
       the new split commitment. For more information, see
       Split commitments.
       
      optional string split_source_commitment = 402611156;
      Parameters:
      value - The bytes for splitSourceCommitment to set.
      Returns:
      This builder for chaining.
    • hasStartTimestamp

      public boolean hasStartTimestamp()
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Specified by:
      hasStartTimestamp in interface CommitmentOrBuilder
      Returns:
      Whether the startTimestamp field is set.
    • getStartTimestamp

      public String getStartTimestamp()
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Specified by:
      getStartTimestamp in interface CommitmentOrBuilder
      Returns:
      The startTimestamp.
    • getStartTimestampBytes

      public com.google.protobuf.ByteString getStartTimestampBytes()
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Specified by:
      getStartTimestampBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for startTimestamp.
    • setStartTimestamp

      public Commitment.Builder setStartTimestamp(String value)
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Parameters:
      value - The startTimestamp to set.
      Returns:
      This builder for chaining.
    • clearStartTimestamp

      public Commitment.Builder clearStartTimestamp()
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Returns:
      This builder for chaining.
    • setStartTimestampBytes

      public Commitment.Builder setStartTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Commitment start time inRFC3339
       text format.
       
      optional string start_timestamp = 83645817;
      Parameters:
      value - The bytes for startTimestamp to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface CommitmentOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface CommitmentOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public Commitment.Builder setStatus(String value)
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       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 Commitment.Builder clearStatus()
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public Commitment.Builder setStatusBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Status of the commitment with regards to eventual expiration
       (each commitment has an end date defined). Status can be one of the
       following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED.
       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.
    • hasStatusMessage

      public boolean hasStatusMessage()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      hasStatusMessage in interface CommitmentOrBuilder
      Returns:
      Whether the statusMessage field is set.
    • getStatusMessage

      public String getStatusMessage()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      getStatusMessage in interface CommitmentOrBuilder
      Returns:
      The statusMessage.
    • getStatusMessageBytes

      public com.google.protobuf.ByteString getStatusMessageBytes()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      getStatusMessageBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for statusMessage.
    • setStatusMessage

      public Commitment.Builder setStatusMessage(String value)
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Parameters:
      value - The statusMessage to set.
      Returns:
      This builder for chaining.
    • clearStatusMessage

      public Commitment.Builder clearStatusMessage()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Returns:
      This builder for chaining.
    • setStatusMessageBytes

      public Commitment.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Parameters:
      value - The bytes for statusMessage to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface CommitmentOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface CommitmentOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface CommitmentOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Commitment.Builder setType(String value)
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Commitment.Builder clearType()
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Commitment.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The type of commitment; specifies the
       machine series for which you want to commit to purchasing resources.
       The choice of machine series affects the discount rate and the eligible
       resource types.
      
       The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
       COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
       example, type MEMORY_OPTIMIZED specifies a commitment that
       applies only to eligible resources of memory optimized M1 and M2 machine
       series. Type GENERAL_PURPOSE specifies a commitment that
       applies only to eligible resources of general purpose N1 machine series.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.