public static final class PrivateOffer.PartnerContact.Builder extends GeneratedMessage.Builder<PrivateOffer.PartnerContact.Builder> implements PrivateOffer.PartnerContactOrBuilderContact information for the partner representative.
Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.PartnerContact
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrivateOffer.PartnerContact.BuilderImplements
PrivateOffer.PartnerContactOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PrivateOffer.PartnerContact build()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact |
|
buildPartial()
public PrivateOffer.PartnerContact buildPartial()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact |
|
clear()
public PrivateOffer.PartnerContact.Builder clear()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
|
clearContact()
public PrivateOffer.PartnerContact.Builder clearContact()Optional. Display text identifying the partner sales contact. Displayed to the customer. Must be provided when publishing the offer. Maximum length: 256 characters.
string contact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |
clearEmail()
public PrivateOffer.PartnerContact.Builder clearEmail()Optional. The email address of the partner sales contact. Displayed to the customer. The format of the provided email address is validated when publishing the offer, but no verification is performed that the email address actually exists, accepts email, or is otherwise functional.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |
getContact()
public String getContact()Optional. Display text identifying the partner sales contact. Displayed to the customer. Must be provided when publishing the offer. Maximum length: 256 characters.
string contact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The contact. |
getContactBytes()
public ByteString getContactBytes()Optional. Display text identifying the partner sales contact. Displayed to the customer. Must be provided when publishing the offer. Maximum length: 256 characters.
string contact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contact. |
getDefaultInstanceForType()
public PrivateOffer.PartnerContact getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEmail()
public String getEmail()Optional. The email address of the partner sales contact. Displayed to the customer. The format of the provided email address is validated when publishing the offer, but no verification is performed that the email address actually exists, accepts email, or is otherwise functional.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The email. |
getEmailBytes()
public ByteString getEmailBytes()Optional. The email address of the partner sales contact. Displayed to the customer. The format of the provided email address is validated when publishing the offer, but no verification is performed that the email address actually exists, accepts email, or is otherwise functional.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for email. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PrivateOffer.PartnerContact other)
public PrivateOffer.PartnerContact.Builder mergeFrom(PrivateOffer.PartnerContact other)| Parameter | |
|---|---|
| Name | Description |
other |
PrivateOffer.PartnerContact |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrivateOffer.PartnerContact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PrivateOffer.PartnerContact.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
|
setContact(String value)
public PrivateOffer.PartnerContact.Builder setContact(String value)Optional. Display text identifying the partner sales contact. Displayed to the customer. Must be provided when publishing the offer. Maximum length: 256 characters.
string contact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contact to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |
setContactBytes(ByteString value)
public PrivateOffer.PartnerContact.Builder setContactBytes(ByteString value)Optional. Display text identifying the partner sales contact. Displayed to the customer. Must be provided when publishing the offer. Maximum length: 256 characters.
string contact = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contact to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |
setEmail(String value)
public PrivateOffer.PartnerContact.Builder setEmail(String value)Optional. The email address of the partner sales contact. Displayed to the customer. The format of the provided email address is validated when publishing the offer, but no verification is performed that the email address actually exists, accepts email, or is otherwise functional.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe email to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |
setEmailBytes(ByteString value)
public PrivateOffer.PartnerContact.Builder setEmailBytes(ByteString value)Optional. The email address of the partner sales contact. Displayed to the customer. The format of the provided email address is validated when publishing the offer, but no verification is performed that the email address actually exists, accepts email, or is otherwise functional.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for email to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.PartnerContact.Builder |
This builder for chaining. |