Class SkuPurchaseGroup.Builder (3.51.0)

public static final class SkuPurchaseGroup.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBillingAccountPurchaseInfos(Iterable<? extends BillingAccountPurchaseInfo> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.channel.v1.BillingAccountPurchaseInfo>
Returns
Type Description
SkuPurchaseGroup.Builder

addAllSkus(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The skus to add.

Returns
Type Description
SkuPurchaseGroup.Builder

This builder for chaining.

addBillingAccountPurchaseInfos(BillingAccountPurchaseInfo value)

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;

Parameter
Name Description
value BillingAccountPurchaseInfo
Returns
Type Description
SkuPurchaseGroup.Builder

addBillingAccountPurchaseInfos(BillingAccountPurchaseInfo.Builder builderForValue)

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;

Parameter
Name Description
builderForValue BillingAccountPurchaseInfo.Builder
Returns
Type Description
SkuPurchaseGroup.Builder

addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value)

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;

Parameters
Name Description
index int
value BillingAccountPurchaseInfo
Returns
Type Description
SkuPurchaseGroup.Builder

addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue BillingAccountPurchaseInfo.Builder
Returns
Type Description
SkuPurchaseGroup.Builder

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;

Returns
Type Description
BillingAccountPurchaseInfo.Builder

addBillingAccountPurchaseInfosBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BillingAccountPurchaseInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SkuPurchaseGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

addSkus(String value)

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;

Parameter
Name Description
value String

The skus to add.

Returns
Type Description
SkuPurchaseGroup.Builder

This builder for chaining.

addSkusBytes(ByteString value)

public SkuPurchaseGroup.Builder addSkusBytes(ByteString value)

Resource names of the SKUs included in this group. Format: products/{product_id}/skus/{sku_id}.

repeated string skus = 1;

Parameter
Name Description
value ByteString

The bytes of the skus to add.

Returns
Type Description
SkuPurchaseGroup.Builder

This builder for chaining.

build()

public SkuPurchaseGroup build()
Returns
Type Description
SkuPurchaseGroup

buildPartial()

public SkuPurchaseGroup buildPartial()
Returns
Type Description
SkuPurchaseGroup

clear()

public SkuPurchaseGroup.Builder clear()
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

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;

Returns
Type Description
SkuPurchaseGroup.Builder

clearField(Descriptors.FieldDescriptor field)

public SkuPurchaseGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SkuPurchaseGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

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
Type Description
SkuPurchaseGroup.Builder

This builder for chaining.

clone()

public SkuPurchaseGroup.Builder clone()
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

getBillingAccountPurchaseInfos(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BillingAccountPurchaseInfo

getBillingAccountPurchaseInfosBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BillingAccountPurchaseInfo.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<BillingAccountPurchaseInfo>

getBillingAccountPurchaseInfosOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
BillingAccountPurchaseInfoOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>

getDefaultInstanceForType()

public SkuPurchaseGroup getDefaultInstanceForType()
Returns
Type Description
SkuPurchaseGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSkus(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The skus at the given index.

getSkusBytes(int index)

public ByteString getSkusBytes(int index)

Resource names of the SKUs included in this group. Format: products/{product_id}/skus/{sku_id}.

repeated string skus = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the skus at the given index.

getSkusCount()

public int getSkusCount()

Resource names of the SKUs included in this group. Format: products/{product_id}/skus/{sku_id}.

repeated string skus = 1;

Returns
Type Description
int

The count of skus.

getSkusList()

public ProtocolStringList getSkusList()

Resource names of the SKUs included in this group. Format: products/{product_id}/skus/{sku_id}.

repeated string skus = 1;

Returns
Type Description
ProtocolStringList

A list containing the skus.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SkuPurchaseGroup other)

public SkuPurchaseGroup.Builder mergeFrom(SkuPurchaseGroup other)
Parameter
Name Description
other SkuPurchaseGroup
Returns
Type Description
SkuPurchaseGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SkuPurchaseGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SkuPurchaseGroup.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SkuPurchaseGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

removeBillingAccountPurchaseInfos(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
SkuPurchaseGroup.Builder

setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value)

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;

Parameters
Name Description
index int
value BillingAccountPurchaseInfo
Returns
Type Description
SkuPurchaseGroup.Builder

setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue BillingAccountPurchaseInfo.Builder
Returns
Type Description
SkuPurchaseGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SkuPurchaseGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SkuPurchaseGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides

setSkus(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The skus to set.

Returns
Type Description
SkuPurchaseGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SkuPurchaseGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SkuPurchaseGroup.Builder
Overrides