/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * license agreements; and to You under the Apache License, version 2.0:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * This file is part of the Apache Pekko project, which was derived from Akka.
 */

/*
 * Copyright (C) 2019-2022 Lightbend Inc. <https://www.lightbend.com>
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: StreamRefMessages.proto
// Protobuf Java Version: 4.33.0

package org.apache.pekko.stream;

@org.apache.pekko.protobufv3.internal.Generated
public final class StreamRefMessages extends org.apache.pekko.protobufv3.internal.GeneratedFile {
  private StreamRefMessages() {}
  static {
    org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
      org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 33,
      /* patch= */ 0,
      /* suffix= */ "",
      "StreamRefMessages");
  }
  public static void registerAllExtensions(
      org.apache.pekko.protobufv3.internal.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      org.apache.pekko.protobufv3.internal.ExtensionRegistry registry) {
    registerAllExtensions(
        (org.apache.pekko.protobufv3.internal.ExtensionRegistryLite) registry);
  }
  public interface SinkRefOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SinkRef)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return Whether the targetRef field is set.
     */
    boolean hasTargetRef();
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return The targetRef.
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef();
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder();
  }
  /**
   * Protobuf type {@code SinkRef}
   */
  public static final class SinkRef extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:SinkRef)
      SinkRefOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "SinkRef");
    }
    // Use SinkRef.newBuilder() to construct.
    private SinkRef(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private SinkRef() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SinkRef_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SinkRef_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.SinkRef.class, org.apache.pekko.stream.StreamRefMessages.SinkRef.Builder.class);
    }

    private int bitField0_;
    public static final int TARGETREF_FIELD_NUMBER = 1;
    private org.apache.pekko.stream.StreamRefMessages.ActorRef targetRef_;
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return Whether the targetRef field is set.
     */
    @java.lang.Override
    public boolean hasTargetRef() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return The targetRef.
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef() {
      return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
    }
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder() {
      return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
    }

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

      if (!hasTargetRef()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTargetRef().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getTargetRef());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeMessageSize(1, getTargetRef());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.SinkRef)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.SinkRef other = (org.apache.pekko.stream.StreamRefMessages.SinkRef) obj;

      if (hasTargetRef() != other.hasTargetRef()) return false;
      if (hasTargetRef()) {
        if (!getTargetRef()
            .equals(other.getTargetRef())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasTargetRef()) {
        hash = (37 * hash) + TARGETREF_FIELD_NUMBER;
        hash = (53 * hash) + getTargetRef().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SinkRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.SinkRef 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code SinkRef}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:SinkRef)
        org.apache.pekko.stream.StreamRefMessages.SinkRefOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SinkRef_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SinkRef_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.SinkRef.class, org.apache.pekko.stream.StreamRefMessages.SinkRef.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.SinkRef.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (org.apache.pekko.protobufv3.internal.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetTargetRefFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        targetRef_ = null;
        if (targetRefBuilder_ != null) {
          targetRefBuilder_.dispose();
          targetRefBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SinkRef_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SinkRef getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.SinkRef.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SinkRef build() {
        org.apache.pekko.stream.StreamRefMessages.SinkRef result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SinkRef buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.SinkRef result = new org.apache.pekko.stream.StreamRefMessages.SinkRef(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.SinkRef result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.targetRef_ = targetRefBuilder_ == null
              ? targetRef_
              : targetRefBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.SinkRef) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.SinkRef)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.SinkRef other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.SinkRef.getDefaultInstance()) return this;
        if (other.hasTargetRef()) {
          mergeTargetRef(other.getTargetRef());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasTargetRef()) {
          return false;
        }
        if (!getTargetRef().isInitialized()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    internalGetTargetRefFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private org.apache.pekko.stream.StreamRefMessages.ActorRef targetRef_;
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> targetRefBuilder_;
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       * @return Whether the targetRef field is set.
       */
      public boolean hasTargetRef() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       * @return The targetRef.
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef() {
        if (targetRefBuilder_ == null) {
          return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
        } else {
          return targetRefBuilder_.getMessage();
        }
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder setTargetRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (targetRefBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          targetRef_ = value;
        } else {
          targetRefBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder setTargetRef(
          org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder builderForValue) {
        if (targetRefBuilder_ == null) {
          targetRef_ = builderForValue.build();
        } else {
          targetRefBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder mergeTargetRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (targetRefBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            targetRef_ != null &&
            targetRef_ != org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance()) {
            getTargetRefBuilder().mergeFrom(value);
          } else {
            targetRef_ = value;
          }
        } else {
          targetRefBuilder_.mergeFrom(value);
        }
        if (targetRef_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder clearTargetRef() {
        bitField0_ = (bitField0_ & ~0x00000001);
        targetRef_ = null;
        if (targetRefBuilder_ != null) {
          targetRefBuilder_.dispose();
          targetRefBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder getTargetRefBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return internalGetTargetRefFieldBuilder().getBuilder();
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder() {
        if (targetRefBuilder_ != null) {
          return targetRefBuilder_.getMessageOrBuilder();
        } else {
          return targetRef_ == null ?
              org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
        }
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> 
          internalGetTargetRefFieldBuilder() {
        if (targetRefBuilder_ == null) {
          targetRefBuilder_ = new org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
              org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder>(
                  getTargetRef(),
                  getParentForChildren(),
                  isClean());
          targetRef_ = null;
        }
        return targetRefBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:SinkRef)
    }

    // @@protoc_insertion_point(class_scope:SinkRef)
    private static final org.apache.pekko.stream.StreamRefMessages.SinkRef DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.SinkRef();
    }

    public static org.apache.pekko.stream.StreamRefMessages.SinkRef getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<SinkRef> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<SinkRef> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.SinkRef getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SourceRefOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SourceRef)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required .ActorRef originRef = 1;</code>
     * @return Whether the originRef field is set.
     */
    boolean hasOriginRef();
    /**
     * <code>required .ActorRef originRef = 1;</code>
     * @return The originRef.
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRef getOriginRef();
    /**
     * <code>required .ActorRef originRef = 1;</code>
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getOriginRefOrBuilder();
  }
  /**
   * Protobuf type {@code SourceRef}
   */
  public static final class SourceRef extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:SourceRef)
      SourceRefOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "SourceRef");
    }
    // Use SourceRef.newBuilder() to construct.
    private SourceRef(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private SourceRef() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SourceRef_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SourceRef_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.SourceRef.class, org.apache.pekko.stream.StreamRefMessages.SourceRef.Builder.class);
    }

    private int bitField0_;
    public static final int ORIGINREF_FIELD_NUMBER = 1;
    private org.apache.pekko.stream.StreamRefMessages.ActorRef originRef_;
    /**
     * <code>required .ActorRef originRef = 1;</code>
     * @return Whether the originRef field is set.
     */
    @java.lang.Override
    public boolean hasOriginRef() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .ActorRef originRef = 1;</code>
     * @return The originRef.
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRef getOriginRef() {
      return originRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : originRef_;
    }
    /**
     * <code>required .ActorRef originRef = 1;</code>
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getOriginRefOrBuilder() {
      return originRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : originRef_;
    }

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

      if (!hasOriginRef()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getOriginRef().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getOriginRef());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeMessageSize(1, getOriginRef());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.SourceRef)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.SourceRef other = (org.apache.pekko.stream.StreamRefMessages.SourceRef) obj;

      if (hasOriginRef() != other.hasOriginRef()) return false;
      if (hasOriginRef()) {
        if (!getOriginRef()
            .equals(other.getOriginRef())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasOriginRef()) {
        hash = (37 * hash) + ORIGINREF_FIELD_NUMBER;
        hash = (53 * hash) + getOriginRef().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SourceRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.SourceRef 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code SourceRef}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:SourceRef)
        org.apache.pekko.stream.StreamRefMessages.SourceRefOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SourceRef_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SourceRef_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.SourceRef.class, org.apache.pekko.stream.StreamRefMessages.SourceRef.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.SourceRef.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (org.apache.pekko.protobufv3.internal.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetOriginRefFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        originRef_ = null;
        if (originRefBuilder_ != null) {
          originRefBuilder_.dispose();
          originRefBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SourceRef_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SourceRef getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.SourceRef.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SourceRef build() {
        org.apache.pekko.stream.StreamRefMessages.SourceRef result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SourceRef buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.SourceRef result = new org.apache.pekko.stream.StreamRefMessages.SourceRef(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.SourceRef result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.originRef_ = originRefBuilder_ == null
              ? originRef_
              : originRefBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.SourceRef) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.SourceRef)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.SourceRef other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.SourceRef.getDefaultInstance()) return this;
        if (other.hasOriginRef()) {
          mergeOriginRef(other.getOriginRef());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasOriginRef()) {
          return false;
        }
        if (!getOriginRef().isInitialized()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    internalGetOriginRefFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private org.apache.pekko.stream.StreamRefMessages.ActorRef originRef_;
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> originRefBuilder_;
      /**
       * <code>required .ActorRef originRef = 1;</code>
       * @return Whether the originRef field is set.
       */
      public boolean hasOriginRef() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       * @return The originRef.
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef getOriginRef() {
        if (originRefBuilder_ == null) {
          return originRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : originRef_;
        } else {
          return originRefBuilder_.getMessage();
        }
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public Builder setOriginRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (originRefBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          originRef_ = value;
        } else {
          originRefBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public Builder setOriginRef(
          org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder builderForValue) {
        if (originRefBuilder_ == null) {
          originRef_ = builderForValue.build();
        } else {
          originRefBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public Builder mergeOriginRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (originRefBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            originRef_ != null &&
            originRef_ != org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance()) {
            getOriginRefBuilder().mergeFrom(value);
          } else {
            originRef_ = value;
          }
        } else {
          originRefBuilder_.mergeFrom(value);
        }
        if (originRef_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public Builder clearOriginRef() {
        bitField0_ = (bitField0_ & ~0x00000001);
        originRef_ = null;
        if (originRefBuilder_ != null) {
          originRefBuilder_.dispose();
          originRefBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder getOriginRefBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return internalGetOriginRefFieldBuilder().getBuilder();
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getOriginRefOrBuilder() {
        if (originRefBuilder_ != null) {
          return originRefBuilder_.getMessageOrBuilder();
        } else {
          return originRef_ == null ?
              org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : originRef_;
        }
      }
      /**
       * <code>required .ActorRef originRef = 1;</code>
       */
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> 
          internalGetOriginRefFieldBuilder() {
        if (originRefBuilder_ == null) {
          originRefBuilder_ = new org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
              org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder>(
                  getOriginRef(),
                  getParentForChildren(),
                  isClean());
          originRef_ = null;
        }
        return originRefBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:SourceRef)
    }

    // @@protoc_insertion_point(class_scope:SourceRef)
    private static final org.apache.pekko.stream.StreamRefMessages.SourceRef DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.SourceRef();
    }

    public static org.apache.pekko.stream.StreamRefMessages.SourceRef getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<SourceRef> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<SourceRef> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.SourceRef getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ActorRefOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ActorRef)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required string path = 1;</code>
     * @return Whether the path field is set.
     */
    boolean hasPath();
    /**
     * <code>required string path = 1;</code>
     * @return The path.
     */
    java.lang.String getPath();
    /**
     * <code>required string path = 1;</code>
     * @return The bytes for path.
     */
    org.apache.pekko.protobufv3.internal.ByteString
        getPathBytes();
  }
  /**
   * Protobuf type {@code ActorRef}
   */
  public static final class ActorRef extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:ActorRef)
      ActorRefOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "ActorRef");
    }
    // Use ActorRef.newBuilder() to construct.
    private ActorRef(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private ActorRef() {
      path_ = "";
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_ActorRef_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_ActorRef_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.ActorRef.class, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder.class);
    }

    private int bitField0_;
    public static final int PATH_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object path_ = "";
    /**
     * <code>required string path = 1;</code>
     * @return Whether the path field is set.
     */
    @java.lang.Override
    public boolean hasPath() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required string path = 1;</code>
     * @return The path.
     */
    @java.lang.Override
    public java.lang.String getPath() {
      java.lang.Object ref = path_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        org.apache.pekko.protobufv3.internal.ByteString bs = 
            (org.apache.pekko.protobufv3.internal.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          path_ = s;
        }
        return s;
      }
    }
    /**
     * <code>required string path = 1;</code>
     * @return The bytes for path.
     */
    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.ByteString
        getPathBytes() {
      java.lang.Object ref = path_;
      if (ref instanceof java.lang.String) {
        org.apache.pekko.protobufv3.internal.ByteString b = 
            org.apache.pekko.protobufv3.internal.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        path_ = b;
        return b;
      } else {
        return (org.apache.pekko.protobufv3.internal.ByteString) ref;
      }
    }

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

      if (!hasPath()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        org.apache.pekko.protobufv3.internal.GeneratedMessage.writeString(output, 1, path_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.GeneratedMessage.computeStringSize(1, path_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.ActorRef)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.ActorRef other = (org.apache.pekko.stream.StreamRefMessages.ActorRef) obj;

      if (hasPath() != other.hasPath()) return false;
      if (hasPath()) {
        if (!getPath()
            .equals(other.getPath())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasPath()) {
        hash = (37 * hash) + PATH_FIELD_NUMBER;
        hash = (53 * hash) + getPath().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.ActorRef parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.ActorRef 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code ActorRef}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:ActorRef)
        org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_ActorRef_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_ActorRef_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.ActorRef.class, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.ActorRef.newBuilder()
      private Builder() {

      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        path_ = "";
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_ActorRef_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.ActorRef getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.ActorRef build() {
        org.apache.pekko.stream.StreamRefMessages.ActorRef result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.ActorRef buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.ActorRef result = new org.apache.pekko.stream.StreamRefMessages.ActorRef(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.ActorRef result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.path_ = path_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.ActorRef) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.ActorRef)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.ActorRef other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance()) return this;
        if (other.hasPath()) {
          path_ = other.path_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                path_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object path_ = "";
      /**
       * <code>required string path = 1;</code>
       * @return Whether the path field is set.
       */
      public boolean hasPath() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required string path = 1;</code>
       * @return The path.
       */
      public java.lang.String getPath() {
        java.lang.Object ref = path_;
        if (!(ref instanceof java.lang.String)) {
          org.apache.pekko.protobufv3.internal.ByteString bs =
              (org.apache.pekko.protobufv3.internal.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            path_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>required string path = 1;</code>
       * @return The bytes for path.
       */
      public org.apache.pekko.protobufv3.internal.ByteString
          getPathBytes() {
        java.lang.Object ref = path_;
        if (ref instanceof String) {
          org.apache.pekko.protobufv3.internal.ByteString b = 
              org.apache.pekko.protobufv3.internal.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          path_ = b;
          return b;
        } else {
          return (org.apache.pekko.protobufv3.internal.ByteString) ref;
        }
      }
      /**
       * <code>required string path = 1;</code>
       * @param value The path to set.
       * @return This builder for chaining.
       */
      public Builder setPath(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        path_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required string path = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearPath() {
        path_ = getDefaultInstance().getPath();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>required string path = 1;</code>
       * @param value The bytes for path to set.
       * @return This builder for chaining.
       */
      public Builder setPathBytes(
          org.apache.pekko.protobufv3.internal.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        path_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:ActorRef)
    }

    // @@protoc_insertion_point(class_scope:ActorRef)
    private static final org.apache.pekko.stream.StreamRefMessages.ActorRef DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.ActorRef();
    }

    public static org.apache.pekko.stream.StreamRefMessages.ActorRef getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<ActorRef> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<ActorRef> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRef getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PayloadOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Payload)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required bytes enclosedMessage = 1;</code>
     * @return Whether the enclosedMessage field is set.
     */
    boolean hasEnclosedMessage();
    /**
     * <code>required bytes enclosedMessage = 1;</code>
     * @return The enclosedMessage.
     */
    org.apache.pekko.protobufv3.internal.ByteString getEnclosedMessage();

    /**
     * <code>required int32 serializerId = 2;</code>
     * @return Whether the serializerId field is set.
     */
    boolean hasSerializerId();
    /**
     * <code>required int32 serializerId = 2;</code>
     * @return The serializerId.
     */
    int getSerializerId();

    /**
     * <code>optional bytes messageManifest = 3;</code>
     * @return Whether the messageManifest field is set.
     */
    boolean hasMessageManifest();
    /**
     * <code>optional bytes messageManifest = 3;</code>
     * @return The messageManifest.
     */
    org.apache.pekko.protobufv3.internal.ByteString getMessageManifest();
  }
  /**
   * Protobuf type {@code Payload}
   */
  public static final class Payload extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:Payload)
      PayloadOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "Payload");
    }
    // Use Payload.newBuilder() to construct.
    private Payload(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private Payload() {
      enclosedMessage_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
      messageManifest_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_Payload_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_Payload_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.Payload.class, org.apache.pekko.stream.StreamRefMessages.Payload.Builder.class);
    }

    private int bitField0_;
    public static final int ENCLOSEDMESSAGE_FIELD_NUMBER = 1;
    private org.apache.pekko.protobufv3.internal.ByteString enclosedMessage_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
    /**
     * <code>required bytes enclosedMessage = 1;</code>
     * @return Whether the enclosedMessage field is set.
     */
    @java.lang.Override
    public boolean hasEnclosedMessage() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required bytes enclosedMessage = 1;</code>
     * @return The enclosedMessage.
     */
    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.ByteString getEnclosedMessage() {
      return enclosedMessage_;
    }

    public static final int SERIALIZERID_FIELD_NUMBER = 2;
    private int serializerId_ = 0;
    /**
     * <code>required int32 serializerId = 2;</code>
     * @return Whether the serializerId field is set.
     */
    @java.lang.Override
    public boolean hasSerializerId() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required int32 serializerId = 2;</code>
     * @return The serializerId.
     */
    @java.lang.Override
    public int getSerializerId() {
      return serializerId_;
    }

    public static final int MESSAGEMANIFEST_FIELD_NUMBER = 3;
    private org.apache.pekko.protobufv3.internal.ByteString messageManifest_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
    /**
     * <code>optional bytes messageManifest = 3;</code>
     * @return Whether the messageManifest field is set.
     */
    @java.lang.Override
    public boolean hasMessageManifest() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional bytes messageManifest = 3;</code>
     * @return The messageManifest.
     */
    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.ByteString getMessageManifest() {
      return messageManifest_;
    }

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

      if (!hasEnclosedMessage()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSerializerId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeBytes(1, enclosedMessage_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeInt32(2, serializerId_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        output.writeBytes(3, messageManifest_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeBytesSize(1, enclosedMessage_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeInt32Size(2, serializerId_);
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeBytesSize(3, messageManifest_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.Payload)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.Payload other = (org.apache.pekko.stream.StreamRefMessages.Payload) obj;

      if (hasEnclosedMessage() != other.hasEnclosedMessage()) return false;
      if (hasEnclosedMessage()) {
        if (!getEnclosedMessage()
            .equals(other.getEnclosedMessage())) return false;
      }
      if (hasSerializerId() != other.hasSerializerId()) return false;
      if (hasSerializerId()) {
        if (getSerializerId()
            != other.getSerializerId()) return false;
      }
      if (hasMessageManifest() != other.hasMessageManifest()) return false;
      if (hasMessageManifest()) {
        if (!getMessageManifest()
            .equals(other.getMessageManifest())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasEnclosedMessage()) {
        hash = (37 * hash) + ENCLOSEDMESSAGE_FIELD_NUMBER;
        hash = (53 * hash) + getEnclosedMessage().hashCode();
      }
      if (hasSerializerId()) {
        hash = (37 * hash) + SERIALIZERID_FIELD_NUMBER;
        hash = (53 * hash) + getSerializerId();
      }
      if (hasMessageManifest()) {
        hash = (37 * hash) + MESSAGEMANIFEST_FIELD_NUMBER;
        hash = (53 * hash) + getMessageManifest().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.Payload parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.Payload parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.Payload parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.Payload 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code Payload}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:Payload)
        org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_Payload_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_Payload_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.Payload.class, org.apache.pekko.stream.StreamRefMessages.Payload.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.Payload.newBuilder()
      private Builder() {

      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        enclosedMessage_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
        serializerId_ = 0;
        messageManifest_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_Payload_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.Payload getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.Payload build() {
        org.apache.pekko.stream.StreamRefMessages.Payload result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.Payload buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.Payload result = new org.apache.pekko.stream.StreamRefMessages.Payload(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.Payload result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.enclosedMessage_ = enclosedMessage_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.serializerId_ = serializerId_;
          to_bitField0_ |= 0x00000002;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.messageManifest_ = messageManifest_;
          to_bitField0_ |= 0x00000004;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.Payload) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.Payload)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.Payload other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance()) return this;
        if (other.hasEnclosedMessage()) {
          setEnclosedMessage(other.getEnclosedMessage());
        }
        if (other.hasSerializerId()) {
          setSerializerId(other.getSerializerId());
        }
        if (other.hasMessageManifest()) {
          setMessageManifest(other.getMessageManifest());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasEnclosedMessage()) {
          return false;
        }
        if (!hasSerializerId()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                enclosedMessage_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 16: {
                serializerId_ = input.readInt32();
                bitField0_ |= 0x00000002;
                break;
              } // case 16
              case 26: {
                messageManifest_ = input.readBytes();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private org.apache.pekko.protobufv3.internal.ByteString enclosedMessage_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
      /**
       * <code>required bytes enclosedMessage = 1;</code>
       * @return Whether the enclosedMessage field is set.
       */
      @java.lang.Override
      public boolean hasEnclosedMessage() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required bytes enclosedMessage = 1;</code>
       * @return The enclosedMessage.
       */
      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.ByteString getEnclosedMessage() {
        return enclosedMessage_;
      }
      /**
       * <code>required bytes enclosedMessage = 1;</code>
       * @param value The enclosedMessage to set.
       * @return This builder for chaining.
       */
      public Builder setEnclosedMessage(org.apache.pekko.protobufv3.internal.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        enclosedMessage_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required bytes enclosedMessage = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearEnclosedMessage() {
        bitField0_ = (bitField0_ & ~0x00000001);
        enclosedMessage_ = getDefaultInstance().getEnclosedMessage();
        onChanged();
        return this;
      }

      private int serializerId_ ;
      /**
       * <code>required int32 serializerId = 2;</code>
       * @return Whether the serializerId field is set.
       */
      @java.lang.Override
      public boolean hasSerializerId() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required int32 serializerId = 2;</code>
       * @return The serializerId.
       */
      @java.lang.Override
      public int getSerializerId() {
        return serializerId_;
      }
      /**
       * <code>required int32 serializerId = 2;</code>
       * @param value The serializerId to set.
       * @return This builder for chaining.
       */
      public Builder setSerializerId(int value) {

        serializerId_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 serializerId = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearSerializerId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        serializerId_ = 0;
        onChanged();
        return this;
      }

      private org.apache.pekko.protobufv3.internal.ByteString messageManifest_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
      /**
       * <code>optional bytes messageManifest = 3;</code>
       * @return Whether the messageManifest field is set.
       */
      @java.lang.Override
      public boolean hasMessageManifest() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       * <code>optional bytes messageManifest = 3;</code>
       * @return The messageManifest.
       */
      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.ByteString getMessageManifest() {
        return messageManifest_;
      }
      /**
       * <code>optional bytes messageManifest = 3;</code>
       * @param value The messageManifest to set.
       * @return This builder for chaining.
       */
      public Builder setMessageManifest(org.apache.pekko.protobufv3.internal.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        messageManifest_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes messageManifest = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearMessageManifest() {
        bitField0_ = (bitField0_ & ~0x00000004);
        messageManifest_ = getDefaultInstance().getMessageManifest();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:Payload)
    }

    // @@protoc_insertion_point(class_scope:Payload)
    private static final org.apache.pekko.stream.StreamRefMessages.Payload DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.Payload();
    }

    public static org.apache.pekko.stream.StreamRefMessages.Payload getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<Payload> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<Payload> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.Payload getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface OnSubscribeHandshakeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:OnSubscribeHandshake)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return Whether the targetRef field is set.
     */
    boolean hasTargetRef();
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return The targetRef.
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef();
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     */
    org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder();
  }
  /**
   * Protobuf type {@code OnSubscribeHandshake}
   */
  public static final class OnSubscribeHandshake extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:OnSubscribeHandshake)
      OnSubscribeHandshakeOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "OnSubscribeHandshake");
    }
    // Use OnSubscribeHandshake.newBuilder() to construct.
    private OnSubscribeHandshake(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private OnSubscribeHandshake() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_OnSubscribeHandshake_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_OnSubscribeHandshake_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.class, org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.Builder.class);
    }

    private int bitField0_;
    public static final int TARGETREF_FIELD_NUMBER = 1;
    private org.apache.pekko.stream.StreamRefMessages.ActorRef targetRef_;
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return Whether the targetRef field is set.
     */
    @java.lang.Override
    public boolean hasTargetRef() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     * @return The targetRef.
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef() {
      return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
    }
    /**
     * <code>required .ActorRef targetRef = 1;</code>
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder() {
      return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
    }

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

      if (!hasTargetRef()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTargetRef().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getTargetRef());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeMessageSize(1, getTargetRef());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake other = (org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake) obj;

      if (hasTargetRef() != other.hasTargetRef()) return false;
      if (hasTargetRef()) {
        if (!getTargetRef()
            .equals(other.getTargetRef())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasTargetRef()) {
        hash = (37 * hash) + TARGETREF_FIELD_NUMBER;
        hash = (53 * hash) + getTargetRef().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code OnSubscribeHandshake}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:OnSubscribeHandshake)
        org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshakeOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_OnSubscribeHandshake_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_OnSubscribeHandshake_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.class, org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (org.apache.pekko.protobufv3.internal.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetTargetRefFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        targetRef_ = null;
        if (targetRefBuilder_ != null) {
          targetRefBuilder_.dispose();
          targetRefBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_OnSubscribeHandshake_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake build() {
        org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake result = new org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.targetRef_ = targetRefBuilder_ == null
              ? targetRef_
              : targetRefBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake.getDefaultInstance()) return this;
        if (other.hasTargetRef()) {
          mergeTargetRef(other.getTargetRef());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasTargetRef()) {
          return false;
        }
        if (!getTargetRef().isInitialized()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    internalGetTargetRefFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private org.apache.pekko.stream.StreamRefMessages.ActorRef targetRef_;
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> targetRefBuilder_;
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       * @return Whether the targetRef field is set.
       */
      public boolean hasTargetRef() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       * @return The targetRef.
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef getTargetRef() {
        if (targetRefBuilder_ == null) {
          return targetRef_ == null ? org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
        } else {
          return targetRefBuilder_.getMessage();
        }
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder setTargetRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (targetRefBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          targetRef_ = value;
        } else {
          targetRefBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder setTargetRef(
          org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder builderForValue) {
        if (targetRefBuilder_ == null) {
          targetRef_ = builderForValue.build();
        } else {
          targetRefBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder mergeTargetRef(org.apache.pekko.stream.StreamRefMessages.ActorRef value) {
        if (targetRefBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            targetRef_ != null &&
            targetRef_ != org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance()) {
            getTargetRefBuilder().mergeFrom(value);
          } else {
            targetRef_ = value;
          }
        } else {
          targetRefBuilder_.mergeFrom(value);
        }
        if (targetRef_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public Builder clearTargetRef() {
        bitField0_ = (bitField0_ & ~0x00000001);
        targetRef_ = null;
        if (targetRefBuilder_ != null) {
          targetRefBuilder_.dispose();
          targetRefBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder getTargetRefBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return internalGetTargetRefFieldBuilder().getBuilder();
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder getTargetRefOrBuilder() {
        if (targetRefBuilder_ != null) {
          return targetRefBuilder_.getMessageOrBuilder();
        } else {
          return targetRef_ == null ?
              org.apache.pekko.stream.StreamRefMessages.ActorRef.getDefaultInstance() : targetRef_;
        }
      }
      /**
       * <code>required .ActorRef targetRef = 1;</code>
       */
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder> 
          internalGetTargetRefFieldBuilder() {
        if (targetRefBuilder_ == null) {
          targetRefBuilder_ = new org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
              org.apache.pekko.stream.StreamRefMessages.ActorRef, org.apache.pekko.stream.StreamRefMessages.ActorRef.Builder, org.apache.pekko.stream.StreamRefMessages.ActorRefOrBuilder>(
                  getTargetRef(),
                  getParentForChildren(),
                  isClean());
          targetRef_ = null;
        }
        return targetRefBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:OnSubscribeHandshake)
    }

    // @@protoc_insertion_point(class_scope:OnSubscribeHandshake)
    private static final org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake();
    }

    public static org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<OnSubscribeHandshake> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<OnSubscribeHandshake> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.OnSubscribeHandshake getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CumulativeDemandOrBuilder extends
      // @@protoc_insertion_point(interface_extends:CumulativeDemand)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    boolean hasSeqNr();
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    long getSeqNr();
  }
  /**
   * Protobuf type {@code CumulativeDemand}
   */
  public static final class CumulativeDemand extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:CumulativeDemand)
      CumulativeDemandOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "CumulativeDemand");
    }
    // Use CumulativeDemand.newBuilder() to construct.
    private CumulativeDemand(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private CumulativeDemand() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_CumulativeDemand_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_CumulativeDemand_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.class, org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.Builder.class);
    }

    private int bitField0_;
    public static final int SEQNR_FIELD_NUMBER = 1;
    private long seqNr_ = 0L;
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    @java.lang.Override
    public boolean hasSeqNr() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    @java.lang.Override
    public long getSeqNr() {
      return seqNr_;
    }

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

      if (!hasSeqNr()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt64(1, seqNr_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeInt64Size(1, seqNr_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.CumulativeDemand)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.CumulativeDemand other = (org.apache.pekko.stream.StreamRefMessages.CumulativeDemand) obj;

      if (hasSeqNr() != other.hasSeqNr()) return false;
      if (hasSeqNr()) {
        if (getSeqNr()
            != other.getSeqNr()) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasSeqNr()) {
        hash = (37 * hash) + SEQNR_FIELD_NUMBER;
        hash = (53 * hash) + org.apache.pekko.protobufv3.internal.Internal.hashLong(
            getSeqNr());
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.CumulativeDemand 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code CumulativeDemand}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:CumulativeDemand)
        org.apache.pekko.stream.StreamRefMessages.CumulativeDemandOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_CumulativeDemand_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_CumulativeDemand_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.class, org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.newBuilder()
      private Builder() {

      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        seqNr_ = 0L;
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_CumulativeDemand_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.CumulativeDemand getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.CumulativeDemand build() {
        org.apache.pekko.stream.StreamRefMessages.CumulativeDemand result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.CumulativeDemand buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.CumulativeDemand result = new org.apache.pekko.stream.StreamRefMessages.CumulativeDemand(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.CumulativeDemand result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.seqNr_ = seqNr_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.CumulativeDemand) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.CumulativeDemand)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.CumulativeDemand other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.CumulativeDemand.getDefaultInstance()) return this;
        if (other.hasSeqNr()) {
          setSeqNr(other.getSeqNr());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                seqNr_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long seqNr_ ;
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return Whether the seqNr field is set.
       */
      @java.lang.Override
      public boolean hasSeqNr() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return The seqNr.
       */
      @java.lang.Override
      public long getSeqNr() {
        return seqNr_;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @param value The seqNr to set.
       * @return This builder for chaining.
       */
      public Builder setSeqNr(long value) {

        seqNr_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearSeqNr() {
        bitField0_ = (bitField0_ & ~0x00000001);
        seqNr_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:CumulativeDemand)
    }

    // @@protoc_insertion_point(class_scope:CumulativeDemand)
    private static final org.apache.pekko.stream.StreamRefMessages.CumulativeDemand DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.CumulativeDemand();
    }

    public static org.apache.pekko.stream.StreamRefMessages.CumulativeDemand getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<CumulativeDemand> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<CumulativeDemand> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.CumulativeDemand getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SequencedOnNextOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SequencedOnNext)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    boolean hasSeqNr();
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    long getSeqNr();

    /**
     * <code>required .Payload payload = 2;</code>
     * @return Whether the payload field is set.
     */
    boolean hasPayload();
    /**
     * <code>required .Payload payload = 2;</code>
     * @return The payload.
     */
    org.apache.pekko.stream.StreamRefMessages.Payload getPayload();
    /**
     * <code>required .Payload payload = 2;</code>
     */
    org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder getPayloadOrBuilder();
  }
  /**
   * Protobuf type {@code SequencedOnNext}
   */
  public static final class SequencedOnNext extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:SequencedOnNext)
      SequencedOnNextOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "SequencedOnNext");
    }
    // Use SequencedOnNext.newBuilder() to construct.
    private SequencedOnNext(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private SequencedOnNext() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SequencedOnNext_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_SequencedOnNext_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.class, org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.Builder.class);
    }

    private int bitField0_;
    public static final int SEQNR_FIELD_NUMBER = 1;
    private long seqNr_ = 0L;
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    @java.lang.Override
    public boolean hasSeqNr() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    @java.lang.Override
    public long getSeqNr() {
      return seqNr_;
    }

    public static final int PAYLOAD_FIELD_NUMBER = 2;
    private org.apache.pekko.stream.StreamRefMessages.Payload payload_;
    /**
     * <code>required .Payload payload = 2;</code>
     * @return Whether the payload field is set.
     */
    @java.lang.Override
    public boolean hasPayload() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>required .Payload payload = 2;</code>
     * @return The payload.
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.Payload getPayload() {
      return payload_ == null ? org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance() : payload_;
    }
    /**
     * <code>required .Payload payload = 2;</code>
     */
    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder getPayloadOrBuilder() {
      return payload_ == null ? org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance() : payload_;
    }

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

      if (!hasSeqNr()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPayload()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getPayload().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt64(1, seqNr_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeMessage(2, getPayload());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeInt64Size(1, seqNr_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeMessageSize(2, getPayload());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.SequencedOnNext)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.SequencedOnNext other = (org.apache.pekko.stream.StreamRefMessages.SequencedOnNext) obj;

      if (hasSeqNr() != other.hasSeqNr()) return false;
      if (hasSeqNr()) {
        if (getSeqNr()
            != other.getSeqNr()) return false;
      }
      if (hasPayload() != other.hasPayload()) return false;
      if (hasPayload()) {
        if (!getPayload()
            .equals(other.getPayload())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasSeqNr()) {
        hash = (37 * hash) + SEQNR_FIELD_NUMBER;
        hash = (53 * hash) + org.apache.pekko.protobufv3.internal.Internal.hashLong(
            getSeqNr());
      }
      if (hasPayload()) {
        hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
        hash = (53 * hash) + getPayload().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.SequencedOnNext 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code SequencedOnNext}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:SequencedOnNext)
        org.apache.pekko.stream.StreamRefMessages.SequencedOnNextOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SequencedOnNext_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SequencedOnNext_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.class, org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (org.apache.pekko.protobufv3.internal.GeneratedMessage
                .alwaysUseFieldBuilders) {
          internalGetPayloadFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        seqNr_ = 0L;
        payload_ = null;
        if (payloadBuilder_ != null) {
          payloadBuilder_.dispose();
          payloadBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_SequencedOnNext_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SequencedOnNext getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SequencedOnNext build() {
        org.apache.pekko.stream.StreamRefMessages.SequencedOnNext result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.SequencedOnNext buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.SequencedOnNext result = new org.apache.pekko.stream.StreamRefMessages.SequencedOnNext(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.SequencedOnNext result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.seqNr_ = seqNr_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.payload_ = payloadBuilder_ == null
              ? payload_
              : payloadBuilder_.build();
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.SequencedOnNext) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.SequencedOnNext)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.SequencedOnNext other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.SequencedOnNext.getDefaultInstance()) return this;
        if (other.hasSeqNr()) {
          setSeqNr(other.getSeqNr());
        }
        if (other.hasPayload()) {
          mergePayload(other.getPayload());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        if (!hasSeqNr()) {
          return false;
        }
        if (!hasPayload()) {
          return false;
        }
        if (!getPayload().isInitialized()) {
          return false;
        }
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                seqNr_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 18: {
                input.readMessage(
                    internalGetPayloadFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long seqNr_ ;
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return Whether the seqNr field is set.
       */
      @java.lang.Override
      public boolean hasSeqNr() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return The seqNr.
       */
      @java.lang.Override
      public long getSeqNr() {
        return seqNr_;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @param value The seqNr to set.
       * @return This builder for chaining.
       */
      public Builder setSeqNr(long value) {

        seqNr_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearSeqNr() {
        bitField0_ = (bitField0_ & ~0x00000001);
        seqNr_ = 0L;
        onChanged();
        return this;
      }

      private org.apache.pekko.stream.StreamRefMessages.Payload payload_;
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.Payload, org.apache.pekko.stream.StreamRefMessages.Payload.Builder, org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder> payloadBuilder_;
      /**
       * <code>required .Payload payload = 2;</code>
       * @return Whether the payload field is set.
       */
      public boolean hasPayload() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * <code>required .Payload payload = 2;</code>
       * @return The payload.
       */
      public org.apache.pekko.stream.StreamRefMessages.Payload getPayload() {
        if (payloadBuilder_ == null) {
          return payload_ == null ? org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance() : payload_;
        } else {
          return payloadBuilder_.getMessage();
        }
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public Builder setPayload(org.apache.pekko.stream.StreamRefMessages.Payload value) {
        if (payloadBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          payload_ = value;
        } else {
          payloadBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public Builder setPayload(
          org.apache.pekko.stream.StreamRefMessages.Payload.Builder builderForValue) {
        if (payloadBuilder_ == null) {
          payload_ = builderForValue.build();
        } else {
          payloadBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public Builder mergePayload(org.apache.pekko.stream.StreamRefMessages.Payload value) {
        if (payloadBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            payload_ != null &&
            payload_ != org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance()) {
            getPayloadBuilder().mergeFrom(value);
          } else {
            payload_ = value;
          }
        } else {
          payloadBuilder_.mergeFrom(value);
        }
        if (payload_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public Builder clearPayload() {
        bitField0_ = (bitField0_ & ~0x00000002);
        payload_ = null;
        if (payloadBuilder_ != null) {
          payloadBuilder_.dispose();
          payloadBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.Payload.Builder getPayloadBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return internalGetPayloadFieldBuilder().getBuilder();
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      public org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder getPayloadOrBuilder() {
        if (payloadBuilder_ != null) {
          return payloadBuilder_.getMessageOrBuilder();
        } else {
          return payload_ == null ?
              org.apache.pekko.stream.StreamRefMessages.Payload.getDefaultInstance() : payload_;
        }
      }
      /**
       * <code>required .Payload payload = 2;</code>
       */
      private org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
          org.apache.pekko.stream.StreamRefMessages.Payload, org.apache.pekko.stream.StreamRefMessages.Payload.Builder, org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder> 
          internalGetPayloadFieldBuilder() {
        if (payloadBuilder_ == null) {
          payloadBuilder_ = new org.apache.pekko.protobufv3.internal.SingleFieldBuilder<
              org.apache.pekko.stream.StreamRefMessages.Payload, org.apache.pekko.stream.StreamRefMessages.Payload.Builder, org.apache.pekko.stream.StreamRefMessages.PayloadOrBuilder>(
                  getPayload(),
                  getParentForChildren(),
                  isClean());
          payload_ = null;
        }
        return payloadBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:SequencedOnNext)
    }

    // @@protoc_insertion_point(class_scope:SequencedOnNext)
    private static final org.apache.pekko.stream.StreamRefMessages.SequencedOnNext DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.SequencedOnNext();
    }

    public static org.apache.pekko.stream.StreamRefMessages.SequencedOnNext getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<SequencedOnNext> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<SequencedOnNext> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.SequencedOnNext getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RemoteStreamFailureOrBuilder extends
      // @@protoc_insertion_point(interface_extends:RemoteStreamFailure)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>optional bytes cause = 1;</code>
     * @return Whether the cause field is set.
     */
    boolean hasCause();
    /**
     * <code>optional bytes cause = 1;</code>
     * @return The cause.
     */
    org.apache.pekko.protobufv3.internal.ByteString getCause();
  }
  /**
   * Protobuf type {@code RemoteStreamFailure}
   */
  public static final class RemoteStreamFailure extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:RemoteStreamFailure)
      RemoteStreamFailureOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "RemoteStreamFailure");
    }
    // Use RemoteStreamFailure.newBuilder() to construct.
    private RemoteStreamFailure(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private RemoteStreamFailure() {
      cause_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamFailure_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamFailure_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.class, org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.Builder.class);
    }

    private int bitField0_;
    public static final int CAUSE_FIELD_NUMBER = 1;
    private org.apache.pekko.protobufv3.internal.ByteString cause_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
    /**
     * <code>optional bytes cause = 1;</code>
     * @return Whether the cause field is set.
     */
    @java.lang.Override
    public boolean hasCause() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>optional bytes cause = 1;</code>
     * @return The cause.
     */
    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.ByteString getCause() {
      return cause_;
    }

    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(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeBytes(1, cause_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeBytesSize(1, cause_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure other = (org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure) obj;

      if (hasCause() != other.hasCause()) return false;
      if (hasCause()) {
        if (!getCause()
            .equals(other.getCause())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasCause()) {
        hash = (37 * hash) + CAUSE_FIELD_NUMBER;
        hash = (53 * hash) + getCause().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code RemoteStreamFailure}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:RemoteStreamFailure)
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailureOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamFailure_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamFailure_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.class, org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.newBuilder()
      private Builder() {

      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        cause_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamFailure_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure build() {
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure result = new org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.cause_ = cause_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure.getDefaultInstance()) return this;
        if (other.hasCause()) {
          setCause(other.getCause());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                cause_ = input.readBytes();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private org.apache.pekko.protobufv3.internal.ByteString cause_ = org.apache.pekko.protobufv3.internal.ByteString.EMPTY;
      /**
       * <code>optional bytes cause = 1;</code>
       * @return Whether the cause field is set.
       */
      @java.lang.Override
      public boolean hasCause() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>optional bytes cause = 1;</code>
       * @return The cause.
       */
      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.ByteString getCause() {
        return cause_;
      }
      /**
       * <code>optional bytes cause = 1;</code>
       * @param value The cause to set.
       * @return This builder for chaining.
       */
      public Builder setCause(org.apache.pekko.protobufv3.internal.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        cause_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes cause = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCause() {
        bitField0_ = (bitField0_ & ~0x00000001);
        cause_ = getDefaultInstance().getCause();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:RemoteStreamFailure)
    }

    // @@protoc_insertion_point(class_scope:RemoteStreamFailure)
    private static final org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure();
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<RemoteStreamFailure> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<RemoteStreamFailure> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.RemoteStreamFailure getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RemoteStreamCompletedOrBuilder extends
      // @@protoc_insertion_point(interface_extends:RemoteStreamCompleted)
      org.apache.pekko.protobufv3.internal.MessageOrBuilder {

    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    boolean hasSeqNr();
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    long getSeqNr();
  }
  /**
   * Protobuf type {@code RemoteStreamCompleted}
   */
  public static final class RemoteStreamCompleted extends
      org.apache.pekko.protobufv3.internal.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:RemoteStreamCompleted)
      RemoteStreamCompletedOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      org.apache.pekko.protobufv3.internal.RuntimeVersion.validateProtobufGencodeVersion(
        org.apache.pekko.protobufv3.internal.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 0,
        /* suffix= */ "",
        "RemoteStreamCompleted");
    }
    // Use RemoteStreamCompleted.newBuilder() to construct.
    private RemoteStreamCompleted(org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }
    private RemoteStreamCompleted() {
    }

    public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamCompleted_descriptor;
    }

    @java.lang.Override
    protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamCompleted_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.class, org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.Builder.class);
    }

    private int bitField0_;
    public static final int SEQNR_FIELD_NUMBER = 1;
    private long seqNr_ = 0L;
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return Whether the seqNr field is set.
     */
    @java.lang.Override
    public boolean hasSeqNr() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>required int64 seqNr = 1;</code>
     * @return The seqNr.
     */
    @java.lang.Override
    public long getSeqNr() {
      return seqNr_;
    }

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

      if (!hasSeqNr()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(org.apache.pekko.protobufv3.internal.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeInt64(1, seqNr_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += org.apache.pekko.protobufv3.internal.CodedOutputStream
          .computeInt64Size(1, seqNr_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted)) {
        return super.equals(obj);
      }
      org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted other = (org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted) obj;

      if (hasSeqNr() != other.hasSeqNr()) return false;
      if (hasSeqNr()) {
        if (getSeqNr()
            != other.getSeqNr()) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasSeqNr()) {
        hash = (37 * hash) + SEQNR_FIELD_NUMBER;
        hash = (53 * hash) + org.apache.pekko.protobufv3.internal.Internal.hashLong(
            getSeqNr());
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        java.nio.ByteBuffer data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        java.nio.ByteBuffer data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        org.apache.pekko.protobufv3.internal.ByteString data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(byte[] data)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        byte[] data,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseDelimitedFrom(
        java.io.InputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted parseFrom(
        org.apache.pekko.protobufv3.internal.CodedInputStream input,
        org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return org.apache.pekko.protobufv3.internal.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted 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(
        org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code RemoteStreamCompleted}
     */
    public static final class Builder extends
        org.apache.pekko.protobufv3.internal.GeneratedMessage.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:RemoteStreamCompleted)
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompletedOrBuilder {
      public static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamCompleted_descriptor;
      }

      @java.lang.Override
      protected org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamCompleted_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.class, org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.Builder.class);
      }

      // Construct using org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.newBuilder()
      private Builder() {

      }

      private Builder(
          org.apache.pekko.protobufv3.internal.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        seqNr_ = 0L;
        return this;
      }

      @java.lang.Override
      public org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.pekko.stream.StreamRefMessages.internal_static_RemoteStreamCompleted_descriptor;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted getDefaultInstanceForType() {
        return org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.getDefaultInstance();
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted build() {
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted buildPartial() {
        org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted result = new org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.seqNr_ = seqNr_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(org.apache.pekko.protobufv3.internal.Message other) {
        if (other instanceof org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted) {
          return mergeFrom((org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted other) {
        if (other == org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted.getDefaultInstance()) return this;
        if (other.hasSeqNr()) {
          setSeqNr(other.getSeqNr());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          org.apache.pekko.protobufv3.internal.CodedInputStream input,
          org.apache.pekko.protobufv3.internal.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                seqNr_ = input.readInt64();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (org.apache.pekko.protobufv3.internal.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private long seqNr_ ;
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return Whether the seqNr field is set.
       */
      @java.lang.Override
      public boolean hasSeqNr() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return The seqNr.
       */
      @java.lang.Override
      public long getSeqNr() {
        return seqNr_;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @param value The seqNr to set.
       * @return This builder for chaining.
       */
      public Builder setSeqNr(long value) {

        seqNr_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>required int64 seqNr = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearSeqNr() {
        bitField0_ = (bitField0_ & ~0x00000001);
        seqNr_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:RemoteStreamCompleted)
    }

    // @@protoc_insertion_point(class_scope:RemoteStreamCompleted)
    private static final org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted();
    }

    public static org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

    public static org.apache.pekko.protobufv3.internal.Parser<RemoteStreamCompleted> parser() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.protobufv3.internal.Parser<RemoteStreamCompleted> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.apache.pekko.stream.StreamRefMessages.RemoteStreamCompleted getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_SinkRef_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_SinkRef_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_SourceRef_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_SourceRef_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_ActorRef_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_ActorRef_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_Payload_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_Payload_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_OnSubscribeHandshake_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_OnSubscribeHandshake_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_CumulativeDemand_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_CumulativeDemand_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_SequencedOnNext_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_SequencedOnNext_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_RemoteStreamFailure_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_RemoteStreamFailure_fieldAccessorTable;
  private static final org.apache.pekko.protobufv3.internal.Descriptors.Descriptor
    internal_static_RemoteStreamCompleted_descriptor;
  private static final 
    org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable
      internal_static_RemoteStreamCompleted_fieldAccessorTable;

  public static org.apache.pekko.protobufv3.internal.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  org.apache.pekko.protobufv3.internal.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\027StreamRefMessages.proto\"\'\n\007SinkRef\022\034\n\t" +
      "targetRef\030\001 \002(\0132\t.ActorRef\")\n\tSourceRef\022" +
      "\034\n\toriginRef\030\001 \002(\0132\t.ActorRef\"\030\n\010ActorRe" +
      "f\022\014\n\004path\030\001 \002(\t\"Q\n\007Payload\022\027\n\017enclosedMe" +
      "ssage\030\001 \002(\014\022\024\n\014serializerId\030\002 \002(\005\022\027\n\017mes" +
      "sageManifest\030\003 \001(\014\"4\n\024OnSubscribeHandsha" +
      "ke\022\034\n\ttargetRef\030\001 \002(\0132\t.ActorRef\"!\n\020Cumu" +
      "lativeDemand\022\r\n\005seqNr\030\001 \002(\003\";\n\017Sequenced" +
      "OnNext\022\r\n\005seqNr\030\001 \002(\003\022\031\n\007payload\030\002 \002(\0132\010" +
      ".Payload\"$\n\023RemoteStreamFailure\022\r\n\005cause" +
      "\030\001 \001(\014\"&\n\025RemoteStreamCompleted\022\r\n\005seqNr" +
      "\030\001 \002(\003B\033\n\027org.apache.pekko.streamH\001"
    };
    descriptor = org.apache.pekko.protobufv3.internal.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new org.apache.pekko.protobufv3.internal.Descriptors.FileDescriptor[] {
        });
    internal_static_SinkRef_descriptor =
      getDescriptor().getMessageType(0);
    internal_static_SinkRef_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_SinkRef_descriptor,
        new java.lang.String[] { "TargetRef", });
    internal_static_SourceRef_descriptor =
      getDescriptor().getMessageType(1);
    internal_static_SourceRef_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_SourceRef_descriptor,
        new java.lang.String[] { "OriginRef", });
    internal_static_ActorRef_descriptor =
      getDescriptor().getMessageType(2);
    internal_static_ActorRef_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_ActorRef_descriptor,
        new java.lang.String[] { "Path", });
    internal_static_Payload_descriptor =
      getDescriptor().getMessageType(3);
    internal_static_Payload_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_Payload_descriptor,
        new java.lang.String[] { "EnclosedMessage", "SerializerId", "MessageManifest", });
    internal_static_OnSubscribeHandshake_descriptor =
      getDescriptor().getMessageType(4);
    internal_static_OnSubscribeHandshake_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_OnSubscribeHandshake_descriptor,
        new java.lang.String[] { "TargetRef", });
    internal_static_CumulativeDemand_descriptor =
      getDescriptor().getMessageType(5);
    internal_static_CumulativeDemand_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_CumulativeDemand_descriptor,
        new java.lang.String[] { "SeqNr", });
    internal_static_SequencedOnNext_descriptor =
      getDescriptor().getMessageType(6);
    internal_static_SequencedOnNext_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_SequencedOnNext_descriptor,
        new java.lang.String[] { "SeqNr", "Payload", });
    internal_static_RemoteStreamFailure_descriptor =
      getDescriptor().getMessageType(7);
    internal_static_RemoteStreamFailure_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_RemoteStreamFailure_descriptor,
        new java.lang.String[] { "Cause", });
    internal_static_RemoteStreamCompleted_descriptor =
      getDescriptor().getMessageType(8);
    internal_static_RemoteStreamCompleted_fieldAccessorTable = new
      org.apache.pekko.protobufv3.internal.GeneratedMessage.FieldAccessorTable(
        internal_static_RemoteStreamCompleted_descriptor,
        new java.lang.String[] { "SeqNr", });
    descriptor.resolveAllFeaturesImmutable();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
