Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SkuPurchaseGroup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • setField

        public SkuPurchaseGroup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • clearField

        public SkuPurchaseGroup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • clearOneof

        public SkuPurchaseGroup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • setRepeatedField

        public SkuPurchaseGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • addRepeatedField

        public SkuPurchaseGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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
      • 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;
      • 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;
      • setUnknownFields

        public final SkuPurchaseGroup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>
      • mergeUnknownFields

        public final SkuPurchaseGroup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SkuPurchaseGroup.Builder>