public static final class Service.LoyaltyProgram extends GeneratedMessageV3 implements Service.LoyaltyProgramOrBuilder
Loyalty program
provided by a merchant.
Protobuf type google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int LOYALTY_PROGRAM_TIERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PROGRAM_LABEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static Service.LoyaltyProgram getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Service.LoyaltyProgram.Builder newBuilder()
public static Service.LoyaltyProgram.Builder newBuilder(Service.LoyaltyProgram prototype)
public static Service.LoyaltyProgram parseDelimitedFrom(InputStream input)
public static Service.LoyaltyProgram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Service.LoyaltyProgram parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static Service.LoyaltyProgram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service.LoyaltyProgram parseFrom(ByteString data)
public static Service.LoyaltyProgram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service.LoyaltyProgram parseFrom(CodedInputStream input)
public static Service.LoyaltyProgram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Service.LoyaltyProgram parseFrom(InputStream input)
public static Service.LoyaltyProgram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Service.LoyaltyProgram parseFrom(ByteBuffer data)
public static Service.LoyaltyProgram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Service.LoyaltyProgram> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public Service.LoyaltyProgram getDefaultInstanceForType()
public Service.LoyaltyProgram.LoyaltyProgramTiers getLoyaltyProgramTiers(int index)
Optional. Loyalty program tier of this shipping service.
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers loyalty_program_tiers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
public int getLoyaltyProgramTiersCount()
Optional. Loyalty program tier of this shipping service.
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers loyalty_program_tiers = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
public List<Service.LoyaltyProgram.LoyaltyProgramTiers> getLoyaltyProgramTiersList()
Optional. Loyalty program tier of this shipping service.
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers loyalty_program_tiers = 2 [(.google.api.field_behavior) = OPTIONAL];
public Service.LoyaltyProgram.LoyaltyProgramTiersOrBuilder getLoyaltyProgramTiersOrBuilder(int index)
Optional. Loyalty program tier of this shipping service.
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers loyalty_program_tiers = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
public List<? extends Service.LoyaltyProgram.LoyaltyProgramTiersOrBuilder> getLoyaltyProgramTiersOrBuilderList()
Optional. Loyalty program tier of this shipping service.
repeated .google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers loyalty_program_tiers = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiersOrBuilder> |
|
public Parser<Service.LoyaltyProgram> getParserForType()
Overrides
public String getProgramLabel()
This is the loyalty program label set in your loyalty program settings in
Merchant Center. This sub-attribute allows Google to map your loyalty
program to eligible offers.
optional string program_label = 1;
Returns |
Type |
Description |
String |
The programLabel.
|
public ByteString getProgramLabelBytes()
This is the loyalty program label set in your loyalty program settings in
Merchant Center. This sub-attribute allows Google to map your loyalty
program to eligible offers.
optional string program_label = 1;
Returns |
Type |
Description |
ByteString |
The bytes for programLabel.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasProgramLabel()
This is the loyalty program label set in your loyalty program settings in
Merchant Center. This sub-attribute allows Google to map your loyalty
program to eligible offers.
optional string program_label = 1;
Returns |
Type |
Description |
boolean |
Whether the programLabel field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Service.LoyaltyProgram.Builder newBuilderForType()
protected Service.LoyaltyProgram.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public Service.LoyaltyProgram.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides