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

cn.bif.protobuf.Common Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package cn.bif.protobuf;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code protocol.ERRORCODE}
   */
  public enum ERRORCODE
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * ERRCODE_SUCCESS = 0;
     */
    ERRCODE_SUCCESS(0),
    /**
     * ERRCODE_INTERNAL_ERROR = 1;
     */
    ERRCODE_INTERNAL_ERROR(1),
    /**
     * ERRCODE_INVALID_PARAMETER = 2;
     */
    ERRCODE_INVALID_PARAMETER(2),
    /**
     * ERRCODE_ALREADY_EXIST = 3;
     */
    ERRCODE_ALREADY_EXIST(3),
    /**
     * ERRCODE_NOT_EXIST = 4;
     */
    ERRCODE_NOT_EXIST(4),
    /**
     * ERRCODE_TX_TIMEOUT = 5;
     */
    ERRCODE_TX_TIMEOUT(5),
    /**
     * ERRCODE_ACCESS_DENIED = 6;
     */
    ERRCODE_ACCESS_DENIED(6),
    /**
     * ERRCODE_MATH_OVERFLOW = 7;
     */
    ERRCODE_MATH_OVERFLOW(7),
    /**
     * ERRCODE_EXPR_CONDITION_RESULT_FALSE = 20;
     */
    ERRCODE_EXPR_CONDITION_RESULT_FALSE(20),
    /**
     * ERRCODE_EXPR_CONDITION_SYNTAX_ERROR = 21;
     */
    ERRCODE_EXPR_CONDITION_SYNTAX_ERROR(21),
    /**
     * ERRCODE_DOMAIN_NOT_EXIST = 40;
     */
    ERRCODE_DOMAIN_NOT_EXIST(40),
    /**
     * ERRCODE_DB_CLASS_NOT_EXIST = 41;
     */
    ERRCODE_DB_CLASS_NOT_EXIST(41),
    /**
     * ERRCODE_HASH_DB_NAME_ERROR = 42;
     */
    ERRCODE_HASH_DB_NAME_ERROR(42),
    /**
     * ERRCODE_DB_NAME_NOT_EXIST = 43;
     */
    ERRCODE_DB_NAME_NOT_EXIST(43),
    /**
     * 
     * UNUSED
     * 
* * ERRCODE_INVALID_PUBKEY = 90; */ ERRCODE_INVALID_PUBKEY(90), /** * ERRCODE_INVALID_PRIKEY = 91; */ ERRCODE_INVALID_PRIKEY(91), /** * ERRCODE_INVALID_SIGNATURE = 93; */ ERRCODE_INVALID_SIGNATURE(93), /** * ERRCODE_INVALID_ADDRESS = 94; */ ERRCODE_INVALID_ADDRESS(94), /** * ERRCODE_MISSING_OPERATIONS = 97; */ ERRCODE_MISSING_OPERATIONS(97), /** * ERRCODE_TOO_MANY_OPERATIONS = 98; */ ERRCODE_TOO_MANY_OPERATIONS(98), /** * ERRCODE_BAD_SEQUENCE = 99; */ ERRCODE_BAD_SEQUENCE(99), /** *
     *BIFCHAIN LOW RESERVE
     * 
* * ERRCODE_ACCOUNT_LOW_RESERVE = 100; */ ERRCODE_ACCOUNT_LOW_RESERVE(100), /** * ERRCODE_ACCOUNT_SOURCEDEST_EQUAL = 101; */ ERRCODE_ACCOUNT_SOURCEDEST_EQUAL(101), /** * ERRCODE_ACCOUNT_DEST_EXIST = 102; */ ERRCODE_ACCOUNT_DEST_EXIST(102), /** * ERRCODE_ACCOUNT_NOT_EXIST = 103; */ ERRCODE_ACCOUNT_NOT_EXIST(103), /** * ERRCODE_ACCOUNT_INIT_LOW_RESERVE = 106; */ ERRCODE_ACCOUNT_INIT_LOW_RESERVE(106), /** * ERRCODE_FEE_NOT_ENOUGH = 111; */ ERRCODE_FEE_NOT_ENOUGH(111), /** * ERRCODE_FEE_INVALID = 112; */ ERRCODE_FEE_INVALID(112), /** * ERRCODE_OUT_OF_TXCACHE = 114; */ ERRCODE_OUT_OF_TXCACHE(114), /** * ERRCODE_WEIGHT_NOT_VALID = 120; */ ERRCODE_WEIGHT_NOT_VALID(120), /** * ERRCODE_THRESHOLD_NOT_VALID = 121; */ ERRCODE_THRESHOLD_NOT_VALID(121), /** *
     *metadata version error
     * 
* * ERRCODE_INVALID_DATAVERSION = 144; */ ERRCODE_INVALID_DATAVERSION(144), /** * ERRCODE_TX_SIZE_TOO_BIG = 146; */ ERRCODE_TX_SIZE_TOO_BIG(146), /** * ERRCODE_CONTRACT_EXECUTE_FAIL = 151; */ ERRCODE_CONTRACT_EXECUTE_FAIL(151), /** * ERRCODE_CONTRACT_SYNTAX_ERROR = 152; */ ERRCODE_CONTRACT_SYNTAX_ERROR(152), /** * ERRCODE_CONTRACT_TOO_MANY_RECURSION = 153; */ ERRCODE_CONTRACT_TOO_MANY_RECURSION(153), /** * ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS = 154; */ ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS(154), /** * ERRCODE_CONTRACT_EXECUTE_EXPIRED = 155; */ ERRCODE_CONTRACT_EXECUTE_EXPIRED(155), /** * ERRCODE_INVALID_CONTRACT = 156; */ ERRCODE_INVALID_CONTRACT(156), /** *
     *contract version error
     * 
* * ERRCODE_INVALID_CONTRACTVERSION = 157; */ ERRCODE_INVALID_CONTRACTVERSION(157), /** * ERRCODE_TX_INSERT_QUEUE_FAIL = 160; */ ERRCODE_TX_INSERT_QUEUE_FAIL(160), /** * ERRCODE_TRANSFER_NO_AUTH = 161; */ ERRCODE_TRANSFER_NO_AUTH(161), /** * ERROR_DOMAIN_NOT_EXIST = 170; */ ERROR_DOMAIN_NOT_EXIST(170), /** * ERROR_SNAP_SHOT_NOT_EXIST = 180; */ ERROR_SNAP_SHOT_NOT_EXIST(180), /** * ERROR_SNAP_SHOT_DATA_ERROR = 181; */ ERROR_SNAP_SHOT_DATA_ERROR(181), /** * ERROR_GET_DOMAINLIST_TIMEOUT = 182; */ ERROR_GET_DOMAINLIST_TIMEOUT(182), /** * ERROR_RANDOM_NONCE_IN_CACHE = 183; */ ERROR_RANDOM_NONCE_IN_CACHE(183), UNRECOGNIZED(-1), ; /** * ERRCODE_SUCCESS = 0; */ public static final int ERRCODE_SUCCESS_VALUE = 0; /** * ERRCODE_INTERNAL_ERROR = 1; */ public static final int ERRCODE_INTERNAL_ERROR_VALUE = 1; /** * ERRCODE_INVALID_PARAMETER = 2; */ public static final int ERRCODE_INVALID_PARAMETER_VALUE = 2; /** * ERRCODE_ALREADY_EXIST = 3; */ public static final int ERRCODE_ALREADY_EXIST_VALUE = 3; /** * ERRCODE_NOT_EXIST = 4; */ public static final int ERRCODE_NOT_EXIST_VALUE = 4; /** * ERRCODE_TX_TIMEOUT = 5; */ public static final int ERRCODE_TX_TIMEOUT_VALUE = 5; /** * ERRCODE_ACCESS_DENIED = 6; */ public static final int ERRCODE_ACCESS_DENIED_VALUE = 6; /** * ERRCODE_MATH_OVERFLOW = 7; */ public static final int ERRCODE_MATH_OVERFLOW_VALUE = 7; /** * ERRCODE_EXPR_CONDITION_RESULT_FALSE = 20; */ public static final int ERRCODE_EXPR_CONDITION_RESULT_FALSE_VALUE = 20; /** * ERRCODE_EXPR_CONDITION_SYNTAX_ERROR = 21; */ public static final int ERRCODE_EXPR_CONDITION_SYNTAX_ERROR_VALUE = 21; /** * ERRCODE_DOMAIN_NOT_EXIST = 40; */ public static final int ERRCODE_DOMAIN_NOT_EXIST_VALUE = 40; /** * ERRCODE_DB_CLASS_NOT_EXIST = 41; */ public static final int ERRCODE_DB_CLASS_NOT_EXIST_VALUE = 41; /** * ERRCODE_HASH_DB_NAME_ERROR = 42; */ public static final int ERRCODE_HASH_DB_NAME_ERROR_VALUE = 42; /** * ERRCODE_DB_NAME_NOT_EXIST = 43; */ public static final int ERRCODE_DB_NAME_NOT_EXIST_VALUE = 43; /** *
     * UNUSED
     * 
* * ERRCODE_INVALID_PUBKEY = 90; */ public static final int ERRCODE_INVALID_PUBKEY_VALUE = 90; /** * ERRCODE_INVALID_PRIKEY = 91; */ public static final int ERRCODE_INVALID_PRIKEY_VALUE = 91; /** * ERRCODE_INVALID_SIGNATURE = 93; */ public static final int ERRCODE_INVALID_SIGNATURE_VALUE = 93; /** * ERRCODE_INVALID_ADDRESS = 94; */ public static final int ERRCODE_INVALID_ADDRESS_VALUE = 94; /** * ERRCODE_MISSING_OPERATIONS = 97; */ public static final int ERRCODE_MISSING_OPERATIONS_VALUE = 97; /** * ERRCODE_TOO_MANY_OPERATIONS = 98; */ public static final int ERRCODE_TOO_MANY_OPERATIONS_VALUE = 98; /** * ERRCODE_BAD_SEQUENCE = 99; */ public static final int ERRCODE_BAD_SEQUENCE_VALUE = 99; /** *
     *BIFCHAIN LOW RESERVE
     * 
* * ERRCODE_ACCOUNT_LOW_RESERVE = 100; */ public static final int ERRCODE_ACCOUNT_LOW_RESERVE_VALUE = 100; /** * ERRCODE_ACCOUNT_SOURCEDEST_EQUAL = 101; */ public static final int ERRCODE_ACCOUNT_SOURCEDEST_EQUAL_VALUE = 101; /** * ERRCODE_ACCOUNT_DEST_EXIST = 102; */ public static final int ERRCODE_ACCOUNT_DEST_EXIST_VALUE = 102; /** * ERRCODE_ACCOUNT_NOT_EXIST = 103; */ public static final int ERRCODE_ACCOUNT_NOT_EXIST_VALUE = 103; /** * ERRCODE_ACCOUNT_INIT_LOW_RESERVE = 106; */ public static final int ERRCODE_ACCOUNT_INIT_LOW_RESERVE_VALUE = 106; /** * ERRCODE_FEE_NOT_ENOUGH = 111; */ public static final int ERRCODE_FEE_NOT_ENOUGH_VALUE = 111; /** * ERRCODE_FEE_INVALID = 112; */ public static final int ERRCODE_FEE_INVALID_VALUE = 112; /** * ERRCODE_OUT_OF_TXCACHE = 114; */ public static final int ERRCODE_OUT_OF_TXCACHE_VALUE = 114; /** * ERRCODE_WEIGHT_NOT_VALID = 120; */ public static final int ERRCODE_WEIGHT_NOT_VALID_VALUE = 120; /** * ERRCODE_THRESHOLD_NOT_VALID = 121; */ public static final int ERRCODE_THRESHOLD_NOT_VALID_VALUE = 121; /** *
     *metadata version error
     * 
* * ERRCODE_INVALID_DATAVERSION = 144; */ public static final int ERRCODE_INVALID_DATAVERSION_VALUE = 144; /** * ERRCODE_TX_SIZE_TOO_BIG = 146; */ public static final int ERRCODE_TX_SIZE_TOO_BIG_VALUE = 146; /** * ERRCODE_CONTRACT_EXECUTE_FAIL = 151; */ public static final int ERRCODE_CONTRACT_EXECUTE_FAIL_VALUE = 151; /** * ERRCODE_CONTRACT_SYNTAX_ERROR = 152; */ public static final int ERRCODE_CONTRACT_SYNTAX_ERROR_VALUE = 152; /** * ERRCODE_CONTRACT_TOO_MANY_RECURSION = 153; */ public static final int ERRCODE_CONTRACT_TOO_MANY_RECURSION_VALUE = 153; /** * ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS = 154; */ public static final int ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS_VALUE = 154; /** * ERRCODE_CONTRACT_EXECUTE_EXPIRED = 155; */ public static final int ERRCODE_CONTRACT_EXECUTE_EXPIRED_VALUE = 155; /** * ERRCODE_INVALID_CONTRACT = 156; */ public static final int ERRCODE_INVALID_CONTRACT_VALUE = 156; /** *
     *contract version error
     * 
* * ERRCODE_INVALID_CONTRACTVERSION = 157; */ public static final int ERRCODE_INVALID_CONTRACTVERSION_VALUE = 157; /** * ERRCODE_TX_INSERT_QUEUE_FAIL = 160; */ public static final int ERRCODE_TX_INSERT_QUEUE_FAIL_VALUE = 160; /** * ERRCODE_TRANSFER_NO_AUTH = 161; */ public static final int ERRCODE_TRANSFER_NO_AUTH_VALUE = 161; /** * ERROR_DOMAIN_NOT_EXIST = 170; */ public static final int ERROR_DOMAIN_NOT_EXIST_VALUE = 170; /** * ERROR_SNAP_SHOT_NOT_EXIST = 180; */ public static final int ERROR_SNAP_SHOT_NOT_EXIST_VALUE = 180; /** * ERROR_SNAP_SHOT_DATA_ERROR = 181; */ public static final int ERROR_SNAP_SHOT_DATA_ERROR_VALUE = 181; /** * ERROR_GET_DOMAINLIST_TIMEOUT = 182; */ public static final int ERROR_GET_DOMAINLIST_TIMEOUT_VALUE = 182; /** * ERROR_RANDOM_NONCE_IN_CACHE = 183; */ public static final int ERROR_RANDOM_NONCE_IN_CACHE_VALUE = 183; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ERRORCODE valueOf(int value) { return forNumber(value); } public static ERRORCODE forNumber(int value) { switch (value) { case 0: return ERRCODE_SUCCESS; case 1: return ERRCODE_INTERNAL_ERROR; case 2: return ERRCODE_INVALID_PARAMETER; case 3: return ERRCODE_ALREADY_EXIST; case 4: return ERRCODE_NOT_EXIST; case 5: return ERRCODE_TX_TIMEOUT; case 6: return ERRCODE_ACCESS_DENIED; case 7: return ERRCODE_MATH_OVERFLOW; case 20: return ERRCODE_EXPR_CONDITION_RESULT_FALSE; case 21: return ERRCODE_EXPR_CONDITION_SYNTAX_ERROR; case 40: return ERRCODE_DOMAIN_NOT_EXIST; case 41: return ERRCODE_DB_CLASS_NOT_EXIST; case 42: return ERRCODE_HASH_DB_NAME_ERROR; case 43: return ERRCODE_DB_NAME_NOT_EXIST; case 90: return ERRCODE_INVALID_PUBKEY; case 91: return ERRCODE_INVALID_PRIKEY; case 93: return ERRCODE_INVALID_SIGNATURE; case 94: return ERRCODE_INVALID_ADDRESS; case 97: return ERRCODE_MISSING_OPERATIONS; case 98: return ERRCODE_TOO_MANY_OPERATIONS; case 99: return ERRCODE_BAD_SEQUENCE; case 100: return ERRCODE_ACCOUNT_LOW_RESERVE; case 101: return ERRCODE_ACCOUNT_SOURCEDEST_EQUAL; case 102: return ERRCODE_ACCOUNT_DEST_EXIST; case 103: return ERRCODE_ACCOUNT_NOT_EXIST; case 106: return ERRCODE_ACCOUNT_INIT_LOW_RESERVE; case 111: return ERRCODE_FEE_NOT_ENOUGH; case 112: return ERRCODE_FEE_INVALID; case 114: return ERRCODE_OUT_OF_TXCACHE; case 120: return ERRCODE_WEIGHT_NOT_VALID; case 121: return ERRCODE_THRESHOLD_NOT_VALID; case 144: return ERRCODE_INVALID_DATAVERSION; case 146: return ERRCODE_TX_SIZE_TOO_BIG; case 151: return ERRCODE_CONTRACT_EXECUTE_FAIL; case 152: return ERRCODE_CONTRACT_SYNTAX_ERROR; case 153: return ERRCODE_CONTRACT_TOO_MANY_RECURSION; case 154: return ERRCODE_CONTRACT_TOO_MANY_TRANSACTIONS; case 155: return ERRCODE_CONTRACT_EXECUTE_EXPIRED; case 156: return ERRCODE_INVALID_CONTRACT; case 157: return ERRCODE_INVALID_CONTRACTVERSION; case 160: return ERRCODE_TX_INSERT_QUEUE_FAIL; case 161: return ERRCODE_TRANSFER_NO_AUTH; case 170: return ERROR_DOMAIN_NOT_EXIST; case 180: return ERROR_SNAP_SHOT_NOT_EXIST; case 181: return ERROR_SNAP_SHOT_DATA_ERROR; case 182: return ERROR_GET_DOMAINLIST_TIMEOUT; case 183: return ERROR_RANDOM_NONCE_IN_CACHE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ERRORCODE> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ERRORCODE findValueByNumber(int number) { return ERRORCODE.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cn.bif.protobuf.Common.getDescriptor().getEnumTypes().get(0); } private static final ERRORCODE[] VALUES = values(); public static ERRORCODE valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ERRORCODE(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.ERRORCODE) } public interface KeyPairOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.KeyPair) com.google.protobuf.MessageOrBuilder { /** * optional string key = 1; */ java.lang.String getKey(); /** * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string value = 2; */ java.lang.String getValue(); /** * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); /** * optional int64 version = 3; */ long getVersion(); } /** * Protobuf type {@code protocol.KeyPair} */ public static final class KeyPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.KeyPair) KeyPairOrBuilder { // Use KeyPair.newBuilder() to construct. private KeyPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyPair() { key_ = ""; value_ = ""; version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private KeyPair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); value_ = s; break; } case 24: { version_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_KeyPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_KeyPair_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.KeyPair.class, cn.bif.protobuf.Common.KeyPair.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * optional int64 version = 3; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (version_ != 0L) { output.writeInt64(3, version_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!getValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, version_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.KeyPair)) { return super.equals(obj); } cn.bif.protobuf.Common.KeyPair other = (cn.bif.protobuf.Common.KeyPair) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && (getVersion() == other.getVersion()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.KeyPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.KeyPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.KeyPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.KeyPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.KeyPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.KeyPair 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 cn.bif.protobuf.Common.KeyPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.KeyPair 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 cn.bif.protobuf.Common.KeyPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.KeyPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.KeyPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.KeyPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.KeyPair) cn.bif.protobuf.Common.KeyPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_KeyPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_KeyPair_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.KeyPair.class, cn.bif.protobuf.Common.KeyPair.Builder.class); } // Construct using cn.bif.protobuf.Common.KeyPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = ""; value_ = ""; version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_KeyPair_descriptor; } public cn.bif.protobuf.Common.KeyPair getDefaultInstanceForType() { return cn.bif.protobuf.Common.KeyPair.getDefaultInstance(); } public cn.bif.protobuf.Common.KeyPair build() { cn.bif.protobuf.Common.KeyPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.KeyPair buildPartial() { cn.bif.protobuf.Common.KeyPair result = new cn.bif.protobuf.Common.KeyPair(this); result.key_ = key_; result.value_ = value_; result.version_ = version_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.KeyPair) { return mergeFrom((cn.bif.protobuf.Common.KeyPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.KeyPair other) { if (other == cn.bif.protobuf.Common.KeyPair.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.KeyPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.KeyPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * optional string key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional string value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } private long version_ ; /** * optional int64 version = 3; */ public long getVersion() { return version_; } /** * optional int64 version = 3; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * optional int64 version = 3; */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.KeyPair) } // @@protoc_insertion_point(class_scope:protocol.KeyPair) private static final cn.bif.protobuf.Common.KeyPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.KeyPair(); } public static cn.bif.protobuf.Common.KeyPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyPair(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.KeyPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Signature) com.google.protobuf.MessageOrBuilder { /** * optional string public_key = 1; */ java.lang.String getPublicKey(); /** * optional string public_key = 1; */ com.google.protobuf.ByteString getPublicKeyBytes(); /** * optional bytes sign_data = 2; */ com.google.protobuf.ByteString getSignData(); } /** * Protobuf type {@code protocol.Signature} */ public static final class Signature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Signature) SignatureOrBuilder { // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Signature() { publicKey_ = ""; signData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Signature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); publicKey_ = s; break; } case 18: { signData_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Signature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Signature.class, cn.bif.protobuf.Common.Signature.Builder.class); } public static final int PUBLIC_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object publicKey_; /** * optional string public_key = 1; */ public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKey_ = s; return s; } } /** * optional string public_key = 1; */ public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIGN_DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signData_; /** * optional bytes sign_data = 2; */ public com.google.protobuf.ByteString getSignData() { return signData_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPublicKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicKey_); } if (!signData_.isEmpty()) { output.writeBytes(2, signData_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPublicKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicKey_); } if (!signData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signData_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Signature)) { return super.equals(obj); } cn.bif.protobuf.Common.Signature other = (cn.bif.protobuf.Common.Signature) obj; boolean result = true; result = result && getPublicKey() .equals(other.getPublicKey()); result = result && getSignData() .equals(other.getSignData()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getPublicKey().hashCode(); hash = (37 * hash) + SIGN_DATA_FIELD_NUMBER; hash = (53 * hash) + getSignData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Signature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Signature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Signature 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 cn.bif.protobuf.Common.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Signature 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 cn.bif.protobuf.Common.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Signature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Signature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.Signature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Signature) cn.bif.protobuf.Common.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Signature_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Signature.class, cn.bif.protobuf.Common.Signature.Builder.class); } // Construct using cn.bif.protobuf.Common.Signature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); publicKey_ = ""; signData_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Signature_descriptor; } public cn.bif.protobuf.Common.Signature getDefaultInstanceForType() { return cn.bif.protobuf.Common.Signature.getDefaultInstance(); } public cn.bif.protobuf.Common.Signature build() { cn.bif.protobuf.Common.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Signature buildPartial() { cn.bif.protobuf.Common.Signature result = new cn.bif.protobuf.Common.Signature(this); result.publicKey_ = publicKey_; result.signData_ = signData_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Signature) { return mergeFrom((cn.bif.protobuf.Common.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Signature other) { if (other == cn.bif.protobuf.Common.Signature.getDefaultInstance()) return this; if (!other.getPublicKey().isEmpty()) { publicKey_ = other.publicKey_; onChanged(); } if (other.getSignData() != com.google.protobuf.ByteString.EMPTY) { setSignData(other.getSignData()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Signature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Signature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object publicKey_ = ""; /** * optional string public_key = 1; */ public java.lang.String getPublicKey() { java.lang.Object ref = publicKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string public_key = 1; */ public com.google.protobuf.ByteString getPublicKeyBytes() { java.lang.Object ref = publicKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); publicKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string public_key = 1; */ public Builder setPublicKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } publicKey_ = value; onChanged(); return this; } /** * optional string public_key = 1; */ public Builder clearPublicKey() { publicKey_ = getDefaultInstance().getPublicKey(); onChanged(); return this; } /** * optional string public_key = 1; */ public Builder setPublicKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicKey_ = value; onChanged(); return this; } private com.google.protobuf.ByteString signData_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes sign_data = 2; */ public com.google.protobuf.ByteString getSignData() { return signData_; } /** * optional bytes sign_data = 2; */ public Builder setSignData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signData_ = value; onChanged(); return this; } /** * optional bytes sign_data = 2; */ public Builder clearSignData() { signData_ = getDefaultInstance().getSignData(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Signature) } // @@protoc_insertion_point(class_scope:protocol.Signature) private static final cn.bif.protobuf.Common.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Signature(); } public static cn.bif.protobuf.Common.Signature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Signature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Signature(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LedgerUpgradeOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.LedgerUpgrade) com.google.protobuf.MessageOrBuilder { /** *
     *will be processed as required at verion 2.1.0.0
     * 
* * optional int64 new_ledger_version = 1; */ long getNewLedgerVersion(); /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ java.util.List getNewValidatorListList(); /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ int getNewValidatorListCount(); /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ java.lang.String getNewValidatorList(int index); /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ com.google.protobuf.ByteString getNewValidatorListBytes(int index); /** * optional string chain_code = 3; */ java.lang.String getChainCode(); /** * optional string chain_code = 3; */ com.google.protobuf.ByteString getChainCodeBytes(); } /** * Protobuf type {@code protocol.LedgerUpgrade} */ public static final class LedgerUpgrade extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.LedgerUpgrade) LedgerUpgradeOrBuilder { // Use LedgerUpgrade.newBuilder() to construct. private LedgerUpgrade(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LedgerUpgrade() { newLedgerVersion_ = 0L; newValidatorList_ = com.google.protobuf.LazyStringArrayList.EMPTY; chainCode_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LedgerUpgrade( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { newLedgerVersion_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { newValidatorList_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } newValidatorList_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); chainCode_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { newValidatorList_ = newValidatorList_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_LedgerUpgrade_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_LedgerUpgrade_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.LedgerUpgrade.class, cn.bif.protobuf.Common.LedgerUpgrade.Builder.class); } private int bitField0_; public static final int NEW_LEDGER_VERSION_FIELD_NUMBER = 1; private long newLedgerVersion_; /** *
     *will be processed as required at verion 2.1.0.0
     * 
* * optional int64 new_ledger_version = 1; */ public long getNewLedgerVersion() { return newLedgerVersion_; } public static final int NEW_VALIDATOR_LIST_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList newValidatorList_; /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ public com.google.protobuf.ProtocolStringList getNewValidatorListList() { return newValidatorList_; } /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ public int getNewValidatorListCount() { return newValidatorList_.size(); } /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ public java.lang.String getNewValidatorList(int index) { return newValidatorList_.get(index); } /** *
     *for hardfork
     * 
* * repeated string new_validator_list = 2; */ public com.google.protobuf.ByteString getNewValidatorListBytes(int index) { return newValidatorList_.getByteString(index); } public static final int CHAIN_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object chainCode_; /** * optional string chain_code = 3; */ public java.lang.String getChainCode() { java.lang.Object ref = chainCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainCode_ = s; return s; } } /** * optional string chain_code = 3; */ public com.google.protobuf.ByteString getChainCodeBytes() { java.lang.Object ref = chainCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (newLedgerVersion_ != 0L) { output.writeInt64(1, newLedgerVersion_); } for (int i = 0; i < newValidatorList_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newValidatorList_.getRaw(i)); } if (!getChainCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, chainCode_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (newLedgerVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, newLedgerVersion_); } { int dataSize = 0; for (int i = 0; i < newValidatorList_.size(); i++) { dataSize += computeStringSizeNoTag(newValidatorList_.getRaw(i)); } size += dataSize; size += 1 * getNewValidatorListList().size(); } if (!getChainCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, chainCode_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.LedgerUpgrade)) { return super.equals(obj); } cn.bif.protobuf.Common.LedgerUpgrade other = (cn.bif.protobuf.Common.LedgerUpgrade) obj; boolean result = true; result = result && (getNewLedgerVersion() == other.getNewLedgerVersion()); result = result && getNewValidatorListList() .equals(other.getNewValidatorListList()); result = result && getChainCode() .equals(other.getChainCode()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NEW_LEDGER_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewLedgerVersion()); if (getNewValidatorListCount() > 0) { hash = (37 * hash) + NEW_VALIDATOR_LIST_FIELD_NUMBER; hash = (53 * hash) + getNewValidatorListList().hashCode(); } hash = (37 * hash) + CHAIN_CODE_FIELD_NUMBER; hash = (53 * hash) + getChainCode().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.LedgerUpgrade 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 cn.bif.protobuf.Common.LedgerUpgrade parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.LedgerUpgrade 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 cn.bif.protobuf.Common.LedgerUpgrade parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.LedgerUpgrade parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.LedgerUpgrade prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.LedgerUpgrade} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.LedgerUpgrade) cn.bif.protobuf.Common.LedgerUpgradeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_LedgerUpgrade_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_LedgerUpgrade_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.LedgerUpgrade.class, cn.bif.protobuf.Common.LedgerUpgrade.Builder.class); } // Construct using cn.bif.protobuf.Common.LedgerUpgrade.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); newLedgerVersion_ = 0L; newValidatorList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); chainCode_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_LedgerUpgrade_descriptor; } public cn.bif.protobuf.Common.LedgerUpgrade getDefaultInstanceForType() { return cn.bif.protobuf.Common.LedgerUpgrade.getDefaultInstance(); } public cn.bif.protobuf.Common.LedgerUpgrade build() { cn.bif.protobuf.Common.LedgerUpgrade result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.LedgerUpgrade buildPartial() { cn.bif.protobuf.Common.LedgerUpgrade result = new cn.bif.protobuf.Common.LedgerUpgrade(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.newLedgerVersion_ = newLedgerVersion_; if (((bitField0_ & 0x00000002) == 0x00000002)) { newValidatorList_ = newValidatorList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.newValidatorList_ = newValidatorList_; result.chainCode_ = chainCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.LedgerUpgrade) { return mergeFrom((cn.bif.protobuf.Common.LedgerUpgrade)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.LedgerUpgrade other) { if (other == cn.bif.protobuf.Common.LedgerUpgrade.getDefaultInstance()) return this; if (other.getNewLedgerVersion() != 0L) { setNewLedgerVersion(other.getNewLedgerVersion()); } if (!other.newValidatorList_.isEmpty()) { if (newValidatorList_.isEmpty()) { newValidatorList_ = other.newValidatorList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNewValidatorListIsMutable(); newValidatorList_.addAll(other.newValidatorList_); } onChanged(); } if (!other.getChainCode().isEmpty()) { chainCode_ = other.chainCode_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.LedgerUpgrade parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.LedgerUpgrade) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long newLedgerVersion_ ; /** *
       *will be processed as required at verion 2.1.0.0
       * 
* * optional int64 new_ledger_version = 1; */ public long getNewLedgerVersion() { return newLedgerVersion_; } /** *
       *will be processed as required at verion 2.1.0.0
       * 
* * optional int64 new_ledger_version = 1; */ public Builder setNewLedgerVersion(long value) { newLedgerVersion_ = value; onChanged(); return this; } /** *
       *will be processed as required at verion 2.1.0.0
       * 
* * optional int64 new_ledger_version = 1; */ public Builder clearNewLedgerVersion() { newLedgerVersion_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList newValidatorList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNewValidatorListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { newValidatorList_ = new com.google.protobuf.LazyStringArrayList(newValidatorList_); bitField0_ |= 0x00000002; } } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public com.google.protobuf.ProtocolStringList getNewValidatorListList() { return newValidatorList_.getUnmodifiableView(); } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public int getNewValidatorListCount() { return newValidatorList_.size(); } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public java.lang.String getNewValidatorList(int index) { return newValidatorList_.get(index); } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public com.google.protobuf.ByteString getNewValidatorListBytes(int index) { return newValidatorList_.getByteString(index); } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public Builder setNewValidatorList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNewValidatorListIsMutable(); newValidatorList_.set(index, value); onChanged(); return this; } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public Builder addNewValidatorList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNewValidatorListIsMutable(); newValidatorList_.add(value); onChanged(); return this; } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public Builder addAllNewValidatorList( java.lang.Iterable values) { ensureNewValidatorListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, newValidatorList_); onChanged(); return this; } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public Builder clearNewValidatorList() { newValidatorList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       *for hardfork
       * 
* * repeated string new_validator_list = 2; */ public Builder addNewValidatorListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureNewValidatorListIsMutable(); newValidatorList_.add(value); onChanged(); return this; } private java.lang.Object chainCode_ = ""; /** * optional string chain_code = 3; */ public java.lang.String getChainCode() { java.lang.Object ref = chainCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string chain_code = 3; */ public com.google.protobuf.ByteString getChainCodeBytes() { java.lang.Object ref = chainCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string chain_code = 3; */ public Builder setChainCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chainCode_ = value; onChanged(); return this; } /** * optional string chain_code = 3; */ public Builder clearChainCode() { chainCode_ = getDefaultInstance().getChainCode(); onChanged(); return this; } /** * optional string chain_code = 3; */ public Builder setChainCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chainCode_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.LedgerUpgrade) } // @@protoc_insertion_point(class_scope:protocol.LedgerUpgrade) private static final cn.bif.protobuf.Common.LedgerUpgrade DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.LedgerUpgrade(); } public static cn.bif.protobuf.Common.LedgerUpgrade getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LedgerUpgrade parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LedgerUpgrade(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.LedgerUpgrade getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WsMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.WsMessage) com.google.protobuf.MessageOrBuilder { /** *
     *1: ping
     * 
* * optional int64 type = 1; */ long getType(); /** *
     *true :request , false:reponse
     * 
* * optional bool request = 2; */ boolean getRequest(); /** * optional int64 sequence = 3; */ long getSequence(); /** * optional bytes data = 4; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code protocol.WsMessage} */ public static final class WsMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.WsMessage) WsMessageOrBuilder { // Use WsMessage.newBuilder() to construct. private WsMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WsMessage() { type_ = 0L; request_ = false; sequence_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private WsMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { type_ = input.readInt64(); break; } case 16: { request_ = input.readBool(); break; } case 24: { sequence_ = input.readInt64(); break; } case 34: { data_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_WsMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_WsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.WsMessage.class, cn.bif.protobuf.Common.WsMessage.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private long type_; /** *
     *1: ping
     * 
* * optional int64 type = 1; */ public long getType() { return type_; } public static final int REQUEST_FIELD_NUMBER = 2; private boolean request_; /** *
     *true :request , false:reponse
     * 
* * optional bool request = 2; */ public boolean getRequest() { return request_; } public static final int SEQUENCE_FIELD_NUMBER = 3; private long sequence_; /** * optional int64 sequence = 3; */ public long getSequence() { return sequence_; } public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != 0L) { output.writeInt64(1, type_); } if (request_ != false) { output.writeBool(2, request_); } if (sequence_ != 0L) { output.writeInt64(3, sequence_); } if (!data_.isEmpty()) { output.writeBytes(4, data_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, type_); } if (request_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, request_); } if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, sequence_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.WsMessage)) { return super.equals(obj); } cn.bif.protobuf.Common.WsMessage other = (cn.bif.protobuf.Common.WsMessage) obj; boolean result = true; result = result && (getType() == other.getType()); result = result && (getRequest() == other.getRequest()); result = result && (getSequence() == other.getSequence()); result = result && getData() .equals(other.getData()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getType()); hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequest()); hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.WsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.WsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.WsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.WsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.WsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.WsMessage 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 cn.bif.protobuf.Common.WsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.WsMessage 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 cn.bif.protobuf.Common.WsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.WsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.WsMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.WsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.WsMessage) cn.bif.protobuf.Common.WsMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_WsMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_WsMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.WsMessage.class, cn.bif.protobuf.Common.WsMessage.Builder.class); } // Construct using cn.bif.protobuf.Common.WsMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = 0L; request_ = false; sequence_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_WsMessage_descriptor; } public cn.bif.protobuf.Common.WsMessage getDefaultInstanceForType() { return cn.bif.protobuf.Common.WsMessage.getDefaultInstance(); } public cn.bif.protobuf.Common.WsMessage build() { cn.bif.protobuf.Common.WsMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.WsMessage buildPartial() { cn.bif.protobuf.Common.WsMessage result = new cn.bif.protobuf.Common.WsMessage(this); result.type_ = type_; result.request_ = request_; result.sequence_ = sequence_; result.data_ = data_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.WsMessage) { return mergeFrom((cn.bif.protobuf.Common.WsMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.WsMessage other) { if (other == cn.bif.protobuf.Common.WsMessage.getDefaultInstance()) return this; if (other.getType() != 0L) { setType(other.getType()); } if (other.getRequest() != false) { setRequest(other.getRequest()); } if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.WsMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.WsMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long type_ ; /** *
       *1: ping
       * 
* * optional int64 type = 1; */ public long getType() { return type_; } /** *
       *1: ping
       * 
* * optional int64 type = 1; */ public Builder setType(long value) { type_ = value; onChanged(); return this; } /** *
       *1: ping
       * 
* * optional int64 type = 1; */ public Builder clearType() { type_ = 0L; onChanged(); return this; } private boolean request_ ; /** *
       *true :request , false:reponse
       * 
* * optional bool request = 2; */ public boolean getRequest() { return request_; } /** *
       *true :request , false:reponse
       * 
* * optional bool request = 2; */ public Builder setRequest(boolean value) { request_ = value; onChanged(); return this; } /** *
       *true :request , false:reponse
       * 
* * optional bool request = 2; */ public Builder clearRequest() { request_ = false; onChanged(); return this; } private long sequence_ ; /** * optional int64 sequence = 3; */ public long getSequence() { return sequence_; } /** * optional int64 sequence = 3; */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * optional int64 sequence = 3; */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * optional bytes data = 4; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.WsMessage) } // @@protoc_insertion_point(class_scope:protocol.WsMessage) private static final cn.bif.protobuf.Common.WsMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.WsMessage(); } public static cn.bif.protobuf.Common.WsMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WsMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WsMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.WsMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PingOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Ping) com.google.protobuf.MessageOrBuilder { /** * optional int64 nonce = 1; */ long getNonce(); } /** *
   *for ping messsage
   * 
* * Protobuf type {@code protocol.Ping} */ public static final class Ping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Ping) PingOrBuilder { // Use Ping.newBuilder() to construct. private Ping(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Ping() { nonce_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Ping( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Ping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Ping_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Ping.class, cn.bif.protobuf.Common.Ping.Builder.class); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional int64 nonce = 1; */ public long getNonce() { return nonce_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeInt64(1, nonce_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, nonce_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Ping)) { return super.equals(obj); } cn.bif.protobuf.Common.Ping other = (cn.bif.protobuf.Common.Ping) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Ping parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Ping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Ping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Ping parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Ping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Ping 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 cn.bif.protobuf.Common.Ping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Ping 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 cn.bif.protobuf.Common.Ping parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Ping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Ping prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *for ping messsage
     * 
* * Protobuf type {@code protocol.Ping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Ping) cn.bif.protobuf.Common.PingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Ping_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Ping_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Ping.class, cn.bif.protobuf.Common.Ping.Builder.class); } // Construct using cn.bif.protobuf.Common.Ping.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Ping_descriptor; } public cn.bif.protobuf.Common.Ping getDefaultInstanceForType() { return cn.bif.protobuf.Common.Ping.getDefaultInstance(); } public cn.bif.protobuf.Common.Ping build() { cn.bif.protobuf.Common.Ping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Ping buildPartial() { cn.bif.protobuf.Common.Ping result = new cn.bif.protobuf.Common.Ping(this); result.nonce_ = nonce_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Ping) { return mergeFrom((cn.bif.protobuf.Common.Ping)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Ping other) { if (other == cn.bif.protobuf.Common.Ping.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Ping parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Ping) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long nonce_ ; /** * optional int64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional int64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional int64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Ping) } // @@protoc_insertion_point(class_scope:protocol.Ping) private static final cn.bif.protobuf.Common.Ping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Ping(); } public static cn.bif.protobuf.Common.Ping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Ping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Ping(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Ping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PongOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Pong) com.google.protobuf.MessageOrBuilder { /** * optional int64 nonce = 1; */ long getNonce(); } /** *
   *for pong message
   * 
* * Protobuf type {@code protocol.Pong} */ public static final class Pong extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Pong) PongOrBuilder { // Use Pong.newBuilder() to construct. private Pong(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Pong() { nonce_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Pong( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Pong_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Pong_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Pong.class, cn.bif.protobuf.Common.Pong.Builder.class); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional int64 nonce = 1; */ public long getNonce() { return nonce_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeInt64(1, nonce_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, nonce_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Pong)) { return super.equals(obj); } cn.bif.protobuf.Common.Pong other = (cn.bif.protobuf.Common.Pong) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Pong parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Pong parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Pong parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Pong parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Pong parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Pong 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 cn.bif.protobuf.Common.Pong parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Pong 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 cn.bif.protobuf.Common.Pong parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Pong parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Pong prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *for pong message
     * 
* * Protobuf type {@code protocol.Pong} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Pong) cn.bif.protobuf.Common.PongOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Pong_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Pong_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Pong.class, cn.bif.protobuf.Common.Pong.Builder.class); } // Construct using cn.bif.protobuf.Common.Pong.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Pong_descriptor; } public cn.bif.protobuf.Common.Pong getDefaultInstanceForType() { return cn.bif.protobuf.Common.Pong.getDefaultInstance(); } public cn.bif.protobuf.Common.Pong build() { cn.bif.protobuf.Common.Pong result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Pong buildPartial() { cn.bif.protobuf.Common.Pong result = new cn.bif.protobuf.Common.Pong(this); result.nonce_ = nonce_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Pong) { return mergeFrom((cn.bif.protobuf.Common.Pong)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Pong other) { if (other == cn.bif.protobuf.Common.Pong.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Pong parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Pong) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long nonce_ ; /** * optional int64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional int64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional int64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Pong) } // @@protoc_insertion_point(class_scope:protocol.Pong) private static final cn.bif.protobuf.Common.Pong DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Pong(); } public static cn.bif.protobuf.Common.Pong getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Pong parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Pong(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Pong getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NewKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.NewKey) com.google.protobuf.MessageOrBuilder { /** * repeated bytes key = 1; */ java.util.List getKeyList(); /** * repeated bytes key = 1; */ int getKeyCount(); /** * repeated bytes key = 1; */ com.google.protobuf.ByteString getKey(int index); } /** * Protobuf type {@code protocol.NewKey} */ public static final class NewKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.NewKey) NewKeyOrBuilder { // Use NewKey.newBuilder() to construct. private NewKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NewKey() { key_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private NewKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { key_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } key_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { key_ = java.util.Collections.unmodifiableList(key_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_NewKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_NewKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.NewKey.class, cn.bif.protobuf.Common.NewKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private java.util.List key_; /** * repeated bytes key = 1; */ public java.util.List getKeyList() { return key_; } /** * repeated bytes key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated bytes key = 1; */ public com.google.protobuf.ByteString getKey(int index) { return key_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < key_.size(); i++) { output.writeBytes(1, key_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.get(i)); } size += dataSize; size += 1 * getKeyList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.NewKey)) { return super.equals(obj); } cn.bif.protobuf.Common.NewKey other = (cn.bif.protobuf.Common.NewKey) obj; boolean result = true; result = result && getKeyList() .equals(other.getKeyList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.NewKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.NewKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.NewKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.NewKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.NewKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.NewKey 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 cn.bif.protobuf.Common.NewKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.NewKey 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 cn.bif.protobuf.Common.NewKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.NewKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.NewKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.NewKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.NewKey) cn.bif.protobuf.Common.NewKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_NewKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_NewKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.NewKey.class, cn.bif.protobuf.Common.NewKey.Builder.class); } // Construct using cn.bif.protobuf.Common.NewKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_NewKey_descriptor; } public cn.bif.protobuf.Common.NewKey getDefaultInstanceForType() { return cn.bif.protobuf.Common.NewKey.getDefaultInstance(); } public cn.bif.protobuf.Common.NewKey build() { cn.bif.protobuf.Common.NewKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.NewKey buildPartial() { cn.bif.protobuf.Common.NewKey result = new cn.bif.protobuf.Common.NewKey(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.NewKey) { return mergeFrom((cn.bif.protobuf.Common.NewKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.NewKey other) { if (other == cn.bif.protobuf.Common.NewKey.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.NewKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.NewKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } /** * repeated bytes key = 1; */ public java.util.List getKeyList() { return java.util.Collections.unmodifiableList(key_); } /** * repeated bytes key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated bytes key = 1; */ public com.google.protobuf.ByteString getKey(int index) { return key_.get(index); } /** * repeated bytes key = 1; */ public Builder setKey( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * repeated bytes key = 1; */ public Builder addKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * repeated bytes key = 1; */ public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); return this; } /** * repeated bytes key = 1; */ public Builder clearKey() { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.NewKey) } // @@protoc_insertion_point(class_scope:protocol.NewKey) private static final cn.bif.protobuf.Common.NewKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.NewKey(); } public static cn.bif.protobuf.Common.NewKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NewKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NewKey(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.NewKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ModifyKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ModifyKey) com.google.protobuf.MessageOrBuilder { /** * optional bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** * optional bytes value = 2; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code protocol.ModifyKey} */ public static final class ModifyKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ModifyKey) ModifyKeyOrBuilder { // Use ModifyKey.newBuilder() to construct. private ModifyKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ModifyKey() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ModifyKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { key_ = input.readBytes(); break; } case 18: { value_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_ModifyKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_ModifyKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.ModifyKey.class, cn.bif.protobuf.Common.ModifyKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** * optional bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.ModifyKey)) { return super.equals(obj); } cn.bif.protobuf.Common.ModifyKey other = (cn.bif.protobuf.Common.ModifyKey) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.ModifyKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.ModifyKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.ModifyKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.ModifyKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.ModifyKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ModifyKey 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 cn.bif.protobuf.Common.ModifyKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ModifyKey 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 cn.bif.protobuf.Common.ModifyKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ModifyKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.ModifyKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.ModifyKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ModifyKey) cn.bif.protobuf.Common.ModifyKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_ModifyKey_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_ModifyKey_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.ModifyKey.class, cn.bif.protobuf.Common.ModifyKey.Builder.class); } // Construct using cn.bif.protobuf.Common.ModifyKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_ModifyKey_descriptor; } public cn.bif.protobuf.Common.ModifyKey getDefaultInstanceForType() { return cn.bif.protobuf.Common.ModifyKey.getDefaultInstance(); } public cn.bif.protobuf.Common.ModifyKey build() { cn.bif.protobuf.Common.ModifyKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.ModifyKey buildPartial() { cn.bif.protobuf.Common.ModifyKey result = new cn.bif.protobuf.Common.ModifyKey(this); result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.ModifyKey) { return mergeFrom((cn.bif.protobuf.Common.ModifyKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.ModifyKey other) { if (other == cn.bif.protobuf.Common.ModifyKey.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.ModifyKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.ModifyKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * optional bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * optional bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * optional bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.ModifyKey) } // @@protoc_insertion_point(class_scope:protocol.ModifyKey) private static final cn.bif.protobuf.Common.ModifyKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.ModifyKey(); } public static cn.bif.protobuf.Common.ModifyKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyKey(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.ModifyKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Snapshot) com.google.protobuf.MessageOrBuilder { /** * optional .protocol.NewKey new_key = 1; */ boolean hasNewKey(); /** * optional .protocol.NewKey new_key = 1; */ cn.bif.protobuf.Common.NewKey getNewKey(); /** * optional .protocol.NewKey new_key = 1; */ cn.bif.protobuf.Common.NewKeyOrBuilder getNewKeyOrBuilder(); /** * repeated .protocol.ModifyKey modify_key = 2; */ java.util.List getModifyKeyList(); /** * repeated .protocol.ModifyKey modify_key = 2; */ cn.bif.protobuf.Common.ModifyKey getModifyKey(int index); /** * repeated .protocol.ModifyKey modify_key = 2; */ int getModifyKeyCount(); /** * repeated .protocol.ModifyKey modify_key = 2; */ java.util.List getModifyKeyOrBuilderList(); /** * repeated .protocol.ModifyKey modify_key = 2; */ cn.bif.protobuf.Common.ModifyKeyOrBuilder getModifyKeyOrBuilder( int index); /** * optional int64 seq = 3; */ long getSeq(); } /** *
   *for database snapshot
   * 
* * Protobuf type {@code protocol.Snapshot} */ public static final class Snapshot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Snapshot) SnapshotOrBuilder { // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Snapshot() { modifyKey_ = java.util.Collections.emptyList(); seq_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Snapshot( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { cn.bif.protobuf.Common.NewKey.Builder subBuilder = null; if (newKey_ != null) { subBuilder = newKey_.toBuilder(); } newKey_ = input.readMessage(cn.bif.protobuf.Common.NewKey.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(newKey_); newKey_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { modifyKey_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } modifyKey_.add( input.readMessage(cn.bif.protobuf.Common.ModifyKey.parser(), extensionRegistry)); break; } case 24: { seq_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { modifyKey_ = java.util.Collections.unmodifiableList(modifyKey_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Snapshot_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Snapshot.class, cn.bif.protobuf.Common.Snapshot.Builder.class); } private int bitField0_; public static final int NEW_KEY_FIELD_NUMBER = 1; private cn.bif.protobuf.Common.NewKey newKey_; /** * optional .protocol.NewKey new_key = 1; */ public boolean hasNewKey() { return newKey_ != null; } /** * optional .protocol.NewKey new_key = 1; */ public cn.bif.protobuf.Common.NewKey getNewKey() { return newKey_ == null ? cn.bif.protobuf.Common.NewKey.getDefaultInstance() : newKey_; } /** * optional .protocol.NewKey new_key = 1; */ public cn.bif.protobuf.Common.NewKeyOrBuilder getNewKeyOrBuilder() { return getNewKey(); } public static final int MODIFY_KEY_FIELD_NUMBER = 2; private java.util.List modifyKey_; /** * repeated .protocol.ModifyKey modify_key = 2; */ public java.util.List getModifyKeyList() { return modifyKey_; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public java.util.List getModifyKeyOrBuilderList() { return modifyKey_; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public int getModifyKeyCount() { return modifyKey_.size(); } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKey getModifyKey(int index) { return modifyKey_.get(index); } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKeyOrBuilder getModifyKeyOrBuilder( int index) { return modifyKey_.get(index); } public static final int SEQ_FIELD_NUMBER = 3; private long seq_; /** * optional int64 seq = 3; */ public long getSeq() { return seq_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (newKey_ != null) { output.writeMessage(1, getNewKey()); } for (int i = 0; i < modifyKey_.size(); i++) { output.writeMessage(2, modifyKey_.get(i)); } if (seq_ != 0L) { output.writeInt64(3, seq_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (newKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNewKey()); } for (int i = 0; i < modifyKey_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, modifyKey_.get(i)); } if (seq_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, seq_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Snapshot)) { return super.equals(obj); } cn.bif.protobuf.Common.Snapshot other = (cn.bif.protobuf.Common.Snapshot) obj; boolean result = true; result = result && (hasNewKey() == other.hasNewKey()); if (hasNewKey()) { result = result && getNewKey() .equals(other.getNewKey()); } result = result && getModifyKeyList() .equals(other.getModifyKeyList()); result = result && (getSeq() == other.getSeq()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNewKey()) { hash = (37 * hash) + NEW_KEY_FIELD_NUMBER; hash = (53 * hash) + getNewKey().hashCode(); } if (getModifyKeyCount() > 0) { hash = (37 * hash) + MODIFY_KEY_FIELD_NUMBER; hash = (53 * hash) + getModifyKeyList().hashCode(); } hash = (37 * hash) + SEQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeq()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Snapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Snapshot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Snapshot 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 cn.bif.protobuf.Common.Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Snapshot 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 cn.bif.protobuf.Common.Snapshot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     *for database snapshot
     * 
* * Protobuf type {@code protocol.Snapshot} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Snapshot) cn.bif.protobuf.Common.SnapshotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Snapshot_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Snapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Snapshot.class, cn.bif.protobuf.Common.Snapshot.Builder.class); } // Construct using cn.bif.protobuf.Common.Snapshot.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModifyKeyFieldBuilder(); } } public Builder clear() { super.clear(); if (newKeyBuilder_ == null) { newKey_ = null; } else { newKey_ = null; newKeyBuilder_ = null; } if (modifyKeyBuilder_ == null) { modifyKey_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { modifyKeyBuilder_.clear(); } seq_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Snapshot_descriptor; } public cn.bif.protobuf.Common.Snapshot getDefaultInstanceForType() { return cn.bif.protobuf.Common.Snapshot.getDefaultInstance(); } public cn.bif.protobuf.Common.Snapshot build() { cn.bif.protobuf.Common.Snapshot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Snapshot buildPartial() { cn.bif.protobuf.Common.Snapshot result = new cn.bif.protobuf.Common.Snapshot(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (newKeyBuilder_ == null) { result.newKey_ = newKey_; } else { result.newKey_ = newKeyBuilder_.build(); } if (modifyKeyBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { modifyKey_ = java.util.Collections.unmodifiableList(modifyKey_); bitField0_ = (bitField0_ & ~0x00000002); } result.modifyKey_ = modifyKey_; } else { result.modifyKey_ = modifyKeyBuilder_.build(); } result.seq_ = seq_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Snapshot) { return mergeFrom((cn.bif.protobuf.Common.Snapshot)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Snapshot other) { if (other == cn.bif.protobuf.Common.Snapshot.getDefaultInstance()) return this; if (other.hasNewKey()) { mergeNewKey(other.getNewKey()); } if (modifyKeyBuilder_ == null) { if (!other.modifyKey_.isEmpty()) { if (modifyKey_.isEmpty()) { modifyKey_ = other.modifyKey_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModifyKeyIsMutable(); modifyKey_.addAll(other.modifyKey_); } onChanged(); } } else { if (!other.modifyKey_.isEmpty()) { if (modifyKeyBuilder_.isEmpty()) { modifyKeyBuilder_.dispose(); modifyKeyBuilder_ = null; modifyKey_ = other.modifyKey_; bitField0_ = (bitField0_ & ~0x00000002); modifyKeyBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getModifyKeyFieldBuilder() : null; } else { modifyKeyBuilder_.addAllMessages(other.modifyKey_); } } } if (other.getSeq() != 0L) { setSeq(other.getSeq()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Snapshot parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Snapshot) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private cn.bif.protobuf.Common.NewKey newKey_ = null; private com.google.protobuf.SingleFieldBuilderV3< cn.bif.protobuf.Common.NewKey, cn.bif.protobuf.Common.NewKey.Builder, cn.bif.protobuf.Common.NewKeyOrBuilder> newKeyBuilder_; /** * optional .protocol.NewKey new_key = 1; */ public boolean hasNewKey() { return newKeyBuilder_ != null || newKey_ != null; } /** * optional .protocol.NewKey new_key = 1; */ public cn.bif.protobuf.Common.NewKey getNewKey() { if (newKeyBuilder_ == null) { return newKey_ == null ? cn.bif.protobuf.Common.NewKey.getDefaultInstance() : newKey_; } else { return newKeyBuilder_.getMessage(); } } /** * optional .protocol.NewKey new_key = 1; */ public Builder setNewKey(cn.bif.protobuf.Common.NewKey value) { if (newKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } newKey_ = value; onChanged(); } else { newKeyBuilder_.setMessage(value); } return this; } /** * optional .protocol.NewKey new_key = 1; */ public Builder setNewKey( cn.bif.protobuf.Common.NewKey.Builder builderForValue) { if (newKeyBuilder_ == null) { newKey_ = builderForValue.build(); onChanged(); } else { newKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .protocol.NewKey new_key = 1; */ public Builder mergeNewKey(cn.bif.protobuf.Common.NewKey value) { if (newKeyBuilder_ == null) { if (newKey_ != null) { newKey_ = cn.bif.protobuf.Common.NewKey.newBuilder(newKey_).mergeFrom(value).buildPartial(); } else { newKey_ = value; } onChanged(); } else { newKeyBuilder_.mergeFrom(value); } return this; } /** * optional .protocol.NewKey new_key = 1; */ public Builder clearNewKey() { if (newKeyBuilder_ == null) { newKey_ = null; onChanged(); } else { newKey_ = null; newKeyBuilder_ = null; } return this; } /** * optional .protocol.NewKey new_key = 1; */ public cn.bif.protobuf.Common.NewKey.Builder getNewKeyBuilder() { onChanged(); return getNewKeyFieldBuilder().getBuilder(); } /** * optional .protocol.NewKey new_key = 1; */ public cn.bif.protobuf.Common.NewKeyOrBuilder getNewKeyOrBuilder() { if (newKeyBuilder_ != null) { return newKeyBuilder_.getMessageOrBuilder(); } else { return newKey_ == null ? cn.bif.protobuf.Common.NewKey.getDefaultInstance() : newKey_; } } /** * optional .protocol.NewKey new_key = 1; */ private com.google.protobuf.SingleFieldBuilderV3< cn.bif.protobuf.Common.NewKey, cn.bif.protobuf.Common.NewKey.Builder, cn.bif.protobuf.Common.NewKeyOrBuilder> getNewKeyFieldBuilder() { if (newKeyBuilder_ == null) { newKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cn.bif.protobuf.Common.NewKey, cn.bif.protobuf.Common.NewKey.Builder, cn.bif.protobuf.Common.NewKeyOrBuilder>( getNewKey(), getParentForChildren(), isClean()); newKey_ = null; } return newKeyBuilder_; } private java.util.List modifyKey_ = java.util.Collections.emptyList(); private void ensureModifyKeyIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { modifyKey_ = new java.util.ArrayList(modifyKey_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.ModifyKey, cn.bif.protobuf.Common.ModifyKey.Builder, cn.bif.protobuf.Common.ModifyKeyOrBuilder> modifyKeyBuilder_; /** * repeated .protocol.ModifyKey modify_key = 2; */ public java.util.List getModifyKeyList() { if (modifyKeyBuilder_ == null) { return java.util.Collections.unmodifiableList(modifyKey_); } else { return modifyKeyBuilder_.getMessageList(); } } /** * repeated .protocol.ModifyKey modify_key = 2; */ public int getModifyKeyCount() { if (modifyKeyBuilder_ == null) { return modifyKey_.size(); } else { return modifyKeyBuilder_.getCount(); } } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKey getModifyKey(int index) { if (modifyKeyBuilder_ == null) { return modifyKey_.get(index); } else { return modifyKeyBuilder_.getMessage(index); } } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder setModifyKey( int index, cn.bif.protobuf.Common.ModifyKey value) { if (modifyKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModifyKeyIsMutable(); modifyKey_.set(index, value); onChanged(); } else { modifyKeyBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder setModifyKey( int index, cn.bif.protobuf.Common.ModifyKey.Builder builderForValue) { if (modifyKeyBuilder_ == null) { ensureModifyKeyIsMutable(); modifyKey_.set(index, builderForValue.build()); onChanged(); } else { modifyKeyBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder addModifyKey(cn.bif.protobuf.Common.ModifyKey value) { if (modifyKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModifyKeyIsMutable(); modifyKey_.add(value); onChanged(); } else { modifyKeyBuilder_.addMessage(value); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder addModifyKey( int index, cn.bif.protobuf.Common.ModifyKey value) { if (modifyKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureModifyKeyIsMutable(); modifyKey_.add(index, value); onChanged(); } else { modifyKeyBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder addModifyKey( cn.bif.protobuf.Common.ModifyKey.Builder builderForValue) { if (modifyKeyBuilder_ == null) { ensureModifyKeyIsMutable(); modifyKey_.add(builderForValue.build()); onChanged(); } else { modifyKeyBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder addModifyKey( int index, cn.bif.protobuf.Common.ModifyKey.Builder builderForValue) { if (modifyKeyBuilder_ == null) { ensureModifyKeyIsMutable(); modifyKey_.add(index, builderForValue.build()); onChanged(); } else { modifyKeyBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder addAllModifyKey( java.lang.Iterable values) { if (modifyKeyBuilder_ == null) { ensureModifyKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modifyKey_); onChanged(); } else { modifyKeyBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder clearModifyKey() { if (modifyKeyBuilder_ == null) { modifyKey_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { modifyKeyBuilder_.clear(); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public Builder removeModifyKey(int index) { if (modifyKeyBuilder_ == null) { ensureModifyKeyIsMutable(); modifyKey_.remove(index); onChanged(); } else { modifyKeyBuilder_.remove(index); } return this; } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKey.Builder getModifyKeyBuilder( int index) { return getModifyKeyFieldBuilder().getBuilder(index); } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKeyOrBuilder getModifyKeyOrBuilder( int index) { if (modifyKeyBuilder_ == null) { return modifyKey_.get(index); } else { return modifyKeyBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.ModifyKey modify_key = 2; */ public java.util.List getModifyKeyOrBuilderList() { if (modifyKeyBuilder_ != null) { return modifyKeyBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(modifyKey_); } } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKey.Builder addModifyKeyBuilder() { return getModifyKeyFieldBuilder().addBuilder( cn.bif.protobuf.Common.ModifyKey.getDefaultInstance()); } /** * repeated .protocol.ModifyKey modify_key = 2; */ public cn.bif.protobuf.Common.ModifyKey.Builder addModifyKeyBuilder( int index) { return getModifyKeyFieldBuilder().addBuilder( index, cn.bif.protobuf.Common.ModifyKey.getDefaultInstance()); } /** * repeated .protocol.ModifyKey modify_key = 2; */ public java.util.List getModifyKeyBuilderList() { return getModifyKeyFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.ModifyKey, cn.bif.protobuf.Common.ModifyKey.Builder, cn.bif.protobuf.Common.ModifyKeyOrBuilder> getModifyKeyFieldBuilder() { if (modifyKeyBuilder_ == null) { modifyKeyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.ModifyKey, cn.bif.protobuf.Common.ModifyKey.Builder, cn.bif.protobuf.Common.ModifyKeyOrBuilder>( modifyKey_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); modifyKey_ = null; } return modifyKeyBuilder_; } private long seq_ ; /** * optional int64 seq = 3; */ public long getSeq() { return seq_; } /** * optional int64 seq = 3; */ public Builder setSeq(long value) { seq_ = value; onChanged(); return this; } /** * optional int64 seq = 3; */ public Builder clearSeq() { seq_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Snapshot) } // @@protoc_insertion_point(class_scope:protocol.Snapshot) private static final cn.bif.protobuf.Common.Snapshot DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Snapshot(); } public static cn.bif.protobuf.Common.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Snapshot(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatorOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Validator) com.google.protobuf.MessageOrBuilder { /** * optional string address = 1; */ java.lang.String getAddress(); /** * optional string address = 1; */ com.google.protobuf.ByteString getAddressBytes(); /** * optional int64 pledge_coin_amount = 2; */ long getPledgeCoinAmount(); } /** * Protobuf type {@code protocol.Validator} */ public static final class Validator extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Validator) ValidatorOrBuilder { // Use Validator.newBuilder() to construct. private Validator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Validator() { address_ = ""; pledgeCoinAmount_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Validator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 16: { pledgeCoinAmount_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Validator_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Validator_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Validator.class, cn.bif.protobuf.Common.Validator.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** * optional string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** * optional string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLEDGE_COIN_AMOUNT_FIELD_NUMBER = 2; private long pledgeCoinAmount_; /** * optional int64 pledge_coin_amount = 2; */ public long getPledgeCoinAmount() { return pledgeCoinAmount_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (pledgeCoinAmount_ != 0L) { output.writeInt64(2, pledgeCoinAmount_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (pledgeCoinAmount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pledgeCoinAmount_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Validator)) { return super.equals(obj); } cn.bif.protobuf.Common.Validator other = (cn.bif.protobuf.Common.Validator) obj; boolean result = true; result = result && getAddress() .equals(other.getAddress()); result = result && (getPledgeCoinAmount() == other.getPledgeCoinAmount()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + PLEDGE_COIN_AMOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPledgeCoinAmount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Validator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Validator parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Validator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Validator parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Validator parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Validator 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 cn.bif.protobuf.Common.Validator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Validator 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 cn.bif.protobuf.Common.Validator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Validator parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Validator prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.Validator} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Validator) cn.bif.protobuf.Common.ValidatorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Validator_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Validator_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Validator.class, cn.bif.protobuf.Common.Validator.Builder.class); } // Construct using cn.bif.protobuf.Common.Validator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); address_ = ""; pledgeCoinAmount_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Validator_descriptor; } public cn.bif.protobuf.Common.Validator getDefaultInstanceForType() { return cn.bif.protobuf.Common.Validator.getDefaultInstance(); } public cn.bif.protobuf.Common.Validator build() { cn.bif.protobuf.Common.Validator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Validator buildPartial() { cn.bif.protobuf.Common.Validator result = new cn.bif.protobuf.Common.Validator(this); result.address_ = address_; result.pledgeCoinAmount_ = pledgeCoinAmount_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Validator) { return mergeFrom((cn.bif.protobuf.Common.Validator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Validator other) { if (other == cn.bif.protobuf.Common.Validator.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (other.getPledgeCoinAmount() != 0L) { setPledgeCoinAmount(other.getPledgeCoinAmount()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Validator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Validator) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object address_ = ""; /** * optional string address = 1; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string address = 1; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string address = 1; */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** * optional string address = 1; */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * optional string address = 1; */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private long pledgeCoinAmount_ ; /** * optional int64 pledge_coin_amount = 2; */ public long getPledgeCoinAmount() { return pledgeCoinAmount_; } /** * optional int64 pledge_coin_amount = 2; */ public Builder setPledgeCoinAmount(long value) { pledgeCoinAmount_ = value; onChanged(); return this; } /** * optional int64 pledge_coin_amount = 2; */ public Builder clearPledgeCoinAmount() { pledgeCoinAmount_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Validator) } // @@protoc_insertion_point(class_scope:protocol.Validator) private static final cn.bif.protobuf.Common.Validator DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Validator(); } public static cn.bif.protobuf.Common.Validator getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Validator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Validator(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Validator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatorSetOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.ValidatorSet) com.google.protobuf.MessageOrBuilder { /** * repeated .protocol.Validator validators = 1; */ java.util.List getValidatorsList(); /** * repeated .protocol.Validator validators = 1; */ cn.bif.protobuf.Common.Validator getValidators(int index); /** * repeated .protocol.Validator validators = 1; */ int getValidatorsCount(); /** * repeated .protocol.Validator validators = 1; */ java.util.List getValidatorsOrBuilderList(); /** * repeated .protocol.Validator validators = 1; */ cn.bif.protobuf.Common.ValidatorOrBuilder getValidatorsOrBuilder( int index); } /** * Protobuf type {@code protocol.ValidatorSet} */ public static final class ValidatorSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.ValidatorSet) ValidatorSetOrBuilder { // Use ValidatorSet.newBuilder() to construct. private ValidatorSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatorSet() { validators_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ValidatorSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } validators_.add( input.readMessage(cn.bif.protobuf.Common.Validator.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { validators_ = java.util.Collections.unmodifiableList(validators_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_ValidatorSet_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_ValidatorSet_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.ValidatorSet.class, cn.bif.protobuf.Common.ValidatorSet.Builder.class); } public static final int VALIDATORS_FIELD_NUMBER = 1; private java.util.List validators_; /** * repeated .protocol.Validator validators = 1; */ public java.util.List getValidatorsList() { return validators_; } /** * repeated .protocol.Validator validators = 1; */ public java.util.List getValidatorsOrBuilderList() { return validators_; } /** * repeated .protocol.Validator validators = 1; */ public int getValidatorsCount() { return validators_.size(); } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.Validator getValidators(int index) { return validators_.get(index); } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.ValidatorOrBuilder getValidatorsOrBuilder( int index) { return validators_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < validators_.size(); i++) { output.writeMessage(1, validators_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < validators_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, validators_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.ValidatorSet)) { return super.equals(obj); } cn.bif.protobuf.Common.ValidatorSet other = (cn.bif.protobuf.Common.ValidatorSet) obj; boolean result = true; result = result && getValidatorsList() .equals(other.getValidatorsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getValidatorsCount() > 0) { hash = (37 * hash) + VALIDATORS_FIELD_NUMBER; hash = (53 * hash) + getValidatorsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.ValidatorSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.ValidatorSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.ValidatorSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.ValidatorSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.ValidatorSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ValidatorSet 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 cn.bif.protobuf.Common.ValidatorSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ValidatorSet 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 cn.bif.protobuf.Common.ValidatorSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.ValidatorSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.ValidatorSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.ValidatorSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.ValidatorSet) cn.bif.protobuf.Common.ValidatorSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_ValidatorSet_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_ValidatorSet_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.ValidatorSet.class, cn.bif.protobuf.Common.ValidatorSet.Builder.class); } // Construct using cn.bif.protobuf.Common.ValidatorSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValidatorsFieldBuilder(); } } public Builder clear() { super.clear(); if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { validatorsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_ValidatorSet_descriptor; } public cn.bif.protobuf.Common.ValidatorSet getDefaultInstanceForType() { return cn.bif.protobuf.Common.ValidatorSet.getDefaultInstance(); } public cn.bif.protobuf.Common.ValidatorSet build() { cn.bif.protobuf.Common.ValidatorSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.ValidatorSet buildPartial() { cn.bif.protobuf.Common.ValidatorSet result = new cn.bif.protobuf.Common.ValidatorSet(this); int from_bitField0_ = bitField0_; if (validatorsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = java.util.Collections.unmodifiableList(validators_); bitField0_ = (bitField0_ & ~0x00000001); } result.validators_ = validators_; } else { result.validators_ = validatorsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.ValidatorSet) { return mergeFrom((cn.bif.protobuf.Common.ValidatorSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.ValidatorSet other) { if (other == cn.bif.protobuf.Common.ValidatorSet.getDefaultInstance()) return this; if (validatorsBuilder_ == null) { if (!other.validators_.isEmpty()) { if (validators_.isEmpty()) { validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValidatorsIsMutable(); validators_.addAll(other.validators_); } onChanged(); } } else { if (!other.validators_.isEmpty()) { if (validatorsBuilder_.isEmpty()) { validatorsBuilder_.dispose(); validatorsBuilder_ = null; validators_ = other.validators_; bitField0_ = (bitField0_ & ~0x00000001); validatorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidatorsFieldBuilder() : null; } else { validatorsBuilder_.addAllMessages(other.validators_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.ValidatorSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.ValidatorSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List validators_ = java.util.Collections.emptyList(); private void ensureValidatorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { validators_ = new java.util.ArrayList(validators_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.Validator, cn.bif.protobuf.Common.Validator.Builder, cn.bif.protobuf.Common.ValidatorOrBuilder> validatorsBuilder_; /** * repeated .protocol.Validator validators = 1; */ public java.util.List getValidatorsList() { if (validatorsBuilder_ == null) { return java.util.Collections.unmodifiableList(validators_); } else { return validatorsBuilder_.getMessageList(); } } /** * repeated .protocol.Validator validators = 1; */ public int getValidatorsCount() { if (validatorsBuilder_ == null) { return validators_.size(); } else { return validatorsBuilder_.getCount(); } } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.Validator getValidators(int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessage(index); } } /** * repeated .protocol.Validator validators = 1; */ public Builder setValidators( int index, cn.bif.protobuf.Common.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.set(index, value); onChanged(); } else { validatorsBuilder_.setMessage(index, value); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder setValidators( int index, cn.bif.protobuf.Common.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.set(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder addValidators(cn.bif.protobuf.Common.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(value); onChanged(); } else { validatorsBuilder_.addMessage(value); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder addValidators( int index, cn.bif.protobuf.Common.Validator value) { if (validatorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValidatorsIsMutable(); validators_.add(index, value); onChanged(); } else { validatorsBuilder_.addMessage(index, value); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder addValidators( cn.bif.protobuf.Common.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder addValidators( int index, cn.bif.protobuf.Common.Validator.Builder builderForValue) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.add(index, builderForValue.build()); onChanged(); } else { validatorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder addAllValidators( java.lang.Iterable values) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validators_); onChanged(); } else { validatorsBuilder_.addAllMessages(values); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder clearValidators() { if (validatorsBuilder_ == null) { validators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { validatorsBuilder_.clear(); } return this; } /** * repeated .protocol.Validator validators = 1; */ public Builder removeValidators(int index) { if (validatorsBuilder_ == null) { ensureValidatorsIsMutable(); validators_.remove(index); onChanged(); } else { validatorsBuilder_.remove(index); } return this; } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.Validator.Builder getValidatorsBuilder( int index) { return getValidatorsFieldBuilder().getBuilder(index); } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.ValidatorOrBuilder getValidatorsOrBuilder( int index) { if (validatorsBuilder_ == null) { return validators_.get(index); } else { return validatorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .protocol.Validator validators = 1; */ public java.util.List getValidatorsOrBuilderList() { if (validatorsBuilder_ != null) { return validatorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(validators_); } } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.Validator.Builder addValidatorsBuilder() { return getValidatorsFieldBuilder().addBuilder( cn.bif.protobuf.Common.Validator.getDefaultInstance()); } /** * repeated .protocol.Validator validators = 1; */ public cn.bif.protobuf.Common.Validator.Builder addValidatorsBuilder( int index) { return getValidatorsFieldBuilder().addBuilder( index, cn.bif.protobuf.Common.Validator.getDefaultInstance()); } /** * repeated .protocol.Validator validators = 1; */ public java.util.List getValidatorsBuilderList() { return getValidatorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.Validator, cn.bif.protobuf.Common.Validator.Builder, cn.bif.protobuf.Common.ValidatorOrBuilder> getValidatorsFieldBuilder() { if (validatorsBuilder_ == null) { validatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cn.bif.protobuf.Common.Validator, cn.bif.protobuf.Common.Validator.Builder, cn.bif.protobuf.Common.ValidatorOrBuilder>( validators_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); validators_ = null; } return validatorsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.ValidatorSet) } // @@protoc_insertion_point(class_scope:protocol.ValidatorSet) private static final cn.bif.protobuf.Common.ValidatorSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.ValidatorSet(); } public static cn.bif.protobuf.Common.ValidatorSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ValidatorSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatorSet(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.ValidatorSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FeeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.FeeConfig) com.google.protobuf.MessageOrBuilder { /** * optional int64 gas_price = 1; */ long getGasPrice(); /** * optional int64 base_reserve = 2; */ long getBaseReserve(); } /** * Protobuf type {@code protocol.FeeConfig} */ public static final class FeeConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.FeeConfig) FeeConfigOrBuilder { // Use FeeConfig.newBuilder() to construct. private FeeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FeeConfig() { gasPrice_ = 0L; baseReserve_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private FeeConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { gasPrice_ = input.readInt64(); break; } case 16: { baseReserve_ = input.readInt64(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_FeeConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_FeeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.FeeConfig.class, cn.bif.protobuf.Common.FeeConfig.Builder.class); } /** * Protobuf enum {@code protocol.FeeConfig.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * GAS_PRICE = 1; */ GAS_PRICE(1), /** * BASE_RESERVE = 2; */ BASE_RESERVE(2), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * GAS_PRICE = 1; */ public static final int GAS_PRICE_VALUE = 1; /** * BASE_RESERVE = 2; */ public static final int BASE_RESERVE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } public static Type forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return GAS_PRICE; case 2: return BASE_RESERVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return cn.bif.protobuf.Common.FeeConfig.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.FeeConfig.Type) } public static final int GAS_PRICE_FIELD_NUMBER = 1; private long gasPrice_; /** * optional int64 gas_price = 1; */ public long getGasPrice() { return gasPrice_; } public static final int BASE_RESERVE_FIELD_NUMBER = 2; private long baseReserve_; /** * optional int64 base_reserve = 2; */ public long getBaseReserve() { return baseReserve_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gasPrice_ != 0L) { output.writeInt64(1, gasPrice_); } if (baseReserve_ != 0L) { output.writeInt64(2, baseReserve_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (gasPrice_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, gasPrice_); } if (baseReserve_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, baseReserve_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.FeeConfig)) { return super.equals(obj); } cn.bif.protobuf.Common.FeeConfig other = (cn.bif.protobuf.Common.FeeConfig) obj; boolean result = true; result = result && (getGasPrice() == other.getGasPrice()); result = result && (getBaseReserve() == other.getBaseReserve()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + GAS_PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGasPrice()); hash = (37 * hash) + BASE_RESERVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBaseReserve()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.FeeConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.FeeConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.FeeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.FeeConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.FeeConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.FeeConfig 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 cn.bif.protobuf.Common.FeeConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.FeeConfig 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 cn.bif.protobuf.Common.FeeConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.FeeConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.FeeConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.FeeConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.FeeConfig) cn.bif.protobuf.Common.FeeConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_FeeConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_FeeConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.FeeConfig.class, cn.bif.protobuf.Common.FeeConfig.Builder.class); } // Construct using cn.bif.protobuf.Common.FeeConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); gasPrice_ = 0L; baseReserve_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_FeeConfig_descriptor; } public cn.bif.protobuf.Common.FeeConfig getDefaultInstanceForType() { return cn.bif.protobuf.Common.FeeConfig.getDefaultInstance(); } public cn.bif.protobuf.Common.FeeConfig build() { cn.bif.protobuf.Common.FeeConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.FeeConfig buildPartial() { cn.bif.protobuf.Common.FeeConfig result = new cn.bif.protobuf.Common.FeeConfig(this); result.gasPrice_ = gasPrice_; result.baseReserve_ = baseReserve_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.FeeConfig) { return mergeFrom((cn.bif.protobuf.Common.FeeConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.FeeConfig other) { if (other == cn.bif.protobuf.Common.FeeConfig.getDefaultInstance()) return this; if (other.getGasPrice() != 0L) { setGasPrice(other.getGasPrice()); } if (other.getBaseReserve() != 0L) { setBaseReserve(other.getBaseReserve()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.FeeConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.FeeConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long gasPrice_ ; /** * optional int64 gas_price = 1; */ public long getGasPrice() { return gasPrice_; } /** * optional int64 gas_price = 1; */ public Builder setGasPrice(long value) { gasPrice_ = value; onChanged(); return this; } /** * optional int64 gas_price = 1; */ public Builder clearGasPrice() { gasPrice_ = 0L; onChanged(); return this; } private long baseReserve_ ; /** * optional int64 base_reserve = 2; */ public long getBaseReserve() { return baseReserve_; } /** * optional int64 base_reserve = 2; */ public Builder setBaseReserve(long value) { baseReserve_ = value; onChanged(); return this; } /** * optional int64 base_reserve = 2; */ public Builder clearBaseReserve() { baseReserve_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.FeeConfig) } // @@protoc_insertion_point(class_scope:protocol.FeeConfig) private static final cn.bif.protobuf.Common.FeeConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.FeeConfig(); } public static cn.bif.protobuf.Common.FeeConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FeeConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FeeConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.FeeConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface Int32ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.Int32Value) com.google.protobuf.MessageOrBuilder { /** * optional int32 value = 1; */ int getValue(); } /** * Protobuf type {@code protocol.Int32Value} */ public static final class Int32Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.Int32Value) Int32ValueOrBuilder { // Use Int32Value.newBuilder() to construct. private Int32Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Int32Value() { value_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Int32Value( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { value_ = input.readInt32(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Int32Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Int32Value_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Int32Value.class, cn.bif.protobuf.Common.Int32Value.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private int value_; /** * optional int32 value = 1; */ public int getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (value_ != 0) { output.writeInt32(1, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (value_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, value_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.Int32Value)) { return super.equals(obj); } cn.bif.protobuf.Common.Int32Value other = (cn.bif.protobuf.Common.Int32Value) obj; boolean result = true; result = result && (getValue() == other.getValue()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.Int32Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Int32Value parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Int32Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.Int32Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.Int32Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Int32Value 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 cn.bif.protobuf.Common.Int32Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Int32Value 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 cn.bif.protobuf.Common.Int32Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.Int32Value parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.Int32Value prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.Int32Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.Int32Value) cn.bif.protobuf.Common.Int32ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_Int32Value_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_Int32Value_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.Int32Value.class, cn.bif.protobuf.Common.Int32Value.Builder.class); } // Construct using cn.bif.protobuf.Common.Int32Value.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_Int32Value_descriptor; } public cn.bif.protobuf.Common.Int32Value getDefaultInstanceForType() { return cn.bif.protobuf.Common.Int32Value.getDefaultInstance(); } public cn.bif.protobuf.Common.Int32Value build() { cn.bif.protobuf.Common.Int32Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.Int32Value buildPartial() { cn.bif.protobuf.Common.Int32Value result = new cn.bif.protobuf.Common.Int32Value(this); result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.Int32Value) { return mergeFrom((cn.bif.protobuf.Common.Int32Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.Int32Value other) { if (other == cn.bif.protobuf.Common.Int32Value.getDefaultInstance()) return this; if (other.getValue() != 0) { setValue(other.getValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.Int32Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.Int32Value) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int value_ ; /** * optional int32 value = 1; */ public int getValue() { return value_; } /** * optional int32 value = 1; */ public Builder setValue(int value) { value_ = value; onChanged(); return this; } /** * optional int32 value = 1; */ public Builder clearValue() { value_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.Int32Value) } // @@protoc_insertion_point(class_scope:protocol.Int32Value) private static final cn.bif.protobuf.Common.Int32Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.Int32Value(); } public static cn.bif.protobuf.Common.Int32Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Int32Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Int32Value(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.Int32Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BoolValueOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.BoolValue) com.google.protobuf.MessageOrBuilder { /** * optional bool value = 1; */ boolean getValue(); } /** * Protobuf type {@code protocol.BoolValue} */ public static final class BoolValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.BoolValue) BoolValueOrBuilder { // Use BoolValue.newBuilder() to construct. private BoolValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoolValue() { value_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BoolValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { value_ = input.readBool(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_BoolValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_BoolValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.BoolValue.class, cn.bif.protobuf.Common.BoolValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private boolean value_; /** * optional bool value = 1; */ public boolean getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (value_ != false) { output.writeBool(1, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (value_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, value_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.BoolValue)) { return super.equals(obj); } cn.bif.protobuf.Common.BoolValue other = (cn.bif.protobuf.Common.BoolValue) obj; boolean result = true; result = result && (getValue() == other.getValue()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getValue()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.BoolValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.BoolValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.BoolValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.BoolValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.BoolValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.BoolValue 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 cn.bif.protobuf.Common.BoolValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.BoolValue 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 cn.bif.protobuf.Common.BoolValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.BoolValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.BoolValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.BoolValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.BoolValue) cn.bif.protobuf.Common.BoolValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_BoolValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_BoolValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.BoolValue.class, cn.bif.protobuf.Common.BoolValue.Builder.class); } // Construct using cn.bif.protobuf.Common.BoolValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_BoolValue_descriptor; } public cn.bif.protobuf.Common.BoolValue getDefaultInstanceForType() { return cn.bif.protobuf.Common.BoolValue.getDefaultInstance(); } public cn.bif.protobuf.Common.BoolValue build() { cn.bif.protobuf.Common.BoolValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.BoolValue buildPartial() { cn.bif.protobuf.Common.BoolValue result = new cn.bif.protobuf.Common.BoolValue(this); result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.BoolValue) { return mergeFrom((cn.bif.protobuf.Common.BoolValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.BoolValue other) { if (other == cn.bif.protobuf.Common.BoolValue.getDefaultInstance()) return this; if (other.getValue() != false) { setValue(other.getValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.BoolValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.BoolValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean value_ ; /** * optional bool value = 1; */ public boolean getValue() { return value_; } /** * optional bool value = 1; */ public Builder setValue(boolean value) { value_ = value; onChanged(); return this; } /** * optional bool value = 1; */ public Builder clearValue() { value_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.BoolValue) } // @@protoc_insertion_point(class_scope:protocol.BoolValue) private static final cn.bif.protobuf.Common.BoolValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.BoolValue(); } public static cn.bif.protobuf.Common.BoolValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BoolValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoolValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.BoolValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StringValueOrBuilder extends // @@protoc_insertion_point(interface_extends:protocol.StringValue) com.google.protobuf.MessageOrBuilder { /** * optional string value = 1; */ java.lang.String getValue(); /** * optional string value = 1; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code protocol.StringValue} */ public static final class StringValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protocol.StringValue) StringValueOrBuilder { // Use StringValue.newBuilder() to construct. private StringValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StringValue() { value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StringValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); value_ = s; 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_StringValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_StringValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.StringValue.class, cn.bif.protobuf.Common.StringValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * optional string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** * optional string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cn.bif.protobuf.Common.StringValue)) { return super.equals(obj); } cn.bif.protobuf.Common.StringValue other = (cn.bif.protobuf.Common.StringValue) obj; boolean result = true; result = result && getValue() .equals(other.getValue()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cn.bif.protobuf.Common.StringValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.StringValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.StringValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.bif.protobuf.Common.StringValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.bif.protobuf.Common.StringValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.StringValue 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 cn.bif.protobuf.Common.StringValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.StringValue 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 cn.bif.protobuf.Common.StringValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cn.bif.protobuf.Common.StringValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cn.bif.protobuf.Common.StringValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 protocol.StringValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protocol.StringValue) cn.bif.protobuf.Common.StringValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.bif.protobuf.Common.internal_static_protocol_StringValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cn.bif.protobuf.Common.internal_static_protocol_StringValue_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.bif.protobuf.Common.StringValue.class, cn.bif.protobuf.Common.StringValue.Builder.class); } // Construct using cn.bif.protobuf.Common.StringValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.bif.protobuf.Common.internal_static_protocol_StringValue_descriptor; } public cn.bif.protobuf.Common.StringValue getDefaultInstanceForType() { return cn.bif.protobuf.Common.StringValue.getDefaultInstance(); } public cn.bif.protobuf.Common.StringValue build() { cn.bif.protobuf.Common.StringValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.bif.protobuf.Common.StringValue buildPartial() { cn.bif.protobuf.Common.StringValue result = new cn.bif.protobuf.Common.StringValue(this); result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.bif.protobuf.Common.StringValue) { return mergeFrom((cn.bif.protobuf.Common.StringValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.bif.protobuf.Common.StringValue other) { if (other == cn.bif.protobuf.Common.StringValue.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.bif.protobuf.Common.StringValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.bif.protobuf.Common.StringValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object value_ = ""; /** * optional string value = 1; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string value = 1; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * optional string value = 1; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:protocol.StringValue) } // @@protoc_insertion_point(class_scope:protocol.StringValue) private static final cn.bif.protobuf.Common.StringValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cn.bif.protobuf.Common.StringValue(); } public static cn.bif.protobuf.Common.StringValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StringValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StringValue(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public cn.bif.protobuf.Common.StringValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_KeyPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_KeyPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Signature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Signature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_LedgerUpgrade_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_LedgerUpgrade_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_WsMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_WsMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Ping_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Ping_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Pong_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Pong_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_NewKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_NewKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ModifyKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ModifyKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Snapshot_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Snapshot_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Validator_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Validator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ValidatorSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_ValidatorSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_FeeConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_FeeConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_Int32Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_Int32Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_BoolValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_BoolValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protocol_StringValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protocol_StringValue_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\014common.proto\022\010protocol\"6\n\007KeyPair\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\017\n\007version\030\003 \001(\003" + "\"2\n\tSignature\022\022\n\npublic_key\030\001 \001(\t\022\021\n\tsig" + "n_data\030\002 \001(\014\"[\n\rLedgerUpgrade\022\032\n\022new_led" + "ger_version\030\001 \001(\003\022\032\n\022new_validator_list\030" + "\002 \003(\t\022\022\n\nchain_code\030\003 \001(\t\"J\n\tWsMessage\022\014" + "\n\004type\030\001 \001(\003\022\017\n\007request\030\002 \001(\010\022\020\n\010sequenc" + "e\030\003 \001(\003\022\014\n\004data\030\004 \001(\014\"\025\n\004Ping\022\r\n\005nonce\030\001" + " \001(\003\"\025\n\004Pong\022\r\n\005nonce\030\001 \001(\003\"\025\n\006NewKey\022\013\n" + "\003key\030\001 \003(\014\"\'\n\tModifyKey\022\013\n\003key\030\001 \001(\014\022\r\n\005", "value\030\002 \001(\014\"c\n\010Snapshot\022!\n\007new_key\030\001 \001(\013" + "2\020.protocol.NewKey\022\'\n\nmodify_key\030\002 \003(\0132\023" + ".protocol.ModifyKey\022\013\n\003seq\030\003 \001(\003\"8\n\tVali" + "dator\022\017\n\007address\030\001 \001(\t\022\032\n\022pledge_coin_am" + "ount\030\002 \001(\003\"7\n\014ValidatorSet\022\'\n\nvalidators" + "\030\001 \003(\0132\023.protocol.Validator\"j\n\tFeeConfig" + "\022\021\n\tgas_price\030\001 \001(\003\022\024\n\014base_reserve\030\002 \001(" + "\003\"4\n\004Type\022\013\n\007UNKNOWN\020\000\022\r\n\tGAS_PRICE\020\001\022\020\n" + "\014BASE_RESERVE\020\002\"\033\n\nInt32Value\022\r\n\005value\030\001" + " \001(\005\"\032\n\tBoolValue\022\r\n\005value\030\001 \001(\010\"\034\n\013Stri", "ngValue\022\r\n\005value\030\001 \001(\t*\345\013\n\tERRORCODE\022\023\n\017" + "ERRCODE_SUCCESS\020\000\022\032\n\026ERRCODE_INTERNAL_ER" + "ROR\020\001\022\035\n\031ERRCODE_INVALID_PARAMETER\020\002\022\031\n\025" + "ERRCODE_ALREADY_EXIST\020\003\022\025\n\021ERRCODE_NOT_E" + "XIST\020\004\022\026\n\022ERRCODE_TX_TIMEOUT\020\005\022\031\n\025ERRCOD" + "E_ACCESS_DENIED\020\006\022\031\n\025ERRCODE_MATH_OVERFL" + "OW\020\007\022\'\n#ERRCODE_EXPR_CONDITION_RESULT_FA" + "LSE\020\024\022\'\n#ERRCODE_EXPR_CONDITION_SYNTAX_E" + "RROR\020\025\022\034\n\030ERRCODE_DOMAIN_NOT_EXIST\020(\022\036\n\032" + "ERRCODE_DB_CLASS_NOT_EXIST\020)\022\036\n\032ERRCODE_", "HASH_DB_NAME_ERROR\020*\022\035\n\031ERRCODE_DB_NAME_" + "NOT_EXIST\020+\022\032\n\026ERRCODE_INVALID_PUBKEY\020Z\022" + "\032\n\026ERRCODE_INVALID_PRIKEY\020[\022\035\n\031ERRCODE_I" + "NVALID_SIGNATURE\020]\022\033\n\027ERRCODE_INVALID_AD" + "DRESS\020^\022\036\n\032ERRCODE_MISSING_OPERATIONS\020a\022" + "\037\n\033ERRCODE_TOO_MANY_OPERATIONS\020b\022\030\n\024ERRC" + "ODE_BAD_SEQUENCE\020c\022\037\n\033ERRCODE_ACCOUNT_LO" + "W_RESERVE\020d\022$\n ERRCODE_ACCOUNT_SOURCEDES" + "T_EQUAL\020e\022\036\n\032ERRCODE_ACCOUNT_DEST_EXIST\020" + "f\022\035\n\031ERRCODE_ACCOUNT_NOT_EXIST\020g\022$\n ERRC", "ODE_ACCOUNT_INIT_LOW_RESERVE\020j\022\032\n\026ERRCOD" + "E_FEE_NOT_ENOUGH\020o\022\027\n\023ERRCODE_FEE_INVALI" + "D\020p\022\032\n\026ERRCODE_OUT_OF_TXCACHE\020r\022\034\n\030ERRCO" + "DE_WEIGHT_NOT_VALID\020x\022\037\n\033ERRCODE_THRESHO" + "LD_NOT_VALID\020y\022 \n\033ERRCODE_INVALID_DATAVE" + "RSION\020\220\001\022\034\n\027ERRCODE_TX_SIZE_TOO_BIG\020\222\001\022\"" + "\n\035ERRCODE_CONTRACT_EXECUTE_FAIL\020\227\001\022\"\n\035ER" + "RCODE_CONTRACT_SYNTAX_ERROR\020\230\001\022(\n#ERRCOD" + "E_CONTRACT_TOO_MANY_RECURSION\020\231\001\022+\n&ERRC" + "ODE_CONTRACT_TOO_MANY_TRANSACTIONS\020\232\001\022%\n", " ERRCODE_CONTRACT_EXECUTE_EXPIRED\020\233\001\022\035\n\030" + "ERRCODE_INVALID_CONTRACT\020\234\001\022$\n\037ERRCODE_I" + "NVALID_CONTRACTVERSION\020\235\001\022!\n\034ERRCODE_TX_" + "INSERT_QUEUE_FAIL\020\240\001\022\035\n\030ERRCODE_TRANSFER" + "_NO_AUTH\020\241\001\022\033\n\026ERROR_DOMAIN_NOT_EXIST\020\252\001" + "\022\036\n\031ERROR_SNAP_SHOT_NOT_EXIST\020\264\001\022\037\n\032ERRO" + "R_SNAP_SHOT_DATA_ERROR\020\265\001\022!\n\034ERROR_GET_D" + "OMAINLIST_TIMEOUT\020\266\001\022 \n\033ERROR_RANDOM_NON" + "CE_IN_CACHE\020\267\001B\021\n\017cn.bif.protobufb\006proto" + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_protocol_KeyPair_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_KeyPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_KeyPair_descriptor, new java.lang.String[] { "Key", "Value", "Version", }); internal_static_protocol_Signature_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_Signature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Signature_descriptor, new java.lang.String[] { "PublicKey", "SignData", }); internal_static_protocol_LedgerUpgrade_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_LedgerUpgrade_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_LedgerUpgrade_descriptor, new java.lang.String[] { "NewLedgerVersion", "NewValidatorList", "ChainCode", }); internal_static_protocol_WsMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protocol_WsMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_WsMessage_descriptor, new java.lang.String[] { "Type", "Request", "Sequence", "Data", }); internal_static_protocol_Ping_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_protocol_Ping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Ping_descriptor, new java.lang.String[] { "Nonce", }); internal_static_protocol_Pong_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_protocol_Pong_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Pong_descriptor, new java.lang.String[] { "Nonce", }); internal_static_protocol_NewKey_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_protocol_NewKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_NewKey_descriptor, new java.lang.String[] { "Key", }); internal_static_protocol_ModifyKey_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_protocol_ModifyKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ModifyKey_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_protocol_Snapshot_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_protocol_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Snapshot_descriptor, new java.lang.String[] { "NewKey", "ModifyKey", "Seq", }); internal_static_protocol_Validator_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_protocol_Validator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Validator_descriptor, new java.lang.String[] { "Address", "PledgeCoinAmount", }); internal_static_protocol_ValidatorSet_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_protocol_ValidatorSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_ValidatorSet_descriptor, new java.lang.String[] { "Validators", }); internal_static_protocol_FeeConfig_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_protocol_FeeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_FeeConfig_descriptor, new java.lang.String[] { "GasPrice", "BaseReserve", }); internal_static_protocol_Int32Value_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_protocol_Int32Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_Int32Value_descriptor, new java.lang.String[] { "Value", }); internal_static_protocol_BoolValue_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_protocol_BoolValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_BoolValue_descriptor, new java.lang.String[] { "Value", }); internal_static_protocol_StringValue_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_protocol_StringValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protocol_StringValue_descriptor, new java.lang.String[] { "Value", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy