Class SkuPurchaseGroup.Builder (3.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.channel.v1.BillingAccountPurchaseInfo>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The skus to add.

Returns
TypeDescription
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
NameDescription
valueBillingAccountPurchaseInfo
Returns
TypeDescription
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
NameDescription
builderForValueBillingAccountPurchaseInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBillingAccountPurchaseInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBillingAccountPurchaseInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BillingAccountPurchaseInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SkuPurchaseGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The skus to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the skus to add.

Returns
TypeDescription
SkuPurchaseGroup.Builder

This builder for chaining.

build()

public SkuPurchaseGroup build()
Returns
TypeDescription
SkuPurchaseGroup

buildPartial()

public SkuPurchaseGroup buildPartial()
Returns
TypeDescription
SkuPurchaseGroup

clear()

public SkuPurchaseGroup.Builder clear()
Returns
TypeDescription
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
TypeDescription
SkuPurchaseGroup.Builder

clearField(Descriptors.FieldDescriptor field)

public SkuPurchaseGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SkuPurchaseGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SkuPurchaseGroup.Builder

This builder for chaining.

clone()

public SkuPurchaseGroup.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.channel.v1.BillingAccountPurchaseInfoOrBuilder>

getDefaultInstanceForType()

public SkuPurchaseGroup getDefaultInstanceForType()
Returns
TypeDescription
SkuPurchaseGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the skus.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SkuPurchaseGroup other)

public SkuPurchaseGroup.Builder mergeFrom(SkuPurchaseGroup other)
Parameter
NameDescription
otherSkuPurchaseGroup
Returns
TypeDescription
SkuPurchaseGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SkuPurchaseGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SkuPurchaseGroup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SkuPurchaseGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBillingAccountPurchaseInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBillingAccountPurchaseInfo.Builder
Returns
TypeDescription
SkuPurchaseGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SkuPurchaseGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides

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

public SkuPurchaseGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The skus to set.

Returns
TypeDescription
SkuPurchaseGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SkuPurchaseGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides