Class LoyaltyPoints.Builder (0.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]