public final class Sku extends GeneratedMessage implements SkuOrBuilder
Message describing the Sku resource.
Encapsulates and represents a stock keeping unit (SKU), the atomic unit of
pricing and billing in Google Cloud. Each customer charge is associated with
and originates from exactly one SKU. While the Cloud Marketplace Sku resource
shares a close relationship with the public Sku resource in the Cloud
Billing
API,
Cloud Marketplace SKUs are represented here with additional information in
an alternative format tailored for use by Cloud Marketplace partners, and are
not necessarily public and by extension are not generally visible in the
Cloud Billing API or the Google Cloud Public
SKUs.
Note on terminology: While the name of the resource derives from the acronym
'SKU' it is named 'Sku' for consistency with other resource type names, and
may be rendered variously as 'Sku', 'sku', or 'SKU' across this and other
documentation.
Protobuf type google.cloud.commerceproducer.v1beta.Sku
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SKU_PRICE_TIMELINE_FIELD_NUMBER
public static final int SKU_PRICE_TIMELINE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Sku getDefaultInstance()
| Returns |
| Type |
Description |
Sku |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.Builder newBuilder()
newBuilder(Sku prototype)
public static Sku.Builder newBuilder(Sku prototype)
| Parameter |
| Name |
Description |
prototype |
Sku
|
public static Sku parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(byte[] data)
public static Sku parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Sku |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteString data)
public static Sku parseFrom(ByteString data)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(InputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteBuffer data)
public static Sku parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parser()
public static Parser<Sku> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
| Returns |
| Type |
Description |
Sku |
|
getDescription()
public String getDescription()
Output only. Description of the SKU.
string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of the SKU.
string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
getName()
Output only. Identifier. Name of the SKU.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. Identifier. Name of the SKU.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Sku> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSkuPriceTimeline(int index)
public Sku.SkuPrice getSkuPriceTimeline(int index)
Output only. Timeline of the SKU prices, in chronological order by
effective_time.
Each entry is active in the time range starting inclusively from the
entry's effective_time and ending exclusively at the next entry's
effective_time, if one exists, or else remaining active indefinitely if
it is the final entry. The currently active entry is the entry with the
latest effective_time that is in the past. Because of scheduled future
price changes the currently active entry may not be the last entry in the
timeline. A SKU does not necessarily have a currently active entry, as the
SKU's first timeline entry may have an effective_time in the future.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice sku_price_timeline = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSkuPriceTimelineCount()
public int getSkuPriceTimelineCount()
Output only. Timeline of the SKU prices, in chronological order by
effective_time.
Each entry is active in the time range starting inclusively from the
entry's effective_time and ending exclusively at the next entry's
effective_time, if one exists, or else remaining active indefinitely if
it is the final entry. The currently active entry is the entry with the
latest effective_time that is in the past. Because of scheduled future
price changes the currently active entry may not be the last entry in the
timeline. A SKU does not necessarily have a currently active entry, as the
SKU's first timeline entry may have an effective_time in the future.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice sku_price_timeline = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getSkuPriceTimelineList()
public List<Sku.SkuPrice> getSkuPriceTimelineList()
Output only. Timeline of the SKU prices, in chronological order by
effective_time.
Each entry is active in the time range starting inclusively from the
entry's effective_time and ending exclusively at the next entry's
effective_time, if one exists, or else remaining active indefinitely if
it is the final entry. The currently active entry is the entry with the
latest effective_time that is in the past. Because of scheduled future
price changes the currently active entry may not be the last entry in the
timeline. A SKU does not necessarily have a currently active entry, as the
SKU's first timeline entry may have an effective_time in the future.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice sku_price_timeline = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSkuPriceTimelineOrBuilder(int index)
public Sku.SkuPriceOrBuilder getSkuPriceTimelineOrBuilder(int index)
Output only. Timeline of the SKU prices, in chronological order by
effective_time.
Each entry is active in the time range starting inclusively from the
entry's effective_time and ending exclusively at the next entry's
effective_time, if one exists, or else remaining active indefinitely if
it is the final entry. The currently active entry is the entry with the
latest effective_time that is in the past. Because of scheduled future
price changes the currently active entry may not be the last entry in the
timeline. A SKU does not necessarily have a currently active entry, as the
SKU's first timeline entry may have an effective_time in the future.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice sku_price_timeline = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSkuPriceTimelineOrBuilderList()
public List<? extends Sku.SkuPriceOrBuilder> getSkuPriceTimelineOrBuilderList()
Output only. Timeline of the SKU prices, in chronological order by
effective_time.
Each entry is active in the time range starting inclusively from the
entry's effective_time and ending exclusively at the next entry's
effective_time, if one exists, or else remaining active indefinitely if
it is the final entry. The currently active entry is the entry with the
latest effective_time that is in the past. Because of scheduled future
price changes the currently active entry may not be the last entry in the
timeline. A SKU does not necessarily have a currently active entry, as the
SKU's first timeline entry may have an effective_time in the future.
repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice sku_price_timeline = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.commerceproducer.v1beta.Sku.SkuPriceOrBuilder> |
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides