/*
 * 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

package com.google.showcase.v1beta1;

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

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

  private StreamingSequenceReport() {
    name_ = "";
    attempts_ = java.util.Collections.emptyList();
  }

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

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

  private StreamingSequenceReport(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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:
            {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
          case 18:
            {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                attempts_ =
                    new java.util.ArrayList<
                        com.google.showcase.v1beta1.StreamingSequenceReport.Attempt>();
                mutable_bitField0_ |= 0x00000001;
              }
              attempts_.add(
                  input.readMessage(
                      com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.parser(),
                      extensionRegistry));
              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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        attempts_ = java.util.Collections.unmodifiableList(attempts_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

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

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

  public interface AttemptOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.showcase.v1beta1.StreamingSequenceReport.Attempt)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The attempt number - starting at 0.
     * </pre>
     *
     * <code>int32 attempt_number = 1;</code>
     *
     * @return The attemptNumber.
     */
    int getAttemptNumber();

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     *
     * @return Whether the attemptDeadline field is set.
     */
    boolean hasAttemptDeadline();

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     *
     * @return The attemptDeadline.
     */
    com.google.protobuf.Timestamp getAttemptDeadline();

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     */
    com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder();

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     *
     * @return Whether the responseTime field is set.
     */
    boolean hasResponseTime();

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     *
     * @return The responseTime.
     */
    com.google.protobuf.Timestamp getResponseTime();

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     */
    com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder();

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     *
     * @return Whether the attemptDelay field is set.
     */
    boolean hasAttemptDelay();

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     *
     * @return The attemptDelay.
     */
    com.google.protobuf.Duration getAttemptDelay();

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     */
    com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder();

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

    /**
     *
     *
     * <pre>
     * The status returned to the attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 5;</code>
     *
     * @return The status.
     */
    com.google.rpc.Status getStatus();

    /**
     *
     *
     * <pre>
     * The status returned to the attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 5;</code>
     */
    com.google.rpc.StatusOrBuilder getStatusOrBuilder();
  }

  /**
   *
   *
   * <pre>
   * Contains metrics on individual RPC Attempts in a sequence.
   * </pre>
   *
   * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt}
   */
  public static final class Attempt extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt)
      AttemptOrBuilder {
    private static final long serialVersionUID = 0L;

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

    private Attempt() {}

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

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

    private Attempt(
        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 8:
              {
                attemptNumber_ = input.readInt32();
                break;
              }
            case 18:
              {
                com.google.protobuf.Timestamp.Builder subBuilder = null;
                if (attemptDeadline_ != null) {
                  subBuilder = attemptDeadline_.toBuilder();
                }
                attemptDeadline_ =
                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(attemptDeadline_);
                  attemptDeadline_ = subBuilder.buildPartial();
                }

                break;
              }
            case 26:
              {
                com.google.protobuf.Timestamp.Builder subBuilder = null;
                if (responseTime_ != null) {
                  subBuilder = responseTime_.toBuilder();
                }
                responseTime_ =
                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(responseTime_);
                  responseTime_ = subBuilder.buildPartial();
                }

                break;
              }
            case 34:
              {
                com.google.protobuf.Duration.Builder subBuilder = null;
                if (attemptDelay_ != null) {
                  subBuilder = attemptDelay_.toBuilder();
                }
                attemptDelay_ =
                    input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(attemptDelay_);
                  attemptDelay_ = subBuilder.buildPartial();
                }

                break;
              }
            case 42:
              {
                com.google.rpc.Status.Builder subBuilder = null;
                if (status_ != null) {
                  subBuilder = status_.toBuilder();
                }
                status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(status_);
                  status_ = subBuilder.buildPartial();
                }

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

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

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

    public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 1;
    private int attemptNumber_;

    /**
     *
     *
     * <pre>
     * The attempt number - starting at 0.
     * </pre>
     *
     * <code>int32 attempt_number = 1;</code>
     *
     * @return The attemptNumber.
     */
    @java.lang.Override
    public int getAttemptNumber() {
      return attemptNumber_;
    }

    public static final int ATTEMPT_DEADLINE_FIELD_NUMBER = 2;
    private com.google.protobuf.Timestamp attemptDeadline_;

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     *
     * @return Whether the attemptDeadline field is set.
     */
    @java.lang.Override
    public boolean hasAttemptDeadline() {
      return attemptDeadline_ != null;
    }

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     *
     * @return The attemptDeadline.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getAttemptDeadline() {
      return attemptDeadline_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : attemptDeadline_;
    }

    /**
     *
     *
     * <pre>
     * The deadline dictated by the attempt to the server.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() {
      return getAttemptDeadline();
    }

    public static final int RESPONSE_TIME_FIELD_NUMBER = 3;
    private com.google.protobuf.Timestamp responseTime_;

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     *
     * @return Whether the responseTime field is set.
     */
    @java.lang.Override
    public boolean hasResponseTime() {
      return responseTime_ != null;
    }

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     *
     * @return The responseTime.
     */
    @java.lang.Override
    public com.google.protobuf.Timestamp getResponseTime() {
      return responseTime_ == null
          ? com.google.protobuf.Timestamp.getDefaultInstance()
          : responseTime_;
    }

    /**
     *
     *
     * <pre>
     * The time that the server responded to the RPC attempt. Used for
     * calculating attempt_delay.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp response_time = 3;</code>
     */
    @java.lang.Override
    public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
      return getResponseTime();
    }

    public static final int ATTEMPT_DELAY_FIELD_NUMBER = 4;
    private com.google.protobuf.Duration attemptDelay_;

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     *
     * @return Whether the attemptDelay field is set.
     */
    @java.lang.Override
    public boolean hasAttemptDelay() {
      return attemptDelay_ != null;
    }

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     *
     * @return The attemptDelay.
     */
    @java.lang.Override
    public com.google.protobuf.Duration getAttemptDelay() {
      return attemptDelay_ == null
          ? com.google.protobuf.Duration.getDefaultInstance()
          : attemptDelay_;
    }

    /**
     *
     *
     * <pre>
     * The server perceived delay between sending the last response and
     * receiving this attempt. Used for validating attempt delay backoff.
     * </pre>
     *
     * <code>.google.protobuf.Duration attempt_delay = 4;</code>
     */
    @java.lang.Override
    public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
      return getAttemptDelay();
    }

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

    /**
     *
     *
     * <pre>
     * The status returned to the attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 5;</code>
     *
     * @return Whether the status field is set.
     */
    @java.lang.Override
    public boolean hasStatus() {
      return status_ != null;
    }

    /**
     *
     *
     * <pre>
     * The status returned to the attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 5;</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 returned to the attempt.
     * </pre>
     *
     * <code>.google.rpc.Status status = 5;</code>
     */
    @java.lang.Override
    public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      return getStatus();
    }

    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 (attemptNumber_ != 0) {
        output.writeInt32(1, attemptNumber_);
      }
      if (attemptDeadline_ != null) {
        output.writeMessage(2, getAttemptDeadline());
      }
      if (responseTime_ != null) {
        output.writeMessage(3, getResponseTime());
      }
      if (attemptDelay_ != null) {
        output.writeMessage(4, getAttemptDelay());
      }
      if (status_ != null) {
        output.writeMessage(5, getStatus());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (attemptNumber_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attemptNumber_);
      }
      if (attemptDeadline_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttemptDeadline());
      }
      if (responseTime_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime());
      }
      if (attemptDelay_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttemptDelay());
      }
      if (status_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStatus());
      }
      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.StreamingSequenceReport.Attempt)) {
        return super.equals(obj);
      }
      com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other =
          (com.google.showcase.v1beta1.StreamingSequenceReport.Attempt) obj;

      if (getAttemptNumber() != other.getAttemptNumber()) return false;
      if (hasAttemptDeadline() != other.hasAttemptDeadline()) return false;
      if (hasAttemptDeadline()) {
        if (!getAttemptDeadline().equals(other.getAttemptDeadline())) return false;
      }
      if (hasResponseTime() != other.hasResponseTime()) return false;
      if (hasResponseTime()) {
        if (!getResponseTime().equals(other.getResponseTime())) return false;
      }
      if (hasAttemptDelay() != other.hasAttemptDelay()) return false;
      if (hasAttemptDelay()) {
        if (!getAttemptDelay().equals(other.getAttemptDelay())) return false;
      }
      if (hasStatus() != other.hasStatus()) return false;
      if (hasStatus()) {
        if (!getStatus().equals(other.getStatus())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ATTEMPT_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + getAttemptNumber();
      if (hasAttemptDeadline()) {
        hash = (37 * hash) + ATTEMPT_DEADLINE_FIELD_NUMBER;
        hash = (53 * hash) + getAttemptDeadline().hashCode();
      }
      if (hasResponseTime()) {
        hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER;
        hash = (53 * hash) + getResponseTime().hashCode();
      }
      if (hasAttemptDelay()) {
        hash = (37 * hash) + ATTEMPT_DELAY_FIELD_NUMBER;
        hash = (53 * hash) + getAttemptDelay().hashCode();
      }
      if (hasStatus()) {
        hash = (37 * hash) + STATUS_FIELD_NUMBER;
        hash = (53 * hash) + getStatus().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

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

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

    public static com.google.showcase.v1beta1.StreamingSequenceReport.Attempt 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.StreamingSequenceReport.Attempt 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>
     * Contains metrics on individual RPC Attempts in a sequence.
     * </pre>
     *
     * Protobuf type {@code google.showcase.v1beta1.StreamingSequenceReport.Attempt}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.showcase.v1beta1.StreamingSequenceReport.Attempt)
        com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.showcase.v1beta1.SequenceOuterClass
            .internal_static_google_showcase_v1beta1_StreamingSequenceReport_Attempt_descriptor;
      }

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

      // Construct using com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.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();
        attemptNumber_ = 0;

        if (attemptDeadlineBuilder_ == null) {
          attemptDeadline_ = null;
        } else {
          attemptDeadline_ = null;
          attemptDeadlineBuilder_ = null;
        }
        if (responseTimeBuilder_ == null) {
          responseTime_ = null;
        } else {
          responseTime_ = null;
          responseTimeBuilder_ = null;
        }
        if (attemptDelayBuilder_ == null) {
          attemptDelay_ = null;
        } else {
          attemptDelay_ = null;
          attemptDelayBuilder_ = null;
        }
        if (statusBuilder_ == null) {
          status_ = null;
        } else {
          status_ = null;
          statusBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt buildPartial() {
        com.google.showcase.v1beta1.StreamingSequenceReport.Attempt result =
            new com.google.showcase.v1beta1.StreamingSequenceReport.Attempt(this);
        result.attemptNumber_ = attemptNumber_;
        if (attemptDeadlineBuilder_ == null) {
          result.attemptDeadline_ = attemptDeadline_;
        } else {
          result.attemptDeadline_ = attemptDeadlineBuilder_.build();
        }
        if (responseTimeBuilder_ == null) {
          result.responseTime_ = responseTime_;
        } else {
          result.responseTime_ = responseTimeBuilder_.build();
        }
        if (attemptDelayBuilder_ == null) {
          result.attemptDelay_ = attemptDelay_;
        } else {
          result.attemptDelay_ = attemptDelayBuilder_.build();
        }
        if (statusBuilder_ == null) {
          result.status_ = status_;
        } else {
          result.status_ = statusBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

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

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

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

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

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

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

      public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt other) {
        if (other
            == com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance())
          return this;
        if (other.getAttemptNumber() != 0) {
          setAttemptNumber(other.getAttemptNumber());
        }
        if (other.hasAttemptDeadline()) {
          mergeAttemptDeadline(other.getAttemptDeadline());
        }
        if (other.hasResponseTime()) {
          mergeResponseTime(other.getResponseTime());
        }
        if (other.hasAttemptDelay()) {
          mergeAttemptDelay(other.getAttemptDelay());
        }
        if (other.hasStatus()) {
          mergeStatus(other.getStatus());
        }
        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.StreamingSequenceReport.Attempt parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.showcase.v1beta1.StreamingSequenceReport.Attempt)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int attemptNumber_;

      /**
       *
       *
       * <pre>
       * The attempt number - starting at 0.
       * </pre>
       *
       * <code>int32 attempt_number = 1;</code>
       *
       * @return The attemptNumber.
       */
      @java.lang.Override
      public int getAttemptNumber() {
        return attemptNumber_;
      }

      /**
       *
       *
       * <pre>
       * The attempt number - starting at 0.
       * </pre>
       *
       * <code>int32 attempt_number = 1;</code>
       *
       * @param value The attemptNumber to set.
       * @return This builder for chaining.
       */
      public Builder setAttemptNumber(int value) {

        attemptNumber_ = value;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The attempt number - starting at 0.
       * </pre>
       *
       * <code>int32 attempt_number = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearAttemptNumber() {

        attemptNumber_ = 0;
        onChanged();
        return this;
      }

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

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       *
       * @return Whether the attemptDeadline field is set.
       */
      public boolean hasAttemptDeadline() {
        return attemptDeadlineBuilder_ != null || attemptDeadline_ != null;
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       *
       * @return The attemptDeadline.
       */
      public com.google.protobuf.Timestamp getAttemptDeadline() {
        if (attemptDeadlineBuilder_ == null) {
          return attemptDeadline_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : attemptDeadline_;
        } else {
          return attemptDeadlineBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public Builder setAttemptDeadline(com.google.protobuf.Timestamp value) {
        if (attemptDeadlineBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          attemptDeadline_ = value;
          onChanged();
        } else {
          attemptDeadlineBuilder_.setMessage(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public Builder setAttemptDeadline(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (attemptDeadlineBuilder_ == null) {
          attemptDeadline_ = builderForValue.build();
          onChanged();
        } else {
          attemptDeadlineBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public Builder mergeAttemptDeadline(com.google.protobuf.Timestamp value) {
        if (attemptDeadlineBuilder_ == null) {
          if (attemptDeadline_ != null) {
            attemptDeadline_ =
                com.google.protobuf.Timestamp.newBuilder(attemptDeadline_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            attemptDeadline_ = value;
          }
          onChanged();
        } else {
          attemptDeadlineBuilder_.mergeFrom(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public Builder clearAttemptDeadline() {
        if (attemptDeadlineBuilder_ == null) {
          attemptDeadline_ = null;
          onChanged();
        } else {
          attemptDeadline_ = null;
          attemptDeadlineBuilder_ = null;
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public com.google.protobuf.Timestamp.Builder getAttemptDeadlineBuilder() {

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

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getAttemptDeadlineOrBuilder() {
        if (attemptDeadlineBuilder_ != null) {
          return attemptDeadlineBuilder_.getMessageOrBuilder();
        } else {
          return attemptDeadline_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : attemptDeadline_;
        }
      }

      /**
       *
       *
       * <pre>
       * The deadline dictated by the attempt to the server.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp attempt_deadline = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getAttemptDeadlineFieldBuilder() {
        if (attemptDeadlineBuilder_ == null) {
          attemptDeadlineBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getAttemptDeadline(), getParentForChildren(), isClean());
          attemptDeadline_ = null;
        }
        return attemptDeadlineBuilder_;
      }

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

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       *
       * @return Whether the responseTime field is set.
       */
      public boolean hasResponseTime() {
        return responseTimeBuilder_ != null || responseTime_ != null;
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       *
       * @return The responseTime.
       */
      public com.google.protobuf.Timestamp getResponseTime() {
        if (responseTimeBuilder_ == null) {
          return responseTime_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : responseTime_;
        } else {
          return responseTimeBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public Builder setResponseTime(com.google.protobuf.Timestamp value) {
        if (responseTimeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          responseTime_ = value;
          onChanged();
        } else {
          responseTimeBuilder_.setMessage(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) {
        if (responseTimeBuilder_ == null) {
          responseTime_ = builderForValue.build();
          onChanged();
        } else {
          responseTimeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
        if (responseTimeBuilder_ == null) {
          if (responseTime_ != null) {
            responseTime_ =
                com.google.protobuf.Timestamp.newBuilder(responseTime_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            responseTime_ = value;
          }
          onChanged();
        } else {
          responseTimeBuilder_.mergeFrom(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public Builder clearResponseTime() {
        if (responseTimeBuilder_ == null) {
          responseTime_ = null;
          onChanged();
        } else {
          responseTime_ = null;
          responseTimeBuilder_ = null;
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() {

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

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
        if (responseTimeBuilder_ != null) {
          return responseTimeBuilder_.getMessageOrBuilder();
        } else {
          return responseTime_ == null
              ? com.google.protobuf.Timestamp.getDefaultInstance()
              : responseTime_;
        }
      }

      /**
       *
       *
       * <pre>
       * The time that the server responded to the RPC attempt. Used for
       * calculating attempt_delay.
       * </pre>
       *
       * <code>.google.protobuf.Timestamp response_time = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp,
              com.google.protobuf.Timestamp.Builder,
              com.google.protobuf.TimestampOrBuilder>
          getResponseTimeFieldBuilder() {
        if (responseTimeBuilder_ == null) {
          responseTimeBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Timestamp,
                  com.google.protobuf.Timestamp.Builder,
                  com.google.protobuf.TimestampOrBuilder>(
                  getResponseTime(), getParentForChildren(), isClean());
          responseTime_ = null;
        }
        return responseTimeBuilder_;
      }

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

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       *
       * @return Whether the attemptDelay field is set.
       */
      public boolean hasAttemptDelay() {
        return attemptDelayBuilder_ != null || attemptDelay_ != null;
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       *
       * @return The attemptDelay.
       */
      public com.google.protobuf.Duration getAttemptDelay() {
        if (attemptDelayBuilder_ == null) {
          return attemptDelay_ == null
              ? com.google.protobuf.Duration.getDefaultInstance()
              : attemptDelay_;
        } else {
          return attemptDelayBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public Builder setAttemptDelay(com.google.protobuf.Duration value) {
        if (attemptDelayBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          attemptDelay_ = value;
          onChanged();
        } else {
          attemptDelayBuilder_.setMessage(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public Builder setAttemptDelay(com.google.protobuf.Duration.Builder builderForValue) {
        if (attemptDelayBuilder_ == null) {
          attemptDelay_ = builderForValue.build();
          onChanged();
        } else {
          attemptDelayBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public Builder mergeAttemptDelay(com.google.protobuf.Duration value) {
        if (attemptDelayBuilder_ == null) {
          if (attemptDelay_ != null) {
            attemptDelay_ =
                com.google.protobuf.Duration.newBuilder(attemptDelay_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            attemptDelay_ = value;
          }
          onChanged();
        } else {
          attemptDelayBuilder_.mergeFrom(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public Builder clearAttemptDelay() {
        if (attemptDelayBuilder_ == null) {
          attemptDelay_ = null;
          onChanged();
        } else {
          attemptDelay_ = null;
          attemptDelayBuilder_ = null;
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public com.google.protobuf.Duration.Builder getAttemptDelayBuilder() {

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

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      public com.google.protobuf.DurationOrBuilder getAttemptDelayOrBuilder() {
        if (attemptDelayBuilder_ != null) {
          return attemptDelayBuilder_.getMessageOrBuilder();
        } else {
          return attemptDelay_ == null
              ? com.google.protobuf.Duration.getDefaultInstance()
              : attemptDelay_;
        }
      }

      /**
       *
       *
       * <pre>
       * The server perceived delay between sending the last response and
       * receiving this attempt. Used for validating attempt delay backoff.
       * </pre>
       *
       * <code>.google.protobuf.Duration attempt_delay = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Duration,
              com.google.protobuf.Duration.Builder,
              com.google.protobuf.DurationOrBuilder>
          getAttemptDelayFieldBuilder() {
        if (attemptDelayBuilder_ == null) {
          attemptDelayBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.Duration,
                  com.google.protobuf.Duration.Builder,
                  com.google.protobuf.DurationOrBuilder>(
                  getAttemptDelay(), getParentForChildren(), isClean());
          attemptDelay_ = null;
        }
        return attemptDelayBuilder_;
      }

      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 returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       *
       * @return Whether the status field is set.
       */
      public boolean hasStatus() {
        return statusBuilder_ != null || status_ != null;
      }

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</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 returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       */
      public Builder setStatus(com.google.rpc.Status value) {
        if (statusBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          status_ = value;
          onChanged();
        } else {
          statusBuilder_.setMessage(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       */
      public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
        if (statusBuilder_ == null) {
          status_ = builderForValue.build();
          onChanged();
        } else {
          statusBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       */
      public Builder mergeStatus(com.google.rpc.Status value) {
        if (statusBuilder_ == null) {
          if (status_ != null) {
            status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
          } else {
            status_ = value;
          }
          onChanged();
        } else {
          statusBuilder_.mergeFrom(value);
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       */
      public Builder clearStatus() {
        if (statusBuilder_ == null) {
          status_ = null;
          onChanged();
        } else {
          status_ = null;
          statusBuilder_ = null;
        }

        return this;
      }

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</code>
       */
      public com.google.rpc.Status.Builder getStatusBuilder() {

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

      /**
       *
       *
       * <pre>
       * The status returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</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 returned to the attempt.
       * </pre>
       *
       * <code>.google.rpc.Status status = 5;</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_;
      }

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

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

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

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

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

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

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

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

  public static final int NAME_FIELD_NUMBER = 1;
  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 ATTEMPTS_FIELD_NUMBER = 2;
  private java.util.List<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt> attempts_;

  /**
   *
   *
   * <pre>
   * The set of RPC attempts received by the server for a Sequence.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt>
      getAttemptsList() {
    return attempts_;
  }

  /**
   *
   *
   * <pre>
   * The set of RPC attempts received by the server for a Sequence.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>
      getAttemptsOrBuilderList() {
    return attempts_;
  }

  /**
   *
   *
   * <pre>
   * The set of RPC attempts received by the server for a Sequence.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
   */
  @java.lang.Override
  public int getAttemptsCount() {
    return attempts_.size();
  }

  /**
   *
   *
   * <pre>
   * The set of RPC attempts received by the server for a Sequence.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index) {
    return attempts_.get(index);
  }

  /**
   *
   *
   * <pre>
   * The set of RPC attempts received by the server for a Sequence.
   * </pre>
   *
   * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
   */
  @java.lang.Override
  public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder getAttemptsOrBuilder(
      int index) {
    return attempts_.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_);
    }
    for (int i = 0; i < attempts_.size(); i++) {
      output.writeMessage(2, attempts_.get(i));
    }
    unknownFields.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_);
    }
    for (int i = 0; i < attempts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attempts_.get(i));
    }
    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.StreamingSequenceReport)) {
      return super.equals(obj);
    }
    com.google.showcase.v1beta1.StreamingSequenceReport other =
        (com.google.showcase.v1beta1.StreamingSequenceReport) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getAttemptsList().equals(other.getAttemptsList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    if (getAttemptsCount() > 0) {
      hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER;
      hash = (53 * hash) + getAttemptsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

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

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

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      name_ = "";

      if (attemptsBuilder_ == null) {
        attempts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        attemptsBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.showcase.v1beta1.StreamingSequenceReport buildPartial() {
      com.google.showcase.v1beta1.StreamingSequenceReport result =
          new com.google.showcase.v1beta1.StreamingSequenceReport(this);
      int from_bitField0_ = bitField0_;
      result.name_ = name_;
      if (attemptsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          attempts_ = java.util.Collections.unmodifiableList(attempts_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.attempts_ = attempts_;
      } else {
        result.attempts_ = attemptsBuilder_.build();
      }
      onBuilt();
      return result;
    }

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

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

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

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

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

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

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

    public Builder mergeFrom(com.google.showcase.v1beta1.StreamingSequenceReport other) {
      if (other == com.google.showcase.v1beta1.StreamingSequenceReport.getDefaultInstance())
        return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        onChanged();
      }
      if (attemptsBuilder_ == null) {
        if (!other.attempts_.isEmpty()) {
          if (attempts_.isEmpty()) {
            attempts_ = other.attempts_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAttemptsIsMutable();
            attempts_.addAll(other.attempts_);
          }
          onChanged();
        }
      } else {
        if (!other.attempts_.isEmpty()) {
          if (attemptsBuilder_.isEmpty()) {
            attemptsBuilder_.dispose();
            attemptsBuilder_ = null;
            attempts_ = other.attempts_;
            bitField0_ = (bitField0_ & ~0x00000001);
            attemptsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getAttemptsFieldBuilder()
                    : null;
          } else {
            attemptsBuilder_.addAllMessages(other.attempts_);
          }
        }
      }
      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.StreamingSequenceReport parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage =
            (com.google.showcase.v1beta1.StreamingSequenceReport) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      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;
      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();
      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;
      onChanged();
      return this;
    }

    private java.util.List<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt> attempts_ =
        java.util.Collections.emptyList();

    private void ensureAttemptsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        attempts_ =
            new java.util.ArrayList<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt>(
                attempts_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.showcase.v1beta1.StreamingSequenceReport.Attempt,
            com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder,
            com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>
        attemptsBuilder_;

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public java.util.List<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt>
        getAttemptsList() {
      if (attemptsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(attempts_);
      } else {
        return attemptsBuilder_.getMessageList();
      }
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public int getAttemptsCount() {
      if (attemptsBuilder_ == null) {
        return attempts_.size();
      } else {
        return attemptsBuilder_.getCount();
      }
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt getAttempts(int index) {
      if (attemptsBuilder_ == null) {
        return attempts_.get(index);
      } else {
        return attemptsBuilder_.getMessage(index);
      }
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder setAttempts(
        int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.set(index, value);
        onChanged();
      } else {
        attemptsBuilder_.setMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder setAttempts(
        int index,
        com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.set(index, builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder addAttempts(com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.add(value);
        onChanged();
      } else {
        attemptsBuilder_.addMessage(value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder addAttempts(
        int index, com.google.showcase.v1beta1.StreamingSequenceReport.Attempt value) {
      if (attemptsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAttemptsIsMutable();
        attempts_.add(index, value);
        onChanged();
      } else {
        attemptsBuilder_.addMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder addAttempts(
        com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.add(builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder addAttempts(
        int index,
        com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder builderForValue) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.add(index, builderForValue.build());
        onChanged();
      } else {
        attemptsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder addAllAttempts(
        java.lang.Iterable<? extends com.google.showcase.v1beta1.StreamingSequenceReport.Attempt>
            values) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_);
        onChanged();
      } else {
        attemptsBuilder_.addAllMessages(values);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder clearAttempts() {
      if (attemptsBuilder_ == null) {
        attempts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        attemptsBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public Builder removeAttempts(int index) {
      if (attemptsBuilder_ == null) {
        ensureAttemptsIsMutable();
        attempts_.remove(index);
        onChanged();
      } else {
        attemptsBuilder_.remove(index);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder getAttemptsBuilder(
        int index) {
      return getAttemptsFieldBuilder().getBuilder(index);
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder
        getAttemptsOrBuilder(int index) {
      if (attemptsBuilder_ == null) {
        return attempts_.get(index);
      } else {
        return attemptsBuilder_.getMessageOrBuilder(index);
      }
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public java.util.List<
            ? extends com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>
        getAttemptsOrBuilderList() {
      if (attemptsBuilder_ != null) {
        return attemptsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(attempts_);
      }
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder
        addAttemptsBuilder() {
      return getAttemptsFieldBuilder()
          .addBuilder(
              com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder addAttemptsBuilder(
        int index) {
      return getAttemptsFieldBuilder()
          .addBuilder(
              index,
              com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * The set of RPC attempts received by the server for a Sequence.
     * </pre>
     *
     * <code>repeated .google.showcase.v1beta1.StreamingSequenceReport.Attempt attempts = 2;</code>
     */
    public java.util.List<com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder>
        getAttemptsBuilderList() {
      return getAttemptsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.showcase.v1beta1.StreamingSequenceReport.Attempt,
            com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder,
            com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>
        getAttemptsFieldBuilder() {
      if (attemptsBuilder_ == null) {
        attemptsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.showcase.v1beta1.StreamingSequenceReport.Attempt,
                com.google.showcase.v1beta1.StreamingSequenceReport.Attempt.Builder,
                com.google.showcase.v1beta1.StreamingSequenceReport.AttemptOrBuilder>(
                attempts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        attempts_ = null;
      }
      return attemptsBuilder_;
    }

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

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

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

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

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

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

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

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