public static final class LoyaltyProgram.Builder extends GeneratedMessageV3.Builder<LoyaltyProgram.Builder> implements LoyaltyProgramOrBuilder
A message that represents loyalty program.
Protobuf type google.shopping.merchant.products.v1beta.LoyaltyProgram
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LoyaltyProgram.BuilderImplements
LoyaltyProgramOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LoyaltyProgram.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
build()
public LoyaltyProgram build()
Returns | |
---|---|
Type | Description |
LoyaltyProgram |
buildPartial()
public LoyaltyProgram buildPartial()
Returns | |
---|---|
Type | Description |
LoyaltyProgram |
clear()
public LoyaltyProgram.Builder clear()
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
clearCashbackForFutureUse()
public LoyaltyProgram.Builder clearCashbackForFutureUse()
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
clearField(Descriptors.FieldDescriptor field)
public LoyaltyProgram.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
clearLoyaltyPoints()
public LoyaltyProgram.Builder clearLoyaltyPoints()
The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LoyaltyProgram.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
clearPrice()
public LoyaltyProgram.Builder clearPrice()
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 |
LoyaltyProgram.Builder |
clearProgramLabel()
public LoyaltyProgram.Builder clearProgramLabel()
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 |
LoyaltyProgram.Builder |
This builder for chaining. |
clearTierLabel()
public LoyaltyProgram.Builder clearTierLabel()
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 |
LoyaltyProgram.Builder |
This builder for chaining. |
clone()
public LoyaltyProgram.Builder clone()
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
getCashbackForFutureUse()
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. |
getCashbackForFutureUseBuilder()
public Price.Builder getCashbackForFutureUseBuilder()
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.Builder |
getCashbackForFutureUseOrBuilder()
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 |
getDefaultInstanceForType()
public LoyaltyProgram getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
LoyaltyProgram |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLoyaltyPoints()
public long getLoyaltyPoints()
The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;
Returns | |
---|---|
Type | Description |
long |
The loyaltyPoints. |
getPrice()
public Price getPrice()
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. |
getPriceBuilder()
public Price.Builder getPriceBuilder()
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.Builder |
getPriceOrBuilder()
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 |
getProgramLabel()
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. |
getProgramLabelBytes()
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. |
getTierLabel()
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. |
getTierLabelBytes()
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. |
hasCashbackForFutureUse()
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. |
hasLoyaltyPoints()
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. |
hasPrice()
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. |
hasProgramLabel()
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. |
hasTierLabel()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCashbackForFutureUse(Price value)
public LoyaltyProgram.Builder mergeCashbackForFutureUse(Price value)
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
Parameter | |
---|---|
Name | Description |
value |
com.google.shopping.type.Price |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LoyaltyProgram.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public LoyaltyProgram.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
mergeFrom(LoyaltyProgram other)
public LoyaltyProgram.Builder mergeFrom(LoyaltyProgram other)
Parameter | |
---|---|
Name | Description |
other |
LoyaltyProgram |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
mergePrice(Price value)
public LoyaltyProgram.Builder mergePrice(Price value)
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;
Parameter | |
---|---|
Name | Description |
value |
com.google.shopping.type.Price |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LoyaltyProgram.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setCashbackForFutureUse(Price value)
public LoyaltyProgram.Builder setCashbackForFutureUse(Price value)
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
Parameter | |
---|---|
Name | Description |
value |
com.google.shopping.type.Price |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setCashbackForFutureUse(Price.Builder builderForValue)
public LoyaltyProgram.Builder setCashbackForFutureUse(Price.Builder builderForValue)
The cashback that can be used for future purchases.
optional .google.shopping.type.Price cashback_for_future_use = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LoyaltyProgram.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setLoyaltyPoints(long value)
public LoyaltyProgram.Builder setLoyaltyPoints(long value)
The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;
Parameter | |
---|---|
Name | Description |
value |
long The loyaltyPoints to set. |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
setPrice(Price value)
public LoyaltyProgram.Builder setPrice(Price value)
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;
Parameter | |
---|---|
Name | Description |
value |
com.google.shopping.type.Price |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setPrice(Price.Builder builderForValue)
public LoyaltyProgram.Builder setPrice(Price.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.shopping.type.Price.Builder |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setProgramLabel(String value)
public LoyaltyProgram.Builder setProgramLabel(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The programLabel to set. |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
setProgramLabelBytes(ByteString value)
public LoyaltyProgram.Builder setProgramLabelBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for programLabel to set. |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LoyaltyProgram.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
setTierLabel(String value)
public LoyaltyProgram.Builder setTierLabel(String value)
The label of the tier within the loyalty program. Must match one of the labels within the program.
optional string tier_label = 2;
Parameter | |
---|---|
Name | Description |
value |
String The tierLabel to set. |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
setTierLabelBytes(ByteString value)
public LoyaltyProgram.Builder setTierLabelBytes(ByteString value)
The label of the tier within the loyalty program. Must match one of the labels within the program.
optional string tier_label = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for tierLabel to set. |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final LoyaltyProgram.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LoyaltyProgram.Builder |