Class PrivateOffer.Customer (0.1.0)

public static final class PrivateOffer.Customer extends GeneratedMessage implements PrivateOffer.CustomerOrBuilder

Information about the customer.

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

Static Fields

ADDRESS_FIELD_NUMBER

public static final int ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

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

ENTITY_TITLE_FIELD_NUMBER

public static final int ENTITY_TITLE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_BILLING_ACCOUNT_FIELD_NUMBER

public static final int TARGET_BILLING_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(PrivateOffer.Customer prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAddress() (deprecated)

public String getAddress()

Deprecated. google.cloud.commerceproducer.v1beta.PrivateOffer.Customer.address is deprecated. See google/cloud/commerceproducer/v1beta/private_offer.proto;l=97

Output only. Legal address of the customer organization. This field can no longer be set, but it is preserved to return the data from existing offers where address is set.

string address = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The address.

getAddressBytes() (deprecated)

public ByteString getAddressBytes()

Deprecated. google.cloud.commerceproducer.v1beta.PrivateOffer.Customer.address is deprecated. See google/cloud/commerceproducer/v1beta/private_offer.proto;l=97

Output only. Legal address of the customer organization. This field can no longer be set, but it is preserved to return the data from existing offers where address is set.

string address = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for address.

getContact()

public String getContact()

Optional. A string identifying the customer contact. Must be provided when publishing the offer. Maximum length: 256 characters.

string contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The contact.

getContactBytes()

public ByteString getContactBytes()

Optional. A string identifying the customer contact. Must be provided when publishing the offer. Maximum length: 256 characters.

string contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for contact.

getDefaultInstanceForType()

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

getEmail()

public String getEmail()

Optional. Email of customer contact. If provided, it must be a well-formed email address.

string email = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Optional. Email of customer contact. If provided, it must be a well-formed email address.

string email = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for email.

getEntityTitle()

public String getEntityTitle()

Optional. A string identifying the customer's entity (for example, the customer's organization or company name). Must be provided when publishing the offer. Maximum length: 256 characters.

string entity_title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityTitle.

getEntityTitleBytes()

public ByteString getEntityTitleBytes()

Optional. A string identifying the customer's entity (for example, the customer's organization or company name). Must be provided when publishing the offer. Maximum length: 256 characters.

string entity_title = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityTitle.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetBillingAccount()

public String getTargetBillingAccount()

Optional. The customer's billing account targeted by the offer. The private offer once published can be accepted by a billing administrator of the target billing account. If the customer accepts the offer and later moves the resulting order to a new billing account, this field will continue to reflect the original billing account to which the private offer was extended. Must be provided when publishing the offer.

To publish this private offer:

  • The billing account must exist.
  • The billing account must not be in a free trial.
  • The billing account must comply with Marketplace Reselling Policies.
  • Reseller parent billing accounts are prohibited. Reseller subaccounts are prohibited unless the service is enabled for reselling.

    Format: billingAccounts/012345-567890-ABCDEF

string target_billing_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetBillingAccount.

getTargetBillingAccountBytes()

public ByteString getTargetBillingAccountBytes()

Optional. The customer's billing account targeted by the offer. The private offer once published can be accepted by a billing administrator of the target billing account. If the customer accepts the offer and later moves the resulting order to a new billing account, this field will continue to reflect the original billing account to which the private offer was extended. Must be provided when publishing the offer.

To publish this private offer:

  • The billing account must exist.
  • The billing account must not be in a free trial.
  • The billing account must comply with Marketplace Reselling Policies.
  • Reseller parent billing accounts are prohibited. Reseller subaccounts are prohibited unless the service is enabled for reselling.

    Format: billingAccounts/012345-567890-ABCDEF

string target_billing_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetBillingAccount.

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.Customer.Builder newBuilderForType()
Returns
Type Description
PrivateOffer.Customer.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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