Class PrivateOffer.PartnerContact (0.1.0)

public static final class PrivateOffer.PartnerContact extends GeneratedMessage implements PrivateOffer.PartnerContactOrBuilder

Contact information for the partner representative.

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

Static Fields

CONTACT_FIELD_NUMBER

public static final int CONTACT_FIELD_NUMBER
Field Value
Type Description
int

EMAIL_FIELD_NUMBER

public static final int EMAIL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PrivateOffer.PartnerContact getDefaultInstance()
Returns
Type Description
PrivateOffer.PartnerContact

getDescriptor()

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

newBuilder()

public static PrivateOffer.PartnerContact.Builder newBuilder()
Returns
Type Description
PrivateOffer.PartnerContact.Builder

newBuilder(PrivateOffer.PartnerContact prototype)

public static PrivateOffer.PartnerContact.Builder newBuilder(PrivateOffer.PartnerContact prototype)
Parameter
Name Description
prototype PrivateOffer.PartnerContact
Returns
Type Description
PrivateOffer.PartnerContact.Builder

parseDelimitedFrom(InputStream input)

public static PrivateOffer.PartnerContact parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PrivateOffer.PartnerContact parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PrivateOffer.PartnerContact parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PrivateOffer.PartnerContact parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PrivateOffer.PartnerContact parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PrivateOffer.PartnerContact parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PrivateOffer.PartnerContact parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PrivateOffer.PartnerContact
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PrivateOffer.PartnerContact> parser()
Returns
Type Description
Parser<PartnerContact>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<PrivateOffer.PartnerContact> getParserForType()
Returns
Type Description
Parser<PartnerContact>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PrivateOffer.PartnerContact.Builder newBuilderForType()
Returns
Type Description
PrivateOffer.PartnerContact.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PrivateOffer.PartnerContact.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PrivateOffer.PartnerContact.Builder
Overrides

toBuilder()

public PrivateOffer.PartnerContact.Builder toBuilder()
Returns
Type Description
PrivateOffer.PartnerContact.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException