Class PrivateOffer.PartnerContact.Builder (0.1.0)

public static final class PrivateOffer.PartnerContact.Builder extends GeneratedMessage.Builder<PrivateOffer.PartnerContact.Builder> implements PrivateOffer.PartnerContactOrBuilder

Contact information for the partner representative.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.PartnerContact

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for email to set.

Returns
Type Description
PrivateOffer.PartnerContact.Builder

This builder for chaining.