Package com.google.cloud.channel.v1
Class SkuPurchaseGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder>
com.google.cloud.channel.v1.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.GeneratedMessage.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 Summary
Modifier and TypeMethodDescriptionaddAllBillingAccountPurchaseInfos(Iterable<? extends BillingAccountPurchaseInfo> values) List of billing accounts that are eligible to purhcase these SKUs.addAllSkus(Iterable<String> values) Resource names of the SKUs included in this group.addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value) List of billing accounts that are eligible to purhcase these SKUs.addBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue) List of billing accounts that are eligible to purhcase these SKUs.List of billing accounts that are eligible to purhcase these SKUs.addBillingAccountPurchaseInfos(BillingAccountPurchaseInfo.Builder builderForValue) List of billing accounts that are eligible to purhcase these SKUs.List of billing accounts that are eligible to purhcase these SKUs.addBillingAccountPurchaseInfosBuilder(int index) List of billing accounts that are eligible to purhcase these SKUs.Resource names of the SKUs included in this group.addSkusBytes(com.google.protobuf.ByteString value) Resource names of the SKUs included in this group.build()clear()List of billing accounts that are eligible to purhcase these SKUs.Resource names of the SKUs included in this group.getBillingAccountPurchaseInfos(int index) List of billing accounts that are eligible to purhcase these SKUs.getBillingAccountPurchaseInfosBuilder(int index) List of billing accounts that are eligible to purhcase these SKUs.List of billing accounts that are eligible to purhcase these SKUs.intList of billing accounts that are eligible to purhcase these SKUs.List of billing accounts that are eligible to purhcase these SKUs.getBillingAccountPurchaseInfosOrBuilder(int index) List of billing accounts that are eligible to purhcase these SKUs.List<? extends BillingAccountPurchaseInfoOrBuilder>List of billing accounts that are eligible to purhcase these SKUs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSkus(int index) Resource names of the SKUs included in this group.com.google.protobuf.ByteStringgetSkusBytes(int index) Resource names of the SKUs included in this group.intResource names of the SKUs included in this group.com.google.protobuf.ProtocolStringListResource names of the SKUs included in this group.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SkuPurchaseGroup other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeBillingAccountPurchaseInfos(int index) List of billing accounts that are eligible to purhcase these SKUs.setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo value) List of billing accounts that are eligible to purhcase these SKUs.setBillingAccountPurchaseInfos(int index, BillingAccountPurchaseInfo.Builder builderForValue) List of billing accounts that are eligible to purhcase these SKUs.Resource names of the SKUs included in this group.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SkuPurchaseGroup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SkuPurchaseGroup.Builder>
-
mergeFrom
public SkuPurchaseGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSkusListin interfaceSkuPurchaseGroupOrBuilder- 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:
getSkusCountin interfaceSkuPurchaseGroupOrBuilder- Returns:
- The count of skus.
-
getSkus
Resource names of the SKUs included in this group. Format: products/{product_id}/skus/{sku_id}.repeated string skus = 1;- Specified by:
getSkusin interfaceSkuPurchaseGroupOrBuilder- 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:
getSkusBytesin interfaceSkuPurchaseGroupOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the skus at the given index.
-
setSkus
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
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
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
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
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.
-
getBillingAccountPurchaseInfosList
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;- Specified by:
getBillingAccountPurchaseInfosListin interfaceSkuPurchaseGroupOrBuilder
-
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:
getBillingAccountPurchaseInfosCountin interfaceSkuPurchaseGroupOrBuilder
-
getBillingAccountPurchaseInfos
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;- Specified by:
getBillingAccountPurchaseInfosin interfaceSkuPurchaseGroupOrBuilder
-
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
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
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; -
removeBillingAccountPurchaseInfos
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; -
getBillingAccountPurchaseInfosBuilder
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; -
getBillingAccountPurchaseInfosOrBuilder
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;- Specified by:
getBillingAccountPurchaseInfosOrBuilderin interfaceSkuPurchaseGroupOrBuilder
-
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;- Specified by:
getBillingAccountPurchaseInfosOrBuilderListin interfaceSkuPurchaseGroupOrBuilder
-
addBillingAccountPurchaseInfosBuilder
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; -
addBillingAccountPurchaseInfosBuilder
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2; -
getBillingAccountPurchaseInfosBuilderList
List of billing accounts that are eligible to purhcase these SKUs.
repeated .google.cloud.channel.v1.BillingAccountPurchaseInfo billing_account_purchase_infos = 2;
-