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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int BLACK_OWNED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LATINO_OWNED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
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 |
|
public static final int SMALL_BUSINESS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int VETERAN_OWNED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int WOMEN_OWNED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static BusinessIdentity getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static BusinessIdentity.Builder newBuilder()
public static BusinessIdentity.Builder newBuilder(BusinessIdentity prototype)
public static BusinessIdentity parseDelimitedFrom(InputStream input)
public static BusinessIdentity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BusinessIdentity parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static BusinessIdentity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BusinessIdentity parseFrom(ByteString data)
public static BusinessIdentity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BusinessIdentity parseFrom(CodedInputStream input)
public static BusinessIdentity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BusinessIdentity parseFrom(InputStream input)
public static BusinessIdentity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static BusinessIdentity parseFrom(ByteBuffer data)
public static BusinessIdentity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<BusinessIdentity> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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];
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];
public BusinessIdentity getDefaultInstanceForType()
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];
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];
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.
|
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.
|
public Parser<BusinessIdentity> getParserForType()
Overrides
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];
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.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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];
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];
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];
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];
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];
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];
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.
|
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.
|
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public BusinessIdentity.Builder newBuilderForType()
protected BusinessIdentity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public BusinessIdentity.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides