Class UserIdentifier.Builder (0.3.0)

public static final class UserIdentifier.Builder extends GeneratedMessage.Builder<UserIdentifier.Builder> implements UserIdentifierOrBuilder

The user identifiers associated with the customer. At least one of the fields within this message must be provided.

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

Static Methods

getDescriptor()

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

Methods

build()

public UserIdentifier build()
Returns
Type Description
UserIdentifier

buildPartial()

public UserIdentifier buildPartial()
Returns
Type Description
UserIdentifier

clear()

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

clearAddress()

public UserIdentifier.Builder clearAddress()

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserIdentifier.Builder

clearEmailAddress()

public UserIdentifier.Builder clearEmailAddress()

Optional. The customer’s email address.

string email_address = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.

clearPhoneNumber()

public UserIdentifier.Builder clearPhoneNumber()

Optional. The customer's phone number, in E.164 format (e.g., "+16502530000").

string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.

getAddress()

public AddressInfo getAddress()

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AddressInfo

The address.

getAddressBuilder()

public AddressInfo.Builder getAddressBuilder()

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AddressInfo.Builder

getAddressOrBuilder()

public AddressInfoOrBuilder getAddressOrBuilder()

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AddressInfoOrBuilder

getDefaultInstanceForType()

public UserIdentifier getDefaultInstanceForType()
Returns
Type Description
UserIdentifier

getDescriptorForType()

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

getEmailAddress()

public String getEmailAddress()

Optional. The customer’s email address.

string email_address = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The emailAddress.

getEmailAddressBytes()

public ByteString getEmailAddressBytes()

Optional. The customer’s email address.

string email_address = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for emailAddress.

getPhoneNumber()

public String getPhoneNumber()

Optional. The customer's phone number, in E.164 format (e.g., "+16502530000").

string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Optional. The customer's phone number, in E.164 format (e.g., "+16502530000").

string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for phoneNumber.

hasAddress()

public boolean hasAddress()

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the address field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAddress(AddressInfo value)

public UserIdentifier.Builder mergeAddress(AddressInfo value)

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AddressInfo
Returns
Type Description
UserIdentifier.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UserIdentifier other)

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

setAddress(AddressInfo value)

public UserIdentifier.Builder setAddress(AddressInfo value)

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AddressInfo
Returns
Type Description
UserIdentifier.Builder

setAddress(AddressInfo.Builder builderForValue)

public UserIdentifier.Builder setAddress(AddressInfo.Builder builderForValue)

Optional. The customer’s physical address.

.google.shopping.merchant.loyaltycustomers.v1.AddressInfo address = 2 [(.google.api.field_behavior) = OPTIONAL];

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

setEmailAddress(String value)

public UserIdentifier.Builder setEmailAddress(String value)

Optional. The customer’s email address.

string email_address = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The emailAddress to set.

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.

setEmailAddressBytes(ByteString value)

public UserIdentifier.Builder setEmailAddressBytes(ByteString value)

Optional. The customer’s email address.

string email_address = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for emailAddress to set.

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.

setPhoneNumber(String value)

public UserIdentifier.Builder setPhoneNumber(String value)

Optional. The customer's phone number, in E.164 format (e.g., "+16502530000").

string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public UserIdentifier.Builder setPhoneNumberBytes(ByteString value)

Optional. The customer's phone number, in E.164 format (e.g., "+16502530000").

string phone_number = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
UserIdentifier.Builder

This builder for chaining.