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

com.hedera.hashgraph.sdk.proto.RunningHashes Maven / Gradle / Ivy

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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * The running hash of a transaction records and the previous 3 running hashes. All hashes are 48 bytes SHA384 hashes. If the
 * running hashes do not exist yet then they will be default values witch is empty bytes object or zero length byte array.
 * 
* * Protobuf type {@code proto.RunningHashes} */ public final class RunningHashes extends com.google.protobuf.GeneratedMessageLite< RunningHashes, RunningHashes.Builder> implements // @@protoc_insertion_point(message_implements:proto.RunningHashes) RunningHashesOrBuilder { private RunningHashes() { runningHash_ = com.google.protobuf.ByteString.EMPTY; nMinus1RunningHash_ = com.google.protobuf.ByteString.EMPTY; nMinus2RunningHash_ = com.google.protobuf.ByteString.EMPTY; nMinus3RunningHash_ = com.google.protobuf.ByteString.EMPTY; } public static final int RUNNING_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString runningHash_; /** *
   **
   * A running hash of all record stream items
   * 
* * bytes running_hash = 1; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return runningHash_; } /** *
   **
   * A running hash of all record stream items
   * 
* * bytes running_hash = 1; * @param value The runningHash to set. */ private void setRunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); runningHash_ = value; } /** *
   **
   * A running hash of all record stream items
   * 
* * bytes running_hash = 1; */ private void clearRunningHash() { runningHash_ = getDefaultInstance().getRunningHash(); } public static final int N_MINUS_1_RUNNING_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString nMinus1RunningHash_; /** *
   **
   * The previous running hash of all record stream items
   * 
* * bytes n_minus_1_running_hash = 2; * @return The nMinus1RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus1RunningHash() { return nMinus1RunningHash_; } /** *
   **
   * The previous running hash of all record stream items
   * 
* * bytes n_minus_1_running_hash = 2; * @param value The nMinus1RunningHash to set. */ private void setNMinus1RunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); nMinus1RunningHash_ = value; } /** *
   **
   * The previous running hash of all record stream items
   * 
* * bytes n_minus_1_running_hash = 2; */ private void clearNMinus1RunningHash() { nMinus1RunningHash_ = getDefaultInstance().getNMinus1RunningHash(); } public static final int N_MINUS_2_RUNNING_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nMinus2RunningHash_; /** *
   **
   * The previous, previous running hash of all record stream items
   * 
* * bytes n_minus_2_running_hash = 3; * @return The nMinus2RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus2RunningHash() { return nMinus2RunningHash_; } /** *
   **
   * The previous, previous running hash of all record stream items
   * 
* * bytes n_minus_2_running_hash = 3; * @param value The nMinus2RunningHash to set. */ private void setNMinus2RunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); nMinus2RunningHash_ = value; } /** *
   **
   * The previous, previous running hash of all record stream items
   * 
* * bytes n_minus_2_running_hash = 3; */ private void clearNMinus2RunningHash() { nMinus2RunningHash_ = getDefaultInstance().getNMinus2RunningHash(); } public static final int N_MINUS_3_RUNNING_HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString nMinus3RunningHash_; /** *
   **
   * The previous, previous, previous running hash of all record stream items
   * 
* * bytes n_minus_3_running_hash = 4; * @return The nMinus3RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus3RunningHash() { return nMinus3RunningHash_; } /** *
   **
   * The previous, previous, previous running hash of all record stream items
   * 
* * bytes n_minus_3_running_hash = 4; * @param value The nMinus3RunningHash to set. */ private void setNMinus3RunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); nMinus3RunningHash_ = value; } /** *
   **
   * The previous, previous, previous running hash of all record stream items
   * 
* * bytes n_minus_3_running_hash = 4; */ private void clearNMinus3RunningHash() { nMinus3RunningHash_ = getDefaultInstance().getNMinus3RunningHash(); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.RunningHashes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.RunningHashes prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * The running hash of a transaction records and the previous 3 running hashes. All hashes are 48 bytes SHA384 hashes. If the
   * running hashes do not exist yet then they will be default values witch is empty bytes object or zero length byte array.
   * 
* * Protobuf type {@code proto.RunningHashes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.RunningHashes, Builder> implements // @@protoc_insertion_point(builder_implements:proto.RunningHashes) com.hedera.hashgraph.sdk.proto.RunningHashesOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.RunningHashes.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * A running hash of all record stream items
     * 
* * bytes running_hash = 1; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return instance.getRunningHash(); } /** *
     **
     * A running hash of all record stream items
     * 
* * bytes running_hash = 1; * @param value The runningHash to set. * @return This builder for chaining. */ public Builder setRunningHash(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRunningHash(value); return this; } /** *
     **
     * A running hash of all record stream items
     * 
* * bytes running_hash = 1; * @return This builder for chaining. */ public Builder clearRunningHash() { copyOnWrite(); instance.clearRunningHash(); return this; } /** *
     **
     * The previous running hash of all record stream items
     * 
* * bytes n_minus_1_running_hash = 2; * @return The nMinus1RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus1RunningHash() { return instance.getNMinus1RunningHash(); } /** *
     **
     * The previous running hash of all record stream items
     * 
* * bytes n_minus_1_running_hash = 2; * @param value The nMinus1RunningHash to set. * @return This builder for chaining. */ public Builder setNMinus1RunningHash(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNMinus1RunningHash(value); return this; } /** *
     **
     * The previous running hash of all record stream items
     * 
* * bytes n_minus_1_running_hash = 2; * @return This builder for chaining. */ public Builder clearNMinus1RunningHash() { copyOnWrite(); instance.clearNMinus1RunningHash(); return this; } /** *
     **
     * The previous, previous running hash of all record stream items
     * 
* * bytes n_minus_2_running_hash = 3; * @return The nMinus2RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus2RunningHash() { return instance.getNMinus2RunningHash(); } /** *
     **
     * The previous, previous running hash of all record stream items
     * 
* * bytes n_minus_2_running_hash = 3; * @param value The nMinus2RunningHash to set. * @return This builder for chaining. */ public Builder setNMinus2RunningHash(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNMinus2RunningHash(value); return this; } /** *
     **
     * The previous, previous running hash of all record stream items
     * 
* * bytes n_minus_2_running_hash = 3; * @return This builder for chaining. */ public Builder clearNMinus2RunningHash() { copyOnWrite(); instance.clearNMinus2RunningHash(); return this; } /** *
     **
     * The previous, previous, previous running hash of all record stream items
     * 
* * bytes n_minus_3_running_hash = 4; * @return The nMinus3RunningHash. */ @java.lang.Override public com.google.protobuf.ByteString getNMinus3RunningHash() { return instance.getNMinus3RunningHash(); } /** *
     **
     * The previous, previous, previous running hash of all record stream items
     * 
* * bytes n_minus_3_running_hash = 4; * @param value The nMinus3RunningHash to set. * @return This builder for chaining. */ public Builder setNMinus3RunningHash(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setNMinus3RunningHash(value); return this; } /** *
     **
     * The previous, previous, previous running hash of all record stream items
     * 
* * bytes n_minus_3_running_hash = 4; * @return This builder for chaining. */ public Builder clearNMinus3RunningHash() { copyOnWrite(); instance.clearNMinus3RunningHash(); return this; } // @@protoc_insertion_point(builder_scope:proto.RunningHashes) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.RunningHashes(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "runningHash_", "nMinus1RunningHash_", "nMinus2RunningHash_", "nMinus3RunningHash_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\n\u0002\n\u0003" + "\n\u0004\n"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.RunningHashes.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.RunningHashes) private static final com.hedera.hashgraph.sdk.proto.RunningHashes DEFAULT_INSTANCE; static { RunningHashes defaultInstance = new RunningHashes(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( RunningHashes.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.RunningHashes getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy