/*
 * 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/sequence.proto

// Protobuf Java Version: 3.25.8
package com.google.showcase.v1beta1;

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

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

  private StreamingSequence() {
    name_ = "";
    content_ = "";
    responses_ = java.util.Collections.emptyList();
  }

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

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

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

  public interface ResponseOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequence.Response)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     *
     * @return Whether the status field is set.
     */
    boolean hasStatus();

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     *
     * @return The status.
     */
    com.google.rpc.Status getStatus();

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     */
    com.google.rpc.StatusOrBuilder getStatusOrBuilder();

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     *
     * @return Whether the delay field is set.
     */
    boolean hasDelay();

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     *
     * @return The delay.
     */
    com.google.protobuf.Duration getDelay();

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     */
    com.google.protobuf.DurationOrBuilder getDelayOrBuilder();

    /**
     *
     *
     * <pre>
     * The index that the status should be sent
     * </pre>
     *
     * <code>int32 response_index = 3;</code>
     *
     * @return The responseIndex.
     */
    int getResponseIndex();
  }

  /**
   *
   *
   * <pre>
   * A server response to an RPC Attempt in a sequence.
   * </pre>
   *
   * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response}
   */
  public static final class Response extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequence.Response)
      ResponseOrBuilder {
    private static final long serialVersionUID = 0L;

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

    private Response() {}

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.showcase.v1beta1.SequenceOuterClass
          .internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.showcase.v1beta1.StreamingSequence.Response.class,
              com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class);
    }

    private int bitField0_;
    public static final int STATUS_FIELD_NUMBER = 1;
    private com.google.rpc.Status status_;

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     *
     * @return Whether the status field is set.
     */
    @java.lang.Override
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     *
     * @return The status.
     */
    @java.lang.Override
    public com.google.rpc.Status getStatus() {
      return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
    }

    /**
     *
     *
     * <pre>
     * The status to return for an individual attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 1;</code>
     */
    @java.lang.Override
    public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
    }

    public static final int DELAY_FIELD_NUMBER = 2;
    private com.google.protobuf.Duration delay_;

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     *
     * @return Whether the delay field is set.
     */
    @java.lang.Override
    public boolean hasDelay() {
      return ((bitField0_ & 0x00000002) != 0);
    }

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     *
     * @return The delay.
     */
    @java.lang.Override
    public com.google.protobuf.Duration getDelay() {
      return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
    }

    /**
     *
     *
     * <pre>
     * The amount of time to delay sending the response.
     * </pre>
     *
     * <code>.google.protobuf.Duration delay = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
      return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
    }

    public static final int RESPONSE_INDEX_FIELD_NUMBER = 3;
    private int responseIndex_ = 0;

    /**
     *
     *
     * <pre>
     * The index that the status should be sent
     * </pre>
     *
     * <code>int32 response_index = 3;</code>
     *
     * @return The responseIndex.
     */
    @java.lang.Override
    public int getResponseIndex() {
      return responseIndex_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getStatus());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(2, getDelay());
      }
      if (responseIndex_ != 0) {
        output.writeInt32(3, responseIndex_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus());
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDelay());
      }
      if (responseIndex_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, responseIndex_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequence.Response)) {
        return super.equals(obj);
      }
      com.google.showcase.v1beta1.StreamingSequence.Response other =
          (com.google.showcase.v1beta1.StreamingSequence.Response) obj;

      if (hasStatus() != other.hasStatus()) return false;
      if (hasStatus()) {
        if (!getStatus().equals(other.getStatus())) return false;
      }
      if (hasDelay() != other.hasDelay()) return false;
      if (hasDelay()) {
        if (!getDelay().equals(other.getDelay())) return false;
      }
      if (getResponseIndex() != other.getResponseIndex()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasStatus()) {
        hash = (37 * hash) + STATUS_FIELD_NUMBER;
        hash = (53 * hash) + getStatus().hashCode();
      }
      if (hasDelay()) {
        hash = (37 * hash) + DELAY_FIELD_NUMBER;
        hash = (53 * hash) + getDelay().hashCode();
      }
      hash = (37 * hash) + RESPONSE_INDEX_FIELD_NUMBER;
      hash = (53 * hash) + getResponseIndex();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.showcase.v1beta1.StreamingSequence.Response 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.StreamingSequence.Response 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>
     * A server response to an RPC Attempt in a sequence.
     * </pre>
     *
     * Protobuf type {@code google.showcase.v1beta1.StreamingSequence.Response}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence.Response)
        com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.showcase.v1beta1.SequenceOuterClass
            .internal_static_google_showcase_v1beta1_StreamingSequence_Response_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.showcase.v1beta1.SequenceOuterClass
            .internal_static_google_showcase_v1beta1_StreamingSequence_Response_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.showcase.v1beta1.StreamingSequence.Response.class,
                com.google.showcase.v1beta1.StreamingSequence.Response.Builder.class);
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        status_ = null;
        if (statusBuilder_ != null) {
          statusBuilder_.dispose();
          statusBuilder_ = null;
        }
        delay_ = null;
        if (delayBuilder_ != null) {
          delayBuilder_.dispose();
          delayBuilder_ = null;
        }
        responseIndex_ = 0;
        return this;
      }

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

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

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

      @java.lang.Override
      public com.google.showcase.v1beta1.StreamingSequence.Response buildPartial() {
        com.google.showcase.v1beta1.StreamingSequence.Response result =
            new com.google.showcase.v1beta1.StreamingSequence.Response(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence.Response result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.delay_ = delayBuilder_ == null ? delay_ : delayBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.responseIndex_ = responseIndex_;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.showcase.v1beta1.StreamingSequence.Response) {
          return mergeFrom((com.google.showcase.v1beta1.StreamingSequence.Response) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence.Response other) {
        if (other == com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance())
          return this;
        if (other.hasStatus()) {
          mergeStatus(other.getStatus());
        }
        if (other.hasDelay()) {
          mergeDelay(other.getDelay());
        }
        if (other.getResponseIndex() != 0) {
          setResponseIndex(other.getResponseIndex());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(getDelayFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 24:
                {
                  responseIndex_ = input.readInt32();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

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

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       *
       * @return Whether the status field is set.
       */
      public boolean hasStatus() {
        return ((bitField0_ & 0x00000001) != 0);
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       *
       * @return The status.
       */
      public com.google.rpc.Status getStatus() {
        if (statusBuilder_ == null) {
          return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
        } else {
          return statusBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public Builder setStatus(com.google.rpc.Status value) {
        if (statusBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          status_ = value;
        } else {
          statusBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
        if (statusBuilder_ == null) {
          status_ = builderForValue.build();
        } else {
          statusBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public Builder mergeStatus(com.google.rpc.Status value) {
        if (statusBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && status_ != null
              && status_ != com.google.rpc.Status.getDefaultInstance()) {
            getStatusBuilder().mergeFrom(value);
          } else {
            status_ = value;
          }
        } else {
          statusBuilder_.mergeFrom(value);
        }
        if (status_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public Builder clearStatus() {
        bitField0_ = (bitField0_ & ~0x00000001);
        status_ = null;
        if (statusBuilder_ != null) {
          statusBuilder_.dispose();
          statusBuilder_ = null;
        }
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public com.google.rpc.Status.Builder getStatusBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getStatusFieldBuilder().getBuilder();
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
        if (statusBuilder_ != null) {
          return statusBuilder_.getMessageOrBuilder();
        } else {
          return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
        }
      }

      /**
       *
       *
       * <pre>
       * The status to return for an individual attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
          getStatusFieldBuilder() {
        if (statusBuilder_ == null) {
          statusBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.rpc.Status,
                  com.google.rpc.Status.Builder,
                  com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
          status_ = null;
        }
        return statusBuilder_;
      }

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

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       *
       * @return Whether the delay field is set.
       */
      public boolean hasDelay() {
        return ((bitField0_ & 0x00000002) != 0);
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       *
       * @return The delay.
       */
      public com.google.protobuf.Duration getDelay() {
        if (delayBuilder_ == null) {
          return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
        } else {
          return delayBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public Builder setDelay(com.google.protobuf.Duration value) {
        if (delayBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          delay_ = value;
        } else {
          delayBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public Builder setDelay(com.google.protobuf.Duration.Builder builderForValue) {
        if (delayBuilder_ == null) {
          delay_ = builderForValue.build();
        } else {
          delayBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public Builder mergeDelay(com.google.protobuf.Duration value) {
        if (delayBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && delay_ != null
              && delay_ != com.google.protobuf.Duration.getDefaultInstance()) {
            getDelayBuilder().mergeFrom(value);
          } else {
            delay_ = value;
          }
        } else {
          delayBuilder_.mergeFrom(value);
        }
        if (delay_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public Builder clearDelay() {
        bitField0_ = (bitField0_ & ~0x00000002);
        delay_ = null;
        if (delayBuilder_ != null) {
          delayBuilder_.dispose();
          delayBuilder_ = null;
        }
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public com.google.protobuf.Duration.Builder getDelayBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getDelayFieldBuilder().getBuilder();
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      public com.google.protobuf.DurationOrBuilder getDelayOrBuilder() {
        if (delayBuilder_ != null) {
          return delayBuilder_.getMessageOrBuilder();
        } else {
          return delay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : delay_;
        }
      }

      /**
       *
       *
       * <pre>
       * The amount of time to delay sending the response.
       * </pre>
       *
       * <code>.google.protobuf.Duration delay = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Duration,
              com.google.protobuf.Duration.Builder,
              com.google.protobuf.DurationOrBuilder>
          getDelayFieldBuilder() {
        if (delayBuilder_ == null) {
          delayBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Duration,
                  com.google.protobuf.Duration.Builder,
                  com.google.protobuf.DurationOrBuilder>(
                  getDelay(), getParentForChildren(), isClean());
          delay_ = null;
        }
        return delayBuilder_;
      }

      private int responseIndex_;

      /**
       *
       *
       * <pre>
       * The index that the status should be sent
       * </pre>
       *
       * <code>int32 response_index = 3;</code>
       *
       * @return The responseIndex.
       */
      @java.lang.Override
      public int getResponseIndex() {
        return responseIndex_;
      }

      /**
       *
       *
       * <pre>
       * The index that the status should be sent
       * </pre>
       *
       * <code>int32 response_index = 3;</code>
       *
       * @param value The responseIndex to set.
       * @return This builder for chaining.
       */
      public Builder setResponseIndex(int value) {

        responseIndex_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The index that the status should be sent
       * </pre>
       *
       * <code>int32 response_index = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearResponseIndex() {
        bitField0_ = (bitField0_ & ~0x00000004);
        responseIndex_ = 0;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.showcase.v1beta1.StreamingSequence.Response)
    }

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

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

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

    private static final com.google.protobuf.Parser<Response> PARSER =
        new com.google.protobuf.AbstractParser<Response>() {
          @java.lang.Override
          public Response parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

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

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

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

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";

  /**
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }

  /**
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CONTENT_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object content_ = "";

  /**
   *
   *
   * <pre>
   * The Content that the stream will send
   * </pre>
   *
   * <code>string content = 2;</code>
   *
   * @return The content.
   */
  @java.lang.Override
  public java.lang.String getContent() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      content_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * The Content that the stream will send
   * </pre>
   *
   * <code>string content = 2;</code>
   *
   * @return The bytes for content.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getContentBytes() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      content_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int RESPONSES_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.showcase.v1beta1.StreamingSequence.Response> responses_;

  /**
   *
   *
   * <pre>
   * Sequence of responses to return in order for each attempt. If empty, the
   * default response is an immediate OK.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.showcase.v1beta1.StreamingSequence.Response> getResponsesList() {
    return responses_;
  }

  /**
   *
   *
   * <pre>
   * Sequence of responses to return in order for each attempt. If empty, the
   * default response is an immediate OK.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>
      getResponsesOrBuilderList() {
    return responses_;
  }

  /**
   *
   *
   * <pre>
   * Sequence of responses to return in order for each attempt. If empty, the
   * default response is an immediate OK.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
   */
  @java.lang.Override
  public int getResponsesCount() {
    return responses_.size();
  }

  /**
   *
   *
   * <pre>
   * Sequence of responses to return in order for each attempt. If empty, the
   * default response is an immediate OK.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index) {
    return responses_.get(index);
  }

  /**
   *
   *
   * <pre>
   * Sequence of responses to return in order for each attempt. If empty, the
   * default response is an immediate OK.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder(
      int index) {
    return responses_.get(index);
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_);
    }
    for (int i = 0; i < responses_.size(); i++) {
      output.writeMessage(3, responses_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
    }
    for (int i = 0; i < responses_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, responses_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.showcase.v1beta1.StreamingSequence)) {
      return super.equals(obj);
    }
    com.google.showcase.v1beta1.StreamingSequence other =
        (com.google.showcase.v1beta1.StreamingSequence) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getContent().equals(other.getContent())) return false;
    if (!getResponsesList().equals(other.getResponsesList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + CONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getContent().hashCode();
    if (getResponsesCount() > 0) {
      hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
      hash = (53 * hash) + getResponsesList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

  public static com.google.showcase.v1beta1.StreamingSequence 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.StreamingSequence 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.StreamingSequence} */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequence)
      com.google.showcase.v1beta1.StreamingSequenceOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.showcase.v1beta1.SequenceOuterClass
          .internal_static_google_showcase_v1beta1_StreamingSequence_descriptor;
    }

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

    // Construct using com.google.showcase.v1beta1.StreamingSequence.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      content_ = "";
      if (responsesBuilder_ == null) {
        responses_ = java.util.Collections.emptyList();
      } else {
        responses_ = null;
        responsesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.showcase.v1beta1.StreamingSequence buildPartial() {
      com.google.showcase.v1beta1.StreamingSequence result =
          new com.google.showcase.v1beta1.StreamingSequence(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.showcase.v1beta1.StreamingSequence result) {
      if (responsesBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          responses_ = java.util.Collections.unmodifiableList(responses_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.responses_ = responses_;
      } else {
        result.responses_ = responsesBuilder_.build();
      }
    }

    private void buildPartial0(com.google.showcase.v1beta1.StreamingSequence result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.content_ = content_;
      }
    }

    @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.StreamingSequence) {
        return mergeFrom((com.google.showcase.v1beta1.StreamingSequence) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequence other) {
      if (other == com.google.showcase.v1beta1.StreamingSequence.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getContent().isEmpty()) {
        content_ = other.content_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (responsesBuilder_ == null) {
        if (!other.responses_.isEmpty()) {
          if (responses_.isEmpty()) {
            responses_ = other.responses_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureResponsesIsMutable();
            responses_.addAll(other.responses_);
          }
          onChanged();
        }
      } else {
        if (!other.responses_.isEmpty()) {
          if (responsesBuilder_.isEmpty()) {
            responsesBuilder_.dispose();
            responsesBuilder_ = null;
            responses_ = other.responses_;
            bitField0_ = (bitField0_ & ~0x00000004);
            responsesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getResponsesFieldBuilder()
                    : null;
          } else {
            responsesBuilder_.addAllMessages(other.responses_);
          }
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                content_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.showcase.v1beta1.StreamingSequence.Response m =
                    input.readMessage(
                        com.google.showcase.v1beta1.StreamingSequence.Response.parser(),
                        extensionRegistry);
                if (responsesBuilder_ == null) {
                  ensureResponsesIsMutable();
                  responses_.add(m);
                } else {
                  responsesBuilder_.addMessage(m);
                }
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";

    /**
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    /**
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object content_ = "";

    /**
     *
     *
     * <pre>
     * The Content that the stream will send
     * </pre>
     *
     * <code>string content = 2;</code>
     *
     * @return The content.
     */
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        content_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The Content that the stream will send
     * </pre>
     *
     * <code>string content = 2;</code>
     *
     * @return The bytes for content.
     */
    public com.google.protobuf.ByteString getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The Content that the stream will send
     * </pre>
     *
     * <code>string content = 2;</code>
     *
     * @param value The content to set.
     * @return This builder for chaining.
     */
    public Builder setContent(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      content_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The Content that the stream will send
     * </pre>
     *
     * <code>string content = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearContent() {
      content_ = getDefaultInstance().getContent();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The Content that the stream will send
     * </pre>
     *
     * <code>string content = 2;</code>
     *
     * @param value The bytes for content to set.
     * @return This builder for chaining.
     */
    public Builder setContentBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      content_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.util.List<com.google.showcase.v1beta1.StreamingSequence.Response> responses_ =
        java.util.Collections.emptyList();

    private void ensureResponsesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        responses_ =
            new java.util.ArrayList<com.google.showcase.v1beta1.StreamingSequence.Response>(
                responses_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.showcase.v1beta1.StreamingSequence.Response,
            com.google.showcase.v1beta1.StreamingSequence.Response.Builder,
            com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>
        responsesBuilder_;

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public java.util.List<com.google.showcase.v1beta1.StreamingSequence.Response>
        getResponsesList() {
      if (responsesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(responses_);
      } else {
        return responsesBuilder_.getMessageList();
      }
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public int getResponsesCount() {
      if (responsesBuilder_ == null) {
        return responses_.size();
      } else {
        return responsesBuilder_.getCount();
      }
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequence.Response getResponses(int index) {
      if (responsesBuilder_ == null) {
        return responses_.get(index);
      } else {
        return responsesBuilder_.getMessage(index);
      }
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder setResponses(
        int index, com.google.showcase.v1beta1.StreamingSequence.Response value) {
      if (responsesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResponsesIsMutable();
        responses_.set(index, value);
        onChanged();
      } else {
        responsesBuilder_.setMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder setResponses(
        int index, com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) {
      if (responsesBuilder_ == null) {
        ensureResponsesIsMutable();
        responses_.set(index, builderForValue.build());
        onChanged();
      } else {
        responsesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder addResponses(com.google.showcase.v1beta1.StreamingSequence.Response value) {
      if (responsesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResponsesIsMutable();
        responses_.add(value);
        onChanged();
      } else {
        responsesBuilder_.addMessage(value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder addResponses(
        int index, com.google.showcase.v1beta1.StreamingSequence.Response value) {
      if (responsesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureResponsesIsMutable();
        responses_.add(index, value);
        onChanged();
      } else {
        responsesBuilder_.addMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder addResponses(
        com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) {
      if (responsesBuilder_ == null) {
        ensureResponsesIsMutable();
        responses_.add(builderForValue.build());
        onChanged();
      } else {
        responsesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder addResponses(
        int index, com.google.showcase.v1beta1.StreamingSequence.Response.Builder builderForValue) {
      if (responsesBuilder_ == null) {
        ensureResponsesIsMutable();
        responses_.add(index, builderForValue.build());
        onChanged();
      } else {
        responsesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder addAllResponses(
        java.lang.Iterable<? extends com.google.showcase.v1beta1.StreamingSequence.Response>
            values) {
      if (responsesBuilder_ == null) {
        ensureResponsesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responses_);
        onChanged();
      } else {
        responsesBuilder_.addAllMessages(values);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder clearResponses() {
      if (responsesBuilder_ == null) {
        responses_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        responsesBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public Builder removeResponses(int index) {
      if (responsesBuilder_ == null) {
        ensureResponsesIsMutable();
        responses_.remove(index);
        onChanged();
      } else {
        responsesBuilder_.remove(index);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequence.Response.Builder getResponsesBuilder(
        int index) {
      return getResponsesFieldBuilder().getBuilder(index);
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder getResponsesOrBuilder(
        int index) {
      if (responsesBuilder_ == null) {
        return responses_.get(index);
      } else {
        return responsesBuilder_.getMessageOrBuilder(index);
      }
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public java.util.List<? extends com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>
        getResponsesOrBuilderList() {
      if (responsesBuilder_ != null) {
        return responsesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(responses_);
      }
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder() {
      return getResponsesFieldBuilder()
          .addBuilder(com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequence.Response.Builder addResponsesBuilder(
        int index) {
      return getResponsesFieldBuilder()
          .addBuilder(
              index, com.google.showcase.v1beta1.StreamingSequence.Response.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * Sequence of responses to return in order for each attempt. If empty, the
     * default response is an immediate OK.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequence.Response responses = 3;</code>
     */
    public java.util.List<com.google.showcase.v1beta1.StreamingSequence.Response.Builder>
        getResponsesBuilderList() {
      return getResponsesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.showcase.v1beta1.StreamingSequence.Response,
            com.google.showcase.v1beta1.StreamingSequence.Response.Builder,
            com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>
        getResponsesFieldBuilder() {
      if (responsesBuilder_ == null) {
        responsesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.showcase.v1beta1.StreamingSequence.Response,
                com.google.showcase.v1beta1.StreamingSequence.Response.Builder,
                com.google.showcase.v1beta1.StreamingSequence.ResponseOrBuilder>(
                responses_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
        responses_ = null;
      }
      return responsesBuilder_;
    }

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

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

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

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

  private static final com.google.protobuf.Parser<StreamingSequence> PARSER =
      new com.google.protobuf.AbstractParser<StreamingSequence>() {
        @java.lang.Override
        public StreamingSequence parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

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