Class LoyaltyCustomer.Builder (0.3.0)

public static final class LoyaltyCustomer.Builder extends GeneratedMessage.Builder<LoyaltyCustomer.Builder> implements LoyaltyCustomerOrBuilder

Represents a customer’s loyalty information. Represents loyalty customer data in ManageLoyaltyCustomerMatch API, but is not a resource that can be retrieved or listed by other methods.

Protobuf type google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer

Static Methods

getDescriptor()

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

Methods

build()

public LoyaltyCustomer build()
Returns
Type Description
LoyaltyCustomer

buildPartial()

public LoyaltyCustomer buildPartial()
Returns
Type Description
LoyaltyCustomer

clear()

public LoyaltyCustomer.Builder clear()
Returns
Type Description
LoyaltyCustomer.Builder
Overrides

clearLoyaltyTier()

public LoyaltyCustomer.Builder clearLoyaltyTier()

Required. The tier label of the loyalty tier the customer belongs to.

.google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer.LoyaltyTier loyalty_tier = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoyaltyCustomer.Builder

This builder for chaining.

clearPointBalance()

public LoyaltyCustomer.Builder clearPointBalance()

Optional. The point balance of the loyalty customer.

int64 point_balance = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LoyaltyCustomer.Builder

This builder for chaining.

clearUserIdentifier()

public LoyaltyCustomer.Builder clearUserIdentifier()

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoyaltyCustomer.Builder

getDefaultInstanceForType()

public LoyaltyCustomer getDefaultInstanceForType()
Returns
Type Description
LoyaltyCustomer

getDescriptorForType()

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

getLoyaltyTier()

public LoyaltyCustomer.LoyaltyTier getLoyaltyTier()

Required. The tier label of the loyalty tier the customer belongs to.

.google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer.LoyaltyTier loyalty_tier = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LoyaltyCustomer.LoyaltyTier

The loyaltyTier.

getLoyaltyTierValue()

public int getLoyaltyTierValue()

Required. The tier label of the loyalty tier the customer belongs to.

.google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer.LoyaltyTier loyalty_tier = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for loyaltyTier.

getPointBalance()

public long getPointBalance()

Optional. The point balance of the loyalty customer.

int64 point_balance = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The pointBalance.

getUserIdentifier()

public UserIdentifier getUserIdentifier()

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserIdentifier

The userIdentifier.

getUserIdentifierBuilder()

public UserIdentifier.Builder getUserIdentifierBuilder()

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserIdentifier.Builder

getUserIdentifierOrBuilder()

public UserIdentifierOrBuilder getUserIdentifierOrBuilder()

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UserIdentifierOrBuilder

hasUserIdentifier()

public boolean hasUserIdentifier()

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the userIdentifier 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 LoyaltyCustomer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LoyaltyCustomer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(LoyaltyCustomer other)

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

mergeUserIdentifier(UserIdentifier value)

public LoyaltyCustomer.Builder mergeUserIdentifier(UserIdentifier value)

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserIdentifier
Returns
Type Description
LoyaltyCustomer.Builder

setLoyaltyTier(LoyaltyCustomer.LoyaltyTier value)

public LoyaltyCustomer.Builder setLoyaltyTier(LoyaltyCustomer.LoyaltyTier value)

Required. The tier label of the loyalty tier the customer belongs to.

.google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer.LoyaltyTier loyalty_tier = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LoyaltyCustomer.LoyaltyTier

The loyaltyTier to set.

Returns
Type Description
LoyaltyCustomer.Builder

This builder for chaining.

setLoyaltyTierValue(int value)

public LoyaltyCustomer.Builder setLoyaltyTierValue(int value)

Required. The tier label of the loyalty tier the customer belongs to.

.google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer.LoyaltyTier loyalty_tier = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for loyaltyTier to set.

Returns
Type Description
LoyaltyCustomer.Builder

This builder for chaining.

setPointBalance(long value)

public LoyaltyCustomer.Builder setPointBalance(long value)

Optional. The point balance of the loyalty customer.

int64 point_balance = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The pointBalance to set.

Returns
Type Description
LoyaltyCustomer.Builder

This builder for chaining.

setUserIdentifier(UserIdentifier value)

public LoyaltyCustomer.Builder setUserIdentifier(UserIdentifier value)

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UserIdentifier
Returns
Type Description
LoyaltyCustomer.Builder

setUserIdentifier(UserIdentifier.Builder builderForValue)

public LoyaltyCustomer.Builder setUserIdentifier(UserIdentifier.Builder builderForValue)

Required. The identifiers for the customer.

.google.shopping.merchant.loyaltycustomers.v1.UserIdentifier user_identifier = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UserIdentifier.Builder
Returns
Type Description
LoyaltyCustomer.Builder