/*
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: schema/google/showcase/v1beta1/echo.proto

package com.google.showcase.v1beta1;

/**
 *
 *
 * <pre>
 * The response message used for the EchoErrorDetails method.
 * </pre>
 *
 * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse}
 */
public final class EchoErrorDetailsResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse)
    EchoErrorDetailsResponseOrBuilder {
  private static final long serialVersionUID = 0L;

  // Use EchoErrorDetailsResponse.newBuilder() to construct.
  private EchoErrorDetailsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private EchoErrorDetailsResponse() {}

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new EchoErrorDetailsResponse();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private EchoErrorDetailsResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder subBuilder =
                  null;
              if (singleDetail_ != null) {
                subBuilder = singleDetail_.toBuilder();
              }
              singleDetail_ =
                  input.readMessage(
                      com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(singleDetail_);
                singleDetail_ = subBuilder.buildPartial();
              }

              break;
            }
          case 18:
            {
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder
                  subBuilder = null;
              if (multipleDetails_ != null) {
                subBuilder = multipleDetails_.toBuilder();
              }
              multipleDetails_ =
                  input.readMessage(
                      com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(multipleDetails_);
                multipleDetails_ = subBuilder.buildPartial();
              }

              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.showcase.v1beta1.EchoOuterClass
        .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.showcase.v1beta1.EchoOuterClass
        .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.class,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class);
  }

  public interface SingleDetailOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
     *
     * @return Whether the error field is set.
     */
    boolean hasError();

    /**
     * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
     *
     * @return The error.
     */
    com.google.showcase.v1beta1.ErrorWithSingleDetail getError();

    /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
    com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder();
  }

  /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} */
  public static final class SingleDetail extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
      SingleDetailOrBuilder {
    private static final long serialVersionUID = 0L;

    // Use SingleDetail.newBuilder() to construct.
    private SingleDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SingleDetail() {}

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new SingleDetail();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    private SingleDetail(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder subBuilder = null;
                if (error_ != null) {
                  subBuilder = error_.toBuilder();
                }
                error_ =
                    input.readMessage(
                        com.google.showcase.v1beta1.ErrorWithSingleDetail.parser(),
                        extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(error_);
                  error_ = subBuilder.buildPartial();
                }

                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class,
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class);
    }

    public static final int ERROR_FIELD_NUMBER = 1;
    private com.google.showcase.v1beta1.ErrorWithSingleDetail error_;

    /**
     * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
     *
     * @return Whether the error field is set.
     */
    @java.lang.Override
    public boolean hasError() {
      return error_ != null;
    }

    /**
     * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
     *
     * @return The error.
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() {
      return error_ == null
          ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()
          : error_;
    }

    /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
    @java.lang.Override
    public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() {
      return getError();
    }

    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 (error_ != null) {
        output.writeMessage(1, getError());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (error_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
      }
      size += unknownFields.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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)) {
        return super.equals(obj);
      }
      com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other =
          (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) obj;

      if (hasError() != other.hasError()) return false;
      if (hasError()) {
        if (!getError().equals(other.getError())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasError()) {
        hash = (37 * hash) + ERROR_FIELD_NUMBER;
        hash = (53 * hash) + getError().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail 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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail 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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
        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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail 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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail 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;
    }

    /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.class,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder.class);
      }

      // Construct using
      // com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (errorBuilder_ == null) {
          error_ = null;
        } else {
          error_ = null;
          errorBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_SingleDetail_descriptor;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
          getDefaultInstanceForType() {
        return com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail build() {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail buildPartial() {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail result =
            new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail(this);
        if (errorBuilder_ == null) {
          result.error_ = error_;
        } else {
          result.error_ = errorBuilder_.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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) {
          return mergeFrom(
              (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail other) {
        if (other
            == com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
                .getDefaultInstance()) return this;
        if (other.hasError()) {
          mergeError(other.getError());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.showcase.v1beta1.ErrorWithSingleDetail error_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.showcase.v1beta1.ErrorWithSingleDetail,
              com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder,
              com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>
          errorBuilder_;

      /**
       * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
       *
       * @return Whether the error field is set.
       */
      public boolean hasError() {
        return errorBuilder_ != null || error_ != null;
      }

      /**
       * <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code>
       *
       * @return The error.
       */
      public com.google.showcase.v1beta1.ErrorWithSingleDetail getError() {
        if (errorBuilder_ == null) {
          return error_ == null
              ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()
              : error_;
        } else {
          return errorBuilder_.getMessage();
        }
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public Builder setError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) {
        if (errorBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          error_ = value;
          onChanged();
        } else {
          errorBuilder_.setMessage(value);
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public Builder setError(
          com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder builderForValue) {
        if (errorBuilder_ == null) {
          error_ = builderForValue.build();
          onChanged();
        } else {
          errorBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public Builder mergeError(com.google.showcase.v1beta1.ErrorWithSingleDetail value) {
        if (errorBuilder_ == null) {
          if (error_ != null) {
            error_ =
                com.google.showcase.v1beta1.ErrorWithSingleDetail.newBuilder(error_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            error_ = value;
          }
          onChanged();
        } else {
          errorBuilder_.mergeFrom(value);
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public Builder clearError() {
        if (errorBuilder_ == null) {
          error_ = null;
          onChanged();
        } else {
          error_ = null;
          errorBuilder_ = null;
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder getErrorBuilder() {

        onChanged();
        return getErrorFieldBuilder().getBuilder();
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      public com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder getErrorOrBuilder() {
        if (errorBuilder_ != null) {
          return errorBuilder_.getMessageOrBuilder();
        } else {
          return error_ == null
              ? com.google.showcase.v1beta1.ErrorWithSingleDetail.getDefaultInstance()
              : error_;
        }
      }

      /** <code>.google.showcase.v1beta1.ErrorWithSingleDetail error = 1;</code> */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.showcase.v1beta1.ErrorWithSingleDetail,
              com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder,
              com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>
          getErrorFieldBuilder() {
        if (errorBuilder_ == null) {
          errorBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.showcase.v1beta1.ErrorWithSingleDetail,
                  com.google.showcase.v1beta1.ErrorWithSingleDetail.Builder,
                  com.google.showcase.v1beta1.ErrorWithSingleDetailOrBuilder>(
                  getError(), getParentForChildren(), isClean());
          error_ = null;
        }
        return errorBuilder_;
      }

      @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.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
    }

    // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail)
    private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail();
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SingleDetail> PARSER =
        new com.google.protobuf.AbstractParser<SingleDetail>() {
          @java.lang.Override
          public SingleDetail parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new SingleDetail(input, extensionRegistry);
          }
        };

    public static com.google.protobuf.Parser<SingleDetail> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<SingleDetail> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface MultipleDetailsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
     *
     * @return Whether the error field is set.
     */
    boolean hasError();

    /**
     * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
     *
     * @return The error.
     */
    com.google.showcase.v1beta1.ErrorWithMultipleDetails getError();

    /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
    com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder();
  }

  /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} */
  public static final class MultipleDetails extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
      MultipleDetailsOrBuilder {
    private static final long serialVersionUID = 0L;

    // Use MultipleDetails.newBuilder() to construct.
    private MultipleDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private MultipleDetails() {}

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new MultipleDetails();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    private MultipleDetails(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder subBuilder = null;
                if (error_ != null) {
                  subBuilder = error_.toBuilder();
                }
                error_ =
                    input.readMessage(
                        com.google.showcase.v1beta1.ErrorWithMultipleDetails.parser(),
                        extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(error_);
                  error_ = subBuilder.buildPartial();
                }

                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class,
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class);
    }

    public static final int ERROR_FIELD_NUMBER = 1;
    private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_;

    /**
     * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
     *
     * @return Whether the error field is set.
     */
    @java.lang.Override
    public boolean hasError() {
      return error_ != null;
    }

    /**
     * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
     *
     * @return The error.
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() {
      return error_ == null
          ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()
          : error_;
    }

    /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
    @java.lang.Override
    public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() {
      return getError();
    }

    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 (error_ != null) {
        output.writeMessage(1, getError());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (error_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
      }
      size += unknownFields.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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)) {
        return super.equals(obj);
      }
      com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other =
          (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) obj;

      if (hasError() != other.hasError()) return false;
      if (hasError()) {
        if (!getError().equals(other.getError())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasError()) {
        hash = (37 * hash) + ERROR_FIELD_NUMBER;
        hash = (53 * hash) + getError().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails 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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails 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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails 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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails 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;
    }

    /** Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.class,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder.class);
      }

      // Construct using
      // com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (errorBuilder_ == null) {
          error_ = null;
        } else {
          error_ = null;
          errorBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.showcase.v1beta1.EchoOuterClass
            .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_MultipleDetails_descriptor;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
          getDefaultInstanceForType() {
        return com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails build() {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails buildPartial() {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails result =
            new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails(this);
        if (errorBuilder_ == null) {
          result.error_ = error_;
        } else {
          result.error_ = errorBuilder_.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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) {
          return mergeFrom(
              (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails other) {
        if (other
            == com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
                .getDefaultInstance()) return this;
        if (other.hasError()) {
          mergeError(other.getError());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.showcase.v1beta1.ErrorWithMultipleDetails error_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.showcase.v1beta1.ErrorWithMultipleDetails,
              com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder,
              com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>
          errorBuilder_;

      /**
       * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
       *
       * @return Whether the error field is set.
       */
      public boolean hasError() {
        return errorBuilder_ != null || error_ != null;
      }

      /**
       * <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code>
       *
       * @return The error.
       */
      public com.google.showcase.v1beta1.ErrorWithMultipleDetails getError() {
        if (errorBuilder_ == null) {
          return error_ == null
              ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()
              : error_;
        } else {
          return errorBuilder_.getMessage();
        }
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public Builder setError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) {
        if (errorBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          error_ = value;
          onChanged();
        } else {
          errorBuilder_.setMessage(value);
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public Builder setError(
          com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder builderForValue) {
        if (errorBuilder_ == null) {
          error_ = builderForValue.build();
          onChanged();
        } else {
          errorBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public Builder mergeError(com.google.showcase.v1beta1.ErrorWithMultipleDetails value) {
        if (errorBuilder_ == null) {
          if (error_ != null) {
            error_ =
                com.google.showcase.v1beta1.ErrorWithMultipleDetails.newBuilder(error_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            error_ = value;
          }
          onChanged();
        } else {
          errorBuilder_.mergeFrom(value);
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public Builder clearError() {
        if (errorBuilder_ == null) {
          error_ = null;
          onChanged();
        } else {
          error_ = null;
          errorBuilder_ = null;
        }

        return this;
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder getErrorBuilder() {

        onChanged();
        return getErrorFieldBuilder().getBuilder();
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      public com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder getErrorOrBuilder() {
        if (errorBuilder_ != null) {
          return errorBuilder_.getMessageOrBuilder();
        } else {
          return error_ == null
              ? com.google.showcase.v1beta1.ErrorWithMultipleDetails.getDefaultInstance()
              : error_;
        }
      }

      /** <code>.google.showcase.v1beta1.ErrorWithMultipleDetails error = 1;</code> */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.showcase.v1beta1.ErrorWithMultipleDetails,
              com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder,
              com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>
          getErrorFieldBuilder() {
        if (errorBuilder_ == null) {
          errorBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.showcase.v1beta1.ErrorWithMultipleDetails,
                  com.google.showcase.v1beta1.ErrorWithMultipleDetails.Builder,
                  com.google.showcase.v1beta1.ErrorWithMultipleDetailsOrBuilder>(
                  getError(), getParentForChildren(), isClean());
          error_ = null;
        }
        return errorBuilder_;
      }

      @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.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
    }

    // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails)
    private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails();
    }

    public static com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MultipleDetails> PARSER =
        new com.google.protobuf.AbstractParser<MultipleDetails>() {
          @java.lang.Override
          public MultipleDetails parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new MultipleDetails(input, extensionRegistry);
          }
        };

    public static com.google.protobuf.Parser<MultipleDetails> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MultipleDetails> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int SINGLE_DETAIL_FIELD_NUMBER = 1;
  private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_;

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;</code>
   *
   * @return Whether the singleDetail field is set.
   */
  @java.lang.Override
  public boolean hasSingleDetail() {
    return singleDetail_ != null;
  }

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;</code>
   *
   * @return The singleDetail.
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() {
    return singleDetail_ == null
        ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()
        : singleDetail_;
  }

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder
      getSingleDetailOrBuilder() {
    return getSingleDetail();
  }

  public static final int MULTIPLE_DETAILS_FIELD_NUMBER = 2;
  private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_;

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
   * </code>
   *
   * @return Whether the multipleDetails field is set.
   */
  @java.lang.Override
  public boolean hasMultipleDetails() {
    return multipleDetails_ != null;
  }

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
   * </code>
   *
   * @return The multipleDetails.
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails getMultipleDetails() {
    return multipleDetails_ == null
        ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.getDefaultInstance()
        : multipleDetails_;
  }

  /**
   * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder
      getMultipleDetailsOrBuilder() {
    return getMultipleDetails();
  }

  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 (singleDetail_ != null) {
      output.writeMessage(1, getSingleDetail());
    }
    if (multipleDetails_ != null) {
      output.writeMessage(2, getMultipleDetails());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (singleDetail_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSingleDetail());
    }
    if (multipleDetails_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMultipleDetails());
    }
    size += unknownFields.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.showcase.v1beta1.EchoErrorDetailsResponse)) {
      return super.equals(obj);
    }
    com.google.showcase.v1beta1.EchoErrorDetailsResponse other =
        (com.google.showcase.v1beta1.EchoErrorDetailsResponse) obj;

    if (hasSingleDetail() != other.hasSingleDetail()) return false;
    if (hasSingleDetail()) {
      if (!getSingleDetail().equals(other.getSingleDetail())) return false;
    }
    if (hasMultipleDetails() != other.hasMultipleDetails()) return false;
    if (hasMultipleDetails()) {
      if (!getMultipleDetails().equals(other.getMultipleDetails())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasSingleDetail()) {
      hash = (37 * hash) + SINGLE_DETAIL_FIELD_NUMBER;
      hash = (53 * hash) + getSingleDetail().hashCode();
    }
    if (hasMultipleDetails()) {
      hash = (37 * hash) + MULTIPLE_DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getMultipleDetails().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse 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.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse 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.showcase.v1beta1.EchoErrorDetailsResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse 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.showcase.v1beta1.EchoErrorDetailsResponse parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse 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.showcase.v1beta1.EchoErrorDetailsResponse 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;
  }

  /**
   *
   *
   * <pre>
   * The response message used for the EchoErrorDetails method.
   * </pre>
   *
   * Protobuf type {@code google.showcase.v1beta1.EchoErrorDetailsResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.EchoErrorDetailsResponse)
      com.google.showcase.v1beta1.EchoErrorDetailsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.class,
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.Builder.class);
    }

    // Construct using com.google.showcase.v1beta1.EchoErrorDetailsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (singleDetailBuilder_ == null) {
        singleDetail_ = null;
      } else {
        singleDetail_ = null;
        singleDetailBuilder_ = null;
      }
      if (multipleDetailsBuilder_ == null) {
        multipleDetails_ = null;
      } else {
        multipleDetails_ = null;
        multipleDetailsBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_EchoErrorDetailsResponse_descriptor;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstanceForType() {
      return com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse build() {
      com.google.showcase.v1beta1.EchoErrorDetailsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse buildPartial() {
      com.google.showcase.v1beta1.EchoErrorDetailsResponse result =
          new com.google.showcase.v1beta1.EchoErrorDetailsResponse(this);
      if (singleDetailBuilder_ == null) {
        result.singleDetail_ = singleDetail_;
      } else {
        result.singleDetail_ = singleDetailBuilder_.build();
      }
      if (multipleDetailsBuilder_ == null) {
        result.multipleDetails_ = multipleDetails_;
      } else {
        result.multipleDetails_ = multipleDetailsBuilder_.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.showcase.v1beta1.EchoErrorDetailsResponse) {
        return mergeFrom((com.google.showcase.v1beta1.EchoErrorDetailsResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.showcase.v1beta1.EchoErrorDetailsResponse other) {
      if (other == com.google.showcase.v1beta1.EchoErrorDetailsResponse.getDefaultInstance())
        return this;
      if (other.hasSingleDetail()) {
        mergeSingleDetail(other.getSingleDetail());
      }
      if (other.hasMultipleDetails()) {
        mergeMultipleDetails(other.getMultipleDetails());
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.google.showcase.v1beta1.EchoErrorDetailsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage =
            (com.google.showcase.v1beta1.EchoErrorDetailsResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail singleDetail_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>
        singleDetailBuilder_;

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     *
     * @return Whether the singleDetail field is set.
     */
    public boolean hasSingleDetail() {
      return singleDetailBuilder_ != null || singleDetail_ != null;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     *
     * @return The singleDetail.
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail getSingleDetail() {
      if (singleDetailBuilder_ == null) {
        return singleDetail_ == null
            ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()
            : singleDetail_;
      } else {
        return singleDetailBuilder_.getMessage();
      }
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public Builder setSingleDetail(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) {
      if (singleDetailBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        singleDetail_ = value;
        onChanged();
      } else {
        singleDetailBuilder_.setMessage(value);
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public Builder setSingleDetail(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder builderForValue) {
      if (singleDetailBuilder_ == null) {
        singleDetail_ = builderForValue.build();
        onChanged();
      } else {
        singleDetailBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public Builder mergeSingleDetail(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail value) {
      if (singleDetailBuilder_ == null) {
        if (singleDetail_ != null) {
          singleDetail_ =
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.newBuilder(
                      singleDetail_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          singleDetail_ = value;
        }
        onChanged();
      } else {
        singleDetailBuilder_.mergeFrom(value);
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public Builder clearSingleDetail() {
      if (singleDetailBuilder_ == null) {
        singleDetail_ = null;
        onChanged();
      } else {
        singleDetail_ = null;
        singleDetailBuilder_ = null;
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder
        getSingleDetailBuilder() {

      onChanged();
      return getSingleDetailFieldBuilder().getBuilder();
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder
        getSingleDetailOrBuilder() {
      if (singleDetailBuilder_ != null) {
        return singleDetailBuilder_.getMessageOrBuilder();
      } else {
        return singleDetail_ == null
            ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.getDefaultInstance()
            : singleDetail_;
      }
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail single_detail = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>
        getSingleDetailFieldBuilder() {
      if (singleDetailBuilder_ == null) {
        singleDetailBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetail.Builder,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.SingleDetailOrBuilder>(
                getSingleDetail(), getParentForChildren(), isClean());
        singleDetail_ = null;
      }
      return singleDetailBuilder_;
    }

    private com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multipleDetails_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>
        multipleDetailsBuilder_;

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     *
     * @return Whether the multipleDetails field is set.
     */
    public boolean hasMultipleDetails() {
      return multipleDetailsBuilder_ != null || multipleDetails_ != null;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     *
     * @return The multipleDetails.
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
        getMultipleDetails() {
      if (multipleDetailsBuilder_ == null) {
        return multipleDetails_ == null
            ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
                .getDefaultInstance()
            : multipleDetails_;
      } else {
        return multipleDetailsBuilder_.getMessage();
      }
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public Builder setMultipleDetails(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) {
      if (multipleDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        multipleDetails_ = value;
        onChanged();
      } else {
        multipleDetailsBuilder_.setMessage(value);
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public Builder setMultipleDetails(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder
            builderForValue) {
      if (multipleDetailsBuilder_ == null) {
        multipleDetails_ = builderForValue.build();
        onChanged();
      } else {
        multipleDetailsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public Builder mergeMultipleDetails(
        com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails value) {
      if (multipleDetailsBuilder_ == null) {
        if (multipleDetails_ != null) {
          multipleDetails_ =
              com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.newBuilder(
                      multipleDetails_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          multipleDetails_ = value;
        }
        onChanged();
      } else {
        multipleDetailsBuilder_.mergeFrom(value);
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public Builder clearMultipleDetails() {
      if (multipleDetailsBuilder_ == null) {
        multipleDetails_ = null;
        onChanged();
      } else {
        multipleDetails_ = null;
        multipleDetailsBuilder_ = null;
      }

      return this;
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder
        getMultipleDetailsBuilder() {

      onChanged();
      return getMultipleDetailsFieldBuilder().getBuilder();
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    public com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder
        getMultipleDetailsOrBuilder() {
      if (multipleDetailsBuilder_ != null) {
        return multipleDetailsBuilder_.getMessageOrBuilder();
      } else {
        return multipleDetails_ == null
            ? com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails
                .getDefaultInstance()
            : multipleDetails_;
      }
    }

    /**
     * <code>.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails multiple_details = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder,
            com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>
        getMultipleDetailsFieldBuilder() {
      if (multipleDetailsBuilder_ == null) {
        multipleDetailsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetails.Builder,
                com.google.showcase.v1beta1.EchoErrorDetailsResponse.MultipleDetailsOrBuilder>(
                getMultipleDetails(), getParentForChildren(), isClean());
        multipleDetails_ = null;
      }
      return multipleDetailsBuilder_;
    }

    @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.showcase.v1beta1.EchoErrorDetailsResponse)
  }

  // @@protoc_insertion_point(class_scope:google.showcase.v1beta1.EchoErrorDetailsResponse)
  private static final com.google.showcase.v1beta1.EchoErrorDetailsResponse DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.showcase.v1beta1.EchoErrorDetailsResponse();
  }

  public static com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<EchoErrorDetailsResponse> PARSER =
      new com.google.protobuf.AbstractParser<EchoErrorDetailsResponse>() {
        @java.lang.Override
        public EchoErrorDetailsResponse parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new EchoErrorDetailsResponse(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<EchoErrorDetailsResponse> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<EchoErrorDetailsResponse> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.showcase.v1beta1.EchoErrorDetailsResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
