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

tendermint.version.Types Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: github.com/tendermint/tendermint/version/types.proto

package tendermint.version;

public final class Types {
  private Types() {}
  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 ConsensusOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tendermint.version.Consensus)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint64 block = 1;
     * @return The block.
     */
    long getBlock();

    /**
     * uint64 app = 2;
     * @return The app.
     */
    long getApp();
  }
  /**
   * 
   * Consensus captures the consensus rules for processing a block in the blockchain,
   * including all blockchain data structures and the rules of the application's
   * state transition machine.
   * 
* * Protobuf type {@code tendermint.version.Consensus} */ public static final class Consensus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.version.Consensus) ConsensusOrBuilder { private static final long serialVersionUID = 0L; // Use Consensus.newBuilder() to construct. private Consensus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Consensus() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Consensus(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Consensus( 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: { block_ = input.readUInt64(); break; } case 16: { app_ = input.readUInt64(); 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 tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.version.Types.internal_static_tendermint_version_Consensus_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.version.Types.Consensus.class, tendermint.version.Types.Consensus.Builder.class); } public static final int BLOCK_FIELD_NUMBER = 1; private long block_; /** * uint64 block = 1; * @return The block. */ @java.lang.Override public long getBlock() { return block_; } public static final int APP_FIELD_NUMBER = 2; private long app_; /** * uint64 app = 2; * @return The app. */ @java.lang.Override public long getApp() { return app_; } 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_ != 0L) { output.writeUInt64(1, block_); } if (app_ != 0L) { output.writeUInt64(2, app_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (block_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, block_); } if (app_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, app_); } 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 tendermint.version.Types.Consensus)) { return super.equals(obj); } tendermint.version.Types.Consensus other = (tendermint.version.Types.Consensus) obj; if (getBlock() != other.getBlock()) return false; if (getApp() != other.getApp()) 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) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlock()); hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getApp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.version.Types.Consensus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.version.Types.Consensus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.version.Types.Consensus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.version.Types.Consensus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.version.Types.Consensus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.version.Types.Consensus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.version.Types.Consensus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.version.Types.Consensus 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 tendermint.version.Types.Consensus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.version.Types.Consensus 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 tendermint.version.Types.Consensus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.version.Types.Consensus 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(tendermint.version.Types.Consensus 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; } /** *
     * Consensus captures the consensus rules for processing a block in the blockchain,
     * including all blockchain data structures and the rules of the application's
     * state transition machine.
     * 
* * Protobuf type {@code tendermint.version.Consensus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.version.Consensus) tendermint.version.Types.ConsensusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.version.Types.internal_static_tendermint_version_Consensus_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.version.Types.Consensus.class, tendermint.version.Types.Consensus.Builder.class); } // Construct using tendermint.version.Types.Consensus.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(); block_ = 0L; app_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.version.Types.internal_static_tendermint_version_Consensus_descriptor; } @java.lang.Override public tendermint.version.Types.Consensus getDefaultInstanceForType() { return tendermint.version.Types.Consensus.getDefaultInstance(); } @java.lang.Override public tendermint.version.Types.Consensus build() { tendermint.version.Types.Consensus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.version.Types.Consensus buildPartial() { tendermint.version.Types.Consensus result = new tendermint.version.Types.Consensus(this); result.block_ = block_; result.app_ = app_; 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 tendermint.version.Types.Consensus) { return mergeFrom((tendermint.version.Types.Consensus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.version.Types.Consensus other) { if (other == tendermint.version.Types.Consensus.getDefaultInstance()) return this; if (other.getBlock() != 0L) { setBlock(other.getBlock()); } if (other.getApp() != 0L) { setApp(other.getApp()); } 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 { tendermint.version.Types.Consensus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.version.Types.Consensus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long block_ ; /** * uint64 block = 1; * @return The block. */ @java.lang.Override public long getBlock() { return block_; } /** * uint64 block = 1; * @param value The block to set. * @return This builder for chaining. */ public Builder setBlock(long value) { block_ = value; onChanged(); return this; } /** * uint64 block = 1; * @return This builder for chaining. */ public Builder clearBlock() { block_ = 0L; onChanged(); return this; } private long app_ ; /** * uint64 app = 2; * @return The app. */ @java.lang.Override public long getApp() { return app_; } /** * uint64 app = 2; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp(long value) { app_ = value; onChanged(); return this; } /** * uint64 app = 2; * @return This builder for chaining. */ public Builder clearApp() { app_ = 0L; 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:tendermint.version.Consensus) } // @@protoc_insertion_point(class_scope:tendermint.version.Consensus) private static final tendermint.version.Types.Consensus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.version.Types.Consensus(); } public static tendermint.version.Types.Consensus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Consensus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Consensus(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 tendermint.version.Types.Consensus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_version_Consensus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_version_Consensus_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n4github.com/tendermint/tendermint/versi" + "on/types.proto\022\022tendermint.version\032-gith" + "ub.com/gogo/protobuf/gogoproto/gogo.prot" + "o\"-\n\tConsensus\022\r\n\005block\030\001 \001(\004\022\013\n\003app\030\002 \001" + "(\004:\004\350\240\037\001B;Z9github.com/tendermint/tender" + "mint/proto/tendermint/versionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.hotmoka.protobuf.tendermint.GoGoProtos.getDescriptor(), }); internal_static_tendermint_version_Consensus_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tendermint_version_Consensus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_version_Consensus_descriptor, new java.lang.String[] { "Block", "App", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.equal); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); io.hotmoka.protobuf.tendermint.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy