Class LicenseResourceCommitment.Builder

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

public static final class LicenseResourceCommitment.Builder extends com.google.protobuf.GeneratedMessage.Builder<LicenseResourceCommitment.Builder> implements LicenseResourceCommitmentOrBuilder
 Commitment for a particular license resource.
 
Protobuf type google.cloud.compute.v1.LicenseResourceCommitment
  • 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<LicenseResourceCommitment.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<LicenseResourceCommitment.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<LicenseResourceCommitment.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public LicenseResourceCommitment.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<LicenseResourceCommitment.Builder>
      Throws:
      IOException
    • hasAmount

      public boolean hasAmount()
       The number of licenses you plan to purchase.
       
      optional int64 amount = 196759640;
      Specified by:
      hasAmount in interface LicenseResourceCommitmentOrBuilder
      Returns:
      Whether the amount field is set.
    • getAmount

      public long getAmount()
       The number of licenses you plan to purchase.
       
      optional int64 amount = 196759640;
      Specified by:
      getAmount in interface LicenseResourceCommitmentOrBuilder
      Returns:
      The amount.
    • setAmount

      public LicenseResourceCommitment.Builder setAmount(long value)
       The number of licenses you plan to purchase.
       
      optional int64 amount = 196759640;
      Parameters:
      value - The amount to set.
      Returns:
      This builder for chaining.
    • clearAmount

      public LicenseResourceCommitment.Builder clearAmount()
       The number of licenses you plan to purchase.
       
      optional int64 amount = 196759640;
      Returns:
      This builder for chaining.
    • hasCoresPerLicense

      public boolean hasCoresPerLicense()
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Specified by:
      hasCoresPerLicense in interface LicenseResourceCommitmentOrBuilder
      Returns:
      Whether the coresPerLicense field is set.
    • getCoresPerLicense

      public String getCoresPerLicense()
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Specified by:
      getCoresPerLicense in interface LicenseResourceCommitmentOrBuilder
      Returns:
      The coresPerLicense.
    • getCoresPerLicenseBytes

      public com.google.protobuf.ByteString getCoresPerLicenseBytes()
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Specified by:
      getCoresPerLicenseBytes in interface LicenseResourceCommitmentOrBuilder
      Returns:
      The bytes for coresPerLicense.
    • setCoresPerLicense

      public LicenseResourceCommitment.Builder setCoresPerLicense(String value)
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Parameters:
      value - The coresPerLicense to set.
      Returns:
      This builder for chaining.
    • clearCoresPerLicense

      public LicenseResourceCommitment.Builder clearCoresPerLicense()
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Returns:
      This builder for chaining.
    • setCoresPerLicenseBytes

      public LicenseResourceCommitment.Builder setCoresPerLicenseBytes(com.google.protobuf.ByteString value)
       The number of cores per license.
       
      optional string cores_per_license = 32482324;
      Parameters:
      value - The bytes for coresPerLicense to set.
      Returns:
      This builder for chaining.
    • hasLicense

      public boolean hasLicense()
       The applicable license URI.
       
      optional string license = 166757441;
      Specified by:
      hasLicense in interface LicenseResourceCommitmentOrBuilder
      Returns:
      Whether the license field is set.
    • getLicense

      public String getLicense()
       The applicable license URI.
       
      optional string license = 166757441;
      Specified by:
      getLicense in interface LicenseResourceCommitmentOrBuilder
      Returns:
      The license.
    • getLicenseBytes

      public com.google.protobuf.ByteString getLicenseBytes()
       The applicable license URI.
       
      optional string license = 166757441;
      Specified by:
      getLicenseBytes in interface LicenseResourceCommitmentOrBuilder
      Returns:
      The bytes for license.
    • setLicense

      public LicenseResourceCommitment.Builder setLicense(String value)
       The applicable license URI.
       
      optional string license = 166757441;
      Parameters:
      value - The license to set.
      Returns:
      This builder for chaining.
    • clearLicense

      public LicenseResourceCommitment.Builder clearLicense()
       The applicable license URI.
       
      optional string license = 166757441;
      Returns:
      This builder for chaining.
    • setLicenseBytes

      public LicenseResourceCommitment.Builder setLicenseBytes(com.google.protobuf.ByteString value)
       The applicable license URI.
       
      optional string license = 166757441;
      Parameters:
      value - The bytes for license to set.
      Returns:
      This builder for chaining.