Class CustomerService.Builder (0.5.0)

public static final class CustomerService.Builder extends GeneratedMessageV3.Builder<CustomerService.Builder> implements CustomerServiceOrBuilder

Customer service information.

Protobuf type google.shopping.merchant.accounts.v1beta.CustomerService

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomerService build()
Returns
Type Description
CustomerService

buildPartial()

public CustomerService buildPartial()
Returns
Type Description
CustomerService

clear()

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

clearEmail()

public CustomerService.Builder clearEmail()

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CustomerService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomerService.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomerService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomerService.Builder
Overrides

clearPhone()

public CustomerService.Builder clearPhone()

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerService.Builder

clearUri()

public CustomerService.Builder clearUri()

Optional. The URI where customer service may be found.

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

Returns
Type Description
CustomerService.Builder

This builder for chaining.

clone()

public CustomerService.Builder clone()
Returns
Type Description
CustomerService.Builder
Overrides

getDefaultInstanceForType()

public CustomerService getDefaultInstanceForType()
Returns
Type Description
CustomerService

getDescriptorForType()

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

getEmail()

public String getEmail()

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getPhone()

public PhoneNumber getPhone()

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.PhoneNumber

The phone.

getPhoneBuilder()

public PhoneNumber.Builder getPhoneBuilder()

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.PhoneNumber.Builder

getPhoneOrBuilder()

public PhoneNumberOrBuilder getPhoneOrBuilder()

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.PhoneNumberOrBuilder

getUri()

public String getUri()

Optional. The URI where customer service may be found.

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

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Optional. The URI where customer service may be found.

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

Returns
Type Description
ByteString

The bytes for uri.

hasEmail()

public boolean hasEmail()

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the email field is set.

hasPhone()

public boolean hasPhone()

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the phone field is set.

hasUri()

public boolean hasUri()

Optional. The URI where customer service may be found.

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

Returns
Type Description
boolean

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

mergeFrom(Message other)

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

mergeFrom(CustomerService other)

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

mergePhone(PhoneNumber value)

public CustomerService.Builder mergePhone(PhoneNumber value)

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.PhoneNumber
Returns
Type Description
CustomerService.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomerService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomerService.Builder
Overrides

setEmail(String value)

public CustomerService.Builder setEmail(String value)

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The email to set.

Returns
Type Description
CustomerService.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public CustomerService.Builder setEmailBytes(ByteString value)

Optional. The email address where customer service may be reached.

optional string email = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
CustomerService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhone(PhoneNumber value)

public CustomerService.Builder setPhone(PhoneNumber value)

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.type.PhoneNumber
Returns
Type Description
CustomerService.Builder

setPhone(PhoneNumber.Builder builderForValue)

public CustomerService.Builder setPhone(PhoneNumber.Builder builderForValue)

Optional. The phone number where customer service may be called.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.type.PhoneNumber.Builder
Returns
Type Description
CustomerService.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomerService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomerService.Builder
Overrides

setUri(String value)

public CustomerService.Builder setUri(String value)

Optional. The URI where customer service may be found.

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

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
CustomerService.Builder

This builder for chaining.

setUriBytes(ByteString value)

public CustomerService.Builder setUriBytes(ByteString value)

Optional. The URI where customer service may be found.

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

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
CustomerService.Builder

This builder for chaining.