public final class InventoryLoyaltyProgram extends GeneratedMessage implements InventoryLoyaltyProgramOrBuilder
A message that represents loyalty program.
Protobuf type google.shopping.merchant.inventories.v1.InventoryLoyaltyProgram
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
public static final int CASHBACK_FOR_FUTURE_USE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LOYALTY_POINTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MEMBER_PRICE_EFFECTIVE_INTERVAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PRICE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PROGRAM_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SHIPPING_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TIER_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static InventoryLoyaltyProgram getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static InventoryLoyaltyProgram.Builder newBuilder()
public static InventoryLoyaltyProgram.Builder newBuilder(InventoryLoyaltyProgram prototype)
public static InventoryLoyaltyProgram parseDelimitedFrom(InputStream input)
public static InventoryLoyaltyProgram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InventoryLoyaltyProgram parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static InventoryLoyaltyProgram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InventoryLoyaltyProgram parseFrom(ByteString data)
public static InventoryLoyaltyProgram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InventoryLoyaltyProgram parseFrom(CodedInputStream input)
public static InventoryLoyaltyProgram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InventoryLoyaltyProgram parseFrom(InputStream input)
public static InventoryLoyaltyProgram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static InventoryLoyaltyProgram parseFrom(ByteBuffer data)
public static InventoryLoyaltyProgram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<InventoryLoyaltyProgram> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public Price getCashbackForFutureUse()
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
| Returns |
| Type |
Description |
com.google.shopping.type.Price |
The cashbackForFutureUse.
|
public PriceOrBuilder getCashbackForFutureUseOrBuilder()
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
| Returns |
| Type |
Description |
com.google.shopping.type.PriceOrBuilder |
|
public InventoryLoyaltyProgram getDefaultInstanceForType()
public long getLoyaltyPoints()
The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;
| Returns |
| Type |
Description |
long |
The loyaltyPoints.
|
public Interval getMemberPriceEffectiveInterval()
A date range during which the item is eligible for member price. If not
specified, the member price is always applicable. The date range is
represented by a pair of ISO 8601 dates separated by a space,
comma, or slash.
optional .google.type.Interval member_price_effective_interval = 6;
| Returns |
| Type |
Description |
com.google.type.Interval |
The memberPriceEffectiveInterval.
|
public IntervalOrBuilder getMemberPriceEffectiveIntervalOrBuilder()
A date range during which the item is eligible for member price. If not
specified, the member price is always applicable. The date range is
represented by a pair of ISO 8601 dates separated by a space,
comma, or slash.
optional .google.type.Interval member_price_effective_interval = 6;
| Returns |
| Type |
Description |
com.google.type.IntervalOrBuilder |
|
public Parser<InventoryLoyaltyProgram> getParserForType()
Overrides
The price for members of the given tier, that is, the instant discount
price. Must be smaller or equal to the regular price.
optional .google.shopping.type.Price price = 3;
| Returns |
| Type |
Description |
com.google.shopping.type.Price |
The price.
|
public PriceOrBuilder getPriceOrBuilder()
The price for members of the given tier, that is, the instant discount
price. Must be smaller or equal to the regular price.
optional .google.shopping.type.Price price = 3;
| Returns |
| Type |
Description |
com.google.shopping.type.PriceOrBuilder |
|
public String getProgramLabel()
The label of the loyalty program. This is an internal label that uniquely
identifies the relationship between a business entity and a loyalty
program entity. The label must be provided if there are multiple loyalty
programs available for the merchant, so that the system can associate
the assets below (for example, price and points) with the correct business.
The corresponding program must be linked to the Merchant Center account.
optional string program_label = 1;
| Returns |
| Type |
Description |
String |
The programLabel.
|
public ByteString getProgramLabelBytes()
The label of the loyalty program. This is an internal label that uniquely
identifies the relationship between a business entity and a loyalty
program entity. The label must be provided if there are multiple loyalty
programs available for the merchant, so that the system can associate
the assets below (for example, price and points) with the correct business.
The corresponding program must be linked to the Merchant Center account.
optional string program_label = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for programLabel.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getShippingLabel()
The label of the shipping benefit. If the field has value, this offer has
loyalty shipping benefit. If the field value isn't provided, the item is
not eligible for loyalty shipping for the given loyalty tier.
optional string shipping_label = 7;
| Returns |
| Type |
Description |
String |
The shippingLabel.
|
public ByteString getShippingLabelBytes()
The label of the shipping benefit. If the field has value, this offer has
loyalty shipping benefit. If the field value isn't provided, the item is
not eligible for loyalty shipping for the given loyalty tier.
optional string shipping_label = 7;
| Returns |
| Type |
Description |
ByteString |
The bytes for shippingLabel.
|
public String getTierLabel()
The label of the tier within the loyalty program.
Must match one of the labels within the program.
optional string tier_label = 2;
| Returns |
| Type |
Description |
String |
The tierLabel.
|
public ByteString getTierLabelBytes()
The label of the tier within the loyalty program.
Must match one of the labels within the program.
optional string tier_label = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for tierLabel.
|
public boolean hasCashbackForFutureUse()
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
| Returns |
| Type |
Description |
boolean |
Whether the cashbackForFutureUse field is set.
|
public boolean hasLoyaltyPoints()
The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;
| Returns |
| Type |
Description |
boolean |
Whether the loyaltyPoints field is set.
|
public boolean hasMemberPriceEffectiveInterval()
A date range during which the item is eligible for member price. If not
specified, the member price is always applicable. The date range is
represented by a pair of ISO 8601 dates separated by a space,
comma, or slash.
optional .google.type.Interval member_price_effective_interval = 6;
| Returns |
| Type |
Description |
boolean |
Whether the memberPriceEffectiveInterval field is set.
|
public boolean hasPrice()
The price for members of the given tier, that is, the instant discount
price. Must be smaller or equal to the regular price.
optional .google.shopping.type.Price price = 3;
| Returns |
| Type |
Description |
boolean |
Whether the price field is set.
|
public boolean hasProgramLabel()
The label of the loyalty program. This is an internal label that uniquely
identifies the relationship between a business entity and a loyalty
program entity. The label must be provided if there are multiple loyalty
programs available for the merchant, so that the system can associate
the assets below (for example, price and points) with the correct business.
The corresponding program must be linked to the Merchant Center account.
optional string program_label = 1;
| Returns |
| Type |
Description |
boolean |
Whether the programLabel field is set.
|
public boolean hasShippingLabel()
The label of the shipping benefit. If the field has value, this offer has
loyalty shipping benefit. If the field value isn't provided, the item is
not eligible for loyalty shipping for the given loyalty tier.
optional string shipping_label = 7;
| Returns |
| Type |
Description |
boolean |
Whether the shippingLabel field is set.
|
public boolean hasTierLabel()
The label of the tier within the loyalty program.
Must match one of the labels within the program.
optional string tier_label = 2;
| Returns |
| Type |
Description |
boolean |
Whether the tierLabel field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InventoryLoyaltyProgram.Builder newBuilderForType()
protected InventoryLoyaltyProgram.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public InventoryLoyaltyProgram.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides