Class LoyaltyCustomer (0.3.0)

public final class LoyaltyCustomer extends GeneratedMessage 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 Fields

LOYALTY_TIER_FIELD_NUMBER

public static final int LOYALTY_TIER_FIELD_NUMBER
Field Value
Type Description
int

POINT_BALANCE_FIELD_NUMBER

public static final int POINT_BALANCE_FIELD_NUMBER
Field Value
Type Description
int

USER_IDENTIFIER_FIELD_NUMBER

public static final int USER_IDENTIFIER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LoyaltyCustomer getDefaultInstance()
Returns
Type Description
LoyaltyCustomer

getDescriptor()

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

newBuilder()

public static LoyaltyCustomer.Builder newBuilder()
Returns
Type Description
LoyaltyCustomer.Builder

newBuilder(LoyaltyCustomer prototype)

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

parseDelimitedFrom(InputStream input)

public static LoyaltyCustomer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LoyaltyCustomer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static LoyaltyCustomer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LoyaltyCustomer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static LoyaltyCustomer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LoyaltyCustomer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static LoyaltyCustomer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LoyaltyCustomer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static LoyaltyCustomer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LoyaltyCustomer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<LoyaltyCustomer> parser()
Returns
Type Description
Parser<LoyaltyCustomer>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public LoyaltyCustomer getDefaultInstanceForType()
Returns
Type Description
LoyaltyCustomer

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.

getParserForType()

public Parser<LoyaltyCustomer> getParserForType()
Returns
Type Description
Parser<LoyaltyCustomer>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LoyaltyCustomer.Builder newBuilderForType()
Returns
Type Description
LoyaltyCustomer.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LoyaltyCustomer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LoyaltyCustomer.Builder
Overrides

toBuilder()

public LoyaltyCustomer.Builder toBuilder()
Returns
Type Description
LoyaltyCustomer.Builder

writeTo(CodedOutputStream output)

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