Class Service.LoyaltyProgram.Builder (1.11.0)

public static final class Service.LoyaltyProgram.Builder extends GeneratedMessage.Builder<Service.LoyaltyProgram.Builder> implements Service.LoyaltyProgramOrBuilder

Loyalty program provided by a merchant.

Protobuf type google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram

Static Methods

getDescriptor()

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

Methods

addAllLoyaltyProgramTiers(Iterable<? extends Service.LoyaltyProgram.LoyaltyProgramTiers> values)

public Service.LoyaltyProgram.Builder addAllLoyaltyProgramTiers(Iterable<? extends Service.LoyaltyProgram.LoyaltyProgramTiers> values)

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
values Iterable<? extends com.google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram.LoyaltyProgramTiers>
Returns
Type Description
Service.LoyaltyProgram.Builder

addLoyaltyProgramTiers(Service.LoyaltyProgram.LoyaltyProgramTiers value)

public Service.LoyaltyProgram.Builder addLoyaltyProgramTiers(Service.LoyaltyProgram.LoyaltyProgramTiers value)

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

addLoyaltyProgramTiers(Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

public Service.LoyaltyProgram.Builder addLoyaltyProgramTiers(Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

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

addLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers value)

public Service.LoyaltyProgram.Builder addLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers value)

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

Parameters
Name Description
index int
value Service.LoyaltyProgram.LoyaltyProgramTiers
Returns
Type Description
Service.LoyaltyProgram.Builder

addLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

public Service.LoyaltyProgram.Builder addLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Returns
Type Description
Service.LoyaltyProgram.Builder

addLoyaltyProgramTiersBuilder()

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder addLoyaltyProgramTiersBuilder()

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
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder

addLoyaltyProgramTiersBuilder(int index)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder addLoyaltyProgramTiersBuilder(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.Builder

build()

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

buildPartial()

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

clear()

public Service.LoyaltyProgram.Builder clear()
Returns
Type Description
Service.LoyaltyProgram.Builder
Overrides

clearLoyaltyProgramTiers()

public Service.LoyaltyProgram.Builder clearLoyaltyProgramTiers()

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
Service.LoyaltyProgram.Builder

clearProgramLabel()

public Service.LoyaltyProgram.Builder clearProgramLabel()

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
Service.LoyaltyProgram.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

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

getLoyaltyProgramTiersBuilder(int index)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder getLoyaltyProgramTiersBuilder(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.Builder

getLoyaltyProgramTiersBuilderList()

public List<Service.LoyaltyProgram.LoyaltyProgramTiers.Builder> getLoyaltyProgramTiersBuilderList()

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<Builder>

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>

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Service.LoyaltyProgram.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(Service.LoyaltyProgram other)

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

removeLoyaltyProgramTiers(int index)

public Service.LoyaltyProgram.Builder removeLoyaltyProgramTiers(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.Builder

setLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers value)

public Service.LoyaltyProgram.Builder setLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers value)

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

Parameters
Name Description
index int
value Service.LoyaltyProgram.LoyaltyProgramTiers
Returns
Type Description
Service.LoyaltyProgram.Builder

setLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

public Service.LoyaltyProgram.Builder setLoyaltyProgramTiers(int index, Service.LoyaltyProgram.LoyaltyProgramTiers.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Returns
Type Description
Service.LoyaltyProgram.Builder

setProgramLabel(String value)

public Service.LoyaltyProgram.Builder setProgramLabel(String value)

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;

Parameter
Name Description
value String

The programLabel to set.

Returns
Type Description
Service.LoyaltyProgram.Builder

This builder for chaining.

setProgramLabelBytes(ByteString value)

public Service.LoyaltyProgram.Builder setProgramLabelBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for programLabel to set.

Returns
Type Description
Service.LoyaltyProgram.Builder

This builder for chaining.