public static final class PrivateOffer.Customer.Builder extends GeneratedMessage.Builder<PrivateOffer.Customer.Builder> implements PrivateOffer.CustomerOrBuilderInformation about the customer.
Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.Customer
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PrivateOffer.Customer.BuilderImplements
PrivateOffer.CustomerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PrivateOffer.Customer build()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer |
|
buildPartial()
public PrivateOffer.Customer buildPartial()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer |
|
clear()
public PrivateOffer.Customer.Builder clear()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
|
clearAddress() (deprecated)
public PrivateOffer.Customer.Builder clearAddress()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 |
PrivateOffer.Customer.Builder |
This builder for chaining. |
clearContact()
public PrivateOffer.Customer.Builder clearContact()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 |
PrivateOffer.Customer.Builder |
This builder for chaining. |
clearEmail()
public PrivateOffer.Customer.Builder clearEmail()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 |
PrivateOffer.Customer.Builder |
This builder for chaining. |
clearEntityTitle()
public PrivateOffer.Customer.Builder clearEntityTitle()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 |
PrivateOffer.Customer.Builder |
This builder for chaining. |
clearTargetBillingAccount()
public PrivateOffer.Customer.Builder clearTargetBillingAccount()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 |
PrivateOffer.Customer.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PrivateOffer.Customer other)
public PrivateOffer.Customer.Builder mergeFrom(PrivateOffer.Customer other)| Parameter | |
|---|---|
| Name | Description |
other |
PrivateOffer.Customer |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrivateOffer.Customer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PrivateOffer.Customer.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
|
setAddress(String value) (deprecated)
public PrivateOffer.Customer.Builder setAddress(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe address to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setAddressBytes(ByteString value) (deprecated)
public PrivateOffer.Customer.Builder setAddressBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for address to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setContact(String value)
public PrivateOffer.Customer.Builder setContact(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contact to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setContactBytes(ByteString value)
public PrivateOffer.Customer.Builder setContactBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contact to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setEmail(String value)
public PrivateOffer.Customer.Builder setEmail(String value)Optional. Email of customer contact. If provided, it must be a well-formed email address.
string email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe email to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setEmailBytes(ByteString value)
public PrivateOffer.Customer.Builder setEmailBytes(ByteString value)Optional. Email of customer contact. If provided, it must be a well-formed email address.
string email = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for email to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setEntityTitle(String value)
public PrivateOffer.Customer.Builder setEntityTitle(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe entityTitle to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setEntityTitleBytes(ByteString value)
public PrivateOffer.Customer.Builder setEntityTitleBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for entityTitle to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setTargetBillingAccount(String value)
public PrivateOffer.Customer.Builder setTargetBillingAccount(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetBillingAccount to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |
setTargetBillingAccountBytes(ByteString value)
public PrivateOffer.Customer.Builder setTargetBillingAccountBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetBillingAccount to set. |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.Customer.Builder |
This builder for chaining. |