com.google.ads.googleads.v10.errors.GoogleAdsError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/errors/errors.proto
package com.google.ads.googleads.v10.errors;
/**
*
* GoogleAds-specific error.
*
*
* Protobuf type {@code google.ads.googleads.v10.errors.GoogleAdsError}
*/
public final class GoogleAdsError extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.errors.GoogleAdsError)
GoogleAdsErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use GoogleAdsError.newBuilder() to construct.
private GoogleAdsError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GoogleAdsError() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GoogleAdsError();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.errors.ErrorsProto.internal_static_google_ads_googleads_v10_errors_GoogleAdsError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.errors.ErrorsProto.internal_static_google_ads_googleads_v10_errors_GoogleAdsError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.errors.GoogleAdsError.class, com.google.ads.googleads.v10.errors.GoogleAdsError.Builder.class);
}
public static final int ERROR_CODE_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.errors.ErrorCode errorCode_;
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
* @return Whether the errorCode field is set.
*/
@java.lang.Override
public boolean hasErrorCode() {
return errorCode_ != null;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
* @return The errorCode.
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorCode getErrorCode() {
return errorCode_ == null ? com.google.ads.googleads.v10.errors.ErrorCode.getDefaultInstance() : errorCode_;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorCodeOrBuilder getErrorCodeOrBuilder() {
return getErrorCode();
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRIGGER_FIELD_NUMBER = 3;
private com.google.ads.googleads.v10.common.Value trigger_;
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
* @return Whether the trigger field is set.
*/
@java.lang.Override
public boolean hasTrigger() {
return trigger_ != null;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
* @return The trigger.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.Value getTrigger() {
return trigger_ == null ? com.google.ads.googleads.v10.common.Value.getDefaultInstance() : trigger_;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ValueOrBuilder getTriggerOrBuilder() {
return getTrigger();
}
public static final int LOCATION_FIELD_NUMBER = 4;
private com.google.ads.googleads.v10.errors.ErrorLocation location_;
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return location_ != null;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
* @return The location.
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorLocation getLocation() {
return location_ == null ? com.google.ads.googleads.v10.errors.ErrorLocation.getDefaultInstance() : location_;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorLocationOrBuilder getLocationOrBuilder() {
return getLocation();
}
public static final int DETAILS_FIELD_NUMBER = 5;
private com.google.ads.googleads.v10.errors.ErrorDetails details_;
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
* @return Whether the details field is set.
*/
@java.lang.Override
public boolean hasDetails() {
return details_ != null;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
* @return The details.
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorDetails getDetails() {
return details_ == null ? com.google.ads.googleads.v10.errors.ErrorDetails.getDefaultInstance() : details_;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.errors.ErrorDetailsOrBuilder getDetailsOrBuilder() {
return getDetails();
}
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 (errorCode_ != null) {
output.writeMessage(1, getErrorCode());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (trigger_ != null) {
output.writeMessage(3, getTrigger());
}
if (location_ != null) {
output.writeMessage(4, getLocation());
}
if (details_ != null) {
output.writeMessage(5, getDetails());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (errorCode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getErrorCode());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (trigger_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTrigger());
}
if (location_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocation());
}
if (details_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDetails());
}
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.v10.errors.GoogleAdsError)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.errors.GoogleAdsError other = (com.google.ads.googleads.v10.errors.GoogleAdsError) obj;
if (hasErrorCode() != other.hasErrorCode()) return false;
if (hasErrorCode()) {
if (!getErrorCode()
.equals(other.getErrorCode())) return false;
}
if (!getMessage()
.equals(other.getMessage())) return false;
if (hasTrigger() != other.hasTrigger()) return false;
if (hasTrigger()) {
if (!getTrigger()
.equals(other.getTrigger())) return false;
}
if (hasLocation() != other.hasLocation()) return false;
if (hasLocation()) {
if (!getLocation()
.equals(other.getLocation())) return false;
}
if (hasDetails() != other.hasDetails()) return false;
if (hasDetails()) {
if (!getDetails()
.equals(other.getDetails())) 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();
if (hasErrorCode()) {
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getErrorCode().hashCode();
}
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (hasTrigger()) {
hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getTrigger().hashCode();
}
if (hasLocation()) {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
}
if (hasDetails()) {
hash = (37 * hash) + DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getDetails().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError 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.v10.errors.GoogleAdsError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError 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.v10.errors.GoogleAdsError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError 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.v10.errors.GoogleAdsError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError 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.v10.errors.GoogleAdsError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError 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.v10.errors.GoogleAdsError 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;
}
/**
*
* GoogleAds-specific error.
*
*
* Protobuf type {@code google.ads.googleads.v10.errors.GoogleAdsError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.errors.GoogleAdsError)
com.google.ads.googleads.v10.errors.GoogleAdsErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.errors.ErrorsProto.internal_static_google_ads_googleads_v10_errors_GoogleAdsError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.errors.ErrorsProto.internal_static_google_ads_googleads_v10_errors_GoogleAdsError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.errors.GoogleAdsError.class, com.google.ads.googleads.v10.errors.GoogleAdsError.Builder.class);
}
// Construct using com.google.ads.googleads.v10.errors.GoogleAdsError.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (errorCodeBuilder_ == null) {
errorCode_ = null;
} else {
errorCode_ = null;
errorCodeBuilder_ = null;
}
message_ = "";
if (triggerBuilder_ == null) {
trigger_ = null;
} else {
trigger_ = null;
triggerBuilder_ = null;
}
if (locationBuilder_ == null) {
location_ = null;
} else {
location_ = null;
locationBuilder_ = null;
}
if (detailsBuilder_ == null) {
details_ = null;
} else {
details_ = null;
detailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.errors.ErrorsProto.internal_static_google_ads_googleads_v10_errors_GoogleAdsError_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.errors.GoogleAdsError getDefaultInstanceForType() {
return com.google.ads.googleads.v10.errors.GoogleAdsError.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.errors.GoogleAdsError build() {
com.google.ads.googleads.v10.errors.GoogleAdsError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.errors.GoogleAdsError buildPartial() {
com.google.ads.googleads.v10.errors.GoogleAdsError result = new com.google.ads.googleads.v10.errors.GoogleAdsError(this);
if (errorCodeBuilder_ == null) {
result.errorCode_ = errorCode_;
} else {
result.errorCode_ = errorCodeBuilder_.build();
}
result.message_ = message_;
if (triggerBuilder_ == null) {
result.trigger_ = trigger_;
} else {
result.trigger_ = triggerBuilder_.build();
}
if (locationBuilder_ == null) {
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
if (detailsBuilder_ == null) {
result.details_ = details_;
} else {
result.details_ = detailsBuilder_.build();
}
onBuilt();
return result;
}
@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.v10.errors.GoogleAdsError) {
return mergeFrom((com.google.ads.googleads.v10.errors.GoogleAdsError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.errors.GoogleAdsError other) {
if (other == com.google.ads.googleads.v10.errors.GoogleAdsError.getDefaultInstance()) return this;
if (other.hasErrorCode()) {
mergeErrorCode(other.getErrorCode());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.hasTrigger()) {
mergeTrigger(other.getTrigger());
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
if (other.hasDetails()) {
mergeDetails(other.getDetails());
}
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(
getErrorCodeFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
message_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
input.readMessage(
getTriggerFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
case 34: {
input.readMessage(
getLocationFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 34
case 42: {
input.readMessage(
getDetailsFieldBuilder().getBuilder(),
extensionRegistry);
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 com.google.ads.googleads.v10.errors.ErrorCode errorCode_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorCode, com.google.ads.googleads.v10.errors.ErrorCode.Builder, com.google.ads.googleads.v10.errors.ErrorCodeOrBuilder> errorCodeBuilder_;
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
* @return Whether the errorCode field is set.
*/
public boolean hasErrorCode() {
return errorCodeBuilder_ != null || errorCode_ != null;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
* @return The errorCode.
*/
public com.google.ads.googleads.v10.errors.ErrorCode getErrorCode() {
if (errorCodeBuilder_ == null) {
return errorCode_ == null ? com.google.ads.googleads.v10.errors.ErrorCode.getDefaultInstance() : errorCode_;
} else {
return errorCodeBuilder_.getMessage();
}
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public Builder setErrorCode(com.google.ads.googleads.v10.errors.ErrorCode value) {
if (errorCodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorCode_ = value;
onChanged();
} else {
errorCodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public Builder setErrorCode(
com.google.ads.googleads.v10.errors.ErrorCode.Builder builderForValue) {
if (errorCodeBuilder_ == null) {
errorCode_ = builderForValue.build();
onChanged();
} else {
errorCodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public Builder mergeErrorCode(com.google.ads.googleads.v10.errors.ErrorCode value) {
if (errorCodeBuilder_ == null) {
if (errorCode_ != null) {
errorCode_ =
com.google.ads.googleads.v10.errors.ErrorCode.newBuilder(errorCode_).mergeFrom(value).buildPartial();
} else {
errorCode_ = value;
}
onChanged();
} else {
errorCodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public Builder clearErrorCode() {
if (errorCodeBuilder_ == null) {
errorCode_ = null;
onChanged();
} else {
errorCode_ = null;
errorCodeBuilder_ = null;
}
return this;
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public com.google.ads.googleads.v10.errors.ErrorCode.Builder getErrorCodeBuilder() {
onChanged();
return getErrorCodeFieldBuilder().getBuilder();
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
public com.google.ads.googleads.v10.errors.ErrorCodeOrBuilder getErrorCodeOrBuilder() {
if (errorCodeBuilder_ != null) {
return errorCodeBuilder_.getMessageOrBuilder();
} else {
return errorCode_ == null ?
com.google.ads.googleads.v10.errors.ErrorCode.getDefaultInstance() : errorCode_;
}
}
/**
*
* An enum value that indicates which error occurred.
*
*
* .google.ads.googleads.v10.errors.ErrorCode error_code = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorCode, com.google.ads.googleads.v10.errors.ErrorCode.Builder, com.google.ads.googleads.v10.errors.ErrorCodeOrBuilder>
getErrorCodeFieldBuilder() {
if (errorCodeBuilder_ == null) {
errorCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorCode, com.google.ads.googleads.v10.errors.ErrorCode.Builder, com.google.ads.googleads.v10.errors.ErrorCodeOrBuilder>(
getErrorCode(),
getParentForChildren(),
isClean());
errorCode_ = null;
}
return errorCodeBuilder_;
}
private java.lang.Object message_ = "";
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* A human-readable description of the error.
*
*
* string message = 2;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private com.google.ads.googleads.v10.common.Value trigger_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.Value, com.google.ads.googleads.v10.common.Value.Builder, com.google.ads.googleads.v10.common.ValueOrBuilder> triggerBuilder_;
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
* @return Whether the trigger field is set.
*/
public boolean hasTrigger() {
return triggerBuilder_ != null || trigger_ != null;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
* @return The trigger.
*/
public com.google.ads.googleads.v10.common.Value getTrigger() {
if (triggerBuilder_ == null) {
return trigger_ == null ? com.google.ads.googleads.v10.common.Value.getDefaultInstance() : trigger_;
} else {
return triggerBuilder_.getMessage();
}
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public Builder setTrigger(com.google.ads.googleads.v10.common.Value value) {
if (triggerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trigger_ = value;
onChanged();
} else {
triggerBuilder_.setMessage(value);
}
return this;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public Builder setTrigger(
com.google.ads.googleads.v10.common.Value.Builder builderForValue) {
if (triggerBuilder_ == null) {
trigger_ = builderForValue.build();
onChanged();
} else {
triggerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public Builder mergeTrigger(com.google.ads.googleads.v10.common.Value value) {
if (triggerBuilder_ == null) {
if (trigger_ != null) {
trigger_ =
com.google.ads.googleads.v10.common.Value.newBuilder(trigger_).mergeFrom(value).buildPartial();
} else {
trigger_ = value;
}
onChanged();
} else {
triggerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public Builder clearTrigger() {
if (triggerBuilder_ == null) {
trigger_ = null;
onChanged();
} else {
trigger_ = null;
triggerBuilder_ = null;
}
return this;
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public com.google.ads.googleads.v10.common.Value.Builder getTriggerBuilder() {
onChanged();
return getTriggerFieldBuilder().getBuilder();
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
public com.google.ads.googleads.v10.common.ValueOrBuilder getTriggerOrBuilder() {
if (triggerBuilder_ != null) {
return triggerBuilder_.getMessageOrBuilder();
} else {
return trigger_ == null ?
com.google.ads.googleads.v10.common.Value.getDefaultInstance() : trigger_;
}
}
/**
*
* The value that triggered the error.
*
*
* .google.ads.googleads.v10.common.Value trigger = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.Value, com.google.ads.googleads.v10.common.Value.Builder, com.google.ads.googleads.v10.common.ValueOrBuilder>
getTriggerFieldBuilder() {
if (triggerBuilder_ == null) {
triggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.Value, com.google.ads.googleads.v10.common.Value.Builder, com.google.ads.googleads.v10.common.ValueOrBuilder>(
getTrigger(),
getParentForChildren(),
isClean());
trigger_ = null;
}
return triggerBuilder_;
}
private com.google.ads.googleads.v10.errors.ErrorLocation location_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorLocation, com.google.ads.googleads.v10.errors.ErrorLocation.Builder, com.google.ads.googleads.v10.errors.ErrorLocationOrBuilder> locationBuilder_;
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
* @return Whether the location field is set.
*/
public boolean hasLocation() {
return locationBuilder_ != null || location_ != null;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
* @return The location.
*/
public com.google.ads.googleads.v10.errors.ErrorLocation getLocation() {
if (locationBuilder_ == null) {
return location_ == null ? com.google.ads.googleads.v10.errors.ErrorLocation.getDefaultInstance() : location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public Builder setLocation(com.google.ads.googleads.v10.errors.ErrorLocation value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public Builder setLocation(
com.google.ads.googleads.v10.errors.ErrorLocation.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public Builder mergeLocation(com.google.ads.googleads.v10.errors.ErrorLocation value) {
if (locationBuilder_ == null) {
if (location_ != null) {
location_ =
com.google.ads.googleads.v10.errors.ErrorLocation.newBuilder(location_).mergeFrom(value).buildPartial();
} else {
location_ = value;
}
onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = null;
onChanged();
} else {
location_ = null;
locationBuilder_ = null;
}
return this;
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public com.google.ads.googleads.v10.errors.ErrorLocation.Builder getLocationBuilder() {
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
public com.google.ads.googleads.v10.errors.ErrorLocationOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_ == null ?
com.google.ads.googleads.v10.errors.ErrorLocation.getDefaultInstance() : location_;
}
}
/**
*
* Describes the part of the request proto that caused the error.
*
*
* .google.ads.googleads.v10.errors.ErrorLocation location = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorLocation, com.google.ads.googleads.v10.errors.ErrorLocation.Builder, com.google.ads.googleads.v10.errors.ErrorLocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorLocation, com.google.ads.googleads.v10.errors.ErrorLocation.Builder, com.google.ads.googleads.v10.errors.ErrorLocationOrBuilder>(
getLocation(),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private com.google.ads.googleads.v10.errors.ErrorDetails details_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorDetails, com.google.ads.googleads.v10.errors.ErrorDetails.Builder, com.google.ads.googleads.v10.errors.ErrorDetailsOrBuilder> detailsBuilder_;
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
* @return Whether the details field is set.
*/
public boolean hasDetails() {
return detailsBuilder_ != null || details_ != null;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
* @return The details.
*/
public com.google.ads.googleads.v10.errors.ErrorDetails getDetails() {
if (detailsBuilder_ == null) {
return details_ == null ? com.google.ads.googleads.v10.errors.ErrorDetails.getDefaultInstance() : details_;
} else {
return detailsBuilder_.getMessage();
}
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public Builder setDetails(com.google.ads.googleads.v10.errors.ErrorDetails value) {
if (detailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
details_ = value;
onChanged();
} else {
detailsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public Builder setDetails(
com.google.ads.googleads.v10.errors.ErrorDetails.Builder builderForValue) {
if (detailsBuilder_ == null) {
details_ = builderForValue.build();
onChanged();
} else {
detailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public Builder mergeDetails(com.google.ads.googleads.v10.errors.ErrorDetails value) {
if (detailsBuilder_ == null) {
if (details_ != null) {
details_ =
com.google.ads.googleads.v10.errors.ErrorDetails.newBuilder(details_).mergeFrom(value).buildPartial();
} else {
details_ = value;
}
onChanged();
} else {
detailsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public Builder clearDetails() {
if (detailsBuilder_ == null) {
details_ = null;
onChanged();
} else {
details_ = null;
detailsBuilder_ = null;
}
return this;
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public com.google.ads.googleads.v10.errors.ErrorDetails.Builder getDetailsBuilder() {
onChanged();
return getDetailsFieldBuilder().getBuilder();
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
public com.google.ads.googleads.v10.errors.ErrorDetailsOrBuilder getDetailsOrBuilder() {
if (detailsBuilder_ != null) {
return detailsBuilder_.getMessageOrBuilder();
} else {
return details_ == null ?
com.google.ads.googleads.v10.errors.ErrorDetails.getDefaultInstance() : details_;
}
}
/**
*
* Additional error details, which are returned by certain error codes. Most
* error codes do not include details.
*
*
* .google.ads.googleads.v10.errors.ErrorDetails details = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorDetails, com.google.ads.googleads.v10.errors.ErrorDetails.Builder, com.google.ads.googleads.v10.errors.ErrorDetailsOrBuilder>
getDetailsFieldBuilder() {
if (detailsBuilder_ == null) {
detailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.errors.ErrorDetails, com.google.ads.googleads.v10.errors.ErrorDetails.Builder, com.google.ads.googleads.v10.errors.ErrorDetailsOrBuilder>(
getDetails(),
getParentForChildren(),
isClean());
details_ = null;
}
return detailsBuilder_;
}
@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.v10.errors.GoogleAdsError)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.errors.GoogleAdsError)
private static final com.google.ads.googleads.v10.errors.GoogleAdsError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.errors.GoogleAdsError();
}
public static com.google.ads.googleads.v10.errors.GoogleAdsError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GoogleAdsError 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.v10.errors.GoogleAdsError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy