Class StandardOffer.PriceModel.Usage (0.1.0)

public static final class StandardOffer.PriceModel.Usage extends GeneratedMessage implements StandardOffer.PriceModel.UsageOrBuilder

Price configurations for the usage part.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.Usage

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > StandardOffer.PriceModel.Usage

Static Fields

SKU_GROUP_LIST_FIELD_NUMBER

public static final int SKU_GROUP_LIST_FIELD_NUMBER
Field Value
Type Description
int

SKU_LIST_FIELD_NUMBER

public static final int SKU_LIST_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StandardOffer.PriceModel.Usage getDefaultInstance()
Returns
Type Description
StandardOffer.PriceModel.Usage

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StandardOffer.PriceModel.Usage.Builder newBuilder()
Returns
Type Description
StandardOffer.PriceModel.Usage.Builder

newBuilder(StandardOffer.PriceModel.Usage prototype)

public static StandardOffer.PriceModel.Usage.Builder newBuilder(StandardOffer.PriceModel.Usage prototype)
Parameter
Name Description
prototype StandardOffer.PriceModel.Usage
Returns
Type Description
StandardOffer.PriceModel.Usage.Builder

parseDelimitedFrom(InputStream input)

public static StandardOffer.PriceModel.Usage parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StandardOffer.PriceModel.Usage parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StandardOffer.PriceModel.Usage parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StandardOffer.PriceModel.Usage parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StandardOffer.PriceModel.Usage parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StandardOffer.PriceModel.Usage parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StandardOffer.PriceModel.Usage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StandardOffer.PriceModel.Usage
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StandardOffer.PriceModel.Usage> parser()
Returns
Type Description
Parser<Usage>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StandardOffer.PriceModel.Usage getDefaultInstanceForType()
Returns
Type Description
StandardOffer.PriceModel.Usage

getParserForType()

public Parser<StandardOffer.PriceModel.Usage> getParserForType()
Returns
Type Description
Parser<Usage>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSkuGroupList()

public StandardOffer.PriceModel.SkuGroupList getSkuGroupList()

Output only. The offer's usage fees are charged against the SKUs in these groups.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuGroupList sku_group_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.SkuGroupList

The skuGroupList.

getSkuGroupListOrBuilder()

public StandardOffer.PriceModel.SkuGroupListOrBuilder getSkuGroupListOrBuilder()

Output only. The offer's usage fees are charged against the SKUs in these groups.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuGroupList sku_group_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.SkuGroupListOrBuilder

getSkuList()

public StandardOffer.PriceModel.SkuList getSkuList()

Output only. The offer's usage fees are charged against these SKUs.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuList sku_list = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.SkuList

The skuList.

getSkuListOrBuilder()

public StandardOffer.PriceModel.SkuListOrBuilder getSkuListOrBuilder()

Output only. The offer's usage fees are charged against these SKUs.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuList sku_list = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StandardOffer.PriceModel.SkuListOrBuilder

getSkusCase()

public StandardOffer.PriceModel.Usage.SkusCase getSkusCase()
Returns
Type Description
StandardOffer.PriceModel.Usage.SkusCase

hasSkuGroupList()

public boolean hasSkuGroupList()

Output only. The offer's usage fees are charged against the SKUs in these groups.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuGroupList sku_group_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the skuGroupList field is set.

hasSkuList()

public boolean hasSkuList()

Output only. The offer's usage fees are charged against these SKUs.

.google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.SkuList sku_list = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the skuList field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StandardOffer.PriceModel.Usage.Builder newBuilderForType()
Returns
Type Description
StandardOffer.PriceModel.Usage.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected StandardOffer.PriceModel.Usage.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StandardOffer.PriceModel.Usage.Builder
Overrides

toBuilder()

public StandardOffer.PriceModel.Usage.Builder toBuilder()
Returns
Type Description
StandardOffer.PriceModel.Usage.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException