Class PrivateOffer.ResellerContact.Builder (0.1.0)

public static final class PrivateOffer.ResellerContact.Builder extends GeneratedMessage.Builder<PrivateOffer.ResellerContact.Builder> implements PrivateOffer.ResellerContactOrBuilder

Contact information for a reseller.

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

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.ResellerContact build()
Returns
Type Description
PrivateOffer.ResellerContact

buildPartial()

public PrivateOffer.ResellerContact buildPartial()
Returns
Type Description
PrivateOffer.ResellerContact

clear()

public PrivateOffer.ResellerContact.Builder clear()
Returns
Type Description
PrivateOffer.ResellerContact.Builder
Overrides

clearContact()

public PrivateOffer.ResellerContact.Builder clearContact()

Output only. The name of the reseller contact for this offer.

string contact = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.

clearEmail()

public PrivateOffer.ResellerContact.Builder clearEmail()

Output only. The email of the reseller contact for this offer.

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

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.

getContact()

public String getContact()

Output only. The name of the reseller contact for this offer.

string contact = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The contact.

getContactBytes()

public ByteString getContactBytes()

Output only. The name of the reseller contact for this offer.

string contact = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for contact.

getDefaultInstanceForType()

public PrivateOffer.ResellerContact getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.ResellerContact

getDescriptorForType()

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

getEmail()

public String getEmail()

Output only. The email of the reseller contact for this offer.

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

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Output only. The email of the reseller contact for this offer.

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

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.ResellerContact other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContact(String value)

public PrivateOffer.ResellerContact.Builder setContact(String value)

Output only. The name of the reseller contact for this offer.

string contact = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The contact to set.

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.

setContactBytes(ByteString value)

public PrivateOffer.ResellerContact.Builder setContactBytes(ByteString value)

Output only. The name of the reseller contact for this offer.

string contact = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for contact to set.

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.

setEmail(String value)

public PrivateOffer.ResellerContact.Builder setEmail(String value)

Output only. The email of the reseller contact for this offer.

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

Parameter
Name Description
value String

The email to set.

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public PrivateOffer.ResellerContact.Builder setEmailBytes(ByteString value)

Output only. The email of the reseller contact for this offer.

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

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
PrivateOffer.ResellerContact.Builder

This builder for chaining.