public static final class CustomerService.Builder extends GeneratedMessage.Builder<CustomerService.Builder> implements CustomerServiceOrBuilderCustomer service information.
Protobuf type google.shopping.merchant.accounts.v1beta.CustomerService
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CustomerService.BuilderImplements
CustomerServiceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
getDefaultInstanceForType()
public CustomerService getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomerService |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomerService.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomerService.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for email to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerService.Builder |
This builder for chaining. |
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
CustomerService.Builder |
This builder for chaining. |