com.google.ads.googleads.v17.errors.ErrorDetails 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/errors/errors.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.errors;
/**
*
* Additional error details.
*
*
* Protobuf type {@code google.ads.googleads.v17.errors.ErrorDetails}
*/
public final class ErrorDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.errors.ErrorDetails)
ErrorDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ErrorDetails.newBuilder() to construct.
private ErrorDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorDetails() {
unpublishedErrorCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ErrorDetails();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.errors.ErrorDetails.class, com.google.ads.googleads.v17.errors.ErrorDetails.Builder.class);
}
private int bitField0_;
public static final int UNPUBLISHED_ERROR_CODE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object unpublishedErrorCode_ = "";
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @return The unpublishedErrorCode.
*/
@java.lang.Override
public java.lang.String getUnpublishedErrorCode() {
java.lang.Object ref = unpublishedErrorCode_;
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();
unpublishedErrorCode_ = s;
return s;
}
}
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @return The bytes for unpublishedErrorCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnpublishedErrorCodeBytes() {
java.lang.Object ref = unpublishedErrorCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unpublishedErrorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POLICY_VIOLATION_DETAILS_FIELD_NUMBER = 2;
private com.google.ads.googleads.v17.errors.PolicyViolationDetails policyViolationDetails_;
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
* @return Whether the policyViolationDetails field is set.
*/
@java.lang.Override
public boolean hasPolicyViolationDetails() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
* @return The policyViolationDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.PolicyViolationDetails getPolicyViolationDetails() {
return policyViolationDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyViolationDetails.getDefaultInstance() : policyViolationDetails_;
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.PolicyViolationDetailsOrBuilder getPolicyViolationDetailsOrBuilder() {
return policyViolationDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyViolationDetails.getDefaultInstance() : policyViolationDetails_;
}
public static final int POLICY_FINDING_DETAILS_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.errors.PolicyFindingDetails policyFindingDetails_;
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
* @return Whether the policyFindingDetails field is set.
*/
@java.lang.Override
public boolean hasPolicyFindingDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
* @return The policyFindingDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.PolicyFindingDetails getPolicyFindingDetails() {
return policyFindingDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyFindingDetails.getDefaultInstance() : policyFindingDetails_;
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.PolicyFindingDetailsOrBuilder getPolicyFindingDetailsOrBuilder() {
return policyFindingDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyFindingDetails.getDefaultInstance() : policyFindingDetails_;
}
public static final int QUOTA_ERROR_DETAILS_FIELD_NUMBER = 4;
private com.google.ads.googleads.v17.errors.QuotaErrorDetails quotaErrorDetails_;
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
* @return Whether the quotaErrorDetails field is set.
*/
@java.lang.Override
public boolean hasQuotaErrorDetails() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
* @return The quotaErrorDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.QuotaErrorDetails getQuotaErrorDetails() {
return quotaErrorDetails_ == null ? com.google.ads.googleads.v17.errors.QuotaErrorDetails.getDefaultInstance() : quotaErrorDetails_;
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.QuotaErrorDetailsOrBuilder getQuotaErrorDetailsOrBuilder() {
return quotaErrorDetails_ == null ? com.google.ads.googleads.v17.errors.QuotaErrorDetails.getDefaultInstance() : quotaErrorDetails_;
}
public static final int RESOURCE_COUNT_DETAILS_FIELD_NUMBER = 5;
private com.google.ads.googleads.v17.errors.ResourceCountDetails resourceCountDetails_;
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
* @return Whether the resourceCountDetails field is set.
*/
@java.lang.Override
public boolean hasResourceCountDetails() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
* @return The resourceCountDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.ResourceCountDetails getResourceCountDetails() {
return resourceCountDetails_ == null ? com.google.ads.googleads.v17.errors.ResourceCountDetails.getDefaultInstance() : resourceCountDetails_;
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.errors.ResourceCountDetailsOrBuilder getResourceCountDetailsOrBuilder() {
return resourceCountDetails_ == null ? com.google.ads.googleads.v17.errors.ResourceCountDetails.getDefaultInstance() : resourceCountDetails_;
}
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(unpublishedErrorCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unpublishedErrorCode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getPolicyViolationDetails());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getPolicyFindingDetails());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getQuotaErrorDetails());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getResourceCountDetails());
}
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(unpublishedErrorCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unpublishedErrorCode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPolicyViolationDetails());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPolicyFindingDetails());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getQuotaErrorDetails());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getResourceCountDetails());
}
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.errors.ErrorDetails)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.errors.ErrorDetails other = (com.google.ads.googleads.v17.errors.ErrorDetails) obj;
if (!getUnpublishedErrorCode()
.equals(other.getUnpublishedErrorCode())) return false;
if (hasPolicyViolationDetails() != other.hasPolicyViolationDetails()) return false;
if (hasPolicyViolationDetails()) {
if (!getPolicyViolationDetails()
.equals(other.getPolicyViolationDetails())) return false;
}
if (hasPolicyFindingDetails() != other.hasPolicyFindingDetails()) return false;
if (hasPolicyFindingDetails()) {
if (!getPolicyFindingDetails()
.equals(other.getPolicyFindingDetails())) return false;
}
if (hasQuotaErrorDetails() != other.hasQuotaErrorDetails()) return false;
if (hasQuotaErrorDetails()) {
if (!getQuotaErrorDetails()
.equals(other.getQuotaErrorDetails())) return false;
}
if (hasResourceCountDetails() != other.hasResourceCountDetails()) return false;
if (hasResourceCountDetails()) {
if (!getResourceCountDetails()
.equals(other.getResourceCountDetails())) 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) + UNPUBLISHED_ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getUnpublishedErrorCode().hashCode();
if (hasPolicyViolationDetails()) {
hash = (37 * hash) + POLICY_VIOLATION_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getPolicyViolationDetails().hashCode();
}
if (hasPolicyFindingDetails()) {
hash = (37 * hash) + POLICY_FINDING_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getPolicyFindingDetails().hashCode();
}
if (hasQuotaErrorDetails()) {
hash = (37 * hash) + QUOTA_ERROR_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getQuotaErrorDetails().hashCode();
}
if (hasResourceCountDetails()) {
hash = (37 * hash) + RESOURCE_COUNT_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getResourceCountDetails().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.errors.ErrorDetails parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.ErrorDetails 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.errors.ErrorDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.ErrorDetails 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.errors.ErrorDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.ErrorDetails 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.errors.ErrorDetails parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.errors.ErrorDetails 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.errors.ErrorDetails parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.errors.ErrorDetails 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.errors.ErrorDetails 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.errors.ErrorDetails 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.errors.ErrorDetails 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;
}
/**
*
* Additional error details.
*
*
* Protobuf type {@code google.ads.googleads.v17.errors.ErrorDetails}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.errors.ErrorDetails)
com.google.ads.googleads.v17.errors.ErrorDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.errors.ErrorDetails.class, com.google.ads.googleads.v17.errors.ErrorDetails.Builder.class);
}
// Construct using com.google.ads.googleads.v17.errors.ErrorDetails.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPolicyViolationDetailsFieldBuilder();
getPolicyFindingDetailsFieldBuilder();
getQuotaErrorDetailsFieldBuilder();
getResourceCountDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
unpublishedErrorCode_ = "";
policyViolationDetails_ = null;
if (policyViolationDetailsBuilder_ != null) {
policyViolationDetailsBuilder_.dispose();
policyViolationDetailsBuilder_ = null;
}
policyFindingDetails_ = null;
if (policyFindingDetailsBuilder_ != null) {
policyFindingDetailsBuilder_.dispose();
policyFindingDetailsBuilder_ = null;
}
quotaErrorDetails_ = null;
if (quotaErrorDetailsBuilder_ != null) {
quotaErrorDetailsBuilder_.dispose();
quotaErrorDetailsBuilder_ = null;
}
resourceCountDetails_ = null;
if (resourceCountDetailsBuilder_ != null) {
resourceCountDetailsBuilder_.dispose();
resourceCountDetailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorDetails_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.ErrorDetails getDefaultInstanceForType() {
return com.google.ads.googleads.v17.errors.ErrorDetails.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.ErrorDetails build() {
com.google.ads.googleads.v17.errors.ErrorDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.ErrorDetails buildPartial() {
com.google.ads.googleads.v17.errors.ErrorDetails result = new com.google.ads.googleads.v17.errors.ErrorDetails(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.errors.ErrorDetails result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.unpublishedErrorCode_ = unpublishedErrorCode_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.policyViolationDetails_ = policyViolationDetailsBuilder_ == null
? policyViolationDetails_
: policyViolationDetailsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.policyFindingDetails_ = policyFindingDetailsBuilder_ == null
? policyFindingDetails_
: policyFindingDetailsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.quotaErrorDetails_ = quotaErrorDetailsBuilder_ == null
? quotaErrorDetails_
: quotaErrorDetailsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.resourceCountDetails_ = resourceCountDetailsBuilder_ == null
? resourceCountDetails_
: resourceCountDetailsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
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.ads.googleads.v17.errors.ErrorDetails) {
return mergeFrom((com.google.ads.googleads.v17.errors.ErrorDetails)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.errors.ErrorDetails other) {
if (other == com.google.ads.googleads.v17.errors.ErrorDetails.getDefaultInstance()) return this;
if (!other.getUnpublishedErrorCode().isEmpty()) {
unpublishedErrorCode_ = other.unpublishedErrorCode_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasPolicyViolationDetails()) {
mergePolicyViolationDetails(other.getPolicyViolationDetails());
}
if (other.hasPolicyFindingDetails()) {
mergePolicyFindingDetails(other.getPolicyFindingDetails());
}
if (other.hasQuotaErrorDetails()) {
mergeQuotaErrorDetails(other.getQuotaErrorDetails());
}
if (other.hasResourceCountDetails()) {
mergeResourceCountDetails(other.getResourceCountDetails());
}
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: {
unpublishedErrorCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPolicyViolationDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getPolicyFindingDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getQuotaErrorDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getResourceCountDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
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 unpublishedErrorCode_ = "";
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @return The unpublishedErrorCode.
*/
public java.lang.String getUnpublishedErrorCode() {
java.lang.Object ref = unpublishedErrorCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unpublishedErrorCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @return The bytes for unpublishedErrorCode.
*/
public com.google.protobuf.ByteString
getUnpublishedErrorCodeBytes() {
java.lang.Object ref = unpublishedErrorCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unpublishedErrorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @param value The unpublishedErrorCode to set.
* @return This builder for chaining.
*/
public Builder setUnpublishedErrorCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
unpublishedErrorCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @return This builder for chaining.
*/
public Builder clearUnpublishedErrorCode() {
unpublishedErrorCode_ = getDefaultInstance().getUnpublishedErrorCode();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The error code that should have been returned, but wasn't. This is used
* when the error code is not published in the client specified version.
*
*
* string unpublished_error_code = 1;
* @param value The bytes for unpublishedErrorCode to set.
* @return This builder for chaining.
*/
public Builder setUnpublishedErrorCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
unpublishedErrorCode_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.ads.googleads.v17.errors.PolicyViolationDetails policyViolationDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyViolationDetails, com.google.ads.googleads.v17.errors.PolicyViolationDetails.Builder, com.google.ads.googleads.v17.errors.PolicyViolationDetailsOrBuilder> policyViolationDetailsBuilder_;
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
* @return Whether the policyViolationDetails field is set.
*/
public boolean hasPolicyViolationDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
* @return The policyViolationDetails.
*/
public com.google.ads.googleads.v17.errors.PolicyViolationDetails getPolicyViolationDetails() {
if (policyViolationDetailsBuilder_ == null) {
return policyViolationDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyViolationDetails.getDefaultInstance() : policyViolationDetails_;
} else {
return policyViolationDetailsBuilder_.getMessage();
}
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public Builder setPolicyViolationDetails(com.google.ads.googleads.v17.errors.PolicyViolationDetails value) {
if (policyViolationDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
policyViolationDetails_ = value;
} else {
policyViolationDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public Builder setPolicyViolationDetails(
com.google.ads.googleads.v17.errors.PolicyViolationDetails.Builder builderForValue) {
if (policyViolationDetailsBuilder_ == null) {
policyViolationDetails_ = builderForValue.build();
} else {
policyViolationDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public Builder mergePolicyViolationDetails(com.google.ads.googleads.v17.errors.PolicyViolationDetails value) {
if (policyViolationDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
policyViolationDetails_ != null &&
policyViolationDetails_ != com.google.ads.googleads.v17.errors.PolicyViolationDetails.getDefaultInstance()) {
getPolicyViolationDetailsBuilder().mergeFrom(value);
} else {
policyViolationDetails_ = value;
}
} else {
policyViolationDetailsBuilder_.mergeFrom(value);
}
if (policyViolationDetails_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public Builder clearPolicyViolationDetails() {
bitField0_ = (bitField0_ & ~0x00000002);
policyViolationDetails_ = null;
if (policyViolationDetailsBuilder_ != null) {
policyViolationDetailsBuilder_.dispose();
policyViolationDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public com.google.ads.googleads.v17.errors.PolicyViolationDetails.Builder getPolicyViolationDetailsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPolicyViolationDetailsFieldBuilder().getBuilder();
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
public com.google.ads.googleads.v17.errors.PolicyViolationDetailsOrBuilder getPolicyViolationDetailsOrBuilder() {
if (policyViolationDetailsBuilder_ != null) {
return policyViolationDetailsBuilder_.getMessageOrBuilder();
} else {
return policyViolationDetails_ == null ?
com.google.ads.googleads.v17.errors.PolicyViolationDetails.getDefaultInstance() : policyViolationDetails_;
}
}
/**
*
* Describes an ad policy violation.
*
*
* .google.ads.googleads.v17.errors.PolicyViolationDetails policy_violation_details = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyViolationDetails, com.google.ads.googleads.v17.errors.PolicyViolationDetails.Builder, com.google.ads.googleads.v17.errors.PolicyViolationDetailsOrBuilder>
getPolicyViolationDetailsFieldBuilder() {
if (policyViolationDetailsBuilder_ == null) {
policyViolationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyViolationDetails, com.google.ads.googleads.v17.errors.PolicyViolationDetails.Builder, com.google.ads.googleads.v17.errors.PolicyViolationDetailsOrBuilder>(
getPolicyViolationDetails(),
getParentForChildren(),
isClean());
policyViolationDetails_ = null;
}
return policyViolationDetailsBuilder_;
}
private com.google.ads.googleads.v17.errors.PolicyFindingDetails policyFindingDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyFindingDetails, com.google.ads.googleads.v17.errors.PolicyFindingDetails.Builder, com.google.ads.googleads.v17.errors.PolicyFindingDetailsOrBuilder> policyFindingDetailsBuilder_;
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
* @return Whether the policyFindingDetails field is set.
*/
public boolean hasPolicyFindingDetails() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
* @return The policyFindingDetails.
*/
public com.google.ads.googleads.v17.errors.PolicyFindingDetails getPolicyFindingDetails() {
if (policyFindingDetailsBuilder_ == null) {
return policyFindingDetails_ == null ? com.google.ads.googleads.v17.errors.PolicyFindingDetails.getDefaultInstance() : policyFindingDetails_;
} else {
return policyFindingDetailsBuilder_.getMessage();
}
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public Builder setPolicyFindingDetails(com.google.ads.googleads.v17.errors.PolicyFindingDetails value) {
if (policyFindingDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
policyFindingDetails_ = value;
} else {
policyFindingDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public Builder setPolicyFindingDetails(
com.google.ads.googleads.v17.errors.PolicyFindingDetails.Builder builderForValue) {
if (policyFindingDetailsBuilder_ == null) {
policyFindingDetails_ = builderForValue.build();
} else {
policyFindingDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public Builder mergePolicyFindingDetails(com.google.ads.googleads.v17.errors.PolicyFindingDetails value) {
if (policyFindingDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
policyFindingDetails_ != null &&
policyFindingDetails_ != com.google.ads.googleads.v17.errors.PolicyFindingDetails.getDefaultInstance()) {
getPolicyFindingDetailsBuilder().mergeFrom(value);
} else {
policyFindingDetails_ = value;
}
} else {
policyFindingDetailsBuilder_.mergeFrom(value);
}
if (policyFindingDetails_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public Builder clearPolicyFindingDetails() {
bitField0_ = (bitField0_ & ~0x00000004);
policyFindingDetails_ = null;
if (policyFindingDetailsBuilder_ != null) {
policyFindingDetailsBuilder_.dispose();
policyFindingDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public com.google.ads.googleads.v17.errors.PolicyFindingDetails.Builder getPolicyFindingDetailsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPolicyFindingDetailsFieldBuilder().getBuilder();
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
public com.google.ads.googleads.v17.errors.PolicyFindingDetailsOrBuilder getPolicyFindingDetailsOrBuilder() {
if (policyFindingDetailsBuilder_ != null) {
return policyFindingDetailsBuilder_.getMessageOrBuilder();
} else {
return policyFindingDetails_ == null ?
com.google.ads.googleads.v17.errors.PolicyFindingDetails.getDefaultInstance() : policyFindingDetails_;
}
}
/**
*
* Describes policy violation findings.
*
*
* .google.ads.googleads.v17.errors.PolicyFindingDetails policy_finding_details = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyFindingDetails, com.google.ads.googleads.v17.errors.PolicyFindingDetails.Builder, com.google.ads.googleads.v17.errors.PolicyFindingDetailsOrBuilder>
getPolicyFindingDetailsFieldBuilder() {
if (policyFindingDetailsBuilder_ == null) {
policyFindingDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.PolicyFindingDetails, com.google.ads.googleads.v17.errors.PolicyFindingDetails.Builder, com.google.ads.googleads.v17.errors.PolicyFindingDetailsOrBuilder>(
getPolicyFindingDetails(),
getParentForChildren(),
isClean());
policyFindingDetails_ = null;
}
return policyFindingDetailsBuilder_;
}
private com.google.ads.googleads.v17.errors.QuotaErrorDetails quotaErrorDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.QuotaErrorDetails, com.google.ads.googleads.v17.errors.QuotaErrorDetails.Builder, com.google.ads.googleads.v17.errors.QuotaErrorDetailsOrBuilder> quotaErrorDetailsBuilder_;
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
* @return Whether the quotaErrorDetails field is set.
*/
public boolean hasQuotaErrorDetails() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
* @return The quotaErrorDetails.
*/
public com.google.ads.googleads.v17.errors.QuotaErrorDetails getQuotaErrorDetails() {
if (quotaErrorDetailsBuilder_ == null) {
return quotaErrorDetails_ == null ? com.google.ads.googleads.v17.errors.QuotaErrorDetails.getDefaultInstance() : quotaErrorDetails_;
} else {
return quotaErrorDetailsBuilder_.getMessage();
}
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public Builder setQuotaErrorDetails(com.google.ads.googleads.v17.errors.QuotaErrorDetails value) {
if (quotaErrorDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
quotaErrorDetails_ = value;
} else {
quotaErrorDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public Builder setQuotaErrorDetails(
com.google.ads.googleads.v17.errors.QuotaErrorDetails.Builder builderForValue) {
if (quotaErrorDetailsBuilder_ == null) {
quotaErrorDetails_ = builderForValue.build();
} else {
quotaErrorDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public Builder mergeQuotaErrorDetails(com.google.ads.googleads.v17.errors.QuotaErrorDetails value) {
if (quotaErrorDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
quotaErrorDetails_ != null &&
quotaErrorDetails_ != com.google.ads.googleads.v17.errors.QuotaErrorDetails.getDefaultInstance()) {
getQuotaErrorDetailsBuilder().mergeFrom(value);
} else {
quotaErrorDetails_ = value;
}
} else {
quotaErrorDetailsBuilder_.mergeFrom(value);
}
if (quotaErrorDetails_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public Builder clearQuotaErrorDetails() {
bitField0_ = (bitField0_ & ~0x00000008);
quotaErrorDetails_ = null;
if (quotaErrorDetailsBuilder_ != null) {
quotaErrorDetailsBuilder_.dispose();
quotaErrorDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public com.google.ads.googleads.v17.errors.QuotaErrorDetails.Builder getQuotaErrorDetailsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getQuotaErrorDetailsFieldBuilder().getBuilder();
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
public com.google.ads.googleads.v17.errors.QuotaErrorDetailsOrBuilder getQuotaErrorDetailsOrBuilder() {
if (quotaErrorDetailsBuilder_ != null) {
return quotaErrorDetailsBuilder_.getMessageOrBuilder();
} else {
return quotaErrorDetails_ == null ?
com.google.ads.googleads.v17.errors.QuotaErrorDetails.getDefaultInstance() : quotaErrorDetails_;
}
}
/**
*
* Details on the quota error, including the scope (account or developer), the
* rate bucket name and the retry delay.
*
*
* .google.ads.googleads.v17.errors.QuotaErrorDetails quota_error_details = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.QuotaErrorDetails, com.google.ads.googleads.v17.errors.QuotaErrorDetails.Builder, com.google.ads.googleads.v17.errors.QuotaErrorDetailsOrBuilder>
getQuotaErrorDetailsFieldBuilder() {
if (quotaErrorDetailsBuilder_ == null) {
quotaErrorDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.QuotaErrorDetails, com.google.ads.googleads.v17.errors.QuotaErrorDetails.Builder, com.google.ads.googleads.v17.errors.QuotaErrorDetailsOrBuilder>(
getQuotaErrorDetails(),
getParentForChildren(),
isClean());
quotaErrorDetails_ = null;
}
return quotaErrorDetailsBuilder_;
}
private com.google.ads.googleads.v17.errors.ResourceCountDetails resourceCountDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.ResourceCountDetails, com.google.ads.googleads.v17.errors.ResourceCountDetails.Builder, com.google.ads.googleads.v17.errors.ResourceCountDetailsOrBuilder> resourceCountDetailsBuilder_;
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
* @return Whether the resourceCountDetails field is set.
*/
public boolean hasResourceCountDetails() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
* @return The resourceCountDetails.
*/
public com.google.ads.googleads.v17.errors.ResourceCountDetails getResourceCountDetails() {
if (resourceCountDetailsBuilder_ == null) {
return resourceCountDetails_ == null ? com.google.ads.googleads.v17.errors.ResourceCountDetails.getDefaultInstance() : resourceCountDetails_;
} else {
return resourceCountDetailsBuilder_.getMessage();
}
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public Builder setResourceCountDetails(com.google.ads.googleads.v17.errors.ResourceCountDetails value) {
if (resourceCountDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourceCountDetails_ = value;
} else {
resourceCountDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public Builder setResourceCountDetails(
com.google.ads.googleads.v17.errors.ResourceCountDetails.Builder builderForValue) {
if (resourceCountDetailsBuilder_ == null) {
resourceCountDetails_ = builderForValue.build();
} else {
resourceCountDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public Builder mergeResourceCountDetails(com.google.ads.googleads.v17.errors.ResourceCountDetails value) {
if (resourceCountDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
resourceCountDetails_ != null &&
resourceCountDetails_ != com.google.ads.googleads.v17.errors.ResourceCountDetails.getDefaultInstance()) {
getResourceCountDetailsBuilder().mergeFrom(value);
} else {
resourceCountDetails_ = value;
}
} else {
resourceCountDetailsBuilder_.mergeFrom(value);
}
if (resourceCountDetails_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public Builder clearResourceCountDetails() {
bitField0_ = (bitField0_ & ~0x00000010);
resourceCountDetails_ = null;
if (resourceCountDetailsBuilder_ != null) {
resourceCountDetailsBuilder_.dispose();
resourceCountDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public com.google.ads.googleads.v17.errors.ResourceCountDetails.Builder getResourceCountDetailsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getResourceCountDetailsFieldBuilder().getBuilder();
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
public com.google.ads.googleads.v17.errors.ResourceCountDetailsOrBuilder getResourceCountDetailsOrBuilder() {
if (resourceCountDetailsBuilder_ != null) {
return resourceCountDetailsBuilder_.getMessageOrBuilder();
} else {
return resourceCountDetails_ == null ?
com.google.ads.googleads.v17.errors.ResourceCountDetails.getDefaultInstance() : resourceCountDetails_;
}
}
/**
*
* Details for a resource count limit exceeded error.
*
*
* .google.ads.googleads.v17.errors.ResourceCountDetails resource_count_details = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.ResourceCountDetails, com.google.ads.googleads.v17.errors.ResourceCountDetails.Builder, com.google.ads.googleads.v17.errors.ResourceCountDetailsOrBuilder>
getResourceCountDetailsFieldBuilder() {
if (resourceCountDetailsBuilder_ == null) {
resourceCountDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.errors.ResourceCountDetails, com.google.ads.googleads.v17.errors.ResourceCountDetails.Builder, com.google.ads.googleads.v17.errors.ResourceCountDetailsOrBuilder>(
getResourceCountDetails(),
getParentForChildren(),
isClean());
resourceCountDetails_ = null;
}
return resourceCountDetailsBuilder_;
}
@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.errors.ErrorDetails)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.errors.ErrorDetails)
private static final com.google.ads.googleads.v17.errors.ErrorDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.errors.ErrorDetails();
}
public static com.google.ads.googleads.v17.errors.ErrorDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ErrorDetails 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.errors.ErrorDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}