Class LicensePool.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LicensePool.Builder>
com.google.cloud.commerce.consumer.procurement.v1.LicensePool.Builder
All Implemented Interfaces:
LicensePoolOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LicensePool

public static final class LicensePool.Builder extends com.google.protobuf.GeneratedMessage.Builder<LicensePool.Builder> implements LicensePoolOrBuilder
 A license pool represents a pool of licenses that can be assigned to users.
 
Protobuf type google.cloud.commerce.consumer.procurement.v1.LicensePool
  • 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<LicensePool.Builder>
    • clear

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

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

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

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

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

      public LicensePool.Builder mergeFrom(LicensePool other)
    • isInitialized

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

      public LicensePool.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<LicensePool.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Format:
       `billingAccounts/{billing_account}/orders/{order}/licensePool`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface LicensePoolOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Format:
       `billingAccounts/{billing_account}/orders/{order}/licensePool`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface LicensePoolOrBuilder
      Returns:
      The bytes for name.
    • setName

      public LicensePool.Builder setName(String value)
       Identifier. Format:
       `billingAccounts/{billing_account}/orders/{order}/licensePool`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public LicensePool.Builder clearName()
       Identifier. Format:
       `billingAccounts/{billing_account}/orders/{order}/licensePool`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public LicensePool.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Format:
       `billingAccounts/{billing_account}/orders/{order}/licensePool`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasLicenseAssignmentProtocol

      public boolean hasLicenseAssignmentProtocol()
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasLicenseAssignmentProtocol in interface LicensePoolOrBuilder
      Returns:
      Whether the licenseAssignmentProtocol field is set.
    • getLicenseAssignmentProtocol

      public AssignmentProtocol getLicenseAssignmentProtocol()
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLicenseAssignmentProtocol in interface LicensePoolOrBuilder
      Returns:
      The licenseAssignmentProtocol.
    • setLicenseAssignmentProtocol

      public LicensePool.Builder setLicenseAssignmentProtocol(AssignmentProtocol value)
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
    • setLicenseAssignmentProtocol

      public LicensePool.Builder setLicenseAssignmentProtocol(AssignmentProtocol.Builder builderForValue)
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeLicenseAssignmentProtocol

      public LicensePool.Builder mergeLicenseAssignmentProtocol(AssignmentProtocol value)
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearLicenseAssignmentProtocol

      public LicensePool.Builder clearLicenseAssignmentProtocol()
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
    • getLicenseAssignmentProtocolBuilder

      public AssignmentProtocol.Builder getLicenseAssignmentProtocolBuilder()
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
    • getLicenseAssignmentProtocolOrBuilder

      public AssignmentProtocolOrBuilder getLicenseAssignmentProtocolOrBuilder()
       Required. Assignment protocol for the license pool.
       
      .google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol license_assignment_protocol = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLicenseAssignmentProtocolOrBuilder in interface LicensePoolOrBuilder
    • getAvailableLicenseCount

      public int getAvailableLicenseCount()
       Output only. Licenses count that are available to be assigned.
       
      int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailableLicenseCount in interface LicensePoolOrBuilder
      Returns:
      The availableLicenseCount.
    • setAvailableLicenseCount

      public LicensePool.Builder setAvailableLicenseCount(int value)
       Output only. Licenses count that are available to be assigned.
       
      int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The availableLicenseCount to set.
      Returns:
      This builder for chaining.
    • clearAvailableLicenseCount

      public LicensePool.Builder clearAvailableLicenseCount()
       Output only. Licenses count that are available to be assigned.
       
      int32 available_license_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTotalLicenseCount

      public int getTotalLicenseCount()
       Output only. Total number of licenses in the pool.
       
      int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTotalLicenseCount in interface LicensePoolOrBuilder
      Returns:
      The totalLicenseCount.
    • setTotalLicenseCount

      public LicensePool.Builder setTotalLicenseCount(int value)
       Output only. Total number of licenses in the pool.
       
      int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The totalLicenseCount to set.
      Returns:
      This builder for chaining.
    • clearTotalLicenseCount

      public LicensePool.Builder clearTotalLicenseCount()
       Output only. Total number of licenses in the pool.
       
      int32 total_license_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.