Class LoyaltyPoints.Builder (0.4.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LoyaltyPoints.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LoyaltyPoints.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public LoyaltyPoints.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LoyaltyPoints.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public LoyaltyPoints.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LoyaltyPoints.Builder
Overrides

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.

clone()

public LoyaltyPoints.Builder clone()
Returns
Type Description
LoyaltyPoints.Builder
Overrides

getDefaultInstanceForType()

public LoyaltyPoints getDefaultInstanceForType()
Returns
Type Description
LoyaltyPoints

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LoyaltyPoints.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LoyaltyPoints.Builder
Overrides

mergeFrom(LoyaltyPoints other)

public LoyaltyPoints.Builder mergeFrom(LoyaltyPoints other)
Parameter
Name Description
other LoyaltyPoints
Returns
Type Description
LoyaltyPoints.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LoyaltyPoints.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LoyaltyPoints.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LoyaltyPoints.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LoyaltyPoints.Builder
Overrides

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 String

The 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 ByteString

The 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 long

The 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 double

The ratio to set.

Returns
Type Description
LoyaltyPoints.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LoyaltyPoints.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LoyaltyPoints.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LoyaltyPoints.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LoyaltyPoints.Builder
Overrides