Class Service.LoyaltyProgram.LoyaltyProgramTiers.Builder (0.9.0)

public static final class Service.LoyaltyProgram.LoyaltyProgramTiers.Builder extends GeneratedMessageV3.Builder<Service.LoyaltyProgram.LoyaltyProgramTiers.Builder> implements Service.LoyaltyProgram.LoyaltyProgramTiersOrBuilder

Subset of a merchants loyalty program.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

clearTierLabel()

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder clearTierLabel()

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder

This builder for chaining.

clone()

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder clone()
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

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

getTierLabel()

public String getTierLabel()

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Returns
Type Description
String

The tierLabel.

getTierLabelBytes()

public ByteString getTierLabelBytes()

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Returns
Type Description
ByteString

The bytes for tierLabel.

hasTierLabel()

public boolean hasTierLabel()

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Returns
Type Description
boolean

Whether the tierLabel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.LoyaltyProgramTiers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(Service.LoyaltyProgram.LoyaltyProgramTiers other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Service.LoyaltyProgram.LoyaltyProgramTiers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides

setTierLabel(String value)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder setTierLabel(String value)

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Parameter
Name Description
value String

The tierLabel to set.

Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder

This builder for chaining.

setTierLabelBytes(ByteString value)

public Service.LoyaltyProgram.LoyaltyProgramTiers.Builder setTierLabelBytes(ByteString value)

The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.

optional string tier_label = 1;

Parameter
Name Description
value ByteString

The bytes for tierLabel to set.

Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Service.LoyaltyProgram.LoyaltyProgramTiers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Service.LoyaltyProgram.LoyaltyProgramTiers.Builder
Overrides