public static final class SkuPurchaseGroup.Builder extends GeneratedMessage.Builder<SkuPurchaseGroup.Builder> implements SkuPurchaseGroupOrBuilderRepresents a set of SKUs that must be purchased using the same billing account.
Protobuf type google.cloud.channel.v1.SkuPurchaseGroup
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SkuPurchaseGroup.BuilderImplements
SkuPurchaseGroupOrBuilderStatic 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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. |
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 |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SkuPurchaseGroup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SkuPurchaseGroup.Builder |
|
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 |
|
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 |
intThe index to set the value at. |
value |
StringThe skus to set. |
| Returns | |
|---|---|
| Type | Description |
SkuPurchaseGroup.Builder |
This builder for chaining. |