Class BusinessIdentity (0.1.0)

public final class BusinessIdentity extends GeneratedMessageV3 implements BusinessIdentityOrBuilder

Collection of information related to the identity of a business.

Protobuf type google.shopping.merchant.accounts.v1beta.BusinessIdentity

Static Fields

BLACK_OWNED_FIELD_NUMBER

public static final int BLACK_OWNED_FIELD_NUMBER
Field Value
Type Description
int

LATINO_OWNED_FIELD_NUMBER

public static final int LATINO_OWNED_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int
public static final int PROMOTIONS_CONSENT_FIELD_NUMBER
Field Value
Type Description
int

SMALL_BUSINESS_FIELD_NUMBER

public static final int SMALL_BUSINESS_FIELD_NUMBER
Field Value
Type Description
int

VETERAN_OWNED_FIELD_NUMBER

public static final int VETERAN_OWNED_FIELD_NUMBER
Field Value
Type Description
int

WOMEN_OWNED_FIELD_NUMBER

public static final int WOMEN_OWNED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BusinessIdentity getDefaultInstance()
Returns
Type Description
BusinessIdentity

getDescriptor()

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

newBuilder()

public static BusinessIdentity.Builder newBuilder()
Returns
Type Description
BusinessIdentity.Builder

newBuilder(BusinessIdentity prototype)

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

parseDelimitedFrom(InputStream input)

public static BusinessIdentity parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BusinessIdentity
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static BusinessIdentity parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BusinessIdentity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static BusinessIdentity parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BusinessIdentity
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static BusinessIdentity parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BusinessIdentity
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static BusinessIdentity parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BusinessIdentity
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<BusinessIdentity> parser()
Returns
Type Description
Parser<BusinessIdentity>

Methods

equals(Object obj)

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

getBlackOwned()

public BusinessIdentity.IdentityAttribute getBlackOwned()

Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute black_owned = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttribute

The blackOwned.

getBlackOwnedOrBuilder()

public BusinessIdentity.IdentityAttributeOrBuilder getBlackOwnedOrBuilder()

Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute black_owned = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttributeOrBuilder

getDefaultInstanceForType()

public BusinessIdentity getDefaultInstanceForType()
Returns
Type Description
BusinessIdentity

getLatinoOwned()

public BusinessIdentity.IdentityAttribute getLatinoOwned()

Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute latino_owned = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttribute

The latinoOwned.

getLatinoOwnedOrBuilder()

public BusinessIdentity.IdentityAttributeOrBuilder getLatinoOwnedOrBuilder()

Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute latino_owned = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttributeOrBuilder

getName()

public String getName()

Identifier. The resource name of the business identity. Format: accounts/{account}/businessIdentity

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the business identity. Format: accounts/{account}/businessIdentity

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<BusinessIdentity> getParserForType()
Returns
Type Description
Parser<BusinessIdentity>
Overrides

getPromotionsConsent()

public BusinessIdentity.PromotionsConsent getPromotionsConsent()

Optional. Whether the identity attributes may be used for promotions.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent promotions_consent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.PromotionsConsent

The promotionsConsent.

getPromotionsConsentValue()

public int getPromotionsConsentValue()

Optional. Whether the identity attributes may be used for promotions.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent promotions_consent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for promotionsConsent.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSmallBusiness()

public BusinessIdentity.IdentityAttribute getSmallBusiness()

Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute small_business = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttribute

The smallBusiness.

getSmallBusinessOrBuilder()

public BusinessIdentity.IdentityAttributeOrBuilder getSmallBusinessOrBuilder()

Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute small_business = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttributeOrBuilder

getVeteranOwned()

public BusinessIdentity.IdentityAttribute getVeteranOwned()

Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute veteran_owned = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttribute

The veteranOwned.

getVeteranOwnedOrBuilder()

public BusinessIdentity.IdentityAttributeOrBuilder getVeteranOwnedOrBuilder()

Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute veteran_owned = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttributeOrBuilder

getWomenOwned()

public BusinessIdentity.IdentityAttribute getWomenOwned()

Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute women_owned = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttribute

The womenOwned.

getWomenOwnedOrBuilder()

public BusinessIdentity.IdentityAttributeOrBuilder getWomenOwnedOrBuilder()

Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute women_owned = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BusinessIdentity.IdentityAttributeOrBuilder

hasBlackOwned()

public boolean hasBlackOwned()

Optional. Specifies whether the business identifies itself as being black-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute black_owned = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the blackOwned field is set.

hasLatinoOwned()

public boolean hasLatinoOwned()

Optional. Specifies whether the business identifies itself as being latino-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute latino_owned = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the latinoOwned field is set.

hasSmallBusiness()

public boolean hasSmallBusiness()

Optional. Specifies whether the business identifies itself as a small business. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute small_business = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the smallBusiness field is set.

hasVeteranOwned()

public boolean hasVeteranOwned()

Optional. Specifies whether the business identifies itself as being veteran-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute veteran_owned = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the veteranOwned field is set.

hasWomenOwned()

public boolean hasWomenOwned()

Optional. Specifies whether the business identifies itself as being women-owned. This optional field will only be available for merchants with a business country set to US. It is also not applicable for marketplaces or marketplace sellers.

.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute women_owned = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the womenOwned field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BusinessIdentity.Builder newBuilderForType()
Returns
Type Description
BusinessIdentity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BusinessIdentity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BusinessIdentity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BusinessIdentity.Builder toBuilder()
Returns
Type Description
BusinessIdentity.Builder

writeTo(CodedOutputStream output)

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