Class SkuPurchaseGroup.Builder

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

public static final class SkuPurchaseGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder> implements SkuPurchaseGroupOrBuilder
 Represents a set of SKUs that must be purchased using the same billing
 account.
 
Protobuf type google.cloud.channel.v1.SkuPurchaseGroup
  • 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<SkuPurchaseGroup.Builder>
    • clear

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

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

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

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

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

      public SkuPurchaseGroup.Builder mergeFrom(SkuPurchaseGroup other)
    • isInitialized

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

      public SkuPurchaseGroup.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<SkuPurchaseGroup.Builder>
      Throws:
      IOException
    • getSkusList

      public com.google.protobuf.ProtocolStringList getSkusList()
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Specified by:
      getSkusList in interface SkuPurchaseGroupOrBuilder
      Returns:
      A list containing the skus.
    • getSkusCount

      public int getSkusCount()
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Specified by:
      getSkusCount in interface SkuPurchaseGroupOrBuilder
      Returns:
      The count of skus.
    • getSkus

      public String getSkus(int index)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Specified by:
      getSkus in interface SkuPurchaseGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The skus at the given index.
    • getSkusBytes

      public com.google.protobuf.ByteString getSkusBytes(int index)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Specified by:
      getSkusBytes in interface SkuPurchaseGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the skus at the given index.
    • setSkus

      public SkuPurchaseGroup.Builder setSkus(int index, String value)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Parameters:
      index - The index to set the value at.
      value - The skus to set.
      Returns:
      This builder for chaining.
    • addSkus

      public SkuPurchaseGroup.Builder addSkus(String value)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Parameters:
      value - The skus to add.
      Returns:
      This builder for chaining.
    • addAllSkus

      public SkuPurchaseGroup.Builder addAllSkus(Iterable<String> values)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Parameters:
      values - The skus to add.
      Returns:
      This builder for chaining.
    • clearSkus

      public SkuPurchaseGroup.Builder clearSkus()
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Returns:
      This builder for chaining.
    • addSkusBytes

      public SkuPurchaseGroup.Builder addSkusBytes(com.google.protobuf.ByteString value)
       Resource names of the SKUs included in this group.
       Format: products/{product_id}/skus/{sku_id}.
       
      repeated string skus = 1;
      Parameters:
      value - The bytes of the skus to add.
      Returns:
      This builder for chaining.
    • getBillingAccountPurchaseInfosList

      public List<BillingAccountPurchaseInfo> getBillingAccountPurchaseInfosList()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
      Specified by:
      getBillingAccountPurchaseInfosList in interface SkuPurchaseGroupOrBuilder
    • getBillingAccountPurchaseInfosCount

      public int getBillingAccountPurchaseInfosCount()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
      Specified by:
      getBillingAccountPurchaseInfosCount in interface SkuPurchaseGroupOrBuilder
    • getBillingAccountPurchaseInfos

      public BillingAccountPurchaseInfo getBillingAccountPurchaseInfos(int index)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
      Specified by:
      getBillingAccountPurchaseInfos in interface SkuPurchaseGroupOrBuilder
    • setBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • setBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder addBillingAccountPurchaseInfos(BillingAccountPurchaseInfo value)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder addBillingAccountPurchaseInfos(BillingAccountPurchaseInfo.Builder builderForValue)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addAllBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder addAllBillingAccountPurchaseInfos(Iterable<? extends BillingAccountPurchaseInfo> values)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • clearBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder clearBillingAccountPurchaseInfos()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • removeBillingAccountPurchaseInfos

      public SkuPurchaseGroup.Builder removeBillingAccountPurchaseInfos(int index)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • getBillingAccountPurchaseInfosBuilder

      public BillingAccountPurchaseInfo.Builder getBillingAccountPurchaseInfosBuilder(int index)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • getBillingAccountPurchaseInfosOrBuilder

      public BillingAccountPurchaseInfoOrBuilder getBillingAccountPurchaseInfosOrBuilder(int index)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
      Specified by:
      getBillingAccountPurchaseInfosOrBuilder in interface SkuPurchaseGroupOrBuilder
    • getBillingAccountPurchaseInfosOrBuilderList

      public List<? extends BillingAccountPurchaseInfoOrBuilder> getBillingAccountPurchaseInfosOrBuilderList()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
      Specified by:
      getBillingAccountPurchaseInfosOrBuilderList in interface SkuPurchaseGroupOrBuilder
    • addBillingAccountPurchaseInfosBuilder

      public BillingAccountPurchaseInfo.Builder addBillingAccountPurchaseInfosBuilder()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • addBillingAccountPurchaseInfosBuilder

      public BillingAccountPurchaseInfo.Builder addBillingAccountPurchaseInfosBuilder(int index)
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
    • getBillingAccountPurchaseInfosBuilderList

      public List<BillingAccountPurchaseInfo.Builder> getBillingAccountPurchaseInfosBuilderList()
       List of billing accounts that are eligible to purhcase these SKUs.
       
      repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;