All Downloads are FREE. Search and download functionalities are using the official Maven repository.

games.mythical.saga.sdk.proto.streams.Subscribe Maven / Gradle / Ivy

There is a newer version: 1.1.30
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streams/common.proto

package games.mythical.saga.sdk.proto.streams;

/**
 * Protobuf type {@code saga.rpc.streams.Subscribe}
 */
public final class Subscribe extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:saga.rpc.streams.Subscribe)
    SubscribeOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Subscribe.newBuilder() to construct.
  private Subscribe(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Subscribe() {
    titleId_ = "";
    streamId_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return games.mythical.saga.sdk.proto.streams.Common.internal_static_saga_rpc_streams_Subscribe_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return games.mythical.saga.sdk.proto.streams.Common.internal_static_saga_rpc_streams_Subscribe_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            games.mythical.saga.sdk.proto.streams.Subscribe.class, games.mythical.saga.sdk.proto.streams.Subscribe.Builder.class);
  }

  private int bitField0_;
  public static final int TITLE_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object titleId_;
  /**
   * string title_id = 1;
   * @return The titleId.
   */
  @java.lang.Override
  public java.lang.String getTitleId() {
    java.lang.Object ref = titleId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      titleId_ = s;
      return s;
    }
  }
  /**
   * string title_id = 1;
   * @return The bytes for titleId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTitleIdBytes() {
    java.lang.Object ref = titleId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      titleId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STREAM_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object streamId_;
  /**
   * string stream_id = 2;
   * @return The streamId.
   */
  @java.lang.Override
  public java.lang.String getStreamId() {
    java.lang.Object ref = streamId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      streamId_ = s;
      return s;
    }
  }
  /**
   * string stream_id = 2;
   * @return The bytes for streamId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStreamIdBytes() {
    java.lang.Object ref = streamId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      streamId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPLAY_SINCE_FIELD_NUMBER = 3;
  private com.google.protobuf.Timestamp replaySince_;
  /**
   * optional .google.protobuf.Timestamp replay_since = 3;
   * @return Whether the replaySince field is set.
   */
  @java.lang.Override
  public boolean hasReplaySince() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .google.protobuf.Timestamp replay_since = 3;
   * @return The replaySince.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getReplaySince() {
    return replaySince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : replaySince_;
  }
  /**
   * optional .google.protobuf.Timestamp replay_since = 3;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getReplaySinceOrBuilder() {
    return replaySince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : replaySince_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(titleId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, titleId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streamId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getReplaySince());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(titleId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, titleId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getReplaySince());
    }
    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 games.mythical.saga.sdk.proto.streams.Subscribe)) {
      return super.equals(obj);
    }
    games.mythical.saga.sdk.proto.streams.Subscribe other = (games.mythical.saga.sdk.proto.streams.Subscribe) obj;

    if (!getTitleId()
        .equals(other.getTitleId())) return false;
    if (!getStreamId()
        .equals(other.getStreamId())) return false;
    if (hasReplaySince() != other.hasReplaySince()) return false;
    if (hasReplaySince()) {
      if (!getReplaySince()
          .equals(other.getReplaySince())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TITLE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getTitleId().hashCode();
    hash = (37 * hash) + STREAM_ID_FIELD_NUMBER;
    hash = (53 * hash) + getStreamId().hashCode();
    if (hasReplaySince()) {
      hash = (37 * hash) + REPLAY_SINCE_FIELD_NUMBER;
      hash = (53 * hash) + getReplaySince().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static games.mythical.saga.sdk.proto.streams.Subscribe parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(games.mythical.saga.sdk.proto.streams.Subscribe prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code saga.rpc.streams.Subscribe}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:saga.rpc.streams.Subscribe)
      games.mythical.saga.sdk.proto.streams.SubscribeOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return games.mythical.saga.sdk.proto.streams.Common.internal_static_saga_rpc_streams_Subscribe_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return games.mythical.saga.sdk.proto.streams.Common.internal_static_saga_rpc_streams_Subscribe_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              games.mythical.saga.sdk.proto.streams.Subscribe.class, games.mythical.saga.sdk.proto.streams.Subscribe.Builder.class);
    }

    // Construct using games.mythical.saga.sdk.proto.streams.Subscribe.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getReplaySinceFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      titleId_ = "";

      streamId_ = "";

      if (replaySinceBuilder_ == null) {
        replaySince_ = null;
      } else {
        replaySinceBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return games.mythical.saga.sdk.proto.streams.Common.internal_static_saga_rpc_streams_Subscribe_descriptor;
    }

    @java.lang.Override
    public games.mythical.saga.sdk.proto.streams.Subscribe getDefaultInstanceForType() {
      return games.mythical.saga.sdk.proto.streams.Subscribe.getDefaultInstance();
    }

    @java.lang.Override
    public games.mythical.saga.sdk.proto.streams.Subscribe build() {
      games.mythical.saga.sdk.proto.streams.Subscribe result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public games.mythical.saga.sdk.proto.streams.Subscribe buildPartial() {
      games.mythical.saga.sdk.proto.streams.Subscribe result = new games.mythical.saga.sdk.proto.streams.Subscribe(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.titleId_ = titleId_;
      result.streamId_ = streamId_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (replaySinceBuilder_ == null) {
          result.replaySince_ = replaySince_;
        } else {
          result.replaySince_ = replaySinceBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof games.mythical.saga.sdk.proto.streams.Subscribe) {
        return mergeFrom((games.mythical.saga.sdk.proto.streams.Subscribe)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(games.mythical.saga.sdk.proto.streams.Subscribe other) {
      if (other == games.mythical.saga.sdk.proto.streams.Subscribe.getDefaultInstance()) return this;
      if (!other.getTitleId().isEmpty()) {
        titleId_ = other.titleId_;
        onChanged();
      }
      if (!other.getStreamId().isEmpty()) {
        streamId_ = other.streamId_;
        onChanged();
      }
      if (other.hasReplaySince()) {
        mergeReplaySince(other.getReplaySince());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              titleId_ = input.readStringRequireUtf8();

              break;
            } // case 10
            case 18: {
              streamId_ = input.readStringRequireUtf8();

              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getReplaySinceFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 26
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object titleId_ = "";
    /**
     * string title_id = 1;
     * @return The titleId.
     */
    public java.lang.String getTitleId() {
      java.lang.Object ref = titleId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        titleId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string title_id = 1;
     * @return The bytes for titleId.
     */
    public com.google.protobuf.ByteString
        getTitleIdBytes() {
      java.lang.Object ref = titleId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        titleId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string title_id = 1;
     * @param value The titleId to set.
     * @return This builder for chaining.
     */
    public Builder setTitleId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      titleId_ = value;
      onChanged();
      return this;
    }
    /**
     * string title_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearTitleId() {
      
      titleId_ = getDefaultInstance().getTitleId();
      onChanged();
      return this;
    }
    /**
     * string title_id = 1;
     * @param value The bytes for titleId to set.
     * @return This builder for chaining.
     */
    public Builder setTitleIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      titleId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object streamId_ = "";
    /**
     * string stream_id = 2;
     * @return The streamId.
     */
    public java.lang.String getStreamId() {
      java.lang.Object ref = streamId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        streamId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string stream_id = 2;
     * @return The bytes for streamId.
     */
    public com.google.protobuf.ByteString
        getStreamIdBytes() {
      java.lang.Object ref = streamId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        streamId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string stream_id = 2;
     * @param value The streamId to set.
     * @return This builder for chaining.
     */
    public Builder setStreamId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      streamId_ = value;
      onChanged();
      return this;
    }
    /**
     * string stream_id = 2;
     * @return This builder for chaining.
     */
    public Builder clearStreamId() {
      
      streamId_ = getDefaultInstance().getStreamId();
      onChanged();
      return this;
    }
    /**
     * string stream_id = 2;
     * @param value The bytes for streamId to set.
     * @return This builder for chaining.
     */
    public Builder setStreamIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      streamId_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp replaySince_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> replaySinceBuilder_;
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     * @return Whether the replaySince field is set.
     */
    public boolean hasReplaySince() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     * @return The replaySince.
     */
    public com.google.protobuf.Timestamp getReplaySince() {
      if (replaySinceBuilder_ == null) {
        return replaySince_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : replaySince_;
      } else {
        return replaySinceBuilder_.getMessage();
      }
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public Builder setReplaySince(com.google.protobuf.Timestamp value) {
      if (replaySinceBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        replaySince_ = value;
        onChanged();
      } else {
        replaySinceBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public Builder setReplaySince(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (replaySinceBuilder_ == null) {
        replaySince_ = builderForValue.build();
        onChanged();
      } else {
        replaySinceBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public Builder mergeReplaySince(com.google.protobuf.Timestamp value) {
      if (replaySinceBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            replaySince_ != null &&
            replaySince_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          replaySince_ =
            com.google.protobuf.Timestamp.newBuilder(replaySince_).mergeFrom(value).buildPartial();
        } else {
          replaySince_ = value;
        }
        onChanged();
      } else {
        replaySinceBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public Builder clearReplaySince() {
      if (replaySinceBuilder_ == null) {
        replaySince_ = null;
        onChanged();
      } else {
        replaySinceBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public com.google.protobuf.Timestamp.Builder getReplaySinceBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getReplaySinceFieldBuilder().getBuilder();
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    public com.google.protobuf.TimestampOrBuilder getReplaySinceOrBuilder() {
      if (replaySinceBuilder_ != null) {
        return replaySinceBuilder_.getMessageOrBuilder();
      } else {
        return replaySince_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : replaySince_;
      }
    }
    /**
     * optional .google.protobuf.Timestamp replay_since = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getReplaySinceFieldBuilder() {
      if (replaySinceBuilder_ == null) {
        replaySinceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getReplaySince(),
                getParentForChildren(),
                isClean());
        replaySince_ = null;
      }
      return replaySinceBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:saga.rpc.streams.Subscribe)
  }

  // @@protoc_insertion_point(class_scope:saga.rpc.streams.Subscribe)
  private static final games.mythical.saga.sdk.proto.streams.Subscribe DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new games.mythical.saga.sdk.proto.streams.Subscribe();
  }

  public static games.mythical.saga.sdk.proto.streams.Subscribe getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public games.mythical.saga.sdk.proto.streams.Subscribe getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy