/*
 * 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 request for Wait method.
 * </pre>
 *
 * Protobuf type {@code google.showcase.v1beta1.WaitRequest}
 */
public final class WaitRequest extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.WaitRequest)
    WaitRequestOrBuilder {
  private static final long serialVersionUID = 0L;

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

  private WaitRequest() {}

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

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

  private WaitRequest(
      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.protobuf.Timestamp.Builder subBuilder = null;
              if (endCase_ == 1) {
                subBuilder = ((com.google.protobuf.Timestamp) end_).toBuilder();
              }
              end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.protobuf.Timestamp) end_);
                end_ = subBuilder.buildPartial();
              }
              endCase_ = 1;
              break;
            }
          case 18:
            {
              com.google.rpc.Status.Builder subBuilder = null;
              if (responseCase_ == 2) {
                subBuilder = ((com.google.rpc.Status) response_).toBuilder();
              }
              response_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.rpc.Status) response_);
                response_ = subBuilder.buildPartial();
              }
              responseCase_ = 2;
              break;
            }
          case 26:
            {
              com.google.showcase.v1beta1.WaitResponse.Builder subBuilder = null;
              if (responseCase_ == 3) {
                subBuilder = ((com.google.showcase.v1beta1.WaitResponse) response_).toBuilder();
              }
              response_ =
                  input.readMessage(
                      com.google.showcase.v1beta1.WaitResponse.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.showcase.v1beta1.WaitResponse) response_);
                response_ = subBuilder.buildPartial();
              }
              responseCase_ = 3;
              break;
            }
          case 34:
            {
              com.google.protobuf.Duration.Builder subBuilder = null;
              if (endCase_ == 4) {
                subBuilder = ((com.google.protobuf.Duration) end_).toBuilder();
              }
              end_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.google.protobuf.Duration) end_);
                end_ = subBuilder.buildPartial();
              }
              endCase_ = 4;
              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_WaitRequest_descriptor;
  }

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

  private int endCase_ = 0;
  private java.lang.Object end_;

  public enum EndCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    END_TIME(1),
    TTL(4),
    END_NOT_SET(0);
    private final int value;

    private EndCase(int value) {
      this.value = value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static EndCase valueOf(int value) {
      return forNumber(value);
    }

    public static EndCase forNumber(int value) {
      switch (value) {
        case 1:
          return END_TIME;
        case 4:
          return TTL;
        case 0:
          return END_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public EndCase getEndCase() {
    return EndCase.forNumber(endCase_);
  }

  private int responseCase_ = 0;
  private java.lang.Object response_;

  public enum ResponseCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ERROR(2),
    SUCCESS(3),
    RESPONSE_NOT_SET(0);
    private final int value;

    private ResponseCase(int value) {
      this.value = value;
    }

    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ResponseCase valueOf(int value) {
      return forNumber(value);
    }

    public static ResponseCase forNumber(int value) {
      switch (value) {
        case 2:
          return ERROR;
        case 3:
          return SUCCESS;
        case 0:
          return RESPONSE_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public ResponseCase getResponseCase() {
    return ResponseCase.forNumber(responseCase_);
  }

  public static final int END_TIME_FIELD_NUMBER = 1;

  /**
   *
   *
   * <pre>
   * The time that this operation will complete.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 1;</code>
   *
   * @return Whether the endTime field is set.
   */
  @java.lang.Override
  public boolean hasEndTime() {
    return endCase_ == 1;
  }

  /**
   *
   *
   * <pre>
   * The time that this operation will complete.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 1;</code>
   *
   * @return The endTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getEndTime() {
    if (endCase_ == 1) {
      return (com.google.protobuf.Timestamp) end_;
    }
    return com.google.protobuf.Timestamp.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * The time that this operation will complete.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 1;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    if (endCase_ == 1) {
      return (com.google.protobuf.Timestamp) end_;
    }
    return com.google.protobuf.Timestamp.getDefaultInstance();
  }

  public static final int TTL_FIELD_NUMBER = 4;

  /**
   *
   *
   * <pre>
   * The duration of this operation.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 4;</code>
   *
   * @return Whether the ttl field is set.
   */
  @java.lang.Override
  public boolean hasTtl() {
    return endCase_ == 4;
  }

  /**
   *
   *
   * <pre>
   * The duration of this operation.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 4;</code>
   *
   * @return The ttl.
   */
  @java.lang.Override
  public com.google.protobuf.Duration getTtl() {
    if (endCase_ == 4) {
      return (com.google.protobuf.Duration) end_;
    }
    return com.google.protobuf.Duration.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * The duration of this operation.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 4;</code>
   */
  @java.lang.Override
  public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
    if (endCase_ == 4) {
      return (com.google.protobuf.Duration) end_;
    }
    return com.google.protobuf.Duration.getDefaultInstance();
  }

  public static final int ERROR_FIELD_NUMBER = 2;

  /**
   *
   *
   * <pre>
   * The error that will be returned by the server. If this code is specified
   * to be the OK rpc code, an empty response will be returned.
   * </pre>
   *
   * <code>.google.rpc.Status error = 2;</code>
   *
   * @return Whether the error field is set.
   */
  @java.lang.Override
  public boolean hasError() {
    return responseCase_ == 2;
  }

  /**
   *
   *
   * <pre>
   * The error that will be returned by the server. If this code is specified
   * to be the OK rpc code, an empty response will be returned.
   * </pre>
   *
   * <code>.google.rpc.Status error = 2;</code>
   *
   * @return The error.
   */
  @java.lang.Override
  public com.google.rpc.Status getError() {
    if (responseCase_ == 2) {
      return (com.google.rpc.Status) response_;
    }
    return com.google.rpc.Status.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * The error that will be returned by the server. If this code is specified
   * to be the OK rpc code, an empty response will be returned.
   * </pre>
   *
   * <code>.google.rpc.Status error = 2;</code>
   */
  @java.lang.Override
  public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    if (responseCase_ == 2) {
      return (com.google.rpc.Status) response_;
    }
    return com.google.rpc.Status.getDefaultInstance();
  }

  public static final int SUCCESS_FIELD_NUMBER = 3;

  /**
   *
   *
   * <pre>
   * The response to be returned on operation completion.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
   *
   * @return Whether the success field is set.
   */
  @java.lang.Override
  public boolean hasSuccess() {
    return responseCase_ == 3;
  }

  /**
   *
   *
   * <pre>
   * The response to be returned on operation completion.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
   *
   * @return The success.
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.WaitResponse getSuccess() {
    if (responseCase_ == 3) {
      return (com.google.showcase.v1beta1.WaitResponse) response_;
    }
    return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
  }

  /**
   *
   *
   * <pre>
   * The response to be returned on operation completion.
   * </pre>
   *
   * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() {
    if (responseCase_ == 3) {
      return (com.google.showcase.v1beta1.WaitResponse) response_;
    }
    return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (endCase_ == 1) {
      output.writeMessage(1, (com.google.protobuf.Timestamp) end_);
    }
    if (responseCase_ == 2) {
      output.writeMessage(2, (com.google.rpc.Status) response_);
    }
    if (responseCase_ == 3) {
      output.writeMessage(3, (com.google.showcase.v1beta1.WaitResponse) response_);
    }
    if (endCase_ == 4) {
      output.writeMessage(4, (com.google.protobuf.Duration) end_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (endCase_ == 1) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              1, (com.google.protobuf.Timestamp) end_);
    }
    if (responseCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, (com.google.rpc.Status) response_);
    }
    if (responseCase_ == 3) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, (com.google.showcase.v1beta1.WaitResponse) response_);
    }
    if (endCase_ == 4) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              4, (com.google.protobuf.Duration) end_);
    }
    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.WaitRequest)) {
      return super.equals(obj);
    }
    com.google.showcase.v1beta1.WaitRequest other = (com.google.showcase.v1beta1.WaitRequest) obj;

    if (!getEndCase().equals(other.getEndCase())) return false;
    switch (endCase_) {
      case 1:
        if (!getEndTime().equals(other.getEndTime())) return false;
        break;
      case 4:
        if (!getTtl().equals(other.getTtl())) return false;
        break;
      case 0:
      default:
    }
    if (!getResponseCase().equals(other.getResponseCase())) return false;
    switch (responseCase_) {
      case 2:
        if (!getError().equals(other.getError())) return false;
        break;
      case 3:
        if (!getSuccess().equals(other.getSuccess())) return false;
        break;
      case 0:
      default:
    }
    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();
    switch (endCase_) {
      case 1:
        hash = (37 * hash) + END_TIME_FIELD_NUMBER;
        hash = (53 * hash) + getEndTime().hashCode();
        break;
      case 4:
        hash = (37 * hash) + TTL_FIELD_NUMBER;
        hash = (53 * hash) + getTtl().hashCode();
        break;
      case 0:
      default:
    }
    switch (responseCase_) {
      case 2:
        hash = (37 * hash) + ERROR_FIELD_NUMBER;
        hash = (53 * hash) + getError().hashCode();
        break;
      case 3:
        hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
        hash = (53 * hash) + getSuccess().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

  public static com.google.showcase.v1beta1.WaitRequest 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.WaitRequest 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 request for Wait method.
   * </pre>
   *
   * Protobuf type {@code google.showcase.v1beta1.WaitRequest}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.WaitRequest)
      com.google.showcase.v1beta1.WaitRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.EchoOuterClass
          .internal_static_google_showcase_v1beta1_WaitRequest_descriptor;
    }

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

    // Construct using com.google.showcase.v1beta1.WaitRequest.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();
      endCase_ = 0;
      end_ = null;
      responseCase_ = 0;
      response_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.showcase.v1beta1.WaitRequest buildPartial() {
      com.google.showcase.v1beta1.WaitRequest result =
          new com.google.showcase.v1beta1.WaitRequest(this);
      if (endCase_ == 1) {
        if (endTimeBuilder_ == null) {
          result.end_ = end_;
        } else {
          result.end_ = endTimeBuilder_.build();
        }
      }
      if (endCase_ == 4) {
        if (ttlBuilder_ == null) {
          result.end_ = end_;
        } else {
          result.end_ = ttlBuilder_.build();
        }
      }
      if (responseCase_ == 2) {
        if (errorBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = errorBuilder_.build();
        }
      }
      if (responseCase_ == 3) {
        if (successBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = successBuilder_.build();
        }
      }
      result.endCase_ = endCase_;
      result.responseCase_ = responseCase_;
      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.WaitRequest) {
        return mergeFrom((com.google.showcase.v1beta1.WaitRequest) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.showcase.v1beta1.WaitRequest other) {
      if (other == com.google.showcase.v1beta1.WaitRequest.getDefaultInstance()) return this;
      switch (other.getEndCase()) {
        case END_TIME:
          {
            mergeEndTime(other.getEndTime());
            break;
          }
        case TTL:
          {
            mergeTtl(other.getTtl());
            break;
          }
        case END_NOT_SET:
          {
            break;
          }
      }
      switch (other.getResponseCase()) {
        case ERROR:
          {
            mergeError(other.getError());
            break;
          }
        case SUCCESS:
          {
            mergeSuccess(other.getSuccess());
            break;
          }
        case RESPONSE_NOT_SET:
          {
            break;
          }
      }
      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.WaitRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.showcase.v1beta1.WaitRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int endCase_ = 0;
    private java.lang.Object end_;

    public EndCase getEndCase() {
      return EndCase.forNumber(endCase_);
    }

    public Builder clearEnd() {
      endCase_ = 0;
      end_ = null;
      onChanged();
      return this;
    }

    private int responseCase_ = 0;
    private java.lang.Object response_;

    public ResponseCase getResponseCase() {
      return ResponseCase.forNumber(responseCase_);
    }

    public Builder clearResponse() {
      responseCase_ = 0;
      response_ = null;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        endTimeBuilder_;

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     *
     * @return Whether the endTime field is set.
     */
    @java.lang.Override
    public boolean hasEndTime() {
      return endCase_ == 1;
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     *
     * @return The endTime.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getEndTime() {
      if (endTimeBuilder_ == null) {
        if (endCase_ == 1) {
          return (com.google.protobuf.Timestamp) end_;
        }
        return com.google.protobuf.Timestamp.getDefaultInstance();
      } else {
        if (endCase_ == 1) {
          return endTimeBuilder_.getMessage();
        }
        return com.google.protobuf.Timestamp.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        end_ = value;
        onChanged();
      } else {
        endTimeBuilder_.setMessage(value);
      }
      endCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (endTimeBuilder_ == null) {
        end_ = builderForValue.build();
        onChanged();
      } else {
        endTimeBuilder_.setMessage(builderForValue.build());
      }
      endCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (endCase_ == 1 && end_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          end_ =
              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) end_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          end_ = value;
        }
        onChanged();
      } else {
        if (endCase_ == 1) {
          endTimeBuilder_.mergeFrom(value);
        } else {
          endTimeBuilder_.setMessage(value);
        }
      }
      endCase_ = 1;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    public Builder clearEndTime() {
      if (endTimeBuilder_ == null) {
        if (endCase_ == 1) {
          endCase_ = 0;
          end_ = null;
          onChanged();
        }
      } else {
        if (endCase_ == 1) {
          endCase_ = 0;
          end_ = null;
        }
        endTimeBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
      return getEndTimeFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      if ((endCase_ == 1) && (endTimeBuilder_ != null)) {
        return endTimeBuilder_.getMessageOrBuilder();
      } else {
        if (endCase_ == 1) {
          return (com.google.protobuf.Timestamp) end_;
        }
        return com.google.protobuf.Timestamp.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The time that this operation will complete.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getEndTimeFieldBuilder() {
      if (endTimeBuilder_ == null) {
        if (!(endCase_ == 1)) {
          end_ = com.google.protobuf.Timestamp.getDefaultInstance();
        }
        endTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                (com.google.protobuf.Timestamp) end_, getParentForChildren(), isClean());
        end_ = null;
      }
      endCase_ = 1;
      onChanged();
      ;
      return endTimeBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Duration,
            com.google.protobuf.Duration.Builder,
            com.google.protobuf.DurationOrBuilder>
        ttlBuilder_;

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     *
     * @return Whether the ttl field is set.
     */
    @java.lang.Override
    public boolean hasTtl() {
      return endCase_ == 4;
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     *
     * @return The ttl.
     */
    @java.lang.Override
    public com.google.protobuf.Duration getTtl() {
      if (ttlBuilder_ == null) {
        if (endCase_ == 4) {
          return (com.google.protobuf.Duration) end_;
        }
        return com.google.protobuf.Duration.getDefaultInstance();
      } else {
        if (endCase_ == 4) {
          return ttlBuilder_.getMessage();
        }
        return com.google.protobuf.Duration.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    public Builder setTtl(com.google.protobuf.Duration value) {
      if (ttlBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        end_ = value;
        onChanged();
      } else {
        ttlBuilder_.setMessage(value);
      }
      endCase_ = 4;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
      if (ttlBuilder_ == null) {
        end_ = builderForValue.build();
        onChanged();
      } else {
        ttlBuilder_.setMessage(builderForValue.build());
      }
      endCase_ = 4;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    public Builder mergeTtl(com.google.protobuf.Duration value) {
      if (ttlBuilder_ == null) {
        if (endCase_ == 4 && end_ != com.google.protobuf.Duration.getDefaultInstance()) {
          end_ =
              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) end_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          end_ = value;
        }
        onChanged();
      } else {
        if (endCase_ == 4) {
          ttlBuilder_.mergeFrom(value);
        } else {
          ttlBuilder_.setMessage(value);
        }
      }
      endCase_ = 4;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    public Builder clearTtl() {
      if (ttlBuilder_ == null) {
        if (endCase_ == 4) {
          endCase_ = 0;
          end_ = null;
          onChanged();
        }
      } else {
        if (endCase_ == 4) {
          endCase_ = 0;
          end_ = null;
        }
        ttlBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    public com.google.protobuf.Duration.Builder getTtlBuilder() {
      return getTtlFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    @java.lang.Override
    public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      if ((endCase_ == 4) && (ttlBuilder_ != null)) {
        return ttlBuilder_.getMessageOrBuilder();
      } else {
        if (endCase_ == 4) {
          return (com.google.protobuf.Duration) end_;
        }
        return com.google.protobuf.Duration.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The duration of this operation.
     * </pre>
     *
     * <code>.google.protobuf.Duration ttl = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Duration,
            com.google.protobuf.Duration.Builder,
            com.google.protobuf.DurationOrBuilder>
        getTtlFieldBuilder() {
      if (ttlBuilder_ == null) {
        if (!(endCase_ == 4)) {
          end_ = com.google.protobuf.Duration.getDefaultInstance();
        }
        ttlBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Duration,
                com.google.protobuf.Duration.Builder,
                com.google.protobuf.DurationOrBuilder>(
                (com.google.protobuf.Duration) end_, getParentForChildren(), isClean());
        end_ = null;
      }
      endCase_ = 4;
      onChanged();
      ;
      return ttlBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
        errorBuilder_;

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     *
     * @return Whether the error field is set.
     */
    @java.lang.Override
    public boolean hasError() {
      return responseCase_ == 2;
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     *
     * @return The error.
     */
    @java.lang.Override
    public com.google.rpc.Status getError() {
      if (errorBuilder_ == null) {
        if (responseCase_ == 2) {
          return (com.google.rpc.Status) response_;
        }
        return com.google.rpc.Status.getDefaultInstance();
      } else {
        if (responseCase_ == 2) {
          return errorBuilder_.getMessage();
        }
        return com.google.rpc.Status.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    public Builder setError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        errorBuilder_.setMessage(value);
      }
      responseCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      if (errorBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        errorBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    public Builder mergeError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
          response_ =
              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 2) {
          errorBuilder_.mergeFrom(value);
        } else {
          errorBuilder_.setMessage(value);
        }
      }
      responseCase_ = 2;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    public Builder clearError() {
      if (errorBuilder_ == null) {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
        }
        errorBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    public com.google.rpc.Status.Builder getErrorBuilder() {
      return getErrorFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    @java.lang.Override
    public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      if ((responseCase_ == 2) && (errorBuilder_ != null)) {
        return errorBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 2) {
          return (com.google.rpc.Status) response_;
        }
        return com.google.rpc.Status.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The error that will be returned by the server. If this code is specified
     * to be the OK rpc code, an empty response will be returned.
     * </pre>
     *
     * <code>.google.rpc.Status error = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
        getErrorFieldBuilder() {
      if (errorBuilder_ == null) {
        if (!(responseCase_ == 2)) {
          response_ = com.google.rpc.Status.getDefaultInstance();
        }
        errorBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.rpc.Status,
                com.google.rpc.Status.Builder,
                com.google.rpc.StatusOrBuilder>(
                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
        response_ = null;
      }
      responseCase_ = 2;
      onChanged();
      ;
      return errorBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.WaitResponse,
            com.google.showcase.v1beta1.WaitResponse.Builder,
            com.google.showcase.v1beta1.WaitResponseOrBuilder>
        successBuilder_;

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     *
     * @return Whether the success field is set.
     */
    @java.lang.Override
    public boolean hasSuccess() {
      return responseCase_ == 3;
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     *
     * @return The success.
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.WaitResponse getSuccess() {
      if (successBuilder_ == null) {
        if (responseCase_ == 3) {
          return (com.google.showcase.v1beta1.WaitResponse) response_;
        }
        return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 3) {
          return successBuilder_.getMessage();
        }
        return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    public Builder setSuccess(com.google.showcase.v1beta1.WaitResponse value) {
      if (successBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        successBuilder_.setMessage(value);
      }
      responseCase_ = 3;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    public Builder setSuccess(com.google.showcase.v1beta1.WaitResponse.Builder builderForValue) {
      if (successBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        successBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 3;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    public Builder mergeSuccess(com.google.showcase.v1beta1.WaitResponse value) {
      if (successBuilder_ == null) {
        if (responseCase_ == 3
            && response_ != com.google.showcase.v1beta1.WaitResponse.getDefaultInstance()) {
          response_ =
              com.google.showcase.v1beta1.WaitResponse.newBuilder(
                      (com.google.showcase.v1beta1.WaitResponse) response_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 3) {
          successBuilder_.mergeFrom(value);
        } else {
          successBuilder_.setMessage(value);
        }
      }
      responseCase_ = 3;
      return this;
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    public Builder clearSuccess() {
      if (successBuilder_ == null) {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
        }
        successBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    public com.google.showcase.v1beta1.WaitResponse.Builder getSuccessBuilder() {
      return getSuccessFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    @java.lang.Override
    public com.google.showcase.v1beta1.WaitResponseOrBuilder getSuccessOrBuilder() {
      if ((responseCase_ == 3) && (successBuilder_ != null)) {
        return successBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 3) {
          return (com.google.showcase.v1beta1.WaitResponse) response_;
        }
        return com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
      }
    }

    /**
     *
     *
     * <pre>
     * The response to be returned on operation completion.
     * </pre>
     *
     * <code>.google.showcase.v1beta1.WaitResponse success = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.showcase.v1beta1.WaitResponse,
            com.google.showcase.v1beta1.WaitResponse.Builder,
            com.google.showcase.v1beta1.WaitResponseOrBuilder>
        getSuccessFieldBuilder() {
      if (successBuilder_ == null) {
        if (!(responseCase_ == 3)) {
          response_ = com.google.showcase.v1beta1.WaitResponse.getDefaultInstance();
        }
        successBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.showcase.v1beta1.WaitResponse,
                com.google.showcase.v1beta1.WaitResponse.Builder,
                com.google.showcase.v1beta1.WaitResponseOrBuilder>(
                (com.google.showcase.v1beta1.WaitResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 3;
      onChanged();
      ;
      return successBuilder_;
    }

    @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.WaitRequest)
  }

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

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

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

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

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

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

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