public static final class LoyaltyPoints.Builder extends GeneratedMessageV3.Builder<LoyaltyPoints.Builder> implements LoyaltyPointsOrBuilder
A message that represents loyalty points.
Protobuf type google.shopping.merchant.products.v1beta.LoyaltyPoints
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public LoyaltyPoints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public LoyaltyPoints build()
public LoyaltyPoints buildPartial()
public LoyaltyPoints.Builder clear()
Overrides
public LoyaltyPoints.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public LoyaltyPoints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public LoyaltyPoints.Builder clearPointsValue()
The retailer's loyalty points in absolute value.
int64 points_value = 2;
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;
public LoyaltyPoints.Builder clone()
Overrides
public LoyaltyPoints getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
public long getPointsValue()
The retailer's loyalty points in absolute value.
int64 points_value = 2;
Returns |
Type |
Description |
long |
The pointsValue.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LoyaltyPoints.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public LoyaltyPoints.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public LoyaltyPoints.Builder mergeFrom(LoyaltyPoints other)
public final LoyaltyPoints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public LoyaltyPoints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The name to set.
|
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 |
ByteString
The bytes for name to set.
|
public LoyaltyPoints.Builder setPointsValue(long value)
The retailer's loyalty points in absolute value.
int64 points_value = 2;
Parameter |
Name |
Description |
value |
long
The pointsValue to set.
|
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 |
double
The ratio to set.
|
public LoyaltyPoints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final LoyaltyPoints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides