Class SkuPurchaseGroup (3.40.0)

public final class SkuPurchaseGroup extends GeneratedMessageV3 implements SkuPurchaseGroupOrBuilder

Represents a set of SKUs that must be purchased using the same billing account.

Protobuf type google.cloud.channel.v1.SkuPurchaseGroup

Static Fields

BILLING_ACCOUNT_PURCHASE_INFOS_FIELD_NUMBER

public static final int BILLING_ACCOUNT_PURCHASE_INFOS_FIELD_NUMBER
Field Value
TypeDescription
int

SKUS_FIELD_NUMBER

public static final int SKUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SkuPurchaseGroup getDefaultInstance()
Returns
TypeDescription
SkuPurchaseGroup

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SkuPurchaseGroup.Builder newBuilder()
Returns
TypeDescription
SkuPurchaseGroup.Builder

newBuilder(SkuPurchaseGroup prototype)

public static SkuPurchaseGroup.Builder newBuilder(SkuPurchaseGroup prototype)
Parameter
NameDescription
prototypeSkuPurchaseGroup
Returns
TypeDescription
SkuPurchaseGroup.Builder

parseDelimitedFrom(InputStream input)

public static SkuPurchaseGroup parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SkuPurchaseGroup parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SkuPurchaseGroup parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SkuPurchaseGroup parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SkuPurchaseGroup parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SkuPurchaseGroup parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SkuPurchaseGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SkuPurchaseGroup
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SkuPurchaseGroup> parser()
Returns
TypeDescription
Parser<SkuPurchaseGroup>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

public Parser<SkuPurchaseGroup> getParserForType()
Returns
TypeDescription
Parser<SkuPurchaseGroup>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SkuPurchaseGroup.Builder newBuilderForType()
Returns
TypeDescription
SkuPurchaseGroup.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SkuPurchaseGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SkuPurchaseGroup.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SkuPurchaseGroup.Builder toBuilder()
Returns
TypeDescription
SkuPurchaseGroup.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException