public static final class LoyaltyPoints.Builder extends GeneratedMessage.Builder<LoyaltyPoints.Builder> implements LoyaltyPointsOrBuilderA message that represents loyalty points.
Protobuf type google.shopping.merchant.products.v1beta.LoyaltyPoints
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LoyaltyPoints.BuilderImplements
LoyaltyPointsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LoyaltyPoints build()| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints |
|
buildPartial()
public LoyaltyPoints buildPartial()| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints |
|
clear()
public LoyaltyPoints.Builder clear()| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
|
clearName()
public LoyaltyPoints.Builder clearName()Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
clearPointsValue()
public LoyaltyPoints.Builder clearPointsValue()The retailer's loyalty points in absolute value.
int64 points_value = 2;
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
clearRatio()
public LoyaltyPoints.Builder clearRatio()The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
double ratio = 3;
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LoyaltyPoints getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPointsValue()
public long getPointsValue()The retailer's loyalty points in absolute value.
int64 points_value = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The pointsValue. |
getRatio()
public double getRatio()The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
double ratio = 3;
| Returns | |
|---|---|
| Type | Description |
double |
The ratio. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LoyaltyPoints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LoyaltyPoints.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
|
mergeFrom(LoyaltyPoints other)
public LoyaltyPoints.Builder mergeFrom(LoyaltyPoints other)| Parameter | |
|---|---|
| Name | Description |
other |
LoyaltyPoints |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
|
setName(String value)
public LoyaltyPoints.Builder setName(String value)Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public LoyaltyPoints.Builder setNameBytes(ByteString value)Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
setPointsValue(long value)
public LoyaltyPoints.Builder setPointsValue(long value)The retailer's loyalty points in absolute value.
int64 points_value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe pointsValue to set. |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |
setRatio(double value)
public LoyaltyPoints.Builder setRatio(double value)The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
double ratio = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe ratio to set. |
| Returns | |
|---|---|
| Type | Description |
LoyaltyPoints.Builder |
This builder for chaining. |