public static final class PrivateOffer.Customer extends GeneratedMessage implements PrivateOffer.CustomerOrBuilder
Information about the customer.
Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.Customer
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PrivateOffer.Customer.Builder newBuilder()
newBuilder(PrivateOffer.Customer prototype)
public static PrivateOffer.Customer.Builder newBuilder(PrivateOffer.Customer prototype)
public static PrivateOffer.Customer parseDelimitedFrom(InputStream input)
public static PrivateOffer.Customer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PrivateOffer.Customer parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.Customer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PrivateOffer.Customer parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.Customer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.Customer parseFrom(CodedInputStream input)
public static PrivateOffer.Customer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.Customer parseFrom(InputStream input)
public static PrivateOffer.Customer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PrivateOffer.Customer parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.Customer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PrivateOffer.Customer> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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.
|
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.
|
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()
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()
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:
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:
string target_billing_account = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for targetBillingAccount.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PrivateOffer.Customer.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PrivateOffer.Customer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PrivateOffer.Customer.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides