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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
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;
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(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SkuPurchaseGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
build()
public SkuPurchaseGroup build()
buildPartial()
public SkuPurchaseGroup buildPartial()
clear()
public SkuPurchaseGroup.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public SkuPurchaseGroup.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SkuPurchaseGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public SkuPurchaseGroup.Builder clone()
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
|
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
|
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;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SkuPurchaseGroup other)
public SkuPurchaseGroup.Builder mergeFrom(SkuPurchaseGroup other)
public SkuPurchaseGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SkuPurchaseGroup.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SkuPurchaseGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SkuPurchaseGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SkuPurchaseGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SkuPurchaseGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides