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

com.wavesplatform.api.grpc.BlocksApiOuterClass 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/node/grpc/blocks_api.proto

package com.wavesplatform.api.grpc;

public final class BlocksApiOuterClass {
  private BlocksApiOuterClass() {}
  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 BlockRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:waves.node.grpc.BlockRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bytes block_id = 1;
     * @return The blockId.
     */
    com.google.protobuf.ByteString getBlockId();

    /**
     * 
     * bytes reference = 3;
     * 
* * int32 height = 2; * @return The height. */ int getHeight(); /** * bool include_transactions = 100; * @return The includeTransactions. */ boolean getIncludeTransactions(); public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.RequestCase getRequestCase(); } /** * Protobuf type {@code waves.node.grpc.BlockRequest} */ public static final class BlockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.node.grpc.BlockRequest) BlockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BlockRequest.newBuilder() to construct. private BlockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockRequest( 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: { requestCase_ = 1; request_ = input.readBytes(); break; } case 16: { requestCase_ = 2; request_ = input.readInt32(); break; } case 800: { includeTransactions_ = input.readBool(); 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.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BLOCK_ID(1), HEIGHT(2), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return BLOCK_ID; case 2: return HEIGHT; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int BLOCK_ID_FIELD_NUMBER = 1; /** * bytes block_id = 1; * @return The blockId. */ public com.google.protobuf.ByteString getBlockId() { if (requestCase_ == 1) { return (com.google.protobuf.ByteString) request_; } return com.google.protobuf.ByteString.EMPTY; } public static final int HEIGHT_FIELD_NUMBER = 2; /** *
     * bytes reference = 3;
     * 
* * int32 height = 2; * @return The height. */ public int getHeight() { if (requestCase_ == 2) { return (java.lang.Integer) request_; } return 0; } public static final int INCLUDE_TRANSACTIONS_FIELD_NUMBER = 100; private boolean includeTransactions_; /** * bool include_transactions = 100; * @return The includeTransactions. */ public boolean getIncludeTransactions() { return includeTransactions_; } 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 (requestCase_ == 1) { output.writeBytes( 1, (com.google.protobuf.ByteString) request_); } if (requestCase_ == 2) { output.writeInt32( 2, (int)((java.lang.Integer) request_)); } if (includeTransactions_ != false) { output.writeBool(100, includeTransactions_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 1, (com.google.protobuf.ByteString) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 2, (int)((java.lang.Integer) request_)); } if (includeTransactions_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(100, includeTransactions_); } 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.api.grpc.BlocksApiOuterClass.BlockRequest)) { return super.equals(obj); } com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest other = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest) obj; if (getIncludeTransactions() != other.getIncludeTransactions()) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: if (!getBlockId() .equals(other.getBlockId())) return false; break; case 2: if (getHeight() != other.getHeight()) return false; break; case 0: default: } 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) + INCLUDE_TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeTransactions()); switch (requestCase_) { case 1: hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); break; case 2: hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getHeight(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest 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.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest 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.api.grpc.BlocksApiOuterClass.BlockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest 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.api.grpc.BlocksApiOuterClass.BlockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest 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.api.grpc.BlocksApiOuterClass.BlockRequest 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.node.grpc.BlockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.node.grpc.BlockRequest) com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.Builder.class); } // Construct using com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.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(); includeTransactions_ = false; requestCase_ = 0; request_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRequest_descriptor; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest getDefaultInstanceForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest build() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest buildPartial() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest result = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest(this); if (requestCase_ == 1) { result.request_ = request_; } if (requestCase_ == 2) { result.request_ = request_; } result.includeTransactions_ = includeTransactions_; result.requestCase_ = requestCase_; 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.api.grpc.BlocksApiOuterClass.BlockRequest) { return mergeFrom((com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest other) { if (other == com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest.getDefaultInstance()) return this; if (other.getIncludeTransactions() != false) { setIncludeTransactions(other.getIncludeTransactions()); } switch (other.getRequestCase()) { case BLOCK_ID: { setBlockId(other.getBlockId()); break; } case HEIGHT: { setHeight(other.getHeight()); break; } case REQUEST_NOT_SET: { break; } } 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.api.grpc.BlocksApiOuterClass.BlockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } /** * bytes block_id = 1; * @return The blockId. */ public com.google.protobuf.ByteString getBlockId() { if (requestCase_ == 1) { return (com.google.protobuf.ByteString) request_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes block_id = 1; * @param value The blockId to set. * @return This builder for chaining. */ public Builder setBlockId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } requestCase_ = 1; request_ = value; onChanged(); return this; } /** * bytes block_id = 1; * @return This builder for chaining. */ public Builder clearBlockId() { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } return this; } /** *
       * bytes reference = 3;
       * 
* * int32 height = 2; * @return The height. */ public int getHeight() { if (requestCase_ == 2) { return (java.lang.Integer) request_; } return 0; } /** *
       * bytes reference = 3;
       * 
* * int32 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { requestCase_ = 2; request_ = value; onChanged(); return this; } /** *
       * bytes reference = 3;
       * 
* * int32 height = 2; * @return This builder for chaining. */ public Builder clearHeight() { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } return this; } private boolean includeTransactions_ ; /** * bool include_transactions = 100; * @return The includeTransactions. */ public boolean getIncludeTransactions() { return includeTransactions_; } /** * bool include_transactions = 100; * @param value The includeTransactions to set. * @return This builder for chaining. */ public Builder setIncludeTransactions(boolean value) { includeTransactions_ = value; onChanged(); return this; } /** * bool include_transactions = 100; * @return This builder for chaining. */ public Builder clearIncludeTransactions() { includeTransactions_ = false; 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.node.grpc.BlockRequest) } // @@protoc_insertion_point(class_scope:waves.node.grpc.BlockRequest) private static final com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest(); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockRequest(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.api.grpc.BlocksApiOuterClass.BlockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.node.grpc.BlockRangeRequest) com.google.protobuf.MessageOrBuilder { /** * uint32 from_height = 1; * @return The fromHeight. */ int getFromHeight(); /** * uint32 to_height = 2; * @return The toHeight. */ int getToHeight(); /** * bytes generator_public_key = 3; * @return The generatorPublicKey. */ com.google.protobuf.ByteString getGeneratorPublicKey(); /** * bytes generator_address = 4; * @return The generatorAddress. */ com.google.protobuf.ByteString getGeneratorAddress(); /** * bool include_transactions = 100; * @return The includeTransactions. */ boolean getIncludeTransactions(); public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.FilterCase getFilterCase(); } /** * Protobuf type {@code waves.node.grpc.BlockRangeRequest} */ public static final class BlockRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.node.grpc.BlockRangeRequest) BlockRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BlockRangeRequest.newBuilder() to construct. private BlockRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockRangeRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockRangeRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockRangeRequest( 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.readUInt32(); break; } case 16: { toHeight_ = input.readUInt32(); break; } case 26: { filterCase_ = 3; filter_ = input.readBytes(); break; } case 34: { filterCase_ = 4; filter_ = input.readBytes(); break; } case 800: { includeTransactions_ = input.readBool(); 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.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.Builder.class); } private int filterCase_ = 0; private java.lang.Object filter_; public enum FilterCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GENERATOR_PUBLIC_KEY(3), GENERATOR_ADDRESS(4), FILTER_NOT_SET(0); private final int value; private FilterCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FilterCase valueOf(int value) { return forNumber(value); } public static FilterCase forNumber(int value) { switch (value) { case 3: return GENERATOR_PUBLIC_KEY; case 4: return GENERATOR_ADDRESS; case 0: return FILTER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FilterCase getFilterCase() { return FilterCase.forNumber( filterCase_); } public static final int FROM_HEIGHT_FIELD_NUMBER = 1; private int fromHeight_; /** * uint32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } public static final int TO_HEIGHT_FIELD_NUMBER = 2; private int toHeight_; /** * uint32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } public static final int GENERATOR_PUBLIC_KEY_FIELD_NUMBER = 3; /** * bytes generator_public_key = 3; * @return The generatorPublicKey. */ public com.google.protobuf.ByteString getGeneratorPublicKey() { if (filterCase_ == 3) { return (com.google.protobuf.ByteString) filter_; } return com.google.protobuf.ByteString.EMPTY; } public static final int GENERATOR_ADDRESS_FIELD_NUMBER = 4; /** * bytes generator_address = 4; * @return The generatorAddress. */ public com.google.protobuf.ByteString getGeneratorAddress() { if (filterCase_ == 4) { return (com.google.protobuf.ByteString) filter_; } return com.google.protobuf.ByteString.EMPTY; } public static final int INCLUDE_TRANSACTIONS_FIELD_NUMBER = 100; private boolean includeTransactions_; /** * bool include_transactions = 100; * @return The includeTransactions. */ public boolean getIncludeTransactions() { return includeTransactions_; } 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.writeUInt32(1, fromHeight_); } if (toHeight_ != 0) { output.writeUInt32(2, toHeight_); } if (filterCase_ == 3) { output.writeBytes( 3, (com.google.protobuf.ByteString) filter_); } if (filterCase_ == 4) { output.writeBytes( 4, (com.google.protobuf.ByteString) filter_); } if (includeTransactions_ != false) { output.writeBool(100, includeTransactions_); } 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 .computeUInt32Size(1, fromHeight_); } if (toHeight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, toHeight_); } if (filterCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 3, (com.google.protobuf.ByteString) filter_); } if (filterCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 4, (com.google.protobuf.ByteString) filter_); } if (includeTransactions_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(100, includeTransactions_); } 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest)) { return super.equals(obj); } com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest other = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest) obj; if (getFromHeight() != other.getFromHeight()) return false; if (getToHeight() != other.getToHeight()) return false; if (getIncludeTransactions() != other.getIncludeTransactions()) return false; if (!getFilterCase().equals(other.getFilterCase())) return false; switch (filterCase_) { case 3: if (!getGeneratorPublicKey() .equals(other.getGeneratorPublicKey())) return false; break; case 4: if (!getGeneratorAddress() .equals(other.getGeneratorAddress())) return false; break; case 0: default: } 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 = (37 * hash) + INCLUDE_TRANSACTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeTransactions()); switch (filterCase_) { case 3: hash = (37 * hash) + GENERATOR_PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getGeneratorPublicKey().hashCode(); break; case 4: hash = (37 * hash) + GENERATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getGeneratorAddress().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest 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.node.grpc.BlockRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.node.grpc.BlockRangeRequest) com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.Builder.class); } // Construct using com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.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; includeTransactions_ = false; filterCase_ = 0; filter_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockRangeRequest_descriptor; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest getDefaultInstanceForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest build() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest buildPartial() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest result = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest(this); result.fromHeight_ = fromHeight_; result.toHeight_ = toHeight_; if (filterCase_ == 3) { result.filter_ = filter_; } if (filterCase_ == 4) { result.filter_ = filter_; } result.includeTransactions_ = includeTransactions_; result.filterCase_ = filterCase_; 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest) { return mergeFrom((com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest other) { if (other == com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest.getDefaultInstance()) return this; if (other.getFromHeight() != 0) { setFromHeight(other.getFromHeight()); } if (other.getToHeight() != 0) { setToHeight(other.getToHeight()); } if (other.getIncludeTransactions() != false) { setIncludeTransactions(other.getIncludeTransactions()); } switch (other.getFilterCase()) { case GENERATOR_PUBLIC_KEY: { setGeneratorPublicKey(other.getGeneratorPublicKey()); break; } case GENERATOR_ADDRESS: { setGeneratorAddress(other.getGeneratorAddress()); break; } case FILTER_NOT_SET: { break; } } 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.api.grpc.BlocksApiOuterClass.BlockRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int filterCase_ = 0; private java.lang.Object filter_; public FilterCase getFilterCase() { return FilterCase.forNumber( filterCase_); } public Builder clearFilter() { filterCase_ = 0; filter_ = null; onChanged(); return this; } private int fromHeight_ ; /** * uint32 from_height = 1; * @return The fromHeight. */ public int getFromHeight() { return fromHeight_; } /** * uint32 from_height = 1; * @param value The fromHeight to set. * @return This builder for chaining. */ public Builder setFromHeight(int value) { fromHeight_ = value; onChanged(); return this; } /** * uint32 from_height = 1; * @return This builder for chaining. */ public Builder clearFromHeight() { fromHeight_ = 0; onChanged(); return this; } private int toHeight_ ; /** * uint32 to_height = 2; * @return The toHeight. */ public int getToHeight() { return toHeight_; } /** * uint32 to_height = 2; * @param value The toHeight to set. * @return This builder for chaining. */ public Builder setToHeight(int value) { toHeight_ = value; onChanged(); return this; } /** * uint32 to_height = 2; * @return This builder for chaining. */ public Builder clearToHeight() { toHeight_ = 0; onChanged(); return this; } /** * bytes generator_public_key = 3; * @return The generatorPublicKey. */ public com.google.protobuf.ByteString getGeneratorPublicKey() { if (filterCase_ == 3) { return (com.google.protobuf.ByteString) filter_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes generator_public_key = 3; * @param value The generatorPublicKey to set. * @return This builder for chaining. */ public Builder setGeneratorPublicKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } filterCase_ = 3; filter_ = value; onChanged(); return this; } /** * bytes generator_public_key = 3; * @return This builder for chaining. */ public Builder clearGeneratorPublicKey() { if (filterCase_ == 3) { filterCase_ = 0; filter_ = null; onChanged(); } return this; } /** * bytes generator_address = 4; * @return The generatorAddress. */ public com.google.protobuf.ByteString getGeneratorAddress() { if (filterCase_ == 4) { return (com.google.protobuf.ByteString) filter_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes generator_address = 4; * @param value The generatorAddress to set. * @return This builder for chaining. */ public Builder setGeneratorAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } filterCase_ = 4; filter_ = value; onChanged(); return this; } /** * bytes generator_address = 4; * @return This builder for chaining. */ public Builder clearGeneratorAddress() { if (filterCase_ == 4) { filterCase_ = 0; filter_ = null; onChanged(); } return this; } private boolean includeTransactions_ ; /** * bool include_transactions = 100; * @return The includeTransactions. */ public boolean getIncludeTransactions() { return includeTransactions_; } /** * bool include_transactions = 100; * @param value The includeTransactions to set. * @return This builder for chaining. */ public Builder setIncludeTransactions(boolean value) { includeTransactions_ = value; onChanged(); return this; } /** * bool include_transactions = 100; * @return This builder for chaining. */ public Builder clearIncludeTransactions() { includeTransactions_ = false; 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.node.grpc.BlockRangeRequest) } // @@protoc_insertion_point(class_scope:waves.node.grpc.BlockRangeRequest) private static final com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest(); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockRangeRequest(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.api.grpc.BlocksApiOuterClass.BlockRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockWithHeightOrBuilder extends // @@protoc_insertion_point(interface_extends:waves.node.grpc.BlockWithHeight) com.google.protobuf.MessageOrBuilder { /** * .waves.Block block = 1; * @return Whether the block field is set. */ boolean hasBlock(); /** * .waves.Block block = 1; * @return The block. */ com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock(); /** * .waves.Block block = 1; */ com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder(); /** * uint32 height = 2; * @return The height. */ int getHeight(); } /** * Protobuf type {@code waves.node.grpc.BlockWithHeight} */ public static final class BlockWithHeight extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:waves.node.grpc.BlockWithHeight) BlockWithHeightOrBuilder { private static final long serialVersionUID = 0L; // Use BlockWithHeight.newBuilder() to construct. private BlockWithHeight(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockWithHeight() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockWithHeight(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockWithHeight( 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.protobuf.block.BlockOuterClass.Block.Builder subBuilder = null; if (block_ != null) { subBuilder = block_.toBuilder(); } block_ = input.readMessage(com.wavesplatform.protobuf.block.BlockOuterClass.Block.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(block_); block_ = subBuilder.buildPartial(); } break; } case 16: { height_ = input.readUInt32(); 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.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockWithHeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockWithHeight_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.Builder.class); } public static final int BLOCK_FIELD_NUMBER = 1; private com.wavesplatform.protobuf.block.BlockOuterClass.Block block_; /** * .waves.Block block = 1; * @return Whether the block field is set. */ public boolean hasBlock() { return block_ != null; } /** * .waves.Block block = 1; * @return The block. */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock() { return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_; } /** * .waves.Block block = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() { return getBlock(); } public static final int HEIGHT_FIELD_NUMBER = 2; private int height_; /** * uint32 height = 2; * @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 (block_ != null) { output.writeMessage(1, getBlock()); } if (height_ != 0) { output.writeUInt32(2, height_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (block_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBlock()); } if (height_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, 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.api.grpc.BlocksApiOuterClass.BlockWithHeight)) { return super.equals(obj); } com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight other = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight) obj; if (hasBlock() != other.hasBlock()) return false; if (hasBlock()) { if (!getBlock() .equals(other.getBlock())) return false; } 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(); if (hasBlock()) { hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); } hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getHeight(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight 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.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight 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.api.grpc.BlocksApiOuterClass.BlockWithHeight parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight 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.api.grpc.BlocksApiOuterClass.BlockWithHeight parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight 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.api.grpc.BlocksApiOuterClass.BlockWithHeight 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.node.grpc.BlockWithHeight} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:waves.node.grpc.BlockWithHeight) com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeightOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockWithHeight_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockWithHeight_fieldAccessorTable .ensureFieldAccessorsInitialized( com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.class, com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.Builder.class); } // Construct using com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.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 (blockBuilder_ == null) { block_ = null; } else { block_ = null; blockBuilder_ = null; } height_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.internal_static_waves_node_grpc_BlockWithHeight_descriptor; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight getDefaultInstanceForType() { return com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.getDefaultInstance(); } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight build() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight buildPartial() { com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight result = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight(this); if (blockBuilder_ == null) { result.block_ = block_; } else { result.block_ = blockBuilder_.build(); } 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.api.grpc.BlocksApiOuterClass.BlockWithHeight) { return mergeFrom((com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight other) { if (other == com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight.getDefaultInstance()) return this; if (other.hasBlock()) { mergeBlock(other.getBlock()); } 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.api.grpc.BlocksApiOuterClass.BlockWithHeight parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.wavesplatform.protobuf.block.BlockOuterClass.Block block_; private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> blockBuilder_; /** * .waves.Block block = 1; * @return Whether the block field is set. */ public boolean hasBlock() { return blockBuilder_ != null || block_ != null; } /** * .waves.Block block = 1; * @return The block. */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block getBlock() { if (blockBuilder_ == null) { return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_; } else { return blockBuilder_.getMessage(); } } /** * .waves.Block block = 1; */ public Builder setBlock(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) { if (blockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } block_ = value; onChanged(); } else { blockBuilder_.setMessage(value); } return this; } /** * .waves.Block block = 1; */ public Builder setBlock( com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder builderForValue) { if (blockBuilder_ == null) { block_ = builderForValue.build(); onChanged(); } else { blockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .waves.Block block = 1; */ public Builder mergeBlock(com.wavesplatform.protobuf.block.BlockOuterClass.Block value) { if (blockBuilder_ == null) { if (block_ != null) { block_ = com.wavesplatform.protobuf.block.BlockOuterClass.Block.newBuilder(block_).mergeFrom(value).buildPartial(); } else { block_ = value; } onChanged(); } else { blockBuilder_.mergeFrom(value); } return this; } /** * .waves.Block block = 1; */ public Builder clearBlock() { if (blockBuilder_ == null) { block_ = null; onChanged(); } else { block_ = null; blockBuilder_ = null; } return this; } /** * .waves.Block block = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder getBlockBuilder() { onChanged(); return getBlockFieldBuilder().getBuilder(); } /** * .waves.Block block = 1; */ public com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder getBlockOrBuilder() { if (blockBuilder_ != null) { return blockBuilder_.getMessageOrBuilder(); } else { return block_ == null ? com.wavesplatform.protobuf.block.BlockOuterClass.Block.getDefaultInstance() : block_; } } /** * .waves.Block block = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder> getBlockFieldBuilder() { if (blockBuilder_ == null) { blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.wavesplatform.protobuf.block.BlockOuterClass.Block, com.wavesplatform.protobuf.block.BlockOuterClass.Block.Builder, com.wavesplatform.protobuf.block.BlockOuterClass.BlockOrBuilder>( getBlock(), getParentForChildren(), isClean()); block_ = null; } return blockBuilder_; } private int height_ ; /** * uint32 height = 2; * @return The height. */ public int getHeight() { return height_; } /** * uint32 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { height_ = value; onChanged(); return this; } /** * uint32 height = 2; * @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.node.grpc.BlockWithHeight) } // @@protoc_insertion_point(class_scope:waves.node.grpc.BlockWithHeight) private static final com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight(); } public static com.wavesplatform.api.grpc.BlocksApiOuterClass.BlockWithHeight getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockWithHeight parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockWithHeight(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.api.grpc.BlocksApiOuterClass.BlockWithHeight getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_node_grpc_BlockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_node_grpc_BlockRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_node_grpc_BlockRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_node_grpc_BlockRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_waves_node_grpc_BlockWithHeight_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_waves_node_grpc_BlockWithHeight_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/node/grpc/blocks_api.proto\022\017wave" + "s.node.grpc\032\021waves/block.proto\032\033google/p" + "rotobuf/empty.proto\032\036google/protobuf/wra" + "ppers.proto\"]\n\014BlockRequest\022\022\n\010block_id\030" + "\001 \001(\014H\000\022\020\n\006height\030\002 \001(\005H\000\022\034\n\024include_tra" + "nsactions\030d \001(\010B\t\n\007request\"\240\001\n\021BlockRang" + "eRequest\022\023\n\013from_height\030\001 \001(\r\022\021\n\tto_heig" + "ht\030\002 \001(\r\022\036\n\024generator_public_key\030\003 \001(\014H\000" + "\022\033\n\021generator_address\030\004 \001(\014H\000\022\034\n\024include" + "_transactions\030d \001(\010B\010\n\006filter\">\n\017BlockWi" + "thHeight\022\033\n\005block\030\001 \001(\0132\014.waves.Block\022\016\n" + "\006height\030\002 \001(\r2\373\001\n\tBlocksApi\022K\n\010GetBlock\022" + "\035.waves.node.grpc.BlockRequest\032 .waves.n" + "ode.grpc.BlockWithHeight\022W\n\rGetBlockRang" + "e\022\".waves.node.grpc.BlockRangeRequest\032 ." + "waves.node.grpc.BlockWithHeight0\001\022H\n\020Get" + "CurrentHeight\022\026.google.protobuf.Empty\032\034." + "google.protobuf.UInt32ValueBs\n\032com.waves" + "platform.api.grpcZCgithub.com/wavesplatf" + "orm/gowaves/pkg/grpc/generated/waves/nod" + "e/grpc\252\002\017Waves.Node.Grpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.wavesplatform.protobuf.block.BlockOuterClass.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }); internal_static_waves_node_grpc_BlockRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_waves_node_grpc_BlockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_node_grpc_BlockRequest_descriptor, new java.lang.String[] { "BlockId", "Height", "IncludeTransactions", "Request", }); internal_static_waves_node_grpc_BlockRangeRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_waves_node_grpc_BlockRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_node_grpc_BlockRangeRequest_descriptor, new java.lang.String[] { "FromHeight", "ToHeight", "GeneratorPublicKey", "GeneratorAddress", "IncludeTransactions", "Filter", }); internal_static_waves_node_grpc_BlockWithHeight_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_waves_node_grpc_BlockWithHeight_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_waves_node_grpc_BlockWithHeight_descriptor, new java.lang.String[] { "Block", "Height", }); com.wavesplatform.protobuf.block.BlockOuterClass.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy