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

com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: waves/events/grpc/blockchain_updates.proto

package com.wavesplatform.events.api.grpc.protobuf;

public final class BlockchainUpdates {
  private BlockchainUpdates() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface GetBlockUpdateRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.events.grpc.GetBlockUpdateRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 height = 1;
     * @return The height.
     */
    int getHeight();
  }
  /**
   * Protobuf type {@code waves.events.grpc.GetBlockUpdateRequest}
   */
  public  static final class GetBlockUpdateRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.events.grpc.GetBlockUpdateRequest)
      GetBlockUpdateRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GetBlockUpdateRequest.newBuilder() to construct.
    private GetBlockUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GetBlockUpdateRequest() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private GetBlockUpdateRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              height_ = input.readInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.Builder.class);
    }

    public static final int HEIGHT_FIELD_NUMBER = 1;
    private int height_;
    /**
     * int32 height = 1;
     * @return The height.
     */
    public int getHeight() {
      return height_;
    }

    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 (height_ != 0) {
        output.writeInt32(1, height_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (height_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, height_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest)) {
        return super.equals(obj);
      }
      com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest) obj;

      if (getHeight()
          != other.getHeight()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

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

    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest 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 waves.events.grpc.GetBlockUpdateRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:waves.events.grpc.GetBlockUpdateRequest)
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.Builder.class);
      }

      // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest getDefaultInstanceForType() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest build() {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest buildPartial() {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest(this);
        result.height_ = height_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest) {
          return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest other) {
        if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest.getDefaultInstance()) return this;
        if (other.getHeight() != 0) {
          setHeight(other.getHeight());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int height_ ;
      /**
       * int32 height = 1;
       * @return The height.
       */
      public int getHeight() {
        return height_;
      }
      /**
       * int32 height = 1;
       * @param value The height to set.
       * @return This builder for chaining.
       */
      public Builder setHeight(int value) {
        
        height_ = value;
        onChanged();
        return this;
      }
      /**
       * int32 height = 1;
       * @return This builder for chaining.
       */
      public Builder clearHeight() {
        
        height_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:waves.events.grpc.GetBlockUpdateRequest)
    }

    // @@protoc_insertion_point(class_scope:waves.events.grpc.GetBlockUpdateRequest)
    private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest();
    }

    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GetBlockUpdateResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.events.grpc.GetBlockUpdateResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .waves.events.BlockchainUpdated update = 1;
     * @return Whether the update field is set.
     */
    boolean hasUpdate();
    /**
     * .waves.events.BlockchainUpdated update = 1;
     * @return The update.
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate();
    /**
     * .waves.events.BlockchainUpdated update = 1;
     */
    com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder();
  }
  /**
   * Protobuf type {@code waves.events.grpc.GetBlockUpdateResponse}
   */
  public  static final class GetBlockUpdateResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:waves.events.grpc.GetBlockUpdateResponse)
      GetBlockUpdateResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GetBlockUpdateResponse.newBuilder() to construct.
    private GetBlockUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GetBlockUpdateResponse() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private GetBlockUpdateResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder subBuilder = null;
              if (update_ != null) {
                subBuilder = update_.toBuilder();
              }
              update_ = input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(update_);
                update_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.Builder.class);
    }

    public static final int UPDATE_FIELD_NUMBER = 1;
    private com.wavesplatform.events.protobuf.Events.BlockchainUpdated update_;
    /**
     * .waves.events.BlockchainUpdated update = 1;
     * @return Whether the update field is set.
     */
    public boolean hasUpdate() {
      return update_ != null;
    }
    /**
     * .waves.events.BlockchainUpdated update = 1;
     * @return The update.
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate() {
      return update_ == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_;
    }
    /**
     * .waves.events.BlockchainUpdated update = 1;
     */
    public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder() {
      return getUpdate();
    }

    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 (update_ != null) {
        output.writeMessage(1, getUpdate());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (update_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getUpdate());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse)) {
        return super.equals(obj);
      }
      com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse) obj;

      if (hasUpdate() != other.hasUpdate()) return false;
      if (hasUpdate()) {
        if (!getUpdate()
            .equals(other.getUpdate())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasUpdate()) {
        hash = (37 * hash) + UPDATE_FIELD_NUMBER;
        hash = (53 * hash) + getUpdate().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse 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 waves.events.grpc.GetBlockUpdateResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:waves.events.grpc.GetBlockUpdateResponse)
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.Builder.class);
      }

      // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (updateBuilder_ == null) {
          update_ = null;
        } else {
          update_ = null;
          updateBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor;
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse getDefaultInstanceForType() {
        return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse build() {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse buildPartial() {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse(this);
        if (updateBuilder_ == null) {
          result.update_ = update_;
        } else {
          result.update_ = updateBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse) {
          return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse other) {
        if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse.getDefaultInstance()) return this;
        if (other.hasUpdate()) {
          mergeUpdate(other.getUpdate());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

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

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.wavesplatform.events.protobuf.Events.BlockchainUpdated update_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> updateBuilder_;
      /**
       * .waves.events.BlockchainUpdated update = 1;
       * @return Whether the update field is set.
       */
      public boolean hasUpdate() {
        return updateBuilder_ != null || update_ != null;
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       * @return The update.
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate() {
        if (updateBuilder_ == null) {
          return update_ == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_;
        } else {
          return updateBuilder_.getMessage();
        }
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public Builder setUpdate(com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) {
        if (updateBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          update_ = value;
          onChanged();
        } else {
          updateBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public Builder setUpdate(
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder builderForValue) {
        if (updateBuilder_ == null) {
          update_ = builderForValue.build();
          onChanged();
        } else {
          updateBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public Builder mergeUpdate(com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) {
        if (updateBuilder_ == null) {
          if (update_ != null) {
            update_ =
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.newBuilder(update_).mergeFrom(value).buildPartial();
          } else {
            update_ = value;
          }
          onChanged();
        } else {
          updateBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public Builder clearUpdate() {
        if (updateBuilder_ == null) {
          update_ = null;
          onChanged();
        } else {
          update_ = null;
          updateBuilder_ = null;
        }

        return this;
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder getUpdateBuilder() {
        
        onChanged();
        return getUpdateFieldBuilder().getBuilder();
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder() {
        if (updateBuilder_ != null) {
          return updateBuilder_.getMessageOrBuilder();
        } else {
          return update_ == null ?
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_;
        }
      }
      /**
       * .waves.events.BlockchainUpdated update = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> 
          getUpdateFieldBuilder() {
        if (updateBuilder_ == null) {
          updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder>(
                  getUpdate(),
                  getParentForChildren(),
                  isClean());
          update_ = null;
        }
        return updateBuilder_;
      }
      @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:waves.events.grpc.GetBlockUpdateResponse)
    }

    // @@protoc_insertion_point(class_scope:waves.events.grpc.GetBlockUpdateResponse)
    private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse();
    }

    public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdateResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GetBlockUpdatesRangeRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.events.grpc.GetBlockUpdatesRangeRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * both required, inclusive
     * 
* * int32 from_height = 1; * @return The fromHeight. */ int getFromHeight(); /** * int32 to_height = 2; * @return The toHeight. */ int getToHeight(); } /** * Protobuf type {@code waves.events.grpc.GetBlockUpdatesRangeRequest} */ public static final class GetBlockUpdatesRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.grpc.GetBlockUpdatesRangeRequest) GetBlockUpdatesRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetBlockUpdatesRangeRequest.newBuilder() to construct. private GetBlockUpdatesRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetBlockUpdatesRangeRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetBlockUpdatesRangeRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetBlockUpdatesRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { fromHeight_ = input.readInt32(); break; } case 16: { toHeight_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.Builder.class); } public static final int FROM_HEIGHT_FIELD_NUMBER = 1; private int fromHeight_; /** *
     * both required, inclusive
     * 
* * int32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } public static final int TO_HEIGHT_FIELD_NUMBER = 2; private int toHeight_; /** * int32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } 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 (fromHeight_ != 0) { output.writeInt32(1, fromHeight_); } if (toHeight_ != 0) { output.writeInt32(2, toHeight_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fromHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, fromHeight_); } if (toHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, toHeight_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest)) { return super.equals(obj); } com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest) obj; if (getFromHeight() != other.getFromHeight()) return false; if (getToHeight() != other.getToHeight()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getFromHeight(); hash = (37 * hash) + TO_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getToHeight(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest 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 waves.events.grpc.GetBlockUpdatesRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.grpc.GetBlockUpdatesRangeRequest) com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.Builder.class); } // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); fromHeight_ = 0; toHeight_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest getDefaultInstanceForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest build() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest buildPartial() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest(this); result.fromHeight_ = fromHeight_; result.toHeight_ = toHeight_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest) { return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest other) { if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest.getDefaultInstance()) return this; if (other.getFromHeight() != 0) { setFromHeight(other.getFromHeight()); } if (other.getToHeight() != 0) { setToHeight(other.getToHeight()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fromHeight_ ; /** *
       * both required, inclusive
       * 
* * int32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } /** *
       * both required, inclusive
       * 
* * int32 from_height = 1; * @param value The fromHeight to set. * @return This builder for chaining. */ public Builder setFromHeight(int value) { fromHeight_ = value; onChanged(); return this; } /** *
       * both required, inclusive
       * 
* * int32 from_height = 1; * @return This builder for chaining. */ public Builder clearFromHeight() { fromHeight_ = 0; onChanged(); return this; } private int toHeight_ ; /** * int32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } /** * int32 to_height = 2; * @param value The toHeight to set. * @return This builder for chaining. */ public Builder setToHeight(int value) { toHeight_ = value; onChanged(); return this; } /** * int32 to_height = 2; * @return This builder for chaining. */ public Builder clearToHeight() { toHeight_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:waves.events.grpc.GetBlockUpdatesRangeRequest) } // @@protoc_insertion_point(class_scope:waves.events.grpc.GetBlockUpdatesRangeRequest) private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest(); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetBlockUpdatesRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetBlockUpdatesRangeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetBlockUpdatesRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.grpc.GetBlockUpdatesRangeResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .waves.events.BlockchainUpdated updates = 1; */ java.util.List getUpdatesList(); /** * repeated .waves.events.BlockchainUpdated updates = 1; */ com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdates(int index); /** * repeated .waves.events.BlockchainUpdated updates = 1; */ int getUpdatesCount(); /** * repeated .waves.events.BlockchainUpdated updates = 1; */ java.util.List getUpdatesOrBuilderList(); /** * repeated .waves.events.BlockchainUpdated updates = 1; */ com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdatesOrBuilder( int index); } /** * Protobuf type {@code waves.events.grpc.GetBlockUpdatesRangeResponse} */ public static final class GetBlockUpdatesRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.grpc.GetBlockUpdatesRangeResponse) GetBlockUpdatesRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetBlockUpdatesRangeResponse.newBuilder() to construct. private GetBlockUpdatesRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetBlockUpdatesRangeResponse() { updates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetBlockUpdatesRangeResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetBlockUpdatesRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { updates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } updates_.add( input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { updates_ = java.util.Collections.unmodifiableList(updates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.Builder.class); } public static final int UPDATES_FIELD_NUMBER = 1; private java.util.List updates_; /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public java.util.List getUpdatesList() { return updates_; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public java.util.List getUpdatesOrBuilderList() { return updates_; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public int getUpdatesCount() { return updates_.size(); } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdates(int index) { return updates_.get(index); } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdatesOrBuilder( int index) { return updates_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < updates_.size(); i++) { output.writeMessage(1, updates_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < updates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, updates_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse)) { return super.equals(obj); } com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse) obj; if (!getUpdatesList() .equals(other.getUpdatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getUpdatesCount() > 0) { hash = (37 * hash) + UPDATES_FIELD_NUMBER; hash = (53 * hash) + getUpdatesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse 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 waves.events.grpc.GetBlockUpdatesRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.grpc.GetBlockUpdatesRangeResponse) com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.Builder.class); } // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getUpdatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { updatesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse getDefaultInstanceForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse build() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse buildPartial() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse(this); int from_bitField0_ = bitField0_; if (updatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { updates_ = java.util.Collections.unmodifiableList(updates_); bitField0_ = (bitField0_ & ~0x00000001); } result.updates_ = updates_; } else { result.updates_ = updatesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse) { return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse other) { if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse.getDefaultInstance()) return this; if (updatesBuilder_ == null) { if (!other.updates_.isEmpty()) { if (updates_.isEmpty()) { updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUpdatesIsMutable(); updates_.addAll(other.updates_); } onChanged(); } } else { if (!other.updates_.isEmpty()) { if (updatesBuilder_.isEmpty()) { updatesBuilder_.dispose(); updatesBuilder_ = null; updates_ = other.updates_; bitField0_ = (bitField0_ & ~0x00000001); updatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpdatesFieldBuilder() : null; } else { updatesBuilder_.addAllMessages(other.updates_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List updates_ = java.util.Collections.emptyList(); private void ensureUpdatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { updates_ = new java.util.ArrayList(updates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> updatesBuilder_; /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public java.util.List getUpdatesList() { if (updatesBuilder_ == null) { return java.util.Collections.unmodifiableList(updates_); } else { return updatesBuilder_.getMessageList(); } } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public int getUpdatesCount() { if (updatesBuilder_ == null) { return updates_.size(); } else { return updatesBuilder_.getCount(); } } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdates(int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessage(index); } } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder setUpdates( int index, com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.set(index, value); onChanged(); } else { updatesBuilder_.setMessage(index, value); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder setUpdates( int index, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.set(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder addUpdates(com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(value); onChanged(); } else { updatesBuilder_.addMessage(value); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder addUpdates( int index, com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpdatesIsMutable(); updates_.add(index, value); onChanged(); } else { updatesBuilder_.addMessage(index, value); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder addUpdates( com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder addUpdates( int index, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder builderForValue) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.add(index, builderForValue.build()); onChanged(); } else { updatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder addAllUpdates( java.lang.Iterable values) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, updates_); onChanged(); } else { updatesBuilder_.addAllMessages(values); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { updates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { updatesBuilder_.clear(); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public Builder removeUpdates(int index) { if (updatesBuilder_ == null) { ensureUpdatesIsMutable(); updates_.remove(index); onChanged(); } else { updatesBuilder_.remove(index); } return this; } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder getUpdatesBuilder( int index) { return getUpdatesFieldBuilder().getBuilder(index); } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdatesOrBuilder( int index) { if (updatesBuilder_ == null) { return updates_.get(index); } else { return updatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public java.util.List getUpdatesOrBuilderList() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(updates_); } } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder addUpdatesBuilder() { return getUpdatesFieldBuilder().addBuilder( com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance()); } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder addUpdatesBuilder( int index) { return getUpdatesFieldBuilder().addBuilder( index, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance()); } /** * repeated .waves.events.BlockchainUpdated updates = 1; */ public java.util.List getUpdatesBuilderList() { return getUpdatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { updatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder>( updates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; } @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:waves.events.grpc.GetBlockUpdatesRangeResponse) } // @@protoc_insertion_point(class_scope:waves.events.grpc.GetBlockUpdatesRangeResponse) private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse(); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetBlockUpdatesRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetBlockUpdatesRangeResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.GetBlockUpdatesRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscribeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.grpc.SubscribeRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Optional. Default: start at the genesis, height 1.
     * 
* * int32 from_height = 1; * @return The fromHeight. */ int getFromHeight(); /** *
     * Optional. Default: stream historical, then switch to current events.
     * 
* * int32 to_height = 2; * @return The toHeight. */ int getToHeight(); } /** * Protobuf type {@code waves.events.grpc.SubscribeRequest} */ public static final class SubscribeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.grpc.SubscribeRequest) SubscribeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SubscribeRequest.newBuilder() to construct. private SubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscribeRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SubscribeRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SubscribeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { fromHeight_ = input.readInt32(); break; } case 16: { toHeight_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.Builder.class); } public static final int FROM_HEIGHT_FIELD_NUMBER = 1; private int fromHeight_; /** *
     * Optional. Default: start at the genesis, height 1.
     * 
* * int32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } public static final int TO_HEIGHT_FIELD_NUMBER = 2; private int toHeight_; /** *
     * Optional. Default: stream historical, then switch to current events.
     * 
* * int32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } 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 (fromHeight_ != 0) { output.writeInt32(1, fromHeight_); } if (toHeight_ != 0) { output.writeInt32(2, toHeight_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fromHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, fromHeight_); } if (toHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, toHeight_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest)) { return super.equals(obj); } com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest) obj; if (getFromHeight() != other.getFromHeight()) return false; if (getToHeight() != other.getToHeight()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FROM_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getFromHeight(); hash = (37 * hash) + TO_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getToHeight(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest 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 waves.events.grpc.SubscribeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.grpc.SubscribeRequest) com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.Builder.class); } // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); fromHeight_ = 0; toHeight_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeRequest_descriptor; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest getDefaultInstanceForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest build() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest buildPartial() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest(this); result.fromHeight_ = fromHeight_; result.toHeight_ = toHeight_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest) { return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest other) { if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest.getDefaultInstance()) return this; if (other.getFromHeight() != 0) { setFromHeight(other.getFromHeight()); } if (other.getToHeight() != 0) { setToHeight(other.getToHeight()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int fromHeight_ ; /** *
       * Optional. Default: start at the genesis, height 1.
       * 
* * int32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } /** *
       * Optional. Default: start at the genesis, height 1.
       * 
* * int32 from_height = 1; * @param value The fromHeight to set. * @return This builder for chaining. */ public Builder setFromHeight(int value) { fromHeight_ = value; onChanged(); return this; } /** *
       * Optional. Default: start at the genesis, height 1.
       * 
* * int32 from_height = 1; * @return This builder for chaining. */ public Builder clearFromHeight() { fromHeight_ = 0; onChanged(); return this; } private int toHeight_ ; /** *
       * Optional. Default: stream historical, then switch to current events.
       * 
* * int32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } /** *
       * Optional. Default: stream historical, then switch to current events.
       * 
* * int32 to_height = 2; * @param value The toHeight to set. * @return This builder for chaining. */ public Builder setToHeight(int value) { toHeight_ = value; onChanged(); return this; } /** *
       * Optional. Default: stream historical, then switch to current events.
       * 
* * int32 to_height = 2; * @return This builder for chaining. */ public Builder clearToHeight() { toHeight_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:waves.events.grpc.SubscribeRequest) } // @@protoc_insertion_point(class_scope:waves.events.grpc.SubscribeRequest) private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest(); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubscribeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscribeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubscribeEventOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.events.grpc.SubscribeEvent) com.google.protobuf.MessageOrBuilder { /** * .waves.events.BlockchainUpdated update = 1; * @return Whether the update field is set. */ boolean hasUpdate(); /** * .waves.events.BlockchainUpdated update = 1; * @return The update. */ com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate(); /** * .waves.events.BlockchainUpdated update = 1; */ com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder(); } /** * Protobuf type {@code waves.events.grpc.SubscribeEvent} */ public static final class SubscribeEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.events.grpc.SubscribeEvent) SubscribeEventOrBuilder { private static final long serialVersionUID = 0L; // Use SubscribeEvent.newBuilder() to construct. private SubscribeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubscribeEvent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SubscribeEvent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SubscribeEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder subBuilder = null; if (update_ != null) { subBuilder = update_.toBuilder(); } update_ = input.readMessage(com.wavesplatform.events.protobuf.Events.BlockchainUpdated.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(update_); update_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.Builder.class); } public static final int UPDATE_FIELD_NUMBER = 1; private com.wavesplatform.events.protobuf.Events.BlockchainUpdated update_; /** * .waves.events.BlockchainUpdated update = 1; * @return Whether the update field is set. */ public boolean hasUpdate() { return update_ != null; } /** * .waves.events.BlockchainUpdated update = 1; * @return The update. */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate() { return update_ == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_; } /** * .waves.events.BlockchainUpdated update = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder() { return getUpdate(); } 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 (update_ != null) { output.writeMessage(1, getUpdate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (update_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getUpdate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent)) { return super.equals(obj); } com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent other = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent) obj; if (hasUpdate() != other.hasUpdate()) return false; if (hasUpdate()) { if (!getUpdate() .equals(other.getUpdate())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUpdate()) { hash = (37 * hash) + UPDATE_FIELD_NUMBER; hash = (53 * hash) + getUpdate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent 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 waves.events.grpc.SubscribeEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.events.grpc.SubscribeEvent) com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.class, com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.Builder.class); } // Construct using com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (updateBuilder_ == null) { update_ = null; } else { update_ = null; updateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.internal_static_waves_events_grpc_SubscribeEvent_descriptor; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent getDefaultInstanceForType() { return com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent build() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent buildPartial() { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent result = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent(this); if (updateBuilder_ == null) { result.update_ = update_; } else { result.update_ = updateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent) { return mergeFrom((com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent other) { if (other == com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent.getDefaultInstance()) return this; if (other.hasUpdate()) { mergeUpdate(other.getUpdate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.wavesplatform.events.protobuf.Events.BlockchainUpdated update_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> updateBuilder_; /** * .waves.events.BlockchainUpdated update = 1; * @return Whether the update field is set. */ public boolean hasUpdate() { return updateBuilder_ != null || update_ != null; } /** * .waves.events.BlockchainUpdated update = 1; * @return The update. */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated getUpdate() { if (updateBuilder_ == null) { return update_ == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_; } else { return updateBuilder_.getMessage(); } } /** * .waves.events.BlockchainUpdated update = 1; */ public Builder setUpdate(com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } update_ = value; onChanged(); } else { updateBuilder_.setMessage(value); } return this; } /** * .waves.events.BlockchainUpdated update = 1; */ public Builder setUpdate( com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder builderForValue) { if (updateBuilder_ == null) { update_ = builderForValue.build(); onChanged(); } else { updateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .waves.events.BlockchainUpdated update = 1; */ public Builder mergeUpdate(com.wavesplatform.events.protobuf.Events.BlockchainUpdated value) { if (updateBuilder_ == null) { if (update_ != null) { update_ = com.wavesplatform.events.protobuf.Events.BlockchainUpdated.newBuilder(update_).mergeFrom(value).buildPartial(); } else { update_ = value; } onChanged(); } else { updateBuilder_.mergeFrom(value); } return this; } /** * .waves.events.BlockchainUpdated update = 1; */ public Builder clearUpdate() { if (updateBuilder_ == null) { update_ = null; onChanged(); } else { update_ = null; updateBuilder_ = null; } return this; } /** * .waves.events.BlockchainUpdated update = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder getUpdateBuilder() { onChanged(); return getUpdateFieldBuilder().getBuilder(); } /** * .waves.events.BlockchainUpdated update = 1; */ public com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { return updateBuilder_.getMessageOrBuilder(); } else { return update_ == null ? com.wavesplatform.events.protobuf.Events.BlockchainUpdated.getDefaultInstance() : update_; } } /** * .waves.events.BlockchainUpdated update = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.events.protobuf.Events.BlockchainUpdated, com.wavesplatform.events.protobuf.Events.BlockchainUpdated.Builder, com.wavesplatform.events.protobuf.Events.BlockchainUpdatedOrBuilder>( getUpdate(), getParentForChildren(), isClean()); update_ = null; } return updateBuilder_; } @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:waves.events.grpc.SubscribeEvent) } // @@protoc_insertion_point(class_scope:waves.events.grpc.SubscribeEvent) private static final com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent(); } public static com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubscribeEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SubscribeEvent(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.wavesplatform.events.api.grpc.protobuf.BlockchainUpdates.SubscribeEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_GetBlockUpdateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_GetBlockUpdateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_SubscribeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_SubscribeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_events_grpc_SubscribeEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_events_grpc_SubscribeEvent_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n*waves/events/grpc/blockchain_updates.p" + "roto\022\021waves.events.grpc\032\031waves/events/ev" + "ents.proto\"\'\n\025GetBlockUpdateRequest\022\016\n\006h" + "eight\030\001 \001(\005\"I\n\026GetBlockUpdateResponse\022/\n" + "\006update\030\001 \001(\0132\037.waves.events.BlockchainU" + "pdated\"E\n\033GetBlockUpdatesRangeRequest\022\023\n" + "\013from_height\030\001 \001(\005\022\021\n\tto_height\030\002 \001(\005\"P\n" + "\034GetBlockUpdatesRangeResponse\0220\n\007updates" + "\030\001 \003(\0132\037.waves.events.BlockchainUpdated\"" + ":\n\020SubscribeRequest\022\023\n\013from_height\030\001 \001(\005" + "\022\021\n\tto_height\030\002 \001(\005\"A\n\016SubscribeEvent\022/\n" + "\006update\030\001 \001(\0132\037.waves.events.BlockchainU" + "pdated2\315\002\n\024BlockchainUpdatesApi\022e\n\016GetBl" + "ockUpdate\022(.waves.events.grpc.GetBlockUp" + "dateRequest\032).waves.events.grpc.GetBlock" + "UpdateResponse\022w\n\024GetBlockUpdatesRange\022." + ".waves.events.grpc.GetBlockUpdatesRangeR" + "equest\032/.waves.events.grpc.GetBlockUpdat" + "esRangeResponse\022U\n\tSubscribe\022#.waves.eve" + "nts.grpc.SubscribeRequest\032!.waves.events" + ".grpc.SubscribeEvent0\001B@\n*com.wavesplatf" + "orm.events.api.grpc.protobuf\252\002\021Waves.Eve" + "nts.Grpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.wavesplatform.events.protobuf.Events.getDescriptor(), }); internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_waves_events_grpc_GetBlockUpdateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_GetBlockUpdateRequest_descriptor, new java.lang.String[] { "Height", }); internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_waves_events_grpc_GetBlockUpdateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_GetBlockUpdateResponse_descriptor, new java.lang.String[] { "Update", }); internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_GetBlockUpdatesRangeRequest_descriptor, new java.lang.String[] { "FromHeight", "ToHeight", }); internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_GetBlockUpdatesRangeResponse_descriptor, new java.lang.String[] { "Updates", }); internal_static_waves_events_grpc_SubscribeRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_waves_events_grpc_SubscribeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_SubscribeRequest_descriptor, new java.lang.String[] { "FromHeight", "ToHeight", }); internal_static_waves_events_grpc_SubscribeEvent_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_waves_events_grpc_SubscribeEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_events_grpc_SubscribeEvent_descriptor, new java.lang.String[] { "Update", }); com.wavesplatform.events.protobuf.Events.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy