All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.errors.ErrorLocation Maven / Gradle / Ivy

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;

/**
 * 
 * Describes the part of the request proto that caused the error.
 * 
* * Protobuf type {@code google.ads.googleads.v17.errors.ErrorLocation} */ public final class ErrorLocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.errors.ErrorLocation) ErrorLocationOrBuilder { private static final long serialVersionUID = 0L; // Use ErrorLocation.newBuilder() to construct. private ErrorLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ErrorLocation() { fieldPathElements_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ErrorLocation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorLocation_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_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.errors.ErrorLocation.class, com.google.ads.googleads.v17.errors.ErrorLocation.Builder.class); } public interface FieldPathElementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) com.google.protobuf.MessageOrBuilder { /** *
     * The name of a field or a oneof
     * 
* * string field_name = 1; * @return The fieldName. */ java.lang.String getFieldName(); /** *
     * The name of a field or a oneof
     * 
* * string field_name = 1; * @return The bytes for fieldName. */ com.google.protobuf.ByteString getFieldNameBytes(); /** *
     * If field_name is a repeated field, this is the element that failed
     * 
* * optional int32 index = 3; * @return Whether the index field is set. */ boolean hasIndex(); /** *
     * If field_name is a repeated field, this is the element that failed
     * 
* * optional int32 index = 3; * @return The index. */ int getIndex(); } /** *
   * A part of a field path.
   * 
* * Protobuf type {@code google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement} */ public static final class FieldPathElement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) FieldPathElementOrBuilder { private static final long serialVersionUID = 0L; // Use FieldPathElement.newBuilder() to construct. private FieldPathElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldPathElement() { fieldName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldPathElement(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorLocation_FieldPathElement_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_ErrorLocation_FieldPathElement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.class, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder.class); } private int bitField0_; public static final int FIELD_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fieldName_ = ""; /** *
     * The name of a field or a oneof
     * 
* * string field_name = 1; * @return The fieldName. */ @java.lang.Override public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; 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(); fieldName_ = s; return s; } } /** *
     * The name of a field or a oneof
     * 
* * string field_name = 1; * @return The bytes for fieldName. */ @java.lang.Override public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INDEX_FIELD_NUMBER = 3; private int index_ = 0; /** *
     * If field_name is a repeated field, this is the element that failed
     * 
* * optional int32 index = 3; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * If field_name is a repeated field, this is the element that failed
     * 
* * optional int32 index = 3; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } 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(fieldName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(3, index_); } 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(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, index_); } 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.ErrorLocation.FieldPathElement)) { return super.equals(obj); } com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement other = (com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) obj; if (!getFieldName() .equals(other.getFieldName())) return false; if (hasIndex() != other.hasIndex()) return false; if (hasIndex()) { if (getIndex() != other.getIndex()) 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) + FIELD_NAME_FIELD_NUMBER; hash = (53 * hash) + getFieldName().hashCode(); if (hasIndex()) { hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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.ErrorLocation.FieldPathElement 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 part of a field path.
     * 
* * Protobuf type {@code google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorLocation_FieldPathElement_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_ErrorLocation_FieldPathElement_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.class, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder.class); } // Construct using com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fieldName_ = ""; index_ = 0; 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_ErrorLocation_FieldPathElement_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement getDefaultInstanceForType() { return com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement build() { com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement buildPartial() { com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement result = new com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldName_ = fieldName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.index_ = index_; to_bitField0_ |= 0x00000001; } 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.ErrorLocation.FieldPathElement) { return mergeFrom((com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement other) { if (other == com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.getDefaultInstance()) return this; if (!other.getFieldName().isEmpty()) { fieldName_ = other.fieldName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasIndex()) { setIndex(other.getIndex()); } 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: { fieldName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 24: { index_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 24 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 fieldName_ = ""; /** *
       * The name of a field or a oneof
       * 
* * string field_name = 1; * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The name of a field or a oneof
       * 
* * string field_name = 1; * @return The bytes for fieldName. */ public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The name of a field or a oneof
       * 
* * string field_name = 1; * @param value The fieldName to set. * @return This builder for chaining. */ public Builder setFieldName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The name of a field or a oneof
       * 
* * string field_name = 1; * @return This builder for chaining. */ public Builder clearFieldName() { fieldName_ = getDefaultInstance().getFieldName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The name of a field or a oneof
       * 
* * string field_name = 1; * @param value The bytes for fieldName to set. * @return This builder for chaining. */ public Builder setFieldNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int index_ ; /** *
       * If field_name is a repeated field, this is the element that failed
       * 
* * optional int32 index = 3; * @return Whether the index field is set. */ @java.lang.Override public boolean hasIndex() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * If field_name is a repeated field, this is the element that failed
       * 
* * optional int32 index = 3; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } /** *
       * If field_name is a repeated field, this is the element that failed
       * 
* * optional int32 index = 3; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { index_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * If field_name is a repeated field, this is the element that failed
       * 
* * optional int32 index = 3; * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000002); index_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement) private static final com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement(); } public static com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldPathElement 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.ErrorLocation.FieldPathElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FIELD_PATH_ELEMENTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List fieldPathElements_; /** *
   * A field path that indicates which field was invalid in the request.
   * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ @java.lang.Override public java.util.List getFieldPathElementsList() { return fieldPathElements_; } /** *
   * A field path that indicates which field was invalid in the request.
   * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ @java.lang.Override public java.util.List getFieldPathElementsOrBuilderList() { return fieldPathElements_; } /** *
   * A field path that indicates which field was invalid in the request.
   * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ @java.lang.Override public int getFieldPathElementsCount() { return fieldPathElements_.size(); } /** *
   * A field path that indicates which field was invalid in the request.
   * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement getFieldPathElements(int index) { return fieldPathElements_.get(index); } /** *
   * A field path that indicates which field was invalid in the request.
   * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder getFieldPathElementsOrBuilder( int index) { return fieldPathElements_.get(index); } 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 { for (int i = 0; i < fieldPathElements_.size(); i++) { output.writeMessage(2, fieldPathElements_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fieldPathElements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fieldPathElements_.get(i)); } 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.ErrorLocation)) { return super.equals(obj); } com.google.ads.googleads.v17.errors.ErrorLocation other = (com.google.ads.googleads.v17.errors.ErrorLocation) obj; if (!getFieldPathElementsList() .equals(other.getFieldPathElementsList())) 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 (getFieldPathElementsCount() > 0) { hash = (37 * hash) + FIELD_PATH_ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getFieldPathElementsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.errors.ErrorLocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation 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.ErrorLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation 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.ErrorLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.errors.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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.ErrorLocation 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; } /** *
   * Describes the part of the request proto that caused the error.
   * 
* * Protobuf type {@code google.ads.googleads.v17.errors.ErrorLocation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.errors.ErrorLocation) com.google.ads.googleads.v17.errors.ErrorLocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.errors.ErrorsProto.internal_static_google_ads_googleads_v17_errors_ErrorLocation_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_ErrorLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.errors.ErrorLocation.class, com.google.ads.googleads.v17.errors.ErrorLocation.Builder.class); } // Construct using com.google.ads.googleads.v17.errors.ErrorLocation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldPathElementsBuilder_ == null) { fieldPathElements_ = java.util.Collections.emptyList(); } else { fieldPathElements_ = null; fieldPathElementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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_ErrorLocation_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation getDefaultInstanceForType() { return com.google.ads.googleads.v17.errors.ErrorLocation.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation build() { com.google.ads.googleads.v17.errors.ErrorLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.errors.ErrorLocation buildPartial() { com.google.ads.googleads.v17.errors.ErrorLocation result = new com.google.ads.googleads.v17.errors.ErrorLocation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.errors.ErrorLocation result) { if (fieldPathElementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fieldPathElements_ = java.util.Collections.unmodifiableList(fieldPathElements_); bitField0_ = (bitField0_ & ~0x00000001); } result.fieldPathElements_ = fieldPathElements_; } else { result.fieldPathElements_ = fieldPathElementsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.errors.ErrorLocation result) { int from_bitField0_ = 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.ErrorLocation) { return mergeFrom((com.google.ads.googleads.v17.errors.ErrorLocation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.errors.ErrorLocation other) { if (other == com.google.ads.googleads.v17.errors.ErrorLocation.getDefaultInstance()) return this; if (fieldPathElementsBuilder_ == null) { if (!other.fieldPathElements_.isEmpty()) { if (fieldPathElements_.isEmpty()) { fieldPathElements_ = other.fieldPathElements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldPathElementsIsMutable(); fieldPathElements_.addAll(other.fieldPathElements_); } onChanged(); } } else { if (!other.fieldPathElements_.isEmpty()) { if (fieldPathElementsBuilder_.isEmpty()) { fieldPathElementsBuilder_.dispose(); fieldPathElementsBuilder_ = null; fieldPathElements_ = other.fieldPathElements_; bitField0_ = (bitField0_ & ~0x00000001); fieldPathElementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldPathElementsFieldBuilder() : null; } else { fieldPathElementsBuilder_.addAllMessages(other.fieldPathElements_); } } } 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 18: { com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement m = input.readMessage( com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.parser(), extensionRegistry); if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); fieldPathElements_.add(m); } else { fieldPathElementsBuilder_.addMessage(m); } break; } // case 18 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.util.List fieldPathElements_ = java.util.Collections.emptyList(); private void ensureFieldPathElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fieldPathElements_ = new java.util.ArrayList(fieldPathElements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder> fieldPathElementsBuilder_; /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public java.util.List getFieldPathElementsList() { if (fieldPathElementsBuilder_ == null) { return java.util.Collections.unmodifiableList(fieldPathElements_); } else { return fieldPathElementsBuilder_.getMessageList(); } } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public int getFieldPathElementsCount() { if (fieldPathElementsBuilder_ == null) { return fieldPathElements_.size(); } else { return fieldPathElementsBuilder_.getCount(); } } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement getFieldPathElements(int index) { if (fieldPathElementsBuilder_ == null) { return fieldPathElements_.get(index); } else { return fieldPathElementsBuilder_.getMessage(index); } } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder setFieldPathElements( int index, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement value) { if (fieldPathElementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldPathElementsIsMutable(); fieldPathElements_.set(index, value); onChanged(); } else { fieldPathElementsBuilder_.setMessage(index, value); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder setFieldPathElements( int index, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder builderForValue) { if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); fieldPathElements_.set(index, builderForValue.build()); onChanged(); } else { fieldPathElementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder addFieldPathElements(com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement value) { if (fieldPathElementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldPathElementsIsMutable(); fieldPathElements_.add(value); onChanged(); } else { fieldPathElementsBuilder_.addMessage(value); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder addFieldPathElements( int index, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement value) { if (fieldPathElementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldPathElementsIsMutable(); fieldPathElements_.add(index, value); onChanged(); } else { fieldPathElementsBuilder_.addMessage(index, value); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder addFieldPathElements( com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder builderForValue) { if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); fieldPathElements_.add(builderForValue.build()); onChanged(); } else { fieldPathElementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder addFieldPathElements( int index, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder builderForValue) { if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); fieldPathElements_.add(index, builderForValue.build()); onChanged(); } else { fieldPathElementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder addAllFieldPathElements( java.lang.Iterable values) { if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fieldPathElements_); onChanged(); } else { fieldPathElementsBuilder_.addAllMessages(values); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder clearFieldPathElements() { if (fieldPathElementsBuilder_ == null) { fieldPathElements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldPathElementsBuilder_.clear(); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public Builder removeFieldPathElements(int index) { if (fieldPathElementsBuilder_ == null) { ensureFieldPathElementsIsMutable(); fieldPathElements_.remove(index); onChanged(); } else { fieldPathElementsBuilder_.remove(index); } return this; } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder getFieldPathElementsBuilder( int index) { return getFieldPathElementsFieldBuilder().getBuilder(index); } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder getFieldPathElementsOrBuilder( int index) { if (fieldPathElementsBuilder_ == null) { return fieldPathElements_.get(index); } else { return fieldPathElementsBuilder_.getMessageOrBuilder(index); } } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public java.util.List getFieldPathElementsOrBuilderList() { if (fieldPathElementsBuilder_ != null) { return fieldPathElementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fieldPathElements_); } } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder addFieldPathElementsBuilder() { return getFieldPathElementsFieldBuilder().addBuilder( com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.getDefaultInstance()); } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder addFieldPathElementsBuilder( int index) { return getFieldPathElementsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.getDefaultInstance()); } /** *
     * A field path that indicates which field was invalid in the request.
     * 
* * repeated .google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement field_path_elements = 2; */ public java.util.List getFieldPathElementsBuilderList() { return getFieldPathElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder> getFieldPathElementsFieldBuilder() { if (fieldPathElementsBuilder_ == null) { fieldPathElementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElement.Builder, com.google.ads.googleads.v17.errors.ErrorLocation.FieldPathElementOrBuilder>( fieldPathElements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fieldPathElements_ = null; } return fieldPathElementsBuilder_; } @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.ErrorLocation) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.errors.ErrorLocation) private static final com.google.ads.googleads.v17.errors.ErrorLocation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.errors.ErrorLocation(); } public static com.google.ads.googleads.v17.errors.ErrorLocation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ErrorLocation 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.ErrorLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy