public static final class Service.LoyaltyProgram.Builder extends GeneratedMessageV3.Builder<Service.LoyaltyProgram.Builder> implements Service.LoyaltyProgramOrBuilder
Loyalty program
provided by a merchant.
Protobuf type google.shopping.merchant.accounts.v1beta.Service.LoyaltyProgram
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 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>
|
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];
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];
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];
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];
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];
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
|
public Service.LoyaltyProgram.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Service.LoyaltyProgram build()
public Service.LoyaltyProgram buildPartial()
public Service.LoyaltyProgram.Builder clear()
Overrides
public Service.LoyaltyProgram.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public Service.LoyaltyProgram.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public Service.LoyaltyProgram.Builder clone()
Overrides
public Service.LoyaltyProgram getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 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
|
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];
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 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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Service.LoyaltyProgram.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Service.LoyaltyProgram.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public Service.LoyaltyProgram.Builder mergeFrom(Service.LoyaltyProgram other)
public final Service.LoyaltyProgram.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public Service.LoyaltyProgram.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
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.
|
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.
|
public Service.LoyaltyProgram.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Service.LoyaltyProgram.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides