public final class LoyaltyProgram extends GeneratedMessageV3 implements LoyaltyProgramOrBuilder
A message that represents loyalty program.
Protobuf type google.shopping.merchant.products.v1beta.LoyaltyProgram
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(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 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 TIER_LABEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static LoyaltyProgram getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LoyaltyProgram.Builder newBuilder()
public static LoyaltyProgram.Builder newBuilder(LoyaltyProgram prototype)
public static LoyaltyProgram parseDelimitedFrom(InputStream input)
public static LoyaltyProgram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LoyaltyProgram parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static LoyaltyProgram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LoyaltyProgram parseFrom(ByteString data)
public static LoyaltyProgram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LoyaltyProgram parseFrom(CodedInputStream input)
public static LoyaltyProgram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LoyaltyProgram parseFrom(InputStream input)
public static LoyaltyProgram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LoyaltyProgram parseFrom(ByteBuffer data)
public static LoyaltyProgram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LoyaltyProgram> 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 LoyaltyProgram 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 Parser<LoyaltyProgram> 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 merchant entity and a loyalty
program entity. The label must be provided so that the system can associate
the assets below (for example, price and points) with a merchant. The
corresponding program must be linked to the merchant 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 merchant entity and a loyalty
program entity. The label must be provided so that the system can associate
the assets below (for example, price and points) with a merchant. The
corresponding program must be linked to the merchant account.
optional string program_label = 1;
Returns |
Type |
Description |
ByteString |
The bytes for programLabel.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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 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 merchant entity and a loyalty
program entity. The label must be provided so that the system can associate
the assets below (for example, price and points) with a merchant. The
corresponding program must be linked to the merchant account.
optional string program_label = 1;
Returns |
Type |
Description |
boolean |
Whether the programLabel 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LoyaltyProgram.Builder newBuilderForType()
protected LoyaltyProgram.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public LoyaltyProgram.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides