com.google.shopping.merchant.accounts.v1beta.BusinessIdentity Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/shopping/merchant/accounts/v1beta/businessidentity.proto
// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;
/**
*
*
*
* Collection of information related to the [identity of a
* business](https://support.google.com/merchants/answer/12564247).
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.BusinessIdentity}
*/
public final class BusinessIdentity extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.BusinessIdentity)
BusinessIdentityOrBuilder {
private static final long serialVersionUID = 0L;
// Use BusinessIdentity.newBuilder() to construct.
private BusinessIdentity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BusinessIdentity() {
name_ = "";
promotionsConsent_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BusinessIdentity();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.class,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.Builder.class);
}
/**
*
*
*
* All possible settings regarding promotions related to the business
* identity.
*
*
* Protobuf enum {@code
* google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent}
*/
public enum PromotionsConsent implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Default value indicating that no selection was made.
*
*
* PROMOTIONS_CONSENT_UNSPECIFIED = 0;
*/
PROMOTIONS_CONSENT_UNSPECIFIED(0),
/**
*
*
*
* Indicates that the account consented to having their business identity
* used for promotions.
*
*
* PROMOTIONS_CONSENT_GIVEN = 1;
*/
PROMOTIONS_CONSENT_GIVEN(1),
/**
*
*
*
* Indicates that the account did not consent to having their business
* identity used for promotions.
*
*
* PROMOTIONS_CONSENT_DENIED = 2;
*/
PROMOTIONS_CONSENT_DENIED(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Default value indicating that no selection was made.
*
*
* PROMOTIONS_CONSENT_UNSPECIFIED = 0;
*/
public static final int PROMOTIONS_CONSENT_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Indicates that the account consented to having their business identity
* used for promotions.
*
*
* PROMOTIONS_CONSENT_GIVEN = 1;
*/
public static final int PROMOTIONS_CONSENT_GIVEN_VALUE = 1;
/**
*
*
*
* Indicates that the account did not consent to having their business
* identity used for promotions.
*
*
* PROMOTIONS_CONSENT_DENIED = 2;
*/
public static final int PROMOTIONS_CONSENT_DENIED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PromotionsConsent valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static PromotionsConsent forNumber(int value) {
switch (value) {
case 0:
return PROMOTIONS_CONSENT_UNSPECIFIED;
case 1:
return PROMOTIONS_CONSENT_GIVEN;
case 2:
return PROMOTIONS_CONSENT_DENIED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PromotionsConsent findValueByNumber(int number) {
return PromotionsConsent.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final PromotionsConsent[] VALUES = values();
public static PromotionsConsent valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PromotionsConsent(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent)
}
public interface IdentityAttributeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for identityDeclaration.
*/
int getIdentityDeclarationValue();
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The identityDeclaration.
*/
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
getIdentityDeclaration();
}
/**
*
*
*
* All information related to an identity attribute.
*
*
* Protobuf type {@code
* google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute}
*/
public static final class IdentityAttribute extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
IdentityAttributeOrBuilder {
private static final long serialVersionUID = 0L;
// Use IdentityAttribute.newBuilder() to construct.
private IdentityAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IdentityAttribute() {
identityDeclaration_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IdentityAttribute();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_IdentityAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_IdentityAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.class,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder.class);
}
/**
*
*
*
* All possible settings regarding the declaration of an identity.
*
*
* Protobuf enum {@code
* google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration}
*/
public enum IdentityDeclaration implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Default value indicating that no selection was made.
*
*
* IDENTITY_DECLARATION_UNSPECIFIED = 0;
*/
IDENTITY_DECLARATION_UNSPECIFIED(0),
/**
*
*
*
* Indicates that the account identifies with the attribute.
*
*
* SELF_IDENTIFIES_AS = 1;
*/
SELF_IDENTIFIES_AS(1),
/**
*
*
*
* Indicates that the account does not identify with the attribute.
*
*
* DOES_NOT_SELF_IDENTIFY_AS = 2;
*/
DOES_NOT_SELF_IDENTIFY_AS(2),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Default value indicating that no selection was made.
*
*
* IDENTITY_DECLARATION_UNSPECIFIED = 0;
*/
public static final int IDENTITY_DECLARATION_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Indicates that the account identifies with the attribute.
*
*
* SELF_IDENTIFIES_AS = 1;
*/
public static final int SELF_IDENTIFIES_AS_VALUE = 1;
/**
*
*
*
* Indicates that the account does not identify with the attribute.
*
*
* DOES_NOT_SELF_IDENTIFY_AS = 2;
*/
public static final int DOES_NOT_SELF_IDENTIFY_AS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdentityDeclaration valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static IdentityDeclaration forNumber(int value) {
switch (value) {
case 0:
return IDENTITY_DECLARATION_UNSPECIFIED;
case 1:
return SELF_IDENTIFIES_AS;
case 2:
return DOES_NOT_SELF_IDENTIFY_AS;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IdentityDeclaration findValueByNumber(int number) {
return IdentityDeclaration.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final IdentityDeclaration[] VALUES = values();
public static IdentityDeclaration valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private IdentityDeclaration(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration)
}
public static final int IDENTITY_DECLARATION_FIELD_NUMBER = 1;
private int identityDeclaration_ = 0;
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for identityDeclaration.
*/
@java.lang.Override
public int getIdentityDeclarationValue() {
return identityDeclaration_;
}
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The identityDeclaration.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
getIdentityDeclaration() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
result =
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.forNumber(identityDeclaration_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.UNRECOGNIZED
: result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (identityDeclaration_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.IDENTITY_DECLARATION_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, identityDeclaration_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (identityDeclaration_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.IDENTITY_DECLARATION_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, identityDeclaration_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute other =
(com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute) obj;
if (identityDeclaration_ != other.identityDeclaration_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IDENTITY_DECLARATION_FIELD_NUMBER;
hash = (53 * hash) + identityDeclaration_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* All information related to an identity attribute.
*
*
* Protobuf type {@code
* google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_IdentityAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_IdentityAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.class,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder.class);
}
// Construct using
// com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
identityDeclaration_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_IdentityAttribute_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
build() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
buildPartial() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute result =
new com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.identityDeclaration_ = identityDeclaration_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute) {
return mergeFrom(
(com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute other) {
if (other
== com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) return this;
if (other.identityDeclaration_ != 0) {
setIdentityDeclarationValue(other.getIdentityDeclarationValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
identityDeclaration_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int identityDeclaration_ = 0;
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The enum numeric value on the wire for identityDeclaration.
*/
@java.lang.Override
public int getIdentityDeclarationValue() {
return identityDeclaration_;
}
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The enum numeric value on the wire for identityDeclaration to set.
* @return This builder for chaining.
*/
public Builder setIdentityDeclarationValue(int value) {
identityDeclaration_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The identityDeclaration.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
getIdentityDeclaration() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
result =
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.forNumber(identityDeclaration_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration.UNRECOGNIZED
: result;
}
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @param value The identityDeclaration to set.
* @return This builder for chaining.
*/
public Builder setIdentityDeclaration(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.IdentityDeclaration
value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
identityDeclaration_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Required. The declaration of identity for this attribute.
*
*
*
* .google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.IdentityDeclaration identity_declaration = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return This builder for chaining.
*/
public Builder clearIdentityDeclaration() {
bitField0_ = (bitField0_ & ~0x00000001);
identityDeclaration_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute)
private static final com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttribute
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute();
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IdentityAttribute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROMOTIONS_CONSENT_FIELD_NUMBER = 2;
private int promotionsConsent_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for promotionsConsent.
*/
@java.lang.Override
public int getPromotionsConsentValue() {
return promotionsConsent_;
}
/**
*
*
*
* 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];
*
*
* @return The promotionsConsent.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
getPromotionsConsent() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent result =
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent.forNumber(
promotionsConsent_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
.UNRECOGNIZED
: result;
}
public static final int BLACK_OWNED_FIELD_NUMBER = 3;
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
blackOwned_;
/**
*
*
*
* 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];
*
*
* @return Whether the blackOwned field is set.
*/
@java.lang.Override
public boolean hasBlackOwned() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The blackOwned.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getBlackOwned() {
return blackOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: blackOwned_;
}
/**
*
*
*
* 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];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getBlackOwnedOrBuilder() {
return blackOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: blackOwned_;
}
public static final int WOMEN_OWNED_FIELD_NUMBER = 4;
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
womenOwned_;
/**
*
*
*
* 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];
*
*
* @return Whether the womenOwned field is set.
*/
@java.lang.Override
public boolean hasWomenOwned() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The womenOwned.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getWomenOwned() {
return womenOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: womenOwned_;
}
/**
*
*
*
* 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];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getWomenOwnedOrBuilder() {
return womenOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: womenOwned_;
}
public static final int VETERAN_OWNED_FIELD_NUMBER = 5;
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
veteranOwned_;
/**
*
*
*
* 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];
*
*
* @return Whether the veteranOwned field is set.
*/
@java.lang.Override
public boolean hasVeteranOwned() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The veteranOwned.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getVeteranOwned() {
return veteranOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: veteranOwned_;
}
/**
*
*
*
* 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];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getVeteranOwnedOrBuilder() {
return veteranOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: veteranOwned_;
}
public static final int LATINO_OWNED_FIELD_NUMBER = 6;
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
latinoOwned_;
/**
*
*
*
* 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];
*
*
* @return Whether the latinoOwned field is set.
*/
@java.lang.Override
public boolean hasLatinoOwned() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The latinoOwned.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getLatinoOwned() {
return latinoOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: latinoOwned_;
}
/**
*
*
*
* 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];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getLatinoOwnedOrBuilder() {
return latinoOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: latinoOwned_;
}
public static final int SMALL_BUSINESS_FIELD_NUMBER = 7;
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
smallBusiness_;
/**
*
*
*
* 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];
*
*
* @return Whether the smallBusiness field is set.
*/
@java.lang.Override
public boolean hasSmallBusiness() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The smallBusiness.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getSmallBusiness() {
return smallBusiness_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: smallBusiness_;
}
/**
*
*
*
* 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];
*
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getSmallBusinessOrBuilder() {
return smallBusiness_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: smallBusiness_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (promotionsConsent_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
.PROMOTIONS_CONSENT_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, promotionsConsent_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getBlackOwned());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getWomenOwned());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getVeteranOwned());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getLatinoOwned());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getSmallBusiness());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (promotionsConsent_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
.PROMOTIONS_CONSENT_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, promotionsConsent_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBlackOwned());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWomenOwned());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVeteranOwned());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLatinoOwned());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSmallBusiness());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.BusinessIdentity)) {
return super.equals(obj);
}
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity other =
(com.google.shopping.merchant.accounts.v1beta.BusinessIdentity) obj;
if (!getName().equals(other.getName())) return false;
if (promotionsConsent_ != other.promotionsConsent_) return false;
if (hasBlackOwned() != other.hasBlackOwned()) return false;
if (hasBlackOwned()) {
if (!getBlackOwned().equals(other.getBlackOwned())) return false;
}
if (hasWomenOwned() != other.hasWomenOwned()) return false;
if (hasWomenOwned()) {
if (!getWomenOwned().equals(other.getWomenOwned())) return false;
}
if (hasVeteranOwned() != other.hasVeteranOwned()) return false;
if (hasVeteranOwned()) {
if (!getVeteranOwned().equals(other.getVeteranOwned())) return false;
}
if (hasLatinoOwned() != other.hasLatinoOwned()) return false;
if (hasLatinoOwned()) {
if (!getLatinoOwned().equals(other.getLatinoOwned())) return false;
}
if (hasSmallBusiness() != other.hasSmallBusiness()) return false;
if (hasSmallBusiness()) {
if (!getSmallBusiness().equals(other.getSmallBusiness())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + PROMOTIONS_CONSENT_FIELD_NUMBER;
hash = (53 * hash) + promotionsConsent_;
if (hasBlackOwned()) {
hash = (37 * hash) + BLACK_OWNED_FIELD_NUMBER;
hash = (53 * hash) + getBlackOwned().hashCode();
}
if (hasWomenOwned()) {
hash = (37 * hash) + WOMEN_OWNED_FIELD_NUMBER;
hash = (53 * hash) + getWomenOwned().hashCode();
}
if (hasVeteranOwned()) {
hash = (37 * hash) + VETERAN_OWNED_FIELD_NUMBER;
hash = (53 * hash) + getVeteranOwned().hashCode();
}
if (hasLatinoOwned()) {
hash = (37 * hash) + LATINO_OWNED_FIELD_NUMBER;
hash = (53 * hash) + getLatinoOwned().hashCode();
}
if (hasSmallBusiness()) {
hash = (37 * hash) + SMALL_BUSINESS_FIELD_NUMBER;
hash = (53 * hash) + getSmallBusiness().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Collection of information related to the [identity of a
* business](https://support.google.com/merchants/answer/12564247).
*
*
* Protobuf type {@code google.shopping.merchant.accounts.v1beta.BusinessIdentity}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.BusinessIdentity)
com.google.shopping.merchant.accounts.v1beta.BusinessIdentityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.class,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.Builder.class);
}
// Construct using com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getBlackOwnedFieldBuilder();
getWomenOwnedFieldBuilder();
getVeteranOwnedFieldBuilder();
getLatinoOwnedFieldBuilder();
getSmallBusinessFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
promotionsConsent_ = 0;
blackOwned_ = null;
if (blackOwnedBuilder_ != null) {
blackOwnedBuilder_.dispose();
blackOwnedBuilder_ = null;
}
womenOwned_ = null;
if (womenOwnedBuilder_ != null) {
womenOwnedBuilder_.dispose();
womenOwnedBuilder_ = null;
}
veteranOwned_ = null;
if (veteranOwnedBuilder_ != null) {
veteranOwnedBuilder_.dispose();
veteranOwnedBuilder_ = null;
}
latinoOwned_ = null;
if (latinoOwnedBuilder_ != null) {
latinoOwnedBuilder_.dispose();
latinoOwnedBuilder_ = null;
}
smallBusiness_ = null;
if (smallBusinessBuilder_ != null) {
smallBusinessBuilder_.dispose();
smallBusinessBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentityProto
.internal_static_google_shopping_merchant_accounts_v1beta_BusinessIdentity_descriptor;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
getDefaultInstanceForType() {
return com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.getDefaultInstance();
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity build() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity buildPartial() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity result =
new com.google.shopping.merchant.accounts.v1beta.BusinessIdentity(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.promotionsConsent_ = promotionsConsent_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.blackOwned_ = blackOwnedBuilder_ == null ? blackOwned_ : blackOwnedBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.womenOwned_ = womenOwnedBuilder_ == null ? womenOwned_ : womenOwnedBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.veteranOwned_ =
veteranOwnedBuilder_ == null ? veteranOwned_ : veteranOwnedBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.latinoOwned_ =
latinoOwnedBuilder_ == null ? latinoOwned_ : latinoOwnedBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.smallBusiness_ =
smallBusinessBuilder_ == null ? smallBusiness_ : smallBusinessBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.shopping.merchant.accounts.v1beta.BusinessIdentity) {
return mergeFrom((com.google.shopping.merchant.accounts.v1beta.BusinessIdentity) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.BusinessIdentity other) {
if (other
== com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.promotionsConsent_ != 0) {
setPromotionsConsentValue(other.getPromotionsConsentValue());
}
if (other.hasBlackOwned()) {
mergeBlackOwned(other.getBlackOwned());
}
if (other.hasWomenOwned()) {
mergeWomenOwned(other.getWomenOwned());
}
if (other.hasVeteranOwned()) {
mergeVeteranOwned(other.getVeteranOwned());
}
if (other.hasLatinoOwned()) {
mergeLatinoOwned(other.getLatinoOwned());
}
if (other.hasSmallBusiness()) {
mergeSmallBusiness(other.getSmallBusiness());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
promotionsConsent_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
input.readMessage(getBlackOwnedFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getWomenOwnedFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getVeteranOwnedFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getLatinoOwnedFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
input.readMessage(getSmallBusinessFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Identifier. The resource name of the business identity.
* Format: `accounts/{account}/businessIdentity`
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int promotionsConsent_ = 0;
/**
*
*
*
* 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];
*
*
* @return The enum numeric value on the wire for promotionsConsent.
*/
@java.lang.Override
public int getPromotionsConsentValue() {
return promotionsConsent_;
}
/**
*
*
*
* 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];
*
*
* @param value The enum numeric value on the wire for promotionsConsent to set.
* @return This builder for chaining.
*/
public Builder setPromotionsConsentValue(int value) {
promotionsConsent_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return The promotionsConsent.
*/
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
getPromotionsConsent() {
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent result =
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent.forNumber(
promotionsConsent_);
return result == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent
.UNRECOGNIZED
: result;
}
/**
*
*
*
* 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];
*
*
* @param value The promotionsConsent to set.
* @return This builder for chaining.
*/
public Builder setPromotionsConsent(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.PromotionsConsent value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
promotionsConsent_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* 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];
*
*
* @return This builder for chaining.
*/
public Builder clearPromotionsConsent() {
bitField0_ = (bitField0_ & ~0x00000002);
promotionsConsent_ = 0;
onChanged();
return this;
}
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
blackOwned_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
blackOwnedBuilder_;
/**
*
*
*
* 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];
*
*
* @return Whether the blackOwned field is set.
*/
public boolean hasBlackOwned() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The blackOwned.
*/
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getBlackOwned() {
if (blackOwnedBuilder_ == null) {
return blackOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: blackOwned_;
} else {
return blackOwnedBuilder_.getMessage();
}
}
/**
*
*
*
* 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 Builder setBlackOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (blackOwnedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blackOwned_ = value;
} else {
blackOwnedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder setBlackOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
builderForValue) {
if (blackOwnedBuilder_ == null) {
blackOwned_ = builderForValue.build();
} else {
blackOwnedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder mergeBlackOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (blackOwnedBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& blackOwned_ != null
&& blackOwned_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) {
getBlackOwnedBuilder().mergeFrom(value);
} else {
blackOwned_ = value;
}
} else {
blackOwnedBuilder_.mergeFrom(value);
}
if (blackOwned_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* 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 Builder clearBlackOwned() {
bitField0_ = (bitField0_ & ~0x00000004);
blackOwned_ = null;
if (blackOwnedBuilder_ != null) {
blackOwnedBuilder_.dispose();
blackOwnedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
getBlackOwnedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBlackOwnedFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getBlackOwnedOrBuilder() {
if (blackOwnedBuilder_ != null) {
return blackOwnedBuilder_.getMessageOrBuilder();
} else {
return blackOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: blackOwned_;
}
}
/**
*
*
*
* 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];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
getBlackOwnedFieldBuilder() {
if (blackOwnedBuilder_ == null) {
blackOwnedBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>(
getBlackOwned(), getParentForChildren(), isClean());
blackOwned_ = null;
}
return blackOwnedBuilder_;
}
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
womenOwned_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
womenOwnedBuilder_;
/**
*
*
*
* 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];
*
*
* @return Whether the womenOwned field is set.
*/
public boolean hasWomenOwned() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The womenOwned.
*/
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getWomenOwned() {
if (womenOwnedBuilder_ == null) {
return womenOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: womenOwned_;
} else {
return womenOwnedBuilder_.getMessage();
}
}
/**
*
*
*
* 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 Builder setWomenOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (womenOwnedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
womenOwned_ = value;
} else {
womenOwnedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder setWomenOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
builderForValue) {
if (womenOwnedBuilder_ == null) {
womenOwned_ = builderForValue.build();
} else {
womenOwnedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder mergeWomenOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (womenOwnedBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& womenOwned_ != null
&& womenOwned_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) {
getWomenOwnedBuilder().mergeFrom(value);
} else {
womenOwned_ = value;
}
} else {
womenOwnedBuilder_.mergeFrom(value);
}
if (womenOwned_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* 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 Builder clearWomenOwned() {
bitField0_ = (bitField0_ & ~0x00000008);
womenOwned_ = null;
if (womenOwnedBuilder_ != null) {
womenOwnedBuilder_.dispose();
womenOwnedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
getWomenOwnedBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getWomenOwnedFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getWomenOwnedOrBuilder() {
if (womenOwnedBuilder_ != null) {
return womenOwnedBuilder_.getMessageOrBuilder();
} else {
return womenOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: womenOwned_;
}
}
/**
*
*
*
* 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];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
getWomenOwnedFieldBuilder() {
if (womenOwnedBuilder_ == null) {
womenOwnedBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>(
getWomenOwned(), getParentForChildren(), isClean());
womenOwned_ = null;
}
return womenOwnedBuilder_;
}
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
veteranOwned_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
veteranOwnedBuilder_;
/**
*
*
*
* 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];
*
*
* @return Whether the veteranOwned field is set.
*/
public boolean hasVeteranOwned() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The veteranOwned.
*/
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getVeteranOwned() {
if (veteranOwnedBuilder_ == null) {
return veteranOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: veteranOwned_;
} else {
return veteranOwnedBuilder_.getMessage();
}
}
/**
*
*
*
* 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 Builder setVeteranOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (veteranOwnedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
veteranOwned_ = value;
} else {
veteranOwnedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder setVeteranOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
builderForValue) {
if (veteranOwnedBuilder_ == null) {
veteranOwned_ = builderForValue.build();
} else {
veteranOwnedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder mergeVeteranOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (veteranOwnedBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& veteranOwned_ != null
&& veteranOwned_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) {
getVeteranOwnedBuilder().mergeFrom(value);
} else {
veteranOwned_ = value;
}
} else {
veteranOwnedBuilder_.mergeFrom(value);
}
if (veteranOwned_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* 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 Builder clearVeteranOwned() {
bitField0_ = (bitField0_ & ~0x00000010);
veteranOwned_ = null;
if (veteranOwnedBuilder_ != null) {
veteranOwnedBuilder_.dispose();
veteranOwnedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
getVeteranOwnedBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getVeteranOwnedFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getVeteranOwnedOrBuilder() {
if (veteranOwnedBuilder_ != null) {
return veteranOwnedBuilder_.getMessageOrBuilder();
} else {
return veteranOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: veteranOwned_;
}
}
/**
*
*
*
* 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];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
getVeteranOwnedFieldBuilder() {
if (veteranOwnedBuilder_ == null) {
veteranOwnedBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>(
getVeteranOwned(), getParentForChildren(), isClean());
veteranOwned_ = null;
}
return veteranOwnedBuilder_;
}
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
latinoOwned_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
latinoOwnedBuilder_;
/**
*
*
*
* 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];
*
*
* @return Whether the latinoOwned field is set.
*/
public boolean hasLatinoOwned() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The latinoOwned.
*/
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getLatinoOwned() {
if (latinoOwnedBuilder_ == null) {
return latinoOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: latinoOwned_;
} else {
return latinoOwnedBuilder_.getMessage();
}
}
/**
*
*
*
* 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 Builder setLatinoOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (latinoOwnedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
latinoOwned_ = value;
} else {
latinoOwnedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder setLatinoOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
builderForValue) {
if (latinoOwnedBuilder_ == null) {
latinoOwned_ = builderForValue.build();
} else {
latinoOwnedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder mergeLatinoOwned(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (latinoOwnedBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& latinoOwned_ != null
&& latinoOwned_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) {
getLatinoOwnedBuilder().mergeFrom(value);
} else {
latinoOwned_ = value;
}
} else {
latinoOwnedBuilder_.mergeFrom(value);
}
if (latinoOwned_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* 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 Builder clearLatinoOwned() {
bitField0_ = (bitField0_ & ~0x00000020);
latinoOwned_ = null;
if (latinoOwnedBuilder_ != null) {
latinoOwnedBuilder_.dispose();
latinoOwnedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
getLatinoOwnedBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getLatinoOwnedFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getLatinoOwnedOrBuilder() {
if (latinoOwnedBuilder_ != null) {
return latinoOwnedBuilder_.getMessageOrBuilder();
} else {
return latinoOwned_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: latinoOwned_;
}
}
/**
*
*
*
* 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];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
getLatinoOwnedFieldBuilder() {
if (latinoOwnedBuilder_ == null) {
latinoOwnedBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>(
getLatinoOwned(), getParentForChildren(), isClean());
latinoOwned_ = null;
}
return latinoOwnedBuilder_;
}
private com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
smallBusiness_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
smallBusinessBuilder_;
/**
*
*
*
* 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];
*
*
* @return Whether the smallBusiness field is set.
*/
public boolean hasSmallBusiness() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* 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];
*
*
* @return The smallBusiness.
*/
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
getSmallBusiness() {
if (smallBusinessBuilder_ == null) {
return smallBusiness_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: smallBusiness_;
} else {
return smallBusinessBuilder_.getMessage();
}
}
/**
*
*
*
* 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 Builder setSmallBusiness(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (smallBusinessBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
smallBusiness_ = value;
} else {
smallBusinessBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder setSmallBusiness(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
builderForValue) {
if (smallBusinessBuilder_ == null) {
smallBusiness_ = builderForValue.build();
} else {
smallBusinessBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* 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 Builder mergeSmallBusiness(
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute value) {
if (smallBusinessBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& smallBusiness_ != null
&& smallBusiness_
!= com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()) {
getSmallBusinessBuilder().mergeFrom(value);
} else {
smallBusiness_ = value;
}
} else {
smallBusinessBuilder_.mergeFrom(value);
}
if (smallBusiness_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* 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 Builder clearSmallBusiness() {
bitField0_ = (bitField0_ & ~0x00000040);
smallBusiness_ = null;
if (smallBusinessBuilder_ != null) {
smallBusinessBuilder_.dispose();
smallBusinessBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder
getSmallBusinessBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getSmallBusinessFieldBuilder().getBuilder();
}
/**
*
*
*
* 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 com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttributeOrBuilder
getSmallBusinessOrBuilder() {
if (smallBusinessBuilder_ != null) {
return smallBusinessBuilder_.getMessageOrBuilder();
} else {
return smallBusiness_ == null
? com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.getDefaultInstance()
: smallBusiness_;
}
}
/**
*
*
*
* 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];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>
getSmallBusinessFieldBuilder() {
if (smallBusinessBuilder_ == null) {
smallBusinessBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity.IdentityAttribute
.Builder,
com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
.IdentityAttributeOrBuilder>(
getSmallBusiness(), getParentForChildren(), isClean());
smallBusiness_ = null;
}
return smallBusinessBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity)
}
// @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.BusinessIdentity)
private static final com.google.shopping.merchant.accounts.v1beta.BusinessIdentity
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.BusinessIdentity();
}
public static com.google.shopping.merchant.accounts.v1beta.BusinessIdentity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BusinessIdentity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.shopping.merchant.accounts.v1beta.BusinessIdentity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy