Class Service.LoyaltyProgram (0.10.0)

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

Static Fields

LOYALTY_PROGRAM_TIERS_FIELD_NUMBER

public static final int LOYALTY_PROGRAM_TIERS_FIELD_NUMBER
Field Value
Type Description
int

PROGRAM_LABEL_FIELD_NUMBER

public static final int PROGRAM_LABEL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Service.LoyaltyProgram getDefaultInstance()
Returns
Type Description
Service.LoyaltyProgram

getDescriptor()

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

newBuilder()

public static Service.LoyaltyProgram.Builder newBuilder()
Returns
Type Description
Service.LoyaltyProgram.Builder

newBuilder(Service.LoyaltyProgram prototype)

public static Service.LoyaltyProgram.Builder newBuilder(Service.LoyaltyProgram prototype)
Parameter
Name Description
prototype Service.LoyaltyProgram
Returns
Type Description
Service.LoyaltyProgram.Builder

parseDelimitedFrom(InputStream input)

public static Service.LoyaltyProgram parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Service.LoyaltyProgram parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Service.LoyaltyProgram parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Service.LoyaltyProgram parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Service.LoyaltyProgram parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Service.LoyaltyProgram parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Service.LoyaltyProgram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Service.LoyaltyProgram> parser()
Returns
Type Description
Parser<LoyaltyProgram>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Service.LoyaltyProgram getDefaultInstanceForType()
Returns
Type Description
Service.LoyaltyProgram

getLoyaltyProgramTiers(int index)

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
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers

getLoyaltyProgramTiersCount()

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

getLoyaltyProgramTiersList()

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];

Returns
Type Description
List<LoyaltyProgramTiers>

getLoyaltyProgramTiersOrBuilder(int index)

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
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiersOrBuilder

getLoyaltyProgramTiersOrBuilderList()

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>

getParserForType()

public Parser<Service.LoyaltyProgram> getParserForType()
Returns
Type Description
Parser<LoyaltyProgram>
Overrides

getProgramLabel()

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.

getProgramLabelBytes()

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProgramLabel()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Service.LoyaltyProgram.Builder newBuilderForType()
Returns
Type Description
Service.LoyaltyProgram.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Service.LoyaltyProgram.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Service.LoyaltyProgram.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Service.LoyaltyProgram.Builder toBuilder()
Returns
Type Description
Service.LoyaltyProgram.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException