com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/local_services_verification_artifact.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A proto holding information specific to a local services business
* registration check.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact}
*/
public final class BusinessRegistrationCheckVerificationArtifact extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)
BusinessRegistrationCheckVerificationArtifactOrBuilder {
private static final long serialVersionUID = 0L;
// Use BusinessRegistrationCheckVerificationArtifact.newBuilder() to construct.
private BusinessRegistrationCheckVerificationArtifact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BusinessRegistrationCheckVerificationArtifact() {
registrationType_ = 0;
checkId_ = "";
rejectionReason_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BusinessRegistrationCheckVerificationArtifact();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_BusinessRegistrationCheckVerificationArtifact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_BusinessRegistrationCheckVerificationArtifact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.class, com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.Builder.class);
}
private int bitField0_;
private int businessRegistrationCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object businessRegistration_;
public enum BusinessRegistrationCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
REGISTRATION_NUMBER(1),
REGISTRATION_DOCUMENT(2),
BUSINESSREGISTRATION_NOT_SET(0);
private final int value;
private BusinessRegistrationCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BusinessRegistrationCase valueOf(int value) {
return forNumber(value);
}
public static BusinessRegistrationCase forNumber(int value) {
switch (value) {
case 1: return REGISTRATION_NUMBER;
case 2: return REGISTRATION_DOCUMENT;
case 0: return BUSINESSREGISTRATION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BusinessRegistrationCase
getBusinessRegistrationCase() {
return BusinessRegistrationCase.forNumber(
businessRegistrationCase_);
}
public static final int REGISTRATION_TYPE_FIELD_NUMBER = 3;
private int registrationType_ = 0;
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationType field is set.
*/
@java.lang.Override public boolean hasRegistrationType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for registrationType.
*/
@java.lang.Override public int getRegistrationTypeValue() {
return registrationType_;
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType getRegistrationType() {
com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType result = com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType.forNumber(registrationType_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType.UNRECOGNIZED : result;
}
public static final int CHECK_ID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object checkId_ = "";
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the checkId field is set.
*/
@java.lang.Override
public boolean hasCheckId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The checkId.
*/
@java.lang.Override
public java.lang.String getCheckId() {
java.lang.Object ref = checkId_;
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();
checkId_ = s;
return s;
}
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for checkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCheckIdBytes() {
java.lang.Object ref = checkId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
checkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REJECTION_REASON_FIELD_NUMBER = 5;
private int rejectionReason_ = 0;
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the rejectionReason field is set.
*/
@java.lang.Override public boolean hasRejectionReason() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for rejectionReason.
*/
@java.lang.Override public int getRejectionReasonValue() {
return rejectionReason_;
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The rejectionReason.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason getRejectionReason() {
com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason result = com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason.forNumber(rejectionReason_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason.UNRECOGNIZED : result;
}
public static final int REGISTRATION_NUMBER_FIELD_NUMBER = 1;
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationNumber field is set.
*/
@java.lang.Override
public boolean hasRegistrationNumber() {
return businessRegistrationCase_ == 1;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationNumber.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationNumber getRegistrationNumber() {
if (businessRegistrationCase_ == 1) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationNumberOrBuilder getRegistrationNumberOrBuilder() {
if (businessRegistrationCase_ == 1) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
}
public static final int REGISTRATION_DOCUMENT_FIELD_NUMBER = 2;
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationDocument field is set.
*/
@java.lang.Override
public boolean hasRegistrationDocument() {
return businessRegistrationCase_ == 2;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationDocument.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationDocument getRegistrationDocument() {
if (businessRegistrationCase_ == 2) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationDocumentOrBuilder getRegistrationDocumentOrBuilder() {
if (businessRegistrationCase_ == 2) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
}
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 (businessRegistrationCase_ == 1) {
output.writeMessage(1, (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_);
}
if (businessRegistrationCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(3, registrationType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(5, rejectionReason_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (businessRegistrationCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_);
}
if (businessRegistrationCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, registrationType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, rejectionReason_);
}
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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact other = (com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact) obj;
if (hasRegistrationType() != other.hasRegistrationType()) return false;
if (hasRegistrationType()) {
if (registrationType_ != other.registrationType_) return false;
}
if (hasCheckId() != other.hasCheckId()) return false;
if (hasCheckId()) {
if (!getCheckId()
.equals(other.getCheckId())) return false;
}
if (hasRejectionReason() != other.hasRejectionReason()) return false;
if (hasRejectionReason()) {
if (rejectionReason_ != other.rejectionReason_) return false;
}
if (!getBusinessRegistrationCase().equals(other.getBusinessRegistrationCase())) return false;
switch (businessRegistrationCase_) {
case 1:
if (!getRegistrationNumber()
.equals(other.getRegistrationNumber())) return false;
break;
case 2:
if (!getRegistrationDocument()
.equals(other.getRegistrationDocument())) return false;
break;
case 0:
default:
}
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();
if (hasRegistrationType()) {
hash = (37 * hash) + REGISTRATION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + registrationType_;
}
if (hasCheckId()) {
hash = (37 * hash) + CHECK_ID_FIELD_NUMBER;
hash = (53 * hash) + getCheckId().hashCode();
}
if (hasRejectionReason()) {
hash = (37 * hash) + REJECTION_REASON_FIELD_NUMBER;
hash = (53 * hash) + rejectionReason_;
}
switch (businessRegistrationCase_) {
case 1:
hash = (37 * hash) + REGISTRATION_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getRegistrationNumber().hashCode();
break;
case 2:
hash = (37 * hash) + REGISTRATION_DOCUMENT_FIELD_NUMBER;
hash = (53 * hash) + getRegistrationDocument().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact 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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact 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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact 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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact 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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact 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;
}
/**
*
* A proto holding information specific to a local services business
* registration check.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_BusinessRegistrationCheckVerificationArtifact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_BusinessRegistrationCheckVerificationArtifact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.class, com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
registrationType_ = 0;
checkId_ = "";
rejectionReason_ = 0;
if (registrationNumberBuilder_ != null) {
registrationNumberBuilder_.clear();
}
if (registrationDocumentBuilder_ != null) {
registrationDocumentBuilder_.clear();
}
businessRegistrationCase_ = 0;
businessRegistration_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_BusinessRegistrationCheckVerificationArtifact_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact build() {
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact buildPartial() {
com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact result = new com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.registrationType_ = registrationType_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.checkId_ = checkId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rejectionReason_ = rejectionReason_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact result) {
result.businessRegistrationCase_ = businessRegistrationCase_;
result.businessRegistration_ = this.businessRegistration_;
if (businessRegistrationCase_ == 1 &&
registrationNumberBuilder_ != null) {
result.businessRegistration_ = registrationNumberBuilder_.build();
}
if (businessRegistrationCase_ == 2 &&
registrationDocumentBuilder_ != null) {
result.businessRegistration_ = registrationDocumentBuilder_.build();
}
}
@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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact) {
return mergeFrom((com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact other) {
if (other == com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact.getDefaultInstance()) return this;
if (other.hasRegistrationType()) {
setRegistrationType(other.getRegistrationType());
}
if (other.hasCheckId()) {
checkId_ = other.checkId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasRejectionReason()) {
setRejectionReason(other.getRejectionReason());
}
switch (other.getBusinessRegistrationCase()) {
case REGISTRATION_NUMBER: {
mergeRegistrationNumber(other.getRegistrationNumber());
break;
}
case REGISTRATION_DOCUMENT: {
mergeRegistrationDocument(other.getRegistrationDocument());
break;
}
case BUSINESSREGISTRATION_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getRegistrationNumberFieldBuilder().getBuilder(),
extensionRegistry);
businessRegistrationCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getRegistrationDocumentFieldBuilder().getBuilder(),
extensionRegistry);
businessRegistrationCase_ = 2;
break;
} // case 18
case 24: {
registrationType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 24
case 34: {
checkId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 34
case 40: {
rejectionReason_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 40
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 businessRegistrationCase_ = 0;
private java.lang.Object businessRegistration_;
public BusinessRegistrationCase
getBusinessRegistrationCase() {
return BusinessRegistrationCase.forNumber(
businessRegistrationCase_);
}
public Builder clearBusinessRegistration() {
businessRegistrationCase_ = 0;
businessRegistration_ = null;
onChanged();
return this;
}
private int bitField0_;
private int registrationType_ = 0;
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationType field is set.
*/
@java.lang.Override public boolean hasRegistrationType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for registrationType.
*/
@java.lang.Override public int getRegistrationTypeValue() {
return registrationType_;
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for registrationType to set.
* @return This builder for chaining.
*/
public Builder setRegistrationTypeValue(int value) {
registrationType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType getRegistrationType() {
com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType result = com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType.forNumber(registrationType_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType.UNRECOGNIZED : result;
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The registrationType to set.
* @return This builder for chaining.
*/
public Builder setRegistrationType(com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
registrationType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The type of business registration check (number, document).
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationTypeEnum.LocalServicesBusinessRegistrationType registration_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRegistrationType() {
bitField0_ = (bitField0_ & ~0x00000001);
registrationType_ = 0;
onChanged();
return this;
}
private java.lang.Object checkId_ = "";
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the checkId field is set.
*/
public boolean hasCheckId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The checkId.
*/
public java.lang.String getCheckId() {
java.lang.Object ref = checkId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
checkId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for checkId.
*/
public com.google.protobuf.ByteString
getCheckIdBytes() {
java.lang.Object ref = checkId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
checkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The checkId to set.
* @return This builder for chaining.
*/
public Builder setCheckId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
checkId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCheckId() {
checkId_ = getDefaultInstance().getCheckId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The id of the check, such as vat_tax_id, representing "VAT Tax
* ID" requirement.
*
*
* optional string check_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for checkId to set.
* @return This builder for chaining.
*/
public Builder setCheckIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
checkId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int rejectionReason_ = 0;
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the rejectionReason field is set.
*/
@java.lang.Override public boolean hasRejectionReason() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for rejectionReason.
*/
@java.lang.Override public int getRejectionReasonValue() {
return rejectionReason_;
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for rejectionReason to set.
* @return This builder for chaining.
*/
public Builder setRejectionReasonValue(int value) {
rejectionReason_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The rejectionReason.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason getRejectionReason() {
com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason result = com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason.forNumber(rejectionReason_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason.UNRECOGNIZED : result;
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The rejectionReason to set.
* @return This builder for chaining.
*/
public Builder setRejectionReason(com.google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
rejectionReason_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Registration document rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesBusinessRegistrationCheckRejectionReasonEnum.LocalServicesBusinessRegistrationCheckRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRejectionReason() {
bitField0_ = (bitField0_ & ~0x00000004);
rejectionReason_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationNumber, com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationNumberOrBuilder> registrationNumberBuilder_;
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationNumber field is set.
*/
@java.lang.Override
public boolean hasRegistrationNumber() {
return businessRegistrationCase_ == 1;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationNumber.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationNumber getRegistrationNumber() {
if (registrationNumberBuilder_ == null) {
if (businessRegistrationCase_ == 1) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
} else {
if (businessRegistrationCase_ == 1) {
return registrationNumberBuilder_.getMessage();
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
}
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRegistrationNumber(com.google.ads.googleads.v17.resources.BusinessRegistrationNumber value) {
if (registrationNumberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
businessRegistration_ = value;
onChanged();
} else {
registrationNumberBuilder_.setMessage(value);
}
businessRegistrationCase_ = 1;
return this;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRegistrationNumber(
com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.Builder builderForValue) {
if (registrationNumberBuilder_ == null) {
businessRegistration_ = builderForValue.build();
onChanged();
} else {
registrationNumberBuilder_.setMessage(builderForValue.build());
}
businessRegistrationCase_ = 1;
return this;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRegistrationNumber(com.google.ads.googleads.v17.resources.BusinessRegistrationNumber value) {
if (registrationNumberBuilder_ == null) {
if (businessRegistrationCase_ == 1 &&
businessRegistration_ != com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance()) {
businessRegistration_ = com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.newBuilder((com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_)
.mergeFrom(value).buildPartial();
} else {
businessRegistration_ = value;
}
onChanged();
} else {
if (businessRegistrationCase_ == 1) {
registrationNumberBuilder_.mergeFrom(value);
} else {
registrationNumberBuilder_.setMessage(value);
}
}
businessRegistrationCase_ = 1;
return this;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRegistrationNumber() {
if (registrationNumberBuilder_ == null) {
if (businessRegistrationCase_ == 1) {
businessRegistrationCase_ = 0;
businessRegistration_ = null;
onChanged();
}
} else {
if (businessRegistrationCase_ == 1) {
businessRegistrationCase_ = 0;
businessRegistration_ = null;
}
registrationNumberBuilder_.clear();
}
return this;
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.Builder getRegistrationNumberBuilder() {
return getRegistrationNumberFieldBuilder().getBuilder();
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationNumberOrBuilder getRegistrationNumberOrBuilder() {
if ((businessRegistrationCase_ == 1) && (registrationNumberBuilder_ != null)) {
return registrationNumberBuilder_.getMessageOrBuilder();
} else {
if (businessRegistrationCase_ == 1) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
}
}
/**
*
* Output only. Message storing government issued number for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationNumber registration_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationNumber, com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationNumberOrBuilder>
getRegistrationNumberFieldBuilder() {
if (registrationNumberBuilder_ == null) {
if (!(businessRegistrationCase_ == 1)) {
businessRegistration_ = com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.getDefaultInstance();
}
registrationNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationNumber, com.google.ads.googleads.v17.resources.BusinessRegistrationNumber.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationNumberOrBuilder>(
(com.google.ads.googleads.v17.resources.BusinessRegistrationNumber) businessRegistration_,
getParentForChildren(),
isClean());
businessRegistration_ = null;
}
businessRegistrationCase_ = 1;
onChanged();
return registrationNumberBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationDocument, com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationDocumentOrBuilder> registrationDocumentBuilder_;
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the registrationDocument field is set.
*/
@java.lang.Override
public boolean hasRegistrationDocument() {
return businessRegistrationCase_ == 2;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The registrationDocument.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationDocument getRegistrationDocument() {
if (registrationDocumentBuilder_ == null) {
if (businessRegistrationCase_ == 2) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
} else {
if (businessRegistrationCase_ == 2) {
return registrationDocumentBuilder_.getMessage();
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
}
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRegistrationDocument(com.google.ads.googleads.v17.resources.BusinessRegistrationDocument value) {
if (registrationDocumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
businessRegistration_ = value;
onChanged();
} else {
registrationDocumentBuilder_.setMessage(value);
}
businessRegistrationCase_ = 2;
return this;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRegistrationDocument(
com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.Builder builderForValue) {
if (registrationDocumentBuilder_ == null) {
businessRegistration_ = builderForValue.build();
onChanged();
} else {
registrationDocumentBuilder_.setMessage(builderForValue.build());
}
businessRegistrationCase_ = 2;
return this;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRegistrationDocument(com.google.ads.googleads.v17.resources.BusinessRegistrationDocument value) {
if (registrationDocumentBuilder_ == null) {
if (businessRegistrationCase_ == 2 &&
businessRegistration_ != com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance()) {
businessRegistration_ = com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.newBuilder((com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_)
.mergeFrom(value).buildPartial();
} else {
businessRegistration_ = value;
}
onChanged();
} else {
if (businessRegistrationCase_ == 2) {
registrationDocumentBuilder_.mergeFrom(value);
} else {
registrationDocumentBuilder_.setMessage(value);
}
}
businessRegistrationCase_ = 2;
return this;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRegistrationDocument() {
if (registrationDocumentBuilder_ == null) {
if (businessRegistrationCase_ == 2) {
businessRegistrationCase_ = 0;
businessRegistration_ = null;
onChanged();
}
} else {
if (businessRegistrationCase_ == 2) {
businessRegistrationCase_ = 0;
businessRegistration_ = null;
}
registrationDocumentBuilder_.clear();
}
return this;
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.Builder getRegistrationDocumentBuilder() {
return getRegistrationDocumentFieldBuilder().getBuilder();
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BusinessRegistrationDocumentOrBuilder getRegistrationDocumentOrBuilder() {
if ((businessRegistrationCase_ == 2) && (registrationDocumentBuilder_ != null)) {
return registrationDocumentBuilder_.getMessageOrBuilder();
} else {
if (businessRegistrationCase_ == 2) {
return (com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_;
}
return com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
}
}
/**
*
* Output only. Message storing document info for the business.
*
*
* .google.ads.googleads.v17.resources.BusinessRegistrationDocument registration_document = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationDocument, com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationDocumentOrBuilder>
getRegistrationDocumentFieldBuilder() {
if (registrationDocumentBuilder_ == null) {
if (!(businessRegistrationCase_ == 2)) {
businessRegistration_ = com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.getDefaultInstance();
}
registrationDocumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BusinessRegistrationDocument, com.google.ads.googleads.v17.resources.BusinessRegistrationDocument.Builder, com.google.ads.googleads.v17.resources.BusinessRegistrationDocumentOrBuilder>(
(com.google.ads.googleads.v17.resources.BusinessRegistrationDocument) businessRegistration_,
getParentForChildren(),
isClean());
businessRegistration_ = null;
}
businessRegistrationCase_ = 2;
onChanged();
return registrationDocumentBuilder_;
}
@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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact)
private static final com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact();
}
public static com.google.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BusinessRegistrationCheckVerificationArtifact 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.ads.googleads.v17.resources.BusinessRegistrationCheckVerificationArtifact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy