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

types.Rpc Maven / Gradle / Ivy

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

package types;

public final class Rpc {
  private Rpc() {}
  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 types.CommitStatus}
   */
  public enum CommitStatus
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * TX_OK = 0;
     */
    TX_OK(0),
    /**
     * TX_NONCE_TOO_LOW = 1;
     */
    TX_NONCE_TOO_LOW(1),
    /**
     * TX_ALREADY_EXISTS = 2;
     */
    TX_ALREADY_EXISTS(2),
    /**
     * TX_INVALID_HASH = 3;
     */
    TX_INVALID_HASH(3),
    /**
     * TX_INVALID_SIGN = 4;
     */
    TX_INVALID_SIGN(4),
    /**
     * TX_INVALID_FORMAT = 5;
     */
    TX_INVALID_FORMAT(5),
    /**
     * TX_INSUFFICIENT_BALANCE = 6;
     */
    TX_INSUFFICIENT_BALANCE(6),
    /**
     * TX_HAS_SAME_NONCE = 7;
     */
    TX_HAS_SAME_NONCE(7),
    /**
     * TX_INTERNAL_ERROR = 9;
     */
    TX_INTERNAL_ERROR(9),
    UNRECOGNIZED(-1),
    ;

    /**
     * TX_OK = 0;
     */
    public static final int TX_OK_VALUE = 0;
    /**
     * TX_NONCE_TOO_LOW = 1;
     */
    public static final int TX_NONCE_TOO_LOW_VALUE = 1;
    /**
     * TX_ALREADY_EXISTS = 2;
     */
    public static final int TX_ALREADY_EXISTS_VALUE = 2;
    /**
     * TX_INVALID_HASH = 3;
     */
    public static final int TX_INVALID_HASH_VALUE = 3;
    /**
     * TX_INVALID_SIGN = 4;
     */
    public static final int TX_INVALID_SIGN_VALUE = 4;
    /**
     * TX_INVALID_FORMAT = 5;
     */
    public static final int TX_INVALID_FORMAT_VALUE = 5;
    /**
     * TX_INSUFFICIENT_BALANCE = 6;
     */
    public static final int TX_INSUFFICIENT_BALANCE_VALUE = 6;
    /**
     * TX_HAS_SAME_NONCE = 7;
     */
    public static final int TX_HAS_SAME_NONCE_VALUE = 7;
    /**
     * TX_INTERNAL_ERROR = 9;
     */
    public static final int TX_INTERNAL_ERROR_VALUE = 9;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CommitStatus valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static CommitStatus forNumber(int value) {
      switch (value) {
        case 0: return TX_OK;
        case 1: return TX_NONCE_TOO_LOW;
        case 2: return TX_ALREADY_EXISTS;
        case 3: return TX_INVALID_HASH;
        case 4: return TX_INVALID_SIGN;
        case 5: return TX_INVALID_FORMAT;
        case 6: return TX_INSUFFICIENT_BALANCE;
        case 7: return TX_HAS_SAME_NONCE;
        case 9: return TX_INTERNAL_ERROR;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        CommitStatus> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public CommitStatus findValueByNumber(int number) {
              return CommitStatus.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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 types.Rpc.getDescriptor().getEnumTypes().get(0);
    }

    private static final CommitStatus[] VALUES = values();

    public static CommitStatus 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 CommitStatus(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:types.CommitStatus)
  }

  /**
   * Protobuf enum {@code types.VerifyStatus}
   */
  public enum VerifyStatus
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * VERIFY_STATUS_OK = 0;
     */
    VERIFY_STATUS_OK(0),
    /**
     * VERIFY_STATUS_SIGN_NOT_MATCH = 1;
     */
    VERIFY_STATUS_SIGN_NOT_MATCH(1),
    /**
     * 
     *TODO: not yet impl
     * 
* * VERIFY_STATUS_INVALID_HASH = 2; */ VERIFY_STATUS_INVALID_HASH(2), UNRECOGNIZED(-1), ; /** * VERIFY_STATUS_OK = 0; */ public static final int VERIFY_STATUS_OK_VALUE = 0; /** * VERIFY_STATUS_SIGN_NOT_MATCH = 1; */ public static final int VERIFY_STATUS_SIGN_NOT_MATCH_VALUE = 1; /** *
     *TODO: not yet impl
     * 
* * VERIFY_STATUS_INVALID_HASH = 2; */ public static final int VERIFY_STATUS_INVALID_HASH_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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VerifyStatus valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static VerifyStatus forNumber(int value) { switch (value) { case 0: return VERIFY_STATUS_OK; case 1: return VERIFY_STATUS_SIGN_NOT_MATCH; case 2: return VERIFY_STATUS_INVALID_HASH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VerifyStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VerifyStatus findValueByNumber(int number) { return VerifyStatus.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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 types.Rpc.getDescriptor().getEnumTypes().get(1); } private static final VerifyStatus[] VALUES = values(); public static VerifyStatus 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 VerifyStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:types.VerifyStatus) } public interface BlockchainStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockchainStatus) com.google.protobuf.MessageOrBuilder { /** * bytes best_block_hash = 1; * @return The bestBlockHash. */ com.google.protobuf.ByteString getBestBlockHash(); /** * uint64 best_height = 2; * @return The bestHeight. */ long getBestHeight(); /** * string consensus_info = 3; * @return The consensusInfo. */ java.lang.String getConsensusInfo(); /** * string consensus_info = 3; * @return The bytes for consensusInfo. */ com.google.protobuf.ByteString getConsensusInfoBytes(); /** * bytes best_chain_id_hash = 4; * @return The bestChainIdHash. */ com.google.protobuf.ByteString getBestChainIdHash(); /** * .types.ChainInfo chain_info = 5; * @return Whether the chainInfo field is set. */ boolean hasChainInfo(); /** * .types.ChainInfo chain_info = 5; * @return The chainInfo. */ types.Rpc.ChainInfo getChainInfo(); /** * .types.ChainInfo chain_info = 5; */ types.Rpc.ChainInfoOrBuilder getChainInfoOrBuilder(); } /** *
   * BlockchainStatus is current status of blockchain
   * 
* * Protobuf type {@code types.BlockchainStatus} */ public static final class BlockchainStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockchainStatus) BlockchainStatusOrBuilder { private static final long serialVersionUID = 0L; // Use BlockchainStatus.newBuilder() to construct. private BlockchainStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockchainStatus() { bestBlockHash_ = com.google.protobuf.ByteString.EMPTY; consensusInfo_ = ""; bestChainIdHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockchainStatus(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockchainStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { bestBlockHash_ = input.readBytes(); break; } case 16: { bestHeight_ = input.readUInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); consensusInfo_ = s; break; } case 34: { bestChainIdHash_ = input.readBytes(); break; } case 42: { types.Rpc.ChainInfo.Builder subBuilder = null; if (chainInfo_ != null) { subBuilder = chainInfo_.toBuilder(); } chainInfo_ = input.readMessage(types.Rpc.ChainInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(chainInfo_); chainInfo_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockchainStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockchainStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockchainStatus.class, types.Rpc.BlockchainStatus.Builder.class); } public static final int BEST_BLOCK_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bestBlockHash_; /** * bytes best_block_hash = 1; * @return The bestBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getBestBlockHash() { return bestBlockHash_; } public static final int BEST_HEIGHT_FIELD_NUMBER = 2; private long bestHeight_; /** * uint64 best_height = 2; * @return The bestHeight. */ @java.lang.Override public long getBestHeight() { return bestHeight_; } public static final int CONSENSUS_INFO_FIELD_NUMBER = 3; private volatile java.lang.Object consensusInfo_; /** * string consensus_info = 3; * @return The consensusInfo. */ @java.lang.Override public java.lang.String getConsensusInfo() { java.lang.Object ref = consensusInfo_; 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(); consensusInfo_ = s; return s; } } /** * string consensus_info = 3; * @return The bytes for consensusInfo. */ @java.lang.Override public com.google.protobuf.ByteString getConsensusInfoBytes() { java.lang.Object ref = consensusInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consensusInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BEST_CHAIN_ID_HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString bestChainIdHash_; /** * bytes best_chain_id_hash = 4; * @return The bestChainIdHash. */ @java.lang.Override public com.google.protobuf.ByteString getBestChainIdHash() { return bestChainIdHash_; } public static final int CHAIN_INFO_FIELD_NUMBER = 5; private types.Rpc.ChainInfo chainInfo_; /** * .types.ChainInfo chain_info = 5; * @return Whether the chainInfo field is set. */ @java.lang.Override public boolean hasChainInfo() { return chainInfo_ != null; } /** * .types.ChainInfo chain_info = 5; * @return The chainInfo. */ @java.lang.Override public types.Rpc.ChainInfo getChainInfo() { return chainInfo_ == null ? types.Rpc.ChainInfo.getDefaultInstance() : chainInfo_; } /** * .types.ChainInfo chain_info = 5; */ @java.lang.Override public types.Rpc.ChainInfoOrBuilder getChainInfoOrBuilder() { return getChainInfo(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!bestBlockHash_.isEmpty()) { output.writeBytes(1, bestBlockHash_); } if (bestHeight_ != 0L) { output.writeUInt64(2, bestHeight_); } if (!getConsensusInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consensusInfo_); } if (!bestChainIdHash_.isEmpty()) { output.writeBytes(4, bestChainIdHash_); } if (chainInfo_ != null) { output.writeMessage(5, getChainInfo()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!bestBlockHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, bestBlockHash_); } if (bestHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, bestHeight_); } if (!getConsensusInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consensusInfo_); } if (!bestChainIdHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, bestChainIdHash_); } if (chainInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getChainInfo()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockchainStatus)) { return super.equals(obj); } types.Rpc.BlockchainStatus other = (types.Rpc.BlockchainStatus) obj; if (!getBestBlockHash() .equals(other.getBestBlockHash())) return false; if (getBestHeight() != other.getBestHeight()) return false; if (!getConsensusInfo() .equals(other.getConsensusInfo())) return false; if (!getBestChainIdHash() .equals(other.getBestChainIdHash())) return false; if (hasChainInfo() != other.hasChainInfo()) return false; if (hasChainInfo()) { if (!getChainInfo() .equals(other.getChainInfo())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BEST_BLOCK_HASH_FIELD_NUMBER; hash = (53 * hash) + getBestBlockHash().hashCode(); hash = (37 * hash) + BEST_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBestHeight()); hash = (37 * hash) + CONSENSUS_INFO_FIELD_NUMBER; hash = (53 * hash) + getConsensusInfo().hashCode(); hash = (37 * hash) + BEST_CHAIN_ID_HASH_FIELD_NUMBER; hash = (53 * hash) + getBestChainIdHash().hashCode(); if (hasChainInfo()) { hash = (37 * hash) + CHAIN_INFO_FIELD_NUMBER; hash = (53 * hash) + getChainInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockchainStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockchainStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockchainStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockchainStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockchainStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockchainStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockchainStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockchainStatus 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 types.Rpc.BlockchainStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockchainStatus 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 types.Rpc.BlockchainStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockchainStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockchainStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * BlockchainStatus is current status of blockchain
     * 
* * Protobuf type {@code types.BlockchainStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockchainStatus) types.Rpc.BlockchainStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockchainStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockchainStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockchainStatus.class, types.Rpc.BlockchainStatus.Builder.class); } // Construct using types.Rpc.BlockchainStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); bestBlockHash_ = com.google.protobuf.ByteString.EMPTY; bestHeight_ = 0L; consensusInfo_ = ""; bestChainIdHash_ = com.google.protobuf.ByteString.EMPTY; if (chainInfoBuilder_ == null) { chainInfo_ = null; } else { chainInfo_ = null; chainInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockchainStatus_descriptor; } @java.lang.Override public types.Rpc.BlockchainStatus getDefaultInstanceForType() { return types.Rpc.BlockchainStatus.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockchainStatus build() { types.Rpc.BlockchainStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockchainStatus buildPartial() { types.Rpc.BlockchainStatus result = new types.Rpc.BlockchainStatus(this); result.bestBlockHash_ = bestBlockHash_; result.bestHeight_ = bestHeight_; result.consensusInfo_ = consensusInfo_; result.bestChainIdHash_ = bestChainIdHash_; if (chainInfoBuilder_ == null) { result.chainInfo_ = chainInfo_; } else { result.chainInfo_ = chainInfoBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockchainStatus) { return mergeFrom((types.Rpc.BlockchainStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockchainStatus other) { if (other == types.Rpc.BlockchainStatus.getDefaultInstance()) return this; if (other.getBestBlockHash() != com.google.protobuf.ByteString.EMPTY) { setBestBlockHash(other.getBestBlockHash()); } if (other.getBestHeight() != 0L) { setBestHeight(other.getBestHeight()); } if (!other.getConsensusInfo().isEmpty()) { consensusInfo_ = other.consensusInfo_; onChanged(); } if (other.getBestChainIdHash() != com.google.protobuf.ByteString.EMPTY) { setBestChainIdHash(other.getBestChainIdHash()); } if (other.hasChainInfo()) { mergeChainInfo(other.getChainInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockchainStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockchainStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString bestBlockHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes best_block_hash = 1; * @return The bestBlockHash. */ @java.lang.Override public com.google.protobuf.ByteString getBestBlockHash() { return bestBlockHash_; } /** * bytes best_block_hash = 1; * @param value The bestBlockHash to set. * @return This builder for chaining. */ public Builder setBestBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bestBlockHash_ = value; onChanged(); return this; } /** * bytes best_block_hash = 1; * @return This builder for chaining. */ public Builder clearBestBlockHash() { bestBlockHash_ = getDefaultInstance().getBestBlockHash(); onChanged(); return this; } private long bestHeight_ ; /** * uint64 best_height = 2; * @return The bestHeight. */ @java.lang.Override public long getBestHeight() { return bestHeight_; } /** * uint64 best_height = 2; * @param value The bestHeight to set. * @return This builder for chaining. */ public Builder setBestHeight(long value) { bestHeight_ = value; onChanged(); return this; } /** * uint64 best_height = 2; * @return This builder for chaining. */ public Builder clearBestHeight() { bestHeight_ = 0L; onChanged(); return this; } private java.lang.Object consensusInfo_ = ""; /** * string consensus_info = 3; * @return The consensusInfo. */ public java.lang.String getConsensusInfo() { java.lang.Object ref = consensusInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consensusInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** * string consensus_info = 3; * @return The bytes for consensusInfo. */ public com.google.protobuf.ByteString getConsensusInfoBytes() { java.lang.Object ref = consensusInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consensusInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string consensus_info = 3; * @param value The consensusInfo to set. * @return This builder for chaining. */ public Builder setConsensusInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consensusInfo_ = value; onChanged(); return this; } /** * string consensus_info = 3; * @return This builder for chaining. */ public Builder clearConsensusInfo() { consensusInfo_ = getDefaultInstance().getConsensusInfo(); onChanged(); return this; } /** * string consensus_info = 3; * @param value The bytes for consensusInfo to set. * @return This builder for chaining. */ public Builder setConsensusInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consensusInfo_ = value; onChanged(); return this; } private com.google.protobuf.ByteString bestChainIdHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes best_chain_id_hash = 4; * @return The bestChainIdHash. */ @java.lang.Override public com.google.protobuf.ByteString getBestChainIdHash() { return bestChainIdHash_; } /** * bytes best_chain_id_hash = 4; * @param value The bestChainIdHash to set. * @return This builder for chaining. */ public Builder setBestChainIdHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bestChainIdHash_ = value; onChanged(); return this; } /** * bytes best_chain_id_hash = 4; * @return This builder for chaining. */ public Builder clearBestChainIdHash() { bestChainIdHash_ = getDefaultInstance().getBestChainIdHash(); onChanged(); return this; } private types.Rpc.ChainInfo chainInfo_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainInfo, types.Rpc.ChainInfo.Builder, types.Rpc.ChainInfoOrBuilder> chainInfoBuilder_; /** * .types.ChainInfo chain_info = 5; * @return Whether the chainInfo field is set. */ public boolean hasChainInfo() { return chainInfoBuilder_ != null || chainInfo_ != null; } /** * .types.ChainInfo chain_info = 5; * @return The chainInfo. */ public types.Rpc.ChainInfo getChainInfo() { if (chainInfoBuilder_ == null) { return chainInfo_ == null ? types.Rpc.ChainInfo.getDefaultInstance() : chainInfo_; } else { return chainInfoBuilder_.getMessage(); } } /** * .types.ChainInfo chain_info = 5; */ public Builder setChainInfo(types.Rpc.ChainInfo value) { if (chainInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chainInfo_ = value; onChanged(); } else { chainInfoBuilder_.setMessage(value); } return this; } /** * .types.ChainInfo chain_info = 5; */ public Builder setChainInfo( types.Rpc.ChainInfo.Builder builderForValue) { if (chainInfoBuilder_ == null) { chainInfo_ = builderForValue.build(); onChanged(); } else { chainInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.ChainInfo chain_info = 5; */ public Builder mergeChainInfo(types.Rpc.ChainInfo value) { if (chainInfoBuilder_ == null) { if (chainInfo_ != null) { chainInfo_ = types.Rpc.ChainInfo.newBuilder(chainInfo_).mergeFrom(value).buildPartial(); } else { chainInfo_ = value; } onChanged(); } else { chainInfoBuilder_.mergeFrom(value); } return this; } /** * .types.ChainInfo chain_info = 5; */ public Builder clearChainInfo() { if (chainInfoBuilder_ == null) { chainInfo_ = null; onChanged(); } else { chainInfo_ = null; chainInfoBuilder_ = null; } return this; } /** * .types.ChainInfo chain_info = 5; */ public types.Rpc.ChainInfo.Builder getChainInfoBuilder() { onChanged(); return getChainInfoFieldBuilder().getBuilder(); } /** * .types.ChainInfo chain_info = 5; */ public types.Rpc.ChainInfoOrBuilder getChainInfoOrBuilder() { if (chainInfoBuilder_ != null) { return chainInfoBuilder_.getMessageOrBuilder(); } else { return chainInfo_ == null ? types.Rpc.ChainInfo.getDefaultInstance() : chainInfo_; } } /** * .types.ChainInfo chain_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainInfo, types.Rpc.ChainInfo.Builder, types.Rpc.ChainInfoOrBuilder> getChainInfoFieldBuilder() { if (chainInfoBuilder_ == null) { chainInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainInfo, types.Rpc.ChainInfo.Builder, types.Rpc.ChainInfoOrBuilder>( getChainInfo(), getParentForChildren(), isClean()); chainInfo_ = null; } return chainInfoBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockchainStatus) } // @@protoc_insertion_point(class_scope:types.BlockchainStatus) private static final types.Rpc.BlockchainStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockchainStatus(); } public static types.Rpc.BlockchainStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockchainStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockchainStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockchainStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChainIdOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ChainId) com.google.protobuf.MessageOrBuilder { /** * string magic = 1; * @return The magic. */ java.lang.String getMagic(); /** * string magic = 1; * @return The bytes for magic. */ com.google.protobuf.ByteString getMagicBytes(); /** * bool public = 2; * @return The public. */ boolean getPublic(); /** * bool mainnet = 3; * @return The mainnet. */ boolean getMainnet(); /** * string consensus = 4; * @return The consensus. */ java.lang.String getConsensus(); /** * string consensus = 4; * @return The bytes for consensus. */ com.google.protobuf.ByteString getConsensusBytes(); /** * int32 version = 5; * @return The version. */ int getVersion(); } /** * Protobuf type {@code types.ChainId} */ public static final class ChainId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ChainId) ChainIdOrBuilder { private static final long serialVersionUID = 0L; // Use ChainId.newBuilder() to construct. private ChainId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChainId() { magic_ = ""; consensus_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChainId(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChainId( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); magic_ = s; break; } case 16: { public_ = input.readBool(); break; } case 24: { mainnet_ = input.readBool(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); consensus_ = s; break; } case 40: { version_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainId_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainId.class, types.Rpc.ChainId.Builder.class); } public static final int MAGIC_FIELD_NUMBER = 1; private volatile java.lang.Object magic_; /** * string magic = 1; * @return The magic. */ @java.lang.Override public java.lang.String getMagic() { java.lang.Object ref = magic_; 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(); magic_ = s; return s; } } /** * string magic = 1; * @return The bytes for magic. */ @java.lang.Override public com.google.protobuf.ByteString getMagicBytes() { java.lang.Object ref = magic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); magic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PUBLIC_FIELD_NUMBER = 2; private boolean public_; /** * bool public = 2; * @return The public. */ @java.lang.Override public boolean getPublic() { return public_; } public static final int MAINNET_FIELD_NUMBER = 3; private boolean mainnet_; /** * bool mainnet = 3; * @return The mainnet. */ @java.lang.Override public boolean getMainnet() { return mainnet_; } public static final int CONSENSUS_FIELD_NUMBER = 4; private volatile java.lang.Object consensus_; /** * string consensus = 4; * @return The consensus. */ @java.lang.Override public java.lang.String getConsensus() { java.lang.Object ref = consensus_; 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(); consensus_ = s; return s; } } /** * string consensus = 4; * @return The bytes for consensus. */ @java.lang.Override public com.google.protobuf.ByteString getConsensusBytes() { java.lang.Object ref = consensus_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consensus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 5; private int version_; /** * int32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMagicBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, magic_); } if (public_ != false) { output.writeBool(2, public_); } if (mainnet_ != false) { output.writeBool(3, mainnet_); } if (!getConsensusBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, consensus_); } if (version_ != 0) { output.writeInt32(5, version_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMagicBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, magic_); } if (public_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, public_); } if (mainnet_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, mainnet_); } if (!getConsensusBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, consensus_); } if (version_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, version_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ChainId)) { return super.equals(obj); } types.Rpc.ChainId other = (types.Rpc.ChainId) obj; if (!getMagic() .equals(other.getMagic())) return false; if (getPublic() != other.getPublic()) return false; if (getMainnet() != other.getMainnet()) return false; if (!getConsensus() .equals(other.getConsensus())) return false; if (getVersion() != other.getVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MAGIC_FIELD_NUMBER; hash = (53 * hash) + getMagic().hashCode(); hash = (37 * hash) + PUBLIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPublic()); hash = (37 * hash) + MAINNET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMainnet()); hash = (37 * hash) + CONSENSUS_FIELD_NUMBER; hash = (53 * hash) + getConsensus().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ChainId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainId parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainId 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 types.Rpc.ChainId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ChainId 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 types.Rpc.ChainId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainId parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ChainId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.ChainId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ChainId) types.Rpc.ChainIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainId_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainId.class, types.Rpc.ChainId.Builder.class); } // Construct using types.Rpc.ChainId.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); magic_ = ""; public_ = false; mainnet_ = false; consensus_ = ""; version_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ChainId_descriptor; } @java.lang.Override public types.Rpc.ChainId getDefaultInstanceForType() { return types.Rpc.ChainId.getDefaultInstance(); } @java.lang.Override public types.Rpc.ChainId build() { types.Rpc.ChainId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ChainId buildPartial() { types.Rpc.ChainId result = new types.Rpc.ChainId(this); result.magic_ = magic_; result.public_ = public_; result.mainnet_ = mainnet_; result.consensus_ = consensus_; result.version_ = version_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ChainId) { return mergeFrom((types.Rpc.ChainId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ChainId other) { if (other == types.Rpc.ChainId.getDefaultInstance()) return this; if (!other.getMagic().isEmpty()) { magic_ = other.magic_; onChanged(); } if (other.getPublic() != false) { setPublic(other.getPublic()); } if (other.getMainnet() != false) { setMainnet(other.getMainnet()); } if (!other.getConsensus().isEmpty()) { consensus_ = other.consensus_; onChanged(); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ChainId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ChainId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object magic_ = ""; /** * string magic = 1; * @return The magic. */ public java.lang.String getMagic() { java.lang.Object ref = magic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); magic_ = s; return s; } else { return (java.lang.String) ref; } } /** * string magic = 1; * @return The bytes for magic. */ public com.google.protobuf.ByteString getMagicBytes() { java.lang.Object ref = magic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); magic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string magic = 1; * @param value The magic to set. * @return This builder for chaining. */ public Builder setMagic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } magic_ = value; onChanged(); return this; } /** * string magic = 1; * @return This builder for chaining. */ public Builder clearMagic() { magic_ = getDefaultInstance().getMagic(); onChanged(); return this; } /** * string magic = 1; * @param value The bytes for magic to set. * @return This builder for chaining. */ public Builder setMagicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); magic_ = value; onChanged(); return this; } private boolean public_ ; /** * bool public = 2; * @return The public. */ @java.lang.Override public boolean getPublic() { return public_; } /** * bool public = 2; * @param value The public to set. * @return This builder for chaining. */ public Builder setPublic(boolean value) { public_ = value; onChanged(); return this; } /** * bool public = 2; * @return This builder for chaining. */ public Builder clearPublic() { public_ = false; onChanged(); return this; } private boolean mainnet_ ; /** * bool mainnet = 3; * @return The mainnet. */ @java.lang.Override public boolean getMainnet() { return mainnet_; } /** * bool mainnet = 3; * @param value The mainnet to set. * @return This builder for chaining. */ public Builder setMainnet(boolean value) { mainnet_ = value; onChanged(); return this; } /** * bool mainnet = 3; * @return This builder for chaining. */ public Builder clearMainnet() { mainnet_ = false; onChanged(); return this; } private java.lang.Object consensus_ = ""; /** * string consensus = 4; * @return The consensus. */ public java.lang.String getConsensus() { java.lang.Object ref = consensus_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consensus_ = s; return s; } else { return (java.lang.String) ref; } } /** * string consensus = 4; * @return The bytes for consensus. */ public com.google.protobuf.ByteString getConsensusBytes() { java.lang.Object ref = consensus_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consensus_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string consensus = 4; * @param value The consensus to set. * @return This builder for chaining. */ public Builder setConsensus( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consensus_ = value; onChanged(); return this; } /** * string consensus = 4; * @return This builder for chaining. */ public Builder clearConsensus() { consensus_ = getDefaultInstance().getConsensus(); onChanged(); return this; } /** * string consensus = 4; * @param value The bytes for consensus to set. * @return This builder for chaining. */ public Builder setConsensusBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consensus_ = value; onChanged(); return this; } private int version_ ; /** * int32 version = 5; * @return The version. */ @java.lang.Override public int getVersion() { return version_; } /** * int32 version = 5; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /** * int32 version = 5; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ChainId) } // @@protoc_insertion_point(class_scope:types.ChainId) private static final types.Rpc.ChainId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ChainId(); } public static types.Rpc.ChainId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChainId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChainId(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ChainId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChainInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ChainInfo) com.google.protobuf.MessageOrBuilder { /** * .types.ChainId id = 1; * @return Whether the id field is set. */ boolean hasId(); /** * .types.ChainId id = 1; * @return The id. */ types.Rpc.ChainId getId(); /** * .types.ChainId id = 1; */ types.Rpc.ChainIdOrBuilder getIdOrBuilder(); /** * uint32 bpNumber = 2; * @return The bpNumber. */ int getBpNumber(); /** * uint64 maxblocksize = 3; * @return The maxblocksize. */ long getMaxblocksize(); /** * bytes maxtokens = 4; * @return The maxtokens. */ com.google.protobuf.ByteString getMaxtokens(); /** * bytes stakingminimum = 5; * @return The stakingminimum. */ com.google.protobuf.ByteString getStakingminimum(); /** * bytes totalstaking = 6; * @return The totalstaking. */ com.google.protobuf.ByteString getTotalstaking(); /** * bytes gasprice = 7; * @return The gasprice. */ com.google.protobuf.ByteString getGasprice(); /** * bytes nameprice = 8; * @return The nameprice. */ com.google.protobuf.ByteString getNameprice(); /** * bytes totalvotingpower = 9; * @return The totalvotingpower. */ com.google.protobuf.ByteString getTotalvotingpower(); /** * bytes votingreward = 10; * @return The votingreward. */ com.google.protobuf.ByteString getVotingreward(); } /** *
   * ChainInfo returns chain configuration
   * 
* * Protobuf type {@code types.ChainInfo} */ public static final class ChainInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ChainInfo) ChainInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ChainInfo.newBuilder() to construct. private ChainInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChainInfo() { maxtokens_ = com.google.protobuf.ByteString.EMPTY; stakingminimum_ = com.google.protobuf.ByteString.EMPTY; totalstaking_ = com.google.protobuf.ByteString.EMPTY; gasprice_ = com.google.protobuf.ByteString.EMPTY; nameprice_ = com.google.protobuf.ByteString.EMPTY; totalvotingpower_ = com.google.protobuf.ByteString.EMPTY; votingreward_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChainInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChainInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Rpc.ChainId.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(types.Rpc.ChainId.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 16: { bpNumber_ = input.readUInt32(); break; } case 24: { maxblocksize_ = input.readUInt64(); break; } case 34: { maxtokens_ = input.readBytes(); break; } case 42: { stakingminimum_ = input.readBytes(); break; } case 50: { totalstaking_ = input.readBytes(); break; } case 58: { gasprice_ = input.readBytes(); break; } case 66: { nameprice_ = input.readBytes(); break; } case 74: { totalvotingpower_ = input.readBytes(); break; } case 82: { votingreward_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainInfo.class, types.Rpc.ChainInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private types.Rpc.ChainId id_; /** * .types.ChainId id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** * .types.ChainId id = 1; * @return The id. */ @java.lang.Override public types.Rpc.ChainId getId() { return id_ == null ? types.Rpc.ChainId.getDefaultInstance() : id_; } /** * .types.ChainId id = 1; */ @java.lang.Override public types.Rpc.ChainIdOrBuilder getIdOrBuilder() { return getId(); } public static final int BPNUMBER_FIELD_NUMBER = 2; private int bpNumber_; /** * uint32 bpNumber = 2; * @return The bpNumber. */ @java.lang.Override public int getBpNumber() { return bpNumber_; } public static final int MAXBLOCKSIZE_FIELD_NUMBER = 3; private long maxblocksize_; /** * uint64 maxblocksize = 3; * @return The maxblocksize. */ @java.lang.Override public long getMaxblocksize() { return maxblocksize_; } public static final int MAXTOKENS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString maxtokens_; /** * bytes maxtokens = 4; * @return The maxtokens. */ @java.lang.Override public com.google.protobuf.ByteString getMaxtokens() { return maxtokens_; } public static final int STAKINGMINIMUM_FIELD_NUMBER = 5; private com.google.protobuf.ByteString stakingminimum_; /** * bytes stakingminimum = 5; * @return The stakingminimum. */ @java.lang.Override public com.google.protobuf.ByteString getStakingminimum() { return stakingminimum_; } public static final int TOTALSTAKING_FIELD_NUMBER = 6; private com.google.protobuf.ByteString totalstaking_; /** * bytes totalstaking = 6; * @return The totalstaking. */ @java.lang.Override public com.google.protobuf.ByteString getTotalstaking() { return totalstaking_; } public static final int GASPRICE_FIELD_NUMBER = 7; private com.google.protobuf.ByteString gasprice_; /** * bytes gasprice = 7; * @return The gasprice. */ @java.lang.Override public com.google.protobuf.ByteString getGasprice() { return gasprice_; } public static final int NAMEPRICE_FIELD_NUMBER = 8; private com.google.protobuf.ByteString nameprice_; /** * bytes nameprice = 8; * @return The nameprice. */ @java.lang.Override public com.google.protobuf.ByteString getNameprice() { return nameprice_; } public static final int TOTALVOTINGPOWER_FIELD_NUMBER = 9; private com.google.protobuf.ByteString totalvotingpower_; /** * bytes totalvotingpower = 9; * @return The totalvotingpower. */ @java.lang.Override public com.google.protobuf.ByteString getTotalvotingpower() { return totalvotingpower_; } public static final int VOTINGREWARD_FIELD_NUMBER = 10; private com.google.protobuf.ByteString votingreward_; /** * bytes votingreward = 10; * @return The votingreward. */ @java.lang.Override public com.google.protobuf.ByteString getVotingreward() { return votingreward_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (bpNumber_ != 0) { output.writeUInt32(2, bpNumber_); } if (maxblocksize_ != 0L) { output.writeUInt64(3, maxblocksize_); } if (!maxtokens_.isEmpty()) { output.writeBytes(4, maxtokens_); } if (!stakingminimum_.isEmpty()) { output.writeBytes(5, stakingminimum_); } if (!totalstaking_.isEmpty()) { output.writeBytes(6, totalstaking_); } if (!gasprice_.isEmpty()) { output.writeBytes(7, gasprice_); } if (!nameprice_.isEmpty()) { output.writeBytes(8, nameprice_); } if (!totalvotingpower_.isEmpty()) { output.writeBytes(9, totalvotingpower_); } if (!votingreward_.isEmpty()) { output.writeBytes(10, votingreward_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (bpNumber_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, bpNumber_); } if (maxblocksize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, maxblocksize_); } if (!maxtokens_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, maxtokens_); } if (!stakingminimum_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, stakingminimum_); } if (!totalstaking_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, totalstaking_); } if (!gasprice_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, gasprice_); } if (!nameprice_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, nameprice_); } if (!totalvotingpower_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, totalvotingpower_); } if (!votingreward_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, votingreward_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ChainInfo)) { return super.equals(obj); } types.Rpc.ChainInfo other = (types.Rpc.ChainInfo) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (getBpNumber() != other.getBpNumber()) return false; if (getMaxblocksize() != other.getMaxblocksize()) return false; if (!getMaxtokens() .equals(other.getMaxtokens())) return false; if (!getStakingminimum() .equals(other.getStakingminimum())) return false; if (!getTotalstaking() .equals(other.getTotalstaking())) return false; if (!getGasprice() .equals(other.getGasprice())) return false; if (!getNameprice() .equals(other.getNameprice())) return false; if (!getTotalvotingpower() .equals(other.getTotalvotingpower())) return false; if (!getVotingreward() .equals(other.getVotingreward())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + BPNUMBER_FIELD_NUMBER; hash = (53 * hash) + getBpNumber(); hash = (37 * hash) + MAXBLOCKSIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxblocksize()); hash = (37 * hash) + MAXTOKENS_FIELD_NUMBER; hash = (53 * hash) + getMaxtokens().hashCode(); hash = (37 * hash) + STAKINGMINIMUM_FIELD_NUMBER; hash = (53 * hash) + getStakingminimum().hashCode(); hash = (37 * hash) + TOTALSTAKING_FIELD_NUMBER; hash = (53 * hash) + getTotalstaking().hashCode(); hash = (37 * hash) + GASPRICE_FIELD_NUMBER; hash = (53 * hash) + getGasprice().hashCode(); hash = (37 * hash) + NAMEPRICE_FIELD_NUMBER; hash = (53 * hash) + getNameprice().hashCode(); hash = (37 * hash) + TOTALVOTINGPOWER_FIELD_NUMBER; hash = (53 * hash) + getTotalvotingpower().hashCode(); hash = (37 * hash) + VOTINGREWARD_FIELD_NUMBER; hash = (53 * hash) + getVotingreward().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ChainInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainInfo 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 types.Rpc.ChainInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ChainInfo 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 types.Rpc.ChainInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ChainInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChainInfo returns chain configuration
     * 
* * Protobuf type {@code types.ChainInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ChainInfo) types.Rpc.ChainInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainInfo.class, types.Rpc.ChainInfo.Builder.class); } // Construct using types.Rpc.ChainInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } bpNumber_ = 0; maxblocksize_ = 0L; maxtokens_ = com.google.protobuf.ByteString.EMPTY; stakingminimum_ = com.google.protobuf.ByteString.EMPTY; totalstaking_ = com.google.protobuf.ByteString.EMPTY; gasprice_ = com.google.protobuf.ByteString.EMPTY; nameprice_ = com.google.protobuf.ByteString.EMPTY; totalvotingpower_ = com.google.protobuf.ByteString.EMPTY; votingreward_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ChainInfo_descriptor; } @java.lang.Override public types.Rpc.ChainInfo getDefaultInstanceForType() { return types.Rpc.ChainInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.ChainInfo build() { types.Rpc.ChainInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ChainInfo buildPartial() { types.Rpc.ChainInfo result = new types.Rpc.ChainInfo(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.bpNumber_ = bpNumber_; result.maxblocksize_ = maxblocksize_; result.maxtokens_ = maxtokens_; result.stakingminimum_ = stakingminimum_; result.totalstaking_ = totalstaking_; result.gasprice_ = gasprice_; result.nameprice_ = nameprice_; result.totalvotingpower_ = totalvotingpower_; result.votingreward_ = votingreward_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ChainInfo) { return mergeFrom((types.Rpc.ChainInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ChainInfo other) { if (other == types.Rpc.ChainInfo.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.getBpNumber() != 0) { setBpNumber(other.getBpNumber()); } if (other.getMaxblocksize() != 0L) { setMaxblocksize(other.getMaxblocksize()); } if (other.getMaxtokens() != com.google.protobuf.ByteString.EMPTY) { setMaxtokens(other.getMaxtokens()); } if (other.getStakingminimum() != com.google.protobuf.ByteString.EMPTY) { setStakingminimum(other.getStakingminimum()); } if (other.getTotalstaking() != com.google.protobuf.ByteString.EMPTY) { setTotalstaking(other.getTotalstaking()); } if (other.getGasprice() != com.google.protobuf.ByteString.EMPTY) { setGasprice(other.getGasprice()); } if (other.getNameprice() != com.google.protobuf.ByteString.EMPTY) { setNameprice(other.getNameprice()); } if (other.getTotalvotingpower() != com.google.protobuf.ByteString.EMPTY) { setTotalvotingpower(other.getTotalvotingpower()); } if (other.getVotingreward() != com.google.protobuf.ByteString.EMPTY) { setVotingreward(other.getVotingreward()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ChainInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ChainInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private types.Rpc.ChainId id_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainId, types.Rpc.ChainId.Builder, types.Rpc.ChainIdOrBuilder> idBuilder_; /** * .types.ChainId id = 1; * @return Whether the id field is set. */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** * .types.ChainId id = 1; * @return The id. */ public types.Rpc.ChainId getId() { if (idBuilder_ == null) { return id_ == null ? types.Rpc.ChainId.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** * .types.ChainId id = 1; */ public Builder setId(types.Rpc.ChainId value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** * .types.ChainId id = 1; */ public Builder setId( types.Rpc.ChainId.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.ChainId id = 1; */ public Builder mergeId(types.Rpc.ChainId value) { if (idBuilder_ == null) { if (id_ != null) { id_ = types.Rpc.ChainId.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** * .types.ChainId id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** * .types.ChainId id = 1; */ public types.Rpc.ChainId.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** * .types.ChainId id = 1; */ public types.Rpc.ChainIdOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? types.Rpc.ChainId.getDefaultInstance() : id_; } } /** * .types.ChainId id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainId, types.Rpc.ChainId.Builder, types.Rpc.ChainIdOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.ChainId, types.Rpc.ChainId.Builder, types.Rpc.ChainIdOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private int bpNumber_ ; /** * uint32 bpNumber = 2; * @return The bpNumber. */ @java.lang.Override public int getBpNumber() { return bpNumber_; } /** * uint32 bpNumber = 2; * @param value The bpNumber to set. * @return This builder for chaining. */ public Builder setBpNumber(int value) { bpNumber_ = value; onChanged(); return this; } /** * uint32 bpNumber = 2; * @return This builder for chaining. */ public Builder clearBpNumber() { bpNumber_ = 0; onChanged(); return this; } private long maxblocksize_ ; /** * uint64 maxblocksize = 3; * @return The maxblocksize. */ @java.lang.Override public long getMaxblocksize() { return maxblocksize_; } /** * uint64 maxblocksize = 3; * @param value The maxblocksize to set. * @return This builder for chaining. */ public Builder setMaxblocksize(long value) { maxblocksize_ = value; onChanged(); return this; } /** * uint64 maxblocksize = 3; * @return This builder for chaining. */ public Builder clearMaxblocksize() { maxblocksize_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString maxtokens_ = com.google.protobuf.ByteString.EMPTY; /** * bytes maxtokens = 4; * @return The maxtokens. */ @java.lang.Override public com.google.protobuf.ByteString getMaxtokens() { return maxtokens_; } /** * bytes maxtokens = 4; * @param value The maxtokens to set. * @return This builder for chaining. */ public Builder setMaxtokens(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } maxtokens_ = value; onChanged(); return this; } /** * bytes maxtokens = 4; * @return This builder for chaining. */ public Builder clearMaxtokens() { maxtokens_ = getDefaultInstance().getMaxtokens(); onChanged(); return this; } private com.google.protobuf.ByteString stakingminimum_ = com.google.protobuf.ByteString.EMPTY; /** * bytes stakingminimum = 5; * @return The stakingminimum. */ @java.lang.Override public com.google.protobuf.ByteString getStakingminimum() { return stakingminimum_; } /** * bytes stakingminimum = 5; * @param value The stakingminimum to set. * @return This builder for chaining. */ public Builder setStakingminimum(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } stakingminimum_ = value; onChanged(); return this; } /** * bytes stakingminimum = 5; * @return This builder for chaining. */ public Builder clearStakingminimum() { stakingminimum_ = getDefaultInstance().getStakingminimum(); onChanged(); return this; } private com.google.protobuf.ByteString totalstaking_ = com.google.protobuf.ByteString.EMPTY; /** * bytes totalstaking = 6; * @return The totalstaking. */ @java.lang.Override public com.google.protobuf.ByteString getTotalstaking() { return totalstaking_; } /** * bytes totalstaking = 6; * @param value The totalstaking to set. * @return This builder for chaining. */ public Builder setTotalstaking(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } totalstaking_ = value; onChanged(); return this; } /** * bytes totalstaking = 6; * @return This builder for chaining. */ public Builder clearTotalstaking() { totalstaking_ = getDefaultInstance().getTotalstaking(); onChanged(); return this; } private com.google.protobuf.ByteString gasprice_ = com.google.protobuf.ByteString.EMPTY; /** * bytes gasprice = 7; * @return The gasprice. */ @java.lang.Override public com.google.protobuf.ByteString getGasprice() { return gasprice_; } /** * bytes gasprice = 7; * @param value The gasprice to set. * @return This builder for chaining. */ public Builder setGasprice(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } gasprice_ = value; onChanged(); return this; } /** * bytes gasprice = 7; * @return This builder for chaining. */ public Builder clearGasprice() { gasprice_ = getDefaultInstance().getGasprice(); onChanged(); return this; } private com.google.protobuf.ByteString nameprice_ = com.google.protobuf.ByteString.EMPTY; /** * bytes nameprice = 8; * @return The nameprice. */ @java.lang.Override public com.google.protobuf.ByteString getNameprice() { return nameprice_; } /** * bytes nameprice = 8; * @param value The nameprice to set. * @return This builder for chaining. */ public Builder setNameprice(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nameprice_ = value; onChanged(); return this; } /** * bytes nameprice = 8; * @return This builder for chaining. */ public Builder clearNameprice() { nameprice_ = getDefaultInstance().getNameprice(); onChanged(); return this; } private com.google.protobuf.ByteString totalvotingpower_ = com.google.protobuf.ByteString.EMPTY; /** * bytes totalvotingpower = 9; * @return The totalvotingpower. */ @java.lang.Override public com.google.protobuf.ByteString getTotalvotingpower() { return totalvotingpower_; } /** * bytes totalvotingpower = 9; * @param value The totalvotingpower to set. * @return This builder for chaining. */ public Builder setTotalvotingpower(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } totalvotingpower_ = value; onChanged(); return this; } /** * bytes totalvotingpower = 9; * @return This builder for chaining. */ public Builder clearTotalvotingpower() { totalvotingpower_ = getDefaultInstance().getTotalvotingpower(); onChanged(); return this; } private com.google.protobuf.ByteString votingreward_ = com.google.protobuf.ByteString.EMPTY; /** * bytes votingreward = 10; * @return The votingreward. */ @java.lang.Override public com.google.protobuf.ByteString getVotingreward() { return votingreward_; } /** * bytes votingreward = 10; * @param value The votingreward to set. * @return This builder for chaining. */ public Builder setVotingreward(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } votingreward_ = value; onChanged(); return this; } /** * bytes votingreward = 10; * @return This builder for chaining. */ public Builder clearVotingreward() { votingreward_ = getDefaultInstance().getVotingreward(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ChainInfo) } // @@protoc_insertion_point(class_scope:types.ChainInfo) private static final types.Rpc.ChainInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ChainInfo(); } public static types.Rpc.ChainInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChainInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChainInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ChainInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChainStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ChainStats) com.google.protobuf.MessageOrBuilder { /** * string report = 1; * @return The report. */ java.lang.String getReport(); /** * string report = 1; * @return The bytes for report. */ com.google.protobuf.ByteString getReportBytes(); } /** *
   * ChainStats corresponds to a chain statistics report.
   * 
* * Protobuf type {@code types.ChainStats} */ public static final class ChainStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ChainStats) ChainStatsOrBuilder { private static final long serialVersionUID = 0L; // Use ChainStats.newBuilder() to construct. private ChainStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChainStats() { report_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChainStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChainStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); report_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainStats_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainStats.class, types.Rpc.ChainStats.Builder.class); } public static final int REPORT_FIELD_NUMBER = 1; private volatile java.lang.Object report_; /** * string report = 1; * @return The report. */ @java.lang.Override public java.lang.String getReport() { java.lang.Object ref = report_; 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(); report_ = s; return s; } } /** * string report = 1; * @return The bytes for report. */ @java.lang.Override public com.google.protobuf.ByteString getReportBytes() { java.lang.Object ref = report_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); report_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getReportBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, report_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getReportBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, report_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ChainStats)) { return super.equals(obj); } types.Rpc.ChainStats other = (types.Rpc.ChainStats) obj; if (!getReport() .equals(other.getReport())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REPORT_FIELD_NUMBER; hash = (53 * hash) + getReport().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ChainStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ChainStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ChainStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainStats 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 types.Rpc.ChainStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ChainStats 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 types.Rpc.ChainStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ChainStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ChainStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChainStats corresponds to a chain statistics report.
     * 
* * Protobuf type {@code types.ChainStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ChainStats) types.Rpc.ChainStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ChainStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ChainStats_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ChainStats.class, types.Rpc.ChainStats.Builder.class); } // Construct using types.Rpc.ChainStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); report_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ChainStats_descriptor; } @java.lang.Override public types.Rpc.ChainStats getDefaultInstanceForType() { return types.Rpc.ChainStats.getDefaultInstance(); } @java.lang.Override public types.Rpc.ChainStats build() { types.Rpc.ChainStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ChainStats buildPartial() { types.Rpc.ChainStats result = new types.Rpc.ChainStats(this); result.report_ = report_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ChainStats) { return mergeFrom((types.Rpc.ChainStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ChainStats other) { if (other == types.Rpc.ChainStats.getDefaultInstance()) return this; if (!other.getReport().isEmpty()) { report_ = other.report_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ChainStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ChainStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object report_ = ""; /** * string report = 1; * @return The report. */ public java.lang.String getReport() { java.lang.Object ref = report_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); report_ = s; return s; } else { return (java.lang.String) ref; } } /** * string report = 1; * @return The bytes for report. */ public com.google.protobuf.ByteString getReportBytes() { java.lang.Object ref = report_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); report_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string report = 1; * @param value The report to set. * @return This builder for chaining. */ public Builder setReport( java.lang.String value) { if (value == null) { throw new NullPointerException(); } report_ = value; onChanged(); return this; } /** * string report = 1; * @return This builder for chaining. */ public Builder clearReport() { report_ = getDefaultInstance().getReport(); onChanged(); return this; } /** * string report = 1; * @param value The bytes for report to set. * @return This builder for chaining. */ public Builder setReportBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); report_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ChainStats) } // @@protoc_insertion_point(class_scope:types.ChainStats) private static final types.Rpc.ChainStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ChainStats(); } public static types.Rpc.ChainStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChainStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChainStats(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ChainStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InputOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Input) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * repeated bytes address = 2; * @return A list containing the address. */ java.util.List getAddressList(); /** * repeated bytes address = 2; * @return The count of address. */ int getAddressCount(); /** * repeated bytes address = 2; * @param index The index of the element to return. * @return The address at the given index. */ com.google.protobuf.ByteString getAddress(int index); /** * bytes value = 3; * @return The value. */ com.google.protobuf.ByteString getValue(); /** * bytes script = 4; * @return The script. */ com.google.protobuf.ByteString getScript(); } /** * Protobuf type {@code types.Input} */ public static final class Input extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Input) InputOrBuilder { private static final long serialVersionUID = 0L; // Use Input.newBuilder() to construct. private Input(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Input() { hash_ = com.google.protobuf.ByteString.EMPTY; address_ = java.util.Collections.emptyList(); value_ = com.google.protobuf.ByteString.EMPTY; script_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Input(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Input( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { address_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } address_.add(input.readBytes()); break; } case 26: { value_ = input.readBytes(); break; } case 34: { script_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { address_ = java.util.Collections.unmodifiableList(address_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Input_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Input.class, types.Rpc.Input.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int ADDRESS_FIELD_NUMBER = 2; private java.util.List address_; /** * repeated bytes address = 2; * @return A list containing the address. */ @java.lang.Override public java.util.List getAddressList() { return address_; } /** * repeated bytes address = 2; * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** * repeated bytes address = 2; * @param index The index of the element to return. * @return The address at the given index. */ public com.google.protobuf.ByteString getAddress(int index) { return address_.get(index); } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int SCRIPT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString script_; /** * bytes script = 4; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hash_.isEmpty()) { output.writeBytes(1, hash_); } for (int i = 0; i < address_.size(); i++) { output.writeBytes(2, address_.get(i)); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (!script_.isEmpty()) { output.writeBytes(4, script_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } { int dataSize = 0; for (int i = 0; i < address_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(address_.get(i)); } size += dataSize; size += 1 * getAddressList().size(); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (!script_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, script_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Input)) { return super.equals(obj); } types.Rpc.Input other = (types.Rpc.Input) obj; if (!getHash() .equals(other.getHash())) return false; if (!getAddressList() .equals(other.getAddressList())) return false; if (!getValue() .equals(other.getValue())) return false; if (!getScript() .equals(other.getScript())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); if (getAddressCount() > 0) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddressList().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Input parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Input parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Input parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Input parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Input parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Input parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Input parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Input 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 types.Rpc.Input parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Input 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 types.Rpc.Input parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Input parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Input prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Input} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Input) types.Rpc.InputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Input_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Input_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Input.class, types.Rpc.Input.Builder.class); } // Construct using types.Rpc.Input.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; address_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.ByteString.EMPTY; script_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Input_descriptor; } @java.lang.Override public types.Rpc.Input getDefaultInstanceForType() { return types.Rpc.Input.getDefaultInstance(); } @java.lang.Override public types.Rpc.Input build() { types.Rpc.Input result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Input buildPartial() { types.Rpc.Input result = new types.Rpc.Input(this); int from_bitField0_ = bitField0_; result.hash_ = hash_; if (((bitField0_ & 0x00000001) != 0)) { address_ = java.util.Collections.unmodifiableList(address_); bitField0_ = (bitField0_ & ~0x00000001); } result.address_ = address_; result.value_ = value_; result.script_ = script_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Input) { return mergeFrom((types.Rpc.Input)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Input other) { if (other == types.Rpc.Input.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (!other.address_.isEmpty()) { if (address_.isEmpty()) { address_ = other.address_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAddressIsMutable(); address_.addAll(other.address_); } onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getScript() != com.google.protobuf.ByteString.EMPTY) { setScript(other.getScript()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Input parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Input) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private java.util.List address_ = java.util.Collections.emptyList(); private void ensureAddressIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { address_ = new java.util.ArrayList(address_); bitField0_ |= 0x00000001; } } /** * repeated bytes address = 2; * @return A list containing the address. */ public java.util.List getAddressList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(address_) : address_; } /** * repeated bytes address = 2; * @return The count of address. */ public int getAddressCount() { return address_.size(); } /** * repeated bytes address = 2; * @param index The index of the element to return. * @return The address at the given index. */ public com.google.protobuf.ByteString getAddress(int index) { return address_.get(index); } /** * repeated bytes address = 2; * @param index The index to set the value at. * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.set(index, value); onChanged(); return this; } /** * repeated bytes address = 2; * @param value The address to add. * @return This builder for chaining. */ public Builder addAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAddressIsMutable(); address_.add(value); onChanged(); return this; } /** * repeated bytes address = 2; * @param values The address to add. * @return This builder for chaining. */ public Builder addAllAddress( java.lang.Iterable values) { ensureAddressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, address_); onChanged(); return this; } /** * repeated bytes address = 2; * @return This builder for chaining. */ public Builder clearAddress() { address_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 4; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } /** * bytes script = 4; * @param value The script to set. * @return This builder for chaining. */ public Builder setScript(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } script_ = value; onChanged(); return this; } /** * bytes script = 4; * @return This builder for chaining. */ public Builder clearScript() { script_ = getDefaultInstance().getScript(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Input) } // @@protoc_insertion_point(class_scope:types.Input) private static final types.Rpc.Input DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Input(); } public static types.Rpc.Input getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Input parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Input(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Input getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OutputOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Output) com.google.protobuf.MessageOrBuilder { /** * uint32 index = 1; * @return The index. */ int getIndex(); /** * bytes address = 2; * @return The address. */ com.google.protobuf.ByteString getAddress(); /** * bytes value = 3; * @return The value. */ com.google.protobuf.ByteString getValue(); /** * bytes script = 4; * @return The script. */ com.google.protobuf.ByteString getScript(); } /** * Protobuf type {@code types.Output} */ public static final class Output extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Output) OutputOrBuilder { private static final long serialVersionUID = 0L; // Use Output.newBuilder() to construct. private Output(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Output() { address_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; script_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Output(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Output( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { index_ = input.readUInt32(); break; } case 18: { address_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } case 34: { script_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Output_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Output_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Output.class, types.Rpc.Output.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private int index_; /** * uint32 index = 1; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } public static final int ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString address_; /** * bytes address = 2; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int SCRIPT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString script_; /** * bytes script = 4; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0) { output.writeUInt32(1, index_); } if (!address_.isEmpty()) { output.writeBytes(2, address_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (!script_.isEmpty()) { output.writeBytes(4, script_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, index_); } if (!address_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, address_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (!script_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, script_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Output)) { return super.equals(obj); } types.Rpc.Output other = (types.Rpc.Output) obj; if (getIndex() != other.getIndex()) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getValue() .equals(other.getValue())) return false; if (!getScript() .equals(other.getScript())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Output parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Output parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Output parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Output parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Output parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Output parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Output parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Output 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 types.Rpc.Output parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Output 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 types.Rpc.Output parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Output parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Output prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Output} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Output) types.Rpc.OutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Output_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Output_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Output.class, types.Rpc.Output.Builder.class); } // Construct using types.Rpc.Output.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); index_ = 0; address_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; script_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Output_descriptor; } @java.lang.Override public types.Rpc.Output getDefaultInstanceForType() { return types.Rpc.Output.getDefaultInstance(); } @java.lang.Override public types.Rpc.Output build() { types.Rpc.Output result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Output buildPartial() { types.Rpc.Output result = new types.Rpc.Output(this); result.index_ = index_; result.address_ = address_; result.value_ = value_; result.script_ = script_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Output) { return mergeFrom((types.Rpc.Output)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Output other) { if (other == types.Rpc.Output.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) { setAddress(other.getAddress()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getScript() != com.google.protobuf.ByteString.EMPTY) { setScript(other.getScript()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Output parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Output) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int index_ ; /** * uint32 index = 1; * @return The index. */ @java.lang.Override public int getIndex() { return index_; } /** * uint32 index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** * uint32 index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY; /** * bytes address = 2; * @return The address. */ @java.lang.Override public com.google.protobuf.ByteString getAddress() { return address_; } /** * bytes address = 2; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** * bytes address = 2; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private com.google.protobuf.ByteString script_ = com.google.protobuf.ByteString.EMPTY; /** * bytes script = 4; * @return The script. */ @java.lang.Override public com.google.protobuf.ByteString getScript() { return script_; } /** * bytes script = 4; * @param value The script to set. * @return This builder for chaining. */ public Builder setScript(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } script_ = value; onChanged(); return this; } /** * bytes script = 4; * @return This builder for chaining. */ public Builder clearScript() { script_ = getDefaultInstance().getScript(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Output) } // @@protoc_insertion_point(class_scope:types.Output) private static final types.Rpc.Output DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Output(); } public static types.Rpc.Output getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Output parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Output(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Output getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmptyOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Empty) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code types.Empty} */ public static final class Empty extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Empty) EmptyOrBuilder { private static final long serialVersionUID = 0L; // Use Empty.newBuilder() to construct. private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Empty() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Empty(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Empty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Empty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Empty_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Empty.class, types.Rpc.Empty.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Empty)) { return super.equals(obj); } types.Rpc.Empty other = (types.Rpc.Empty) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Empty parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Empty parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Empty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Empty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Empty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Empty parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Empty parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Empty 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 types.Rpc.Empty parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Empty 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 types.Rpc.Empty parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Empty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Empty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Empty} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Empty) types.Rpc.EmptyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Empty_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Empty_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Empty.class, types.Rpc.Empty.Builder.class); } // Construct using types.Rpc.Empty.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Empty_descriptor; } @java.lang.Override public types.Rpc.Empty getDefaultInstanceForType() { return types.Rpc.Empty.getDefaultInstance(); } @java.lang.Override public types.Rpc.Empty build() { types.Rpc.Empty result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Empty buildPartial() { types.Rpc.Empty result = new types.Rpc.Empty(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Empty) { return mergeFrom((types.Rpc.Empty)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Empty other) { if (other == types.Rpc.Empty.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Empty parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Empty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Empty) } // @@protoc_insertion_point(class_scope:types.Empty) private static final types.Rpc.Empty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Empty(); } public static types.Rpc.Empty getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Empty parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Empty(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Empty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SingleBytesOrBuilder extends // @@protoc_insertion_point(interface_extends:types.SingleBytes) com.google.protobuf.MessageOrBuilder { /** * bytes value = 1; * @return The value. */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code types.SingleBytes} */ public static final class SingleBytes extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.SingleBytes) SingleBytesOrBuilder { private static final long serialVersionUID = 0L; // Use SingleBytes.newBuilder() to construct. private SingleBytes(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SingleBytes() { value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SingleBytes(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SingleBytes( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { value_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_SingleBytes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_SingleBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.SingleBytes.class, types.Rpc.SingleBytes.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * bytes value = 1; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!value_.isEmpty()) { output.writeBytes(1, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.SingleBytes)) { return super.equals(obj); } types.Rpc.SingleBytes other = (types.Rpc.SingleBytes) obj; if (!getValue() .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.SingleBytes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleBytes parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleBytes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleBytes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleBytes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleBytes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleBytes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.SingleBytes 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 types.Rpc.SingleBytes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.SingleBytes 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 types.Rpc.SingleBytes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.SingleBytes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.SingleBytes prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.SingleBytes} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.SingleBytes) types.Rpc.SingleBytesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_SingleBytes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_SingleBytes_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.SingleBytes.class, types.Rpc.SingleBytes.Builder.class); } // Construct using types.Rpc.SingleBytes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_SingleBytes_descriptor; } @java.lang.Override public types.Rpc.SingleBytes getDefaultInstanceForType() { return types.Rpc.SingleBytes.getDefaultInstance(); } @java.lang.Override public types.Rpc.SingleBytes build() { types.Rpc.SingleBytes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.SingleBytes buildPartial() { types.Rpc.SingleBytes result = new types.Rpc.SingleBytes(this); result.value_ = value_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.SingleBytes) { return mergeFrom((types.Rpc.SingleBytes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.SingleBytes other) { if (other == types.Rpc.SingleBytes.getDefaultInstance()) return this; if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.SingleBytes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.SingleBytes) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 1; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.SingleBytes) } // @@protoc_insertion_point(class_scope:types.SingleBytes) private static final types.Rpc.SingleBytes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.SingleBytes(); } public static types.Rpc.SingleBytes getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SingleBytes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SingleBytes(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.SingleBytes getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SingleStringOrBuilder extends // @@protoc_insertion_point(interface_extends:types.SingleString) com.google.protobuf.MessageOrBuilder { /** * string value = 1; * @return The value. */ java.lang.String getValue(); /** * string value = 1; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code types.SingleString} */ public static final class SingleString extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.SingleString) SingleStringOrBuilder { private static final long serialVersionUID = 0L; // Use SingleString.newBuilder() to construct. private SingleString(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SingleString() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SingleString(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SingleString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); value_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_SingleString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_SingleString_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.SingleString.class, types.Rpc.SingleString.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** * string value = 1; * @return The value. */ @java.lang.Override 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; } } /** * string value = 1; * @return The bytes for value. */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.SingleString)) { return super.equals(obj); } types.Rpc.SingleString other = (types.Rpc.SingleString) obj; if (!getValue() .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.SingleString parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleString parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleString parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.SingleString parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.SingleString parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.SingleString 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 types.Rpc.SingleString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.SingleString 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 types.Rpc.SingleString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.SingleString parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.SingleString prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.SingleString} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.SingleString) types.Rpc.SingleStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_SingleString_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_SingleString_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.SingleString.class, types.Rpc.SingleString.Builder.class); } // Construct using types.Rpc.SingleString.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_SingleString_descriptor; } @java.lang.Override public types.Rpc.SingleString getDefaultInstanceForType() { return types.Rpc.SingleString.getDefaultInstance(); } @java.lang.Override public types.Rpc.SingleString build() { types.Rpc.SingleString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.SingleString buildPartial() { types.Rpc.SingleString result = new types.Rpc.SingleString(this); result.value_ = value_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.SingleString) { return mergeFrom((types.Rpc.SingleString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.SingleString other) { if (other == types.Rpc.SingleString.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.SingleString parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.SingleString) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object value_ = ""; /** * string value = 1; * @return The value. */ 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; } } /** * string value = 1; * @return The bytes for value. */ 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; } } /** * string value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * string value = 1; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.SingleString) } // @@protoc_insertion_point(class_scope:types.SingleString) private static final types.Rpc.SingleString DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.SingleString(); } public static types.Rpc.SingleString getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SingleString parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SingleString(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.SingleString getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:types.AccountAddress) com.google.protobuf.MessageOrBuilder { /** * bytes value = 1; * @return The value. */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code types.AccountAddress} */ public static final class AccountAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.AccountAddress) AccountAddressOrBuilder { private static final long serialVersionUID = 0L; // Use AccountAddress.newBuilder() to construct. private AccountAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountAddress() { value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountAddress(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { value_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountAddress.class, types.Rpc.AccountAddress.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * bytes value = 1; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!value_.isEmpty()) { output.writeBytes(1, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.AccountAddress)) { return super.equals(obj); } types.Rpc.AccountAddress other = (types.Rpc.AccountAddress) obj; if (!getValue() .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.AccountAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAddress parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAddress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountAddress 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 types.Rpc.AccountAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.AccountAddress 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 types.Rpc.AccountAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountAddress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.AccountAddress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.AccountAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.AccountAddress) types.Rpc.AccountAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountAddress.class, types.Rpc.AccountAddress.Builder.class); } // Construct using types.Rpc.AccountAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_AccountAddress_descriptor; } @java.lang.Override public types.Rpc.AccountAddress getDefaultInstanceForType() { return types.Rpc.AccountAddress.getDefaultInstance(); } @java.lang.Override public types.Rpc.AccountAddress build() { types.Rpc.AccountAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.AccountAddress buildPartial() { types.Rpc.AccountAddress result = new types.Rpc.AccountAddress(this); result.value_ = value_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.AccountAddress) { return mergeFrom((types.Rpc.AccountAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.AccountAddress other) { if (other == types.Rpc.AccountAddress.getDefaultInstance()) return this; if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.AccountAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.AccountAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 1; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.AccountAddress) } // @@protoc_insertion_point(class_scope:types.AccountAddress) private static final types.Rpc.AccountAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.AccountAddress(); } public static types.Rpc.AccountAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountAddress(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.AccountAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountAndRootOrBuilder extends // @@protoc_insertion_point(interface_extends:types.AccountAndRoot) com.google.protobuf.MessageOrBuilder { /** * bytes Account = 1; * @return The account. */ com.google.protobuf.ByteString getAccount(); /** * bytes Root = 2; * @return The root. */ com.google.protobuf.ByteString getRoot(); /** * bool Compressed = 3; * @return The compressed. */ boolean getCompressed(); } /** * Protobuf type {@code types.AccountAndRoot} */ public static final class AccountAndRoot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.AccountAndRoot) AccountAndRootOrBuilder { private static final long serialVersionUID = 0L; // Use AccountAndRoot.newBuilder() to construct. private AccountAndRoot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountAndRoot() { account_ = com.google.protobuf.ByteString.EMPTY; root_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountAndRoot(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountAndRoot( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { account_ = input.readBytes(); break; } case 18: { root_ = input.readBytes(); break; } case 24: { compressed_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountAndRoot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountAndRoot_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountAndRoot.class, types.Rpc.AccountAndRoot.Builder.class); } public static final int ACCOUNT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString account_; /** * bytes Account = 1; * @return The account. */ @java.lang.Override public com.google.protobuf.ByteString getAccount() { return account_; } public static final int ROOT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString root_; /** * bytes Root = 2; * @return The root. */ @java.lang.Override public com.google.protobuf.ByteString getRoot() { return root_; } public static final int COMPRESSED_FIELD_NUMBER = 3; private boolean compressed_; /** * bool Compressed = 3; * @return The compressed. */ @java.lang.Override public boolean getCompressed() { return compressed_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!account_.isEmpty()) { output.writeBytes(1, account_); } if (!root_.isEmpty()) { output.writeBytes(2, root_); } if (compressed_ != false) { output.writeBool(3, compressed_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!account_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, account_); } if (!root_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, root_); } if (compressed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, compressed_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.AccountAndRoot)) { return super.equals(obj); } types.Rpc.AccountAndRoot other = (types.Rpc.AccountAndRoot) obj; if (!getAccount() .equals(other.getAccount())) return false; if (!getRoot() .equals(other.getRoot())) return false; if (getCompressed() != other.getCompressed()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAccount().hashCode(); hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); hash = (37 * hash) + COMPRESSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCompressed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.AccountAndRoot parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAndRoot parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAndRoot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAndRoot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAndRoot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountAndRoot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountAndRoot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountAndRoot 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 types.Rpc.AccountAndRoot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.AccountAndRoot 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 types.Rpc.AccountAndRoot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountAndRoot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.AccountAndRoot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.AccountAndRoot} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.AccountAndRoot) types.Rpc.AccountAndRootOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountAndRoot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountAndRoot_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountAndRoot.class, types.Rpc.AccountAndRoot.Builder.class); } // Construct using types.Rpc.AccountAndRoot.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); account_ = com.google.protobuf.ByteString.EMPTY; root_ = com.google.protobuf.ByteString.EMPTY; compressed_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_AccountAndRoot_descriptor; } @java.lang.Override public types.Rpc.AccountAndRoot getDefaultInstanceForType() { return types.Rpc.AccountAndRoot.getDefaultInstance(); } @java.lang.Override public types.Rpc.AccountAndRoot build() { types.Rpc.AccountAndRoot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.AccountAndRoot buildPartial() { types.Rpc.AccountAndRoot result = new types.Rpc.AccountAndRoot(this); result.account_ = account_; result.root_ = root_; result.compressed_ = compressed_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.AccountAndRoot) { return mergeFrom((types.Rpc.AccountAndRoot)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.AccountAndRoot other) { if (other == types.Rpc.AccountAndRoot.getDefaultInstance()) return this; if (other.getAccount() != com.google.protobuf.ByteString.EMPTY) { setAccount(other.getAccount()); } if (other.getRoot() != com.google.protobuf.ByteString.EMPTY) { setRoot(other.getRoot()); } if (other.getCompressed() != false) { setCompressed(other.getCompressed()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.AccountAndRoot parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.AccountAndRoot) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString account_ = com.google.protobuf.ByteString.EMPTY; /** * bytes Account = 1; * @return The account. */ @java.lang.Override public com.google.protobuf.ByteString getAccount() { return account_; } /** * bytes Account = 1; * @param value The account to set. * @return This builder for chaining. */ public Builder setAccount(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } account_ = value; onChanged(); return this; } /** * bytes Account = 1; * @return This builder for chaining. */ public Builder clearAccount() { account_ = getDefaultInstance().getAccount(); onChanged(); return this; } private com.google.protobuf.ByteString root_ = com.google.protobuf.ByteString.EMPTY; /** * bytes Root = 2; * @return The root. */ @java.lang.Override public com.google.protobuf.ByteString getRoot() { return root_; } /** * bytes Root = 2; * @param value The root to set. * @return This builder for chaining. */ public Builder setRoot(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } root_ = value; onChanged(); return this; } /** * bytes Root = 2; * @return This builder for chaining. */ public Builder clearRoot() { root_ = getDefaultInstance().getRoot(); onChanged(); return this; } private boolean compressed_ ; /** * bool Compressed = 3; * @return The compressed. */ @java.lang.Override public boolean getCompressed() { return compressed_; } /** * bool Compressed = 3; * @param value The compressed to set. * @return This builder for chaining. */ public Builder setCompressed(boolean value) { compressed_ = value; onChanged(); return this; } /** * bool Compressed = 3; * @return This builder for chaining. */ public Builder clearCompressed() { compressed_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.AccountAndRoot) } // @@protoc_insertion_point(class_scope:types.AccountAndRoot) private static final types.Rpc.AccountAndRoot DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.AccountAndRoot(); } public static types.Rpc.AccountAndRoot getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountAndRoot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountAndRoot(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.AccountAndRoot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Peer) com.google.protobuf.MessageOrBuilder { /** * .types.PeerAddress address = 1; * @return Whether the address field is set. */ boolean hasAddress(); /** * .types.PeerAddress address = 1; * @return The address. */ types.Node.PeerAddress getAddress(); /** * .types.PeerAddress address = 1; */ types.Node.PeerAddressOrBuilder getAddressOrBuilder(); /** * .types.NewBlockNotice bestblock = 2; * @return Whether the bestblock field is set. */ boolean hasBestblock(); /** * .types.NewBlockNotice bestblock = 2; * @return The bestblock. */ types.P2P.NewBlockNotice getBestblock(); /** * .types.NewBlockNotice bestblock = 2; */ types.P2P.NewBlockNoticeOrBuilder getBestblockOrBuilder(); /** * int32 state = 3; * @return The state. */ int getState(); /** * bool hidden = 4; * @return The hidden. */ boolean getHidden(); /** * int64 lashCheck = 5; * @return The lashCheck. */ long getLashCheck(); /** * bool selfpeer = 6; * @return The selfpeer. */ boolean getSelfpeer(); /** * string version = 7; * @return The version. */ java.lang.String getVersion(); /** * string version = 7; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * repeated .types.AgentCertificate certificates = 8; */ java.util.List getCertificatesList(); /** * repeated .types.AgentCertificate certificates = 8; */ types.Node.AgentCertificate getCertificates(int index); /** * repeated .types.AgentCertificate certificates = 8; */ int getCertificatesCount(); /** * repeated .types.AgentCertificate certificates = 8; */ java.util.List getCertificatesOrBuilderList(); /** * repeated .types.AgentCertificate certificates = 8; */ types.Node.AgentCertificateOrBuilder getCertificatesOrBuilder( int index); /** * .types.PeerRole acceptedRole = 9; * @return The enum numeric value on the wire for acceptedRole. */ int getAcceptedRoleValue(); /** * .types.PeerRole acceptedRole = 9; * @return The acceptedRole. */ types.Node.PeerRole getAcceptedRole(); } /** * Protobuf type {@code types.Peer} */ public static final class Peer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Peer) PeerOrBuilder { private static final long serialVersionUID = 0L; // Use Peer.newBuilder() to construct. private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Peer() { version_ = ""; certificates_ = java.util.Collections.emptyList(); acceptedRole_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Peer(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Peer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Node.PeerAddress.Builder subBuilder = null; if (address_ != null) { subBuilder = address_.toBuilder(); } address_ = input.readMessage(types.Node.PeerAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(address_); address_ = subBuilder.buildPartial(); } break; } case 18: { types.P2P.NewBlockNotice.Builder subBuilder = null; if (bestblock_ != null) { subBuilder = bestblock_.toBuilder(); } bestblock_ = input.readMessage(types.P2P.NewBlockNotice.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bestblock_); bestblock_ = subBuilder.buildPartial(); } break; } case 24: { state_ = input.readInt32(); break; } case 32: { hidden_ = input.readBool(); break; } case 40: { lashCheck_ = input.readInt64(); break; } case 48: { selfpeer_ = input.readBool(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } certificates_.add( input.readMessage(types.Node.AgentCertificate.parser(), extensionRegistry)); break; } case 72: { int rawValue = input.readEnum(); acceptedRole_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Peer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Peer.class, types.Rpc.Peer.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private types.Node.PeerAddress address_; /** * .types.PeerAddress address = 1; * @return Whether the address field is set. */ @java.lang.Override public boolean hasAddress() { return address_ != null; } /** * .types.PeerAddress address = 1; * @return The address. */ @java.lang.Override public types.Node.PeerAddress getAddress() { return address_ == null ? types.Node.PeerAddress.getDefaultInstance() : address_; } /** * .types.PeerAddress address = 1; */ @java.lang.Override public types.Node.PeerAddressOrBuilder getAddressOrBuilder() { return getAddress(); } public static final int BESTBLOCK_FIELD_NUMBER = 2; private types.P2P.NewBlockNotice bestblock_; /** * .types.NewBlockNotice bestblock = 2; * @return Whether the bestblock field is set. */ @java.lang.Override public boolean hasBestblock() { return bestblock_ != null; } /** * .types.NewBlockNotice bestblock = 2; * @return The bestblock. */ @java.lang.Override public types.P2P.NewBlockNotice getBestblock() { return bestblock_ == null ? types.P2P.NewBlockNotice.getDefaultInstance() : bestblock_; } /** * .types.NewBlockNotice bestblock = 2; */ @java.lang.Override public types.P2P.NewBlockNoticeOrBuilder getBestblockOrBuilder() { return getBestblock(); } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** * int32 state = 3; * @return The state. */ @java.lang.Override public int getState() { return state_; } public static final int HIDDEN_FIELD_NUMBER = 4; private boolean hidden_; /** * bool hidden = 4; * @return The hidden. */ @java.lang.Override public boolean getHidden() { return hidden_; } public static final int LASHCHECK_FIELD_NUMBER = 5; private long lashCheck_; /** * int64 lashCheck = 5; * @return The lashCheck. */ @java.lang.Override public long getLashCheck() { return lashCheck_; } public static final int SELFPEER_FIELD_NUMBER = 6; private boolean selfpeer_; /** * bool selfpeer = 6; * @return The selfpeer. */ @java.lang.Override public boolean getSelfpeer() { return selfpeer_; } public static final int VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object version_; /** * string version = 7; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * string version = 7; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CERTIFICATES_FIELD_NUMBER = 8; private java.util.List certificates_; /** * repeated .types.AgentCertificate certificates = 8; */ @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** * repeated .types.AgentCertificate certificates = 8; */ @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** * repeated .types.AgentCertificate certificates = 8; */ @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** * repeated .types.AgentCertificate certificates = 8; */ @java.lang.Override public types.Node.AgentCertificate getCertificates(int index) { return certificates_.get(index); } /** * repeated .types.AgentCertificate certificates = 8; */ @java.lang.Override public types.Node.AgentCertificateOrBuilder getCertificatesOrBuilder( int index) { return certificates_.get(index); } public static final int ACCEPTEDROLE_FIELD_NUMBER = 9; private int acceptedRole_; /** * .types.PeerRole acceptedRole = 9; * @return The enum numeric value on the wire for acceptedRole. */ @java.lang.Override public int getAcceptedRoleValue() { return acceptedRole_; } /** * .types.PeerRole acceptedRole = 9; * @return The acceptedRole. */ @java.lang.Override public types.Node.PeerRole getAcceptedRole() { @SuppressWarnings("deprecation") types.Node.PeerRole result = types.Node.PeerRole.valueOf(acceptedRole_); return result == null ? types.Node.PeerRole.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (address_ != null) { output.writeMessage(1, getAddress()); } if (bestblock_ != null) { output.writeMessage(2, getBestblock()); } if (state_ != 0) { output.writeInt32(3, state_); } if (hidden_ != false) { output.writeBool(4, hidden_); } if (lashCheck_ != 0L) { output.writeInt64(5, lashCheck_); } if (selfpeer_ != false) { output.writeBool(6, selfpeer_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, version_); } for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(8, certificates_.get(i)); } if (acceptedRole_ != types.Node.PeerRole.LegacyVersion.getNumber()) { output.writeEnum(9, acceptedRole_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAddress()); } if (bestblock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getBestblock()); } if (state_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, state_); } if (hidden_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, hidden_); } if (lashCheck_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, lashCheck_); } if (selfpeer_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, selfpeer_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, version_); } for (int i = 0; i < certificates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, certificates_.get(i)); } if (acceptedRole_ != types.Node.PeerRole.LegacyVersion.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, acceptedRole_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Peer)) { return super.equals(obj); } types.Rpc.Peer other = (types.Rpc.Peer) obj; if (hasAddress() != other.hasAddress()) return false; if (hasAddress()) { if (!getAddress() .equals(other.getAddress())) return false; } if (hasBestblock() != other.hasBestblock()) return false; if (hasBestblock()) { if (!getBestblock() .equals(other.getBestblock())) return false; } if (getState() != other.getState()) return false; if (getHidden() != other.getHidden()) return false; if (getLashCheck() != other.getLashCheck()) return false; if (getSelfpeer() != other.getSelfpeer()) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getCertificatesList() .equals(other.getCertificatesList())) return false; if (acceptedRole_ != other.acceptedRole_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (hasBestblock()) { hash = (37 * hash) + BESTBLOCK_FIELD_NUMBER; hash = (53 * hash) + getBestblock().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState(); hash = (37 * hash) + HIDDEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHidden()); hash = (37 * hash) + LASHCHECK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLashCheck()); hash = (37 * hash) + SELFPEER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSelfpeer()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (getCertificatesCount() > 0) { hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getCertificatesList().hashCode(); } hash = (37 * hash) + ACCEPTEDROLE_FIELD_NUMBER; hash = (53 * hash) + acceptedRole_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Peer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Peer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Peer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Peer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Peer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Peer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Peer 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 types.Rpc.Peer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Peer 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 types.Rpc.Peer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Peer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Peer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Peer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Peer) types.Rpc.PeerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Peer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Peer.class, types.Rpc.Peer.Builder.class); } // Construct using types.Rpc.Peer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (addressBuilder_ == null) { address_ = null; } else { address_ = null; addressBuilder_ = null; } if (bestblockBuilder_ == null) { bestblock_ = null; } else { bestblock_ = null; bestblockBuilder_ = null; } state_ = 0; hidden_ = false; lashCheck_ = 0L; selfpeer_ = false; version_ = ""; if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { certificatesBuilder_.clear(); } acceptedRole_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Peer_descriptor; } @java.lang.Override public types.Rpc.Peer getDefaultInstanceForType() { return types.Rpc.Peer.getDefaultInstance(); } @java.lang.Override public types.Rpc.Peer build() { types.Rpc.Peer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Peer buildPartial() { types.Rpc.Peer result = new types.Rpc.Peer(this); int from_bitField0_ = bitField0_; if (addressBuilder_ == null) { result.address_ = address_; } else { result.address_ = addressBuilder_.build(); } if (bestblockBuilder_ == null) { result.bestblock_ = bestblock_; } else { result.bestblock_ = bestblockBuilder_.build(); } result.state_ = state_; result.hidden_ = hidden_; result.lashCheck_ = lashCheck_; result.selfpeer_ = selfpeer_; result.version_ = version_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } result.certificates_ = certificates_; } else { result.certificates_ = certificatesBuilder_.build(); } result.acceptedRole_ = acceptedRole_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Peer) { return mergeFrom((types.Rpc.Peer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Peer other) { if (other == types.Rpc.Peer.getDefaultInstance()) return this; if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (other.hasBestblock()) { mergeBestblock(other.getBestblock()); } if (other.getState() != 0) { setState(other.getState()); } if (other.getHidden() != false) { setHidden(other.getHidden()); } if (other.getLashCheck() != 0L) { setLashCheck(other.getLashCheck()); } if (other.getSelfpeer() != false) { setSelfpeer(other.getSelfpeer()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCertificatesIsMutable(); certificates_.addAll(other.certificates_); } onChanged(); } } else { if (!other.certificates_.isEmpty()) { if (certificatesBuilder_.isEmpty()) { certificatesBuilder_.dispose(); certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); certificatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCertificatesFieldBuilder() : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } } } if (other.acceptedRole_ != 0) { setAcceptedRoleValue(other.getAcceptedRoleValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Peer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Peer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private types.Node.PeerAddress address_; private com.google.protobuf.SingleFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder> addressBuilder_; /** * .types.PeerAddress address = 1; * @return Whether the address field is set. */ public boolean hasAddress() { return addressBuilder_ != null || address_ != null; } /** * .types.PeerAddress address = 1; * @return The address. */ public types.Node.PeerAddress getAddress() { if (addressBuilder_ == null) { return address_ == null ? types.Node.PeerAddress.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** * .types.PeerAddress address = 1; */ public Builder setAddress(types.Node.PeerAddress value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { addressBuilder_.setMessage(value); } return this; } /** * .types.PeerAddress address = 1; */ public Builder setAddress( types.Node.PeerAddress.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { addressBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.PeerAddress address = 1; */ public Builder mergeAddress(types.Node.PeerAddress value) { if (addressBuilder_ == null) { if (address_ != null) { address_ = types.Node.PeerAddress.newBuilder(address_).mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { addressBuilder_.mergeFrom(value); } return this; } /** * .types.PeerAddress address = 1; */ public Builder clearAddress() { if (addressBuilder_ == null) { address_ = null; onChanged(); } else { address_ = null; addressBuilder_ = null; } return this; } /** * .types.PeerAddress address = 1; */ public types.Node.PeerAddress.Builder getAddressBuilder() { onChanged(); return getAddressFieldBuilder().getBuilder(); } /** * .types.PeerAddress address = 1; */ public types.Node.PeerAddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? types.Node.PeerAddress.getDefaultInstance() : address_; } } /** * .types.PeerAddress address = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Node.PeerAddress, types.Node.PeerAddress.Builder, types.Node.PeerAddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private types.P2P.NewBlockNotice bestblock_; private com.google.protobuf.SingleFieldBuilderV3< types.P2P.NewBlockNotice, types.P2P.NewBlockNotice.Builder, types.P2P.NewBlockNoticeOrBuilder> bestblockBuilder_; /** * .types.NewBlockNotice bestblock = 2; * @return Whether the bestblock field is set. */ public boolean hasBestblock() { return bestblockBuilder_ != null || bestblock_ != null; } /** * .types.NewBlockNotice bestblock = 2; * @return The bestblock. */ public types.P2P.NewBlockNotice getBestblock() { if (bestblockBuilder_ == null) { return bestblock_ == null ? types.P2P.NewBlockNotice.getDefaultInstance() : bestblock_; } else { return bestblockBuilder_.getMessage(); } } /** * .types.NewBlockNotice bestblock = 2; */ public Builder setBestblock(types.P2P.NewBlockNotice value) { if (bestblockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bestblock_ = value; onChanged(); } else { bestblockBuilder_.setMessage(value); } return this; } /** * .types.NewBlockNotice bestblock = 2; */ public Builder setBestblock( types.P2P.NewBlockNotice.Builder builderForValue) { if (bestblockBuilder_ == null) { bestblock_ = builderForValue.build(); onChanged(); } else { bestblockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.NewBlockNotice bestblock = 2; */ public Builder mergeBestblock(types.P2P.NewBlockNotice value) { if (bestblockBuilder_ == null) { if (bestblock_ != null) { bestblock_ = types.P2P.NewBlockNotice.newBuilder(bestblock_).mergeFrom(value).buildPartial(); } else { bestblock_ = value; } onChanged(); } else { bestblockBuilder_.mergeFrom(value); } return this; } /** * .types.NewBlockNotice bestblock = 2; */ public Builder clearBestblock() { if (bestblockBuilder_ == null) { bestblock_ = null; onChanged(); } else { bestblock_ = null; bestblockBuilder_ = null; } return this; } /** * .types.NewBlockNotice bestblock = 2; */ public types.P2P.NewBlockNotice.Builder getBestblockBuilder() { onChanged(); return getBestblockFieldBuilder().getBuilder(); } /** * .types.NewBlockNotice bestblock = 2; */ public types.P2P.NewBlockNoticeOrBuilder getBestblockOrBuilder() { if (bestblockBuilder_ != null) { return bestblockBuilder_.getMessageOrBuilder(); } else { return bestblock_ == null ? types.P2P.NewBlockNotice.getDefaultInstance() : bestblock_; } } /** * .types.NewBlockNotice bestblock = 2; */ private com.google.protobuf.SingleFieldBuilderV3< types.P2P.NewBlockNotice, types.P2P.NewBlockNotice.Builder, types.P2P.NewBlockNoticeOrBuilder> getBestblockFieldBuilder() { if (bestblockBuilder_ == null) { bestblockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.P2P.NewBlockNotice, types.P2P.NewBlockNotice.Builder, types.P2P.NewBlockNoticeOrBuilder>( getBestblock(), getParentForChildren(), isClean()); bestblock_ = null; } return bestblockBuilder_; } private int state_ ; /** * int32 state = 3; * @return The state. */ @java.lang.Override public int getState() { return state_; } /** * int32 state = 3; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(int value) { state_ = value; onChanged(); return this; } /** * int32 state = 3; * @return This builder for chaining. */ public Builder clearState() { state_ = 0; onChanged(); return this; } private boolean hidden_ ; /** * bool hidden = 4; * @return The hidden. */ @java.lang.Override public boolean getHidden() { return hidden_; } /** * bool hidden = 4; * @param value The hidden to set. * @return This builder for chaining. */ public Builder setHidden(boolean value) { hidden_ = value; onChanged(); return this; } /** * bool hidden = 4; * @return This builder for chaining. */ public Builder clearHidden() { hidden_ = false; onChanged(); return this; } private long lashCheck_ ; /** * int64 lashCheck = 5; * @return The lashCheck. */ @java.lang.Override public long getLashCheck() { return lashCheck_; } /** * int64 lashCheck = 5; * @param value The lashCheck to set. * @return This builder for chaining. */ public Builder setLashCheck(long value) { lashCheck_ = value; onChanged(); return this; } /** * int64 lashCheck = 5; * @return This builder for chaining. */ public Builder clearLashCheck() { lashCheck_ = 0L; onChanged(); return this; } private boolean selfpeer_ ; /** * bool selfpeer = 6; * @return The selfpeer. */ @java.lang.Override public boolean getSelfpeer() { return selfpeer_; } /** * bool selfpeer = 6; * @param value The selfpeer to set. * @return This builder for chaining. */ public Builder setSelfpeer(boolean value) { selfpeer_ = value; onChanged(); return this; } /** * bool selfpeer = 6; * @return This builder for chaining. */ public Builder clearSelfpeer() { selfpeer_ = false; onChanged(); return this; } private java.lang.Object version_ = ""; /** * string version = 7; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 7; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 7; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** * string version = 7; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 7; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Node.AgentCertificate, types.Node.AgentCertificate.Builder, types.Node.AgentCertificateOrBuilder> certificatesBuilder_; /** * repeated .types.AgentCertificate certificates = 8; */ public java.util.List getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { return certificatesBuilder_.getMessageList(); } } /** * repeated .types.AgentCertificate certificates = 8; */ public int getCertificatesCount() { if (certificatesBuilder_ == null) { return certificates_.size(); } else { return certificatesBuilder_.getCount(); } } /** * repeated .types.AgentCertificate certificates = 8; */ public types.Node.AgentCertificate getCertificates(int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessage(index); } } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder setCertificates( int index, types.Node.AgentCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.set(index, value); onChanged(); } else { certificatesBuilder_.setMessage(index, value); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder setCertificates( int index, types.Node.AgentCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.set(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder addCertificates(types.Node.AgentCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); } else { certificatesBuilder_.addMessage(value); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder addCertificates( int index, types.Node.AgentCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(index, value); onChanged(); } else { certificatesBuilder_.addMessage(index, value); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder addCertificates( types.Node.AgentCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder addCertificates( int index, types.Node.AgentCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder addAllCertificates( java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder clearCertificates() { if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { certificatesBuilder_.clear(); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public Builder removeCertificates(int index) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.remove(index); onChanged(); } else { certificatesBuilder_.remove(index); } return this; } /** * repeated .types.AgentCertificate certificates = 8; */ public types.Node.AgentCertificate.Builder getCertificatesBuilder( int index) { return getCertificatesFieldBuilder().getBuilder(index); } /** * repeated .types.AgentCertificate certificates = 8; */ public types.Node.AgentCertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.AgentCertificate certificates = 8; */ public java.util.List getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(certificates_); } } /** * repeated .types.AgentCertificate certificates = 8; */ public types.Node.AgentCertificate.Builder addCertificatesBuilder() { return getCertificatesFieldBuilder().addBuilder( types.Node.AgentCertificate.getDefaultInstance()); } /** * repeated .types.AgentCertificate certificates = 8; */ public types.Node.AgentCertificate.Builder addCertificatesBuilder( int index) { return getCertificatesFieldBuilder().addBuilder( index, types.Node.AgentCertificate.getDefaultInstance()); } /** * repeated .types.AgentCertificate certificates = 8; */ public java.util.List getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Node.AgentCertificate, types.Node.AgentCertificate.Builder, types.Node.AgentCertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Node.AgentCertificate, types.Node.AgentCertificate.Builder, types.Node.AgentCertificateOrBuilder>( certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; } return certificatesBuilder_; } private int acceptedRole_ = 0; /** * .types.PeerRole acceptedRole = 9; * @return The enum numeric value on the wire for acceptedRole. */ @java.lang.Override public int getAcceptedRoleValue() { return acceptedRole_; } /** * .types.PeerRole acceptedRole = 9; * @param value The enum numeric value on the wire for acceptedRole to set. * @return This builder for chaining. */ public Builder setAcceptedRoleValue(int value) { acceptedRole_ = value; onChanged(); return this; } /** * .types.PeerRole acceptedRole = 9; * @return The acceptedRole. */ @java.lang.Override public types.Node.PeerRole getAcceptedRole() { @SuppressWarnings("deprecation") types.Node.PeerRole result = types.Node.PeerRole.valueOf(acceptedRole_); return result == null ? types.Node.PeerRole.UNRECOGNIZED : result; } /** * .types.PeerRole acceptedRole = 9; * @param value The acceptedRole to set. * @return This builder for chaining. */ public Builder setAcceptedRole(types.Node.PeerRole value) { if (value == null) { throw new NullPointerException(); } acceptedRole_ = value.getNumber(); onChanged(); return this; } /** * .types.PeerRole acceptedRole = 9; * @return This builder for chaining. */ public Builder clearAcceptedRole() { acceptedRole_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Peer) } // @@protoc_insertion_point(class_scope:types.Peer) private static final types.Rpc.Peer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Peer(); } public static types.Rpc.Peer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Peer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Peer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Peer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.PeerList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.Peer peers = 1; */ java.util.List getPeersList(); /** * repeated .types.Peer peers = 1; */ types.Rpc.Peer getPeers(int index); /** * repeated .types.Peer peers = 1; */ int getPeersCount(); /** * repeated .types.Peer peers = 1; */ java.util.List getPeersOrBuilderList(); /** * repeated .types.Peer peers = 1; */ types.Rpc.PeerOrBuilder getPeersOrBuilder( int index); } /** * Protobuf type {@code types.PeerList} */ public static final class PeerList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.PeerList) PeerListOrBuilder { private static final long serialVersionUID = 0L; // Use PeerList.newBuilder() to construct. private PeerList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerList() { peers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PeerList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { peers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } peers_.add( input.readMessage(types.Rpc.Peer.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { peers_ = java.util.Collections.unmodifiableList(peers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PeerList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PeerList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PeerList.class, types.Rpc.PeerList.Builder.class); } public static final int PEERS_FIELD_NUMBER = 1; private java.util.List peers_; /** * repeated .types.Peer peers = 1; */ @java.lang.Override public java.util.List getPeersList() { return peers_; } /** * repeated .types.Peer peers = 1; */ @java.lang.Override public java.util.List getPeersOrBuilderList() { return peers_; } /** * repeated .types.Peer peers = 1; */ @java.lang.Override public int getPeersCount() { return peers_.size(); } /** * repeated .types.Peer peers = 1; */ @java.lang.Override public types.Rpc.Peer getPeers(int index) { return peers_.get(index); } /** * repeated .types.Peer peers = 1; */ @java.lang.Override public types.Rpc.PeerOrBuilder getPeersOrBuilder( int index) { return peers_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peers_.size(); i++) { output.writeMessage(1, peers_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < peers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peers_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.PeerList)) { return super.equals(obj); } types.Rpc.PeerList other = (types.Rpc.PeerList) obj; if (!getPeersList() .equals(other.getPeersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPeersCount() > 0) { hash = (37 * hash) + PEERS_FIELD_NUMBER; hash = (53 * hash) + getPeersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.PeerList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeerList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeerList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeerList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeerList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeerList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeerList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PeerList 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 types.Rpc.PeerList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.PeerList 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 types.Rpc.PeerList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PeerList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.PeerList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.PeerList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.PeerList) types.Rpc.PeerListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PeerList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PeerList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PeerList.class, types.Rpc.PeerList.Builder.class); } // Construct using types.Rpc.PeerList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPeersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (peersBuilder_ == null) { peers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { peersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_PeerList_descriptor; } @java.lang.Override public types.Rpc.PeerList getDefaultInstanceForType() { return types.Rpc.PeerList.getDefaultInstance(); } @java.lang.Override public types.Rpc.PeerList build() { types.Rpc.PeerList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.PeerList buildPartial() { types.Rpc.PeerList result = new types.Rpc.PeerList(this); int from_bitField0_ = bitField0_; if (peersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { peers_ = java.util.Collections.unmodifiableList(peers_); bitField0_ = (bitField0_ & ~0x00000001); } result.peers_ = peers_; } else { result.peers_ = peersBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.PeerList) { return mergeFrom((types.Rpc.PeerList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.PeerList other) { if (other == types.Rpc.PeerList.getDefaultInstance()) return this; if (peersBuilder_ == null) { if (!other.peers_.isEmpty()) { if (peers_.isEmpty()) { peers_ = other.peers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePeersIsMutable(); peers_.addAll(other.peers_); } onChanged(); } } else { if (!other.peers_.isEmpty()) { if (peersBuilder_.isEmpty()) { peersBuilder_.dispose(); peersBuilder_ = null; peers_ = other.peers_; bitField0_ = (bitField0_ & ~0x00000001); peersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPeersFieldBuilder() : null; } else { peersBuilder_.addAllMessages(other.peers_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.PeerList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.PeerList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List peers_ = java.util.Collections.emptyList(); private void ensurePeersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { peers_ = new java.util.ArrayList(peers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Peer, types.Rpc.Peer.Builder, types.Rpc.PeerOrBuilder> peersBuilder_; /** * repeated .types.Peer peers = 1; */ public java.util.List getPeersList() { if (peersBuilder_ == null) { return java.util.Collections.unmodifiableList(peers_); } else { return peersBuilder_.getMessageList(); } } /** * repeated .types.Peer peers = 1; */ public int getPeersCount() { if (peersBuilder_ == null) { return peers_.size(); } else { return peersBuilder_.getCount(); } } /** * repeated .types.Peer peers = 1; */ public types.Rpc.Peer getPeers(int index) { if (peersBuilder_ == null) { return peers_.get(index); } else { return peersBuilder_.getMessage(index); } } /** * repeated .types.Peer peers = 1; */ public Builder setPeers( int index, types.Rpc.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.set(index, value); onChanged(); } else { peersBuilder_.setMessage(index, value); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder setPeers( int index, types.Rpc.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.set(index, builderForValue.build()); onChanged(); } else { peersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder addPeers(types.Rpc.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.add(value); onChanged(); } else { peersBuilder_.addMessage(value); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder addPeers( int index, types.Rpc.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.add(index, value); onChanged(); } else { peersBuilder_.addMessage(index, value); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder addPeers( types.Rpc.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.add(builderForValue.build()); onChanged(); } else { peersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder addPeers( int index, types.Rpc.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.add(index, builderForValue.build()); onChanged(); } else { peersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder addAllPeers( java.lang.Iterable values) { if (peersBuilder_ == null) { ensurePeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peers_); onChanged(); } else { peersBuilder_.addAllMessages(values); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder clearPeers() { if (peersBuilder_ == null) { peers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { peersBuilder_.clear(); } return this; } /** * repeated .types.Peer peers = 1; */ public Builder removePeers(int index) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.remove(index); onChanged(); } else { peersBuilder_.remove(index); } return this; } /** * repeated .types.Peer peers = 1; */ public types.Rpc.Peer.Builder getPeersBuilder( int index) { return getPeersFieldBuilder().getBuilder(index); } /** * repeated .types.Peer peers = 1; */ public types.Rpc.PeerOrBuilder getPeersOrBuilder( int index) { if (peersBuilder_ == null) { return peers_.get(index); } else { return peersBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.Peer peers = 1; */ public java.util.List getPeersOrBuilderList() { if (peersBuilder_ != null) { return peersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(peers_); } } /** * repeated .types.Peer peers = 1; */ public types.Rpc.Peer.Builder addPeersBuilder() { return getPeersFieldBuilder().addBuilder( types.Rpc.Peer.getDefaultInstance()); } /** * repeated .types.Peer peers = 1; */ public types.Rpc.Peer.Builder addPeersBuilder( int index) { return getPeersFieldBuilder().addBuilder( index, types.Rpc.Peer.getDefaultInstance()); } /** * repeated .types.Peer peers = 1; */ public java.util.List getPeersBuilderList() { return getPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Peer, types.Rpc.Peer.Builder, types.Rpc.PeerOrBuilder> getPeersFieldBuilder() { if (peersBuilder_ == null) { peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Peer, types.Rpc.Peer.Builder, types.Rpc.PeerOrBuilder>( peers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); peers_ = null; } return peersBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.PeerList) } // @@protoc_insertion_point(class_scope:types.PeerList) private static final types.Rpc.PeerList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.PeerList(); } public static types.Rpc.PeerList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PeerList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.PeerList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ListParams) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * uint64 height = 2; * @return The height. */ long getHeight(); /** * uint32 size = 3; * @return The size. */ int getSize(); /** * uint32 offset = 4; * @return The offset. */ int getOffset(); /** * bool asc = 5; * @return The asc. */ boolean getAsc(); } /** * Protobuf type {@code types.ListParams} */ public static final class ListParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ListParams) ListParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ListParams.newBuilder() to construct. private ListParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListParams() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); break; } case 16: { height_ = input.readUInt64(); break; } case 24: { size_ = input.readUInt32(); break; } case 32: { offset_ = input.readUInt32(); break; } case 40: { asc_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ListParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ListParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ListParams.class, types.Rpc.ListParams.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int HEIGHT_FIELD_NUMBER = 2; private long height_; /** * uint64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int SIZE_FIELD_NUMBER = 3; private int size_; /** * uint32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } public static final int OFFSET_FIELD_NUMBER = 4; private int offset_; /** * uint32 offset = 4; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int ASC_FIELD_NUMBER = 5; private boolean asc_; /** * bool asc = 5; * @return The asc. */ @java.lang.Override public boolean getAsc() { return asc_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hash_.isEmpty()) { output.writeBytes(1, hash_); } if (height_ != 0L) { output.writeUInt64(2, height_); } if (size_ != 0) { output.writeUInt32(3, size_); } if (offset_ != 0) { output.writeUInt32(4, offset_); } if (asc_ != false) { output.writeBool(5, asc_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, height_); } if (size_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, size_); } if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, offset_); } if (asc_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, asc_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ListParams)) { return super.equals(obj); } types.Rpc.ListParams other = (types.Rpc.ListParams) obj; if (!getHash() .equals(other.getHash())) return false; if (getHeight() != other.getHeight()) return false; if (getSize() != other.getSize()) return false; if (getOffset() != other.getOffset()) return false; if (getAsc() != other.getAsc()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); hash = (37 * hash) + ASC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAsc()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ListParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ListParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ListParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ListParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ListParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ListParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ListParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ListParams 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 types.Rpc.ListParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ListParams 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 types.Rpc.ListParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ListParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ListParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.ListParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ListParams) types.Rpc.ListParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ListParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ListParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ListParams.class, types.Rpc.ListParams.Builder.class); } // Construct using types.Rpc.ListParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; height_ = 0L; size_ = 0; offset_ = 0; asc_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ListParams_descriptor; } @java.lang.Override public types.Rpc.ListParams getDefaultInstanceForType() { return types.Rpc.ListParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.ListParams build() { types.Rpc.ListParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ListParams buildPartial() { types.Rpc.ListParams result = new types.Rpc.ListParams(this); result.hash_ = hash_; result.height_ = height_; result.size_ = size_; result.offset_ = offset_; result.asc_ = asc_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ListParams) { return mergeFrom((types.Rpc.ListParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ListParams other) { if (other == types.Rpc.ListParams.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.getSize() != 0) { setSize(other.getSize()); } if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.getAsc() != false) { setAsc(other.getAsc()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ListParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ListParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private long height_ ; /** * uint64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * uint64 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** * uint64 height = 2; * @return This builder for chaining. */ public Builder clearHeight() { height_ = 0L; onChanged(); return this; } private int size_ ; /** * uint32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** * uint32 size = 3; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { size_ = value; onChanged(); return this; } /** * uint32 size = 3; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0; onChanged(); return this; } private int offset_ ; /** * uint32 offset = 4; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** * uint32 offset = 4; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; onChanged(); return this; } /** * uint32 offset = 4; * @return This builder for chaining. */ public Builder clearOffset() { offset_ = 0; onChanged(); return this; } private boolean asc_ ; /** * bool asc = 5; * @return The asc. */ @java.lang.Override public boolean getAsc() { return asc_; } /** * bool asc = 5; * @param value The asc to set. * @return This builder for chaining. */ public Builder setAsc(boolean value) { asc_ = value; onChanged(); return this; } /** * bool asc = 5; * @return This builder for chaining. */ public Builder clearAsc() { asc_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ListParams) } // @@protoc_insertion_point(class_scope:types.ListParams) private static final types.Rpc.ListParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ListParams(); } public static types.Rpc.ListParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ListParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PageParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.PageParams) com.google.protobuf.MessageOrBuilder { /** * uint32 offset = 1; * @return The offset. */ int getOffset(); /** * uint32 size = 2; * @return The size. */ int getSize(); } /** * Protobuf type {@code types.PageParams} */ public static final class PageParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.PageParams) PageParamsOrBuilder { private static final long serialVersionUID = 0L; // Use PageParams.newBuilder() to construct. private PageParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PageParams() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PageParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PageParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { offset_ = input.readUInt32(); break; } case 16: { size_ = input.readUInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PageParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PageParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PageParams.class, types.Rpc.PageParams.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private int offset_; /** * uint32 offset = 1; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int SIZE_FIELD_NUMBER = 2; private int size_; /** * uint32 size = 2; * @return The size. */ @java.lang.Override public int getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (offset_ != 0) { output.writeUInt32(1, offset_); } if (size_ != 0) { output.writeUInt32(2, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, offset_); } if (size_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.PageParams)) { return super.equals(obj); } types.Rpc.PageParams other = (types.Rpc.PageParams) obj; if (getOffset() != other.getOffset()) return false; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.PageParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PageParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PageParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PageParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PageParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PageParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PageParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PageParams 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 types.Rpc.PageParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.PageParams 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 types.Rpc.PageParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PageParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.PageParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.PageParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.PageParams) types.Rpc.PageParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PageParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PageParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PageParams.class, types.Rpc.PageParams.Builder.class); } // Construct using types.Rpc.PageParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); offset_ = 0; size_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_PageParams_descriptor; } @java.lang.Override public types.Rpc.PageParams getDefaultInstanceForType() { return types.Rpc.PageParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.PageParams build() { types.Rpc.PageParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.PageParams buildPartial() { types.Rpc.PageParams result = new types.Rpc.PageParams(this); result.offset_ = offset_; result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.PageParams) { return mergeFrom((types.Rpc.PageParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.PageParams other) { if (other == types.Rpc.PageParams.getDefaultInstance()) return this; if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.getSize() != 0) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.PageParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.PageParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int offset_ ; /** * uint32 offset = 1; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** * uint32 offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; onChanged(); return this; } /** * uint32 offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { offset_ = 0; onChanged(); return this; } private int size_ ; /** * uint32 size = 2; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** * uint32 size = 2; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { size_ = value; onChanged(); return this; } /** * uint32 size = 2; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.PageParams) } // @@protoc_insertion_point(class_scope:types.PageParams) private static final types.Rpc.PageParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.PageParams(); } public static types.Rpc.PageParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PageParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PageParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.PageParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockBodyPagedOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockBodyPaged) com.google.protobuf.MessageOrBuilder { /** * uint32 total = 1; * @return The total. */ int getTotal(); /** * uint32 offset = 2; * @return The offset. */ int getOffset(); /** * uint32 size = 3; * @return The size. */ int getSize(); /** * .types.BlockBody body = 4; * @return Whether the body field is set. */ boolean hasBody(); /** * .types.BlockBody body = 4; * @return The body. */ types.Blockchain.BlockBody getBody(); /** * .types.BlockBody body = 4; */ types.Blockchain.BlockBodyOrBuilder getBodyOrBuilder(); } /** * Protobuf type {@code types.BlockBodyPaged} */ public static final class BlockBodyPaged extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockBodyPaged) BlockBodyPagedOrBuilder { private static final long serialVersionUID = 0L; // Use BlockBodyPaged.newBuilder() to construct. private BlockBodyPaged(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockBodyPaged() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockBodyPaged(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockBodyPaged( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { total_ = input.readUInt32(); break; } case 16: { offset_ = input.readUInt32(); break; } case 24: { size_ = input.readUInt32(); break; } case 34: { types.Blockchain.BlockBody.Builder subBuilder = null; if (body_ != null) { subBuilder = body_.toBuilder(); } body_ = input.readMessage(types.Blockchain.BlockBody.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(body_); body_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockBodyPaged_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockBodyPaged_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockBodyPaged.class, types.Rpc.BlockBodyPaged.Builder.class); } public static final int TOTAL_FIELD_NUMBER = 1; private int total_; /** * uint32 total = 1; * @return The total. */ @java.lang.Override public int getTotal() { return total_; } public static final int OFFSET_FIELD_NUMBER = 2; private int offset_; /** * uint32 offset = 2; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } public static final int SIZE_FIELD_NUMBER = 3; private int size_; /** * uint32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } public static final int BODY_FIELD_NUMBER = 4; private types.Blockchain.BlockBody body_; /** * .types.BlockBody body = 4; * @return Whether the body field is set. */ @java.lang.Override public boolean hasBody() { return body_ != null; } /** * .types.BlockBody body = 4; * @return The body. */ @java.lang.Override public types.Blockchain.BlockBody getBody() { return body_ == null ? types.Blockchain.BlockBody.getDefaultInstance() : body_; } /** * .types.BlockBody body = 4; */ @java.lang.Override public types.Blockchain.BlockBodyOrBuilder getBodyOrBuilder() { return getBody(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (total_ != 0) { output.writeUInt32(1, total_); } if (offset_ != 0) { output.writeUInt32(2, offset_); } if (size_ != 0) { output.writeUInt32(3, size_); } if (body_ != null) { output.writeMessage(4, getBody()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (total_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, total_); } if (offset_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, offset_); } if (size_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, size_); } if (body_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBody()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockBodyPaged)) { return super.equals(obj); } types.Rpc.BlockBodyPaged other = (types.Rpc.BlockBodyPaged) obj; if (getTotal() != other.getTotal()) return false; if (getOffset() != other.getOffset()) return false; if (getSize() != other.getSize()) return false; if (hasBody() != other.hasBody()) return false; if (hasBody()) { if (!getBody() .equals(other.getBody())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotal(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); if (hasBody()) { hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockBodyPaged parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyPaged parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyPaged parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyPaged parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyPaged parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyPaged parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyPaged parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockBodyPaged 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 types.Rpc.BlockBodyPaged parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockBodyPaged 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 types.Rpc.BlockBodyPaged parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockBodyPaged parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockBodyPaged prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.BlockBodyPaged} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockBodyPaged) types.Rpc.BlockBodyPagedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockBodyPaged_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockBodyPaged_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockBodyPaged.class, types.Rpc.BlockBodyPaged.Builder.class); } // Construct using types.Rpc.BlockBodyPaged.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); total_ = 0; offset_ = 0; size_ = 0; if (bodyBuilder_ == null) { body_ = null; } else { body_ = null; bodyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockBodyPaged_descriptor; } @java.lang.Override public types.Rpc.BlockBodyPaged getDefaultInstanceForType() { return types.Rpc.BlockBodyPaged.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockBodyPaged build() { types.Rpc.BlockBodyPaged result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockBodyPaged buildPartial() { types.Rpc.BlockBodyPaged result = new types.Rpc.BlockBodyPaged(this); result.total_ = total_; result.offset_ = offset_; result.size_ = size_; if (bodyBuilder_ == null) { result.body_ = body_; } else { result.body_ = bodyBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockBodyPaged) { return mergeFrom((types.Rpc.BlockBodyPaged)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockBodyPaged other) { if (other == types.Rpc.BlockBodyPaged.getDefaultInstance()) return this; if (other.getTotal() != 0) { setTotal(other.getTotal()); } if (other.getOffset() != 0) { setOffset(other.getOffset()); } if (other.getSize() != 0) { setSize(other.getSize()); } if (other.hasBody()) { mergeBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockBodyPaged parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockBodyPaged) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int total_ ; /** * uint32 total = 1; * @return The total. */ @java.lang.Override public int getTotal() { return total_; } /** * uint32 total = 1; * @param value The total to set. * @return This builder for chaining. */ public Builder setTotal(int value) { total_ = value; onChanged(); return this; } /** * uint32 total = 1; * @return This builder for chaining. */ public Builder clearTotal() { total_ = 0; onChanged(); return this; } private int offset_ ; /** * uint32 offset = 2; * @return The offset. */ @java.lang.Override public int getOffset() { return offset_; } /** * uint32 offset = 2; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(int value) { offset_ = value; onChanged(); return this; } /** * uint32 offset = 2; * @return This builder for chaining. */ public Builder clearOffset() { offset_ = 0; onChanged(); return this; } private int size_ ; /** * uint32 size = 3; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** * uint32 size = 3; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { size_ = value; onChanged(); return this; } /** * uint32 size = 3; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0; onChanged(); return this; } private types.Blockchain.BlockBody body_; private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockBody, types.Blockchain.BlockBody.Builder, types.Blockchain.BlockBodyOrBuilder> bodyBuilder_; /** * .types.BlockBody body = 4; * @return Whether the body field is set. */ public boolean hasBody() { return bodyBuilder_ != null || body_ != null; } /** * .types.BlockBody body = 4; * @return The body. */ public types.Blockchain.BlockBody getBody() { if (bodyBuilder_ == null) { return body_ == null ? types.Blockchain.BlockBody.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** * .types.BlockBody body = 4; */ public Builder setBody(types.Blockchain.BlockBody value) { if (bodyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } body_ = value; onChanged(); } else { bodyBuilder_.setMessage(value); } return this; } /** * .types.BlockBody body = 4; */ public Builder setBody( types.Blockchain.BlockBody.Builder builderForValue) { if (bodyBuilder_ == null) { body_ = builderForValue.build(); onChanged(); } else { bodyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.BlockBody body = 4; */ public Builder mergeBody(types.Blockchain.BlockBody value) { if (bodyBuilder_ == null) { if (body_ != null) { body_ = types.Blockchain.BlockBody.newBuilder(body_).mergeFrom(value).buildPartial(); } else { body_ = value; } onChanged(); } else { bodyBuilder_.mergeFrom(value); } return this; } /** * .types.BlockBody body = 4; */ public Builder clearBody() { if (bodyBuilder_ == null) { body_ = null; onChanged(); } else { body_ = null; bodyBuilder_ = null; } return this; } /** * .types.BlockBody body = 4; */ public types.Blockchain.BlockBody.Builder getBodyBuilder() { onChanged(); return getBodyFieldBuilder().getBuilder(); } /** * .types.BlockBody body = 4; */ public types.Blockchain.BlockBodyOrBuilder getBodyOrBuilder() { if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { return body_ == null ? types.Blockchain.BlockBody.getDefaultInstance() : body_; } } /** * .types.BlockBody body = 4; */ private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockBody, types.Blockchain.BlockBody.Builder, types.Blockchain.BlockBodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockBody, types.Blockchain.BlockBody.Builder, types.Blockchain.BlockBodyOrBuilder>( getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockBodyPaged) } // @@protoc_insertion_point(class_scope:types.BlockBodyPaged) private static final types.Rpc.BlockBodyPaged DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockBodyPaged(); } public static types.Rpc.BlockBodyPaged getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockBodyPaged parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockBodyPaged(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockBodyPaged getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockBodyParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockBodyParams) com.google.protobuf.MessageOrBuilder { /** * bytes hashornumber = 1; * @return The hashornumber. */ com.google.protobuf.ByteString getHashornumber(); /** * .types.PageParams paging = 2; * @return Whether the paging field is set. */ boolean hasPaging(); /** * .types.PageParams paging = 2; * @return The paging. */ types.Rpc.PageParams getPaging(); /** * .types.PageParams paging = 2; */ types.Rpc.PageParamsOrBuilder getPagingOrBuilder(); } /** * Protobuf type {@code types.BlockBodyParams} */ public static final class BlockBodyParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockBodyParams) BlockBodyParamsOrBuilder { private static final long serialVersionUID = 0L; // Use BlockBodyParams.newBuilder() to construct. private BlockBodyParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockBodyParams() { hashornumber_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockBodyParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockBodyParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hashornumber_ = input.readBytes(); break; } case 18: { types.Rpc.PageParams.Builder subBuilder = null; if (paging_ != null) { subBuilder = paging_.toBuilder(); } paging_ = input.readMessage(types.Rpc.PageParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(paging_); paging_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockBodyParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockBodyParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockBodyParams.class, types.Rpc.BlockBodyParams.Builder.class); } public static final int HASHORNUMBER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hashornumber_; /** * bytes hashornumber = 1; * @return The hashornumber. */ @java.lang.Override public com.google.protobuf.ByteString getHashornumber() { return hashornumber_; } public static final int PAGING_FIELD_NUMBER = 2; private types.Rpc.PageParams paging_; /** * .types.PageParams paging = 2; * @return Whether the paging field is set. */ @java.lang.Override public boolean hasPaging() { return paging_ != null; } /** * .types.PageParams paging = 2; * @return The paging. */ @java.lang.Override public types.Rpc.PageParams getPaging() { return paging_ == null ? types.Rpc.PageParams.getDefaultInstance() : paging_; } /** * .types.PageParams paging = 2; */ @java.lang.Override public types.Rpc.PageParamsOrBuilder getPagingOrBuilder() { return getPaging(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hashornumber_.isEmpty()) { output.writeBytes(1, hashornumber_); } if (paging_ != null) { output.writeMessage(2, getPaging()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hashornumber_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hashornumber_); } if (paging_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPaging()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockBodyParams)) { return super.equals(obj); } types.Rpc.BlockBodyParams other = (types.Rpc.BlockBodyParams) obj; if (!getHashornumber() .equals(other.getHashornumber())) return false; if (hasPaging() != other.hasPaging()) return false; if (hasPaging()) { if (!getPaging() .equals(other.getPaging())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASHORNUMBER_FIELD_NUMBER; hash = (53 * hash) + getHashornumber().hashCode(); if (hasPaging()) { hash = (37 * hash) + PAGING_FIELD_NUMBER; hash = (53 * hash) + getPaging().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockBodyParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockBodyParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockBodyParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockBodyParams 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 types.Rpc.BlockBodyParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockBodyParams 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 types.Rpc.BlockBodyParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockBodyParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockBodyParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.BlockBodyParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockBodyParams) types.Rpc.BlockBodyParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockBodyParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockBodyParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockBodyParams.class, types.Rpc.BlockBodyParams.Builder.class); } // Construct using types.Rpc.BlockBodyParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); hashornumber_ = com.google.protobuf.ByteString.EMPTY; if (pagingBuilder_ == null) { paging_ = null; } else { paging_ = null; pagingBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockBodyParams_descriptor; } @java.lang.Override public types.Rpc.BlockBodyParams getDefaultInstanceForType() { return types.Rpc.BlockBodyParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockBodyParams build() { types.Rpc.BlockBodyParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockBodyParams buildPartial() { types.Rpc.BlockBodyParams result = new types.Rpc.BlockBodyParams(this); result.hashornumber_ = hashornumber_; if (pagingBuilder_ == null) { result.paging_ = paging_; } else { result.paging_ = pagingBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockBodyParams) { return mergeFrom((types.Rpc.BlockBodyParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockBodyParams other) { if (other == types.Rpc.BlockBodyParams.getDefaultInstance()) return this; if (other.getHashornumber() != com.google.protobuf.ByteString.EMPTY) { setHashornumber(other.getHashornumber()); } if (other.hasPaging()) { mergePaging(other.getPaging()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockBodyParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockBodyParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString hashornumber_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hashornumber = 1; * @return The hashornumber. */ @java.lang.Override public com.google.protobuf.ByteString getHashornumber() { return hashornumber_; } /** * bytes hashornumber = 1; * @param value The hashornumber to set. * @return This builder for chaining. */ public Builder setHashornumber(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hashornumber_ = value; onChanged(); return this; } /** * bytes hashornumber = 1; * @return This builder for chaining. */ public Builder clearHashornumber() { hashornumber_ = getDefaultInstance().getHashornumber(); onChanged(); return this; } private types.Rpc.PageParams paging_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.PageParams, types.Rpc.PageParams.Builder, types.Rpc.PageParamsOrBuilder> pagingBuilder_; /** * .types.PageParams paging = 2; * @return Whether the paging field is set. */ public boolean hasPaging() { return pagingBuilder_ != null || paging_ != null; } /** * .types.PageParams paging = 2; * @return The paging. */ public types.Rpc.PageParams getPaging() { if (pagingBuilder_ == null) { return paging_ == null ? types.Rpc.PageParams.getDefaultInstance() : paging_; } else { return pagingBuilder_.getMessage(); } } /** * .types.PageParams paging = 2; */ public Builder setPaging(types.Rpc.PageParams value) { if (pagingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } paging_ = value; onChanged(); } else { pagingBuilder_.setMessage(value); } return this; } /** * .types.PageParams paging = 2; */ public Builder setPaging( types.Rpc.PageParams.Builder builderForValue) { if (pagingBuilder_ == null) { paging_ = builderForValue.build(); onChanged(); } else { pagingBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.PageParams paging = 2; */ public Builder mergePaging(types.Rpc.PageParams value) { if (pagingBuilder_ == null) { if (paging_ != null) { paging_ = types.Rpc.PageParams.newBuilder(paging_).mergeFrom(value).buildPartial(); } else { paging_ = value; } onChanged(); } else { pagingBuilder_.mergeFrom(value); } return this; } /** * .types.PageParams paging = 2; */ public Builder clearPaging() { if (pagingBuilder_ == null) { paging_ = null; onChanged(); } else { paging_ = null; pagingBuilder_ = null; } return this; } /** * .types.PageParams paging = 2; */ public types.Rpc.PageParams.Builder getPagingBuilder() { onChanged(); return getPagingFieldBuilder().getBuilder(); } /** * .types.PageParams paging = 2; */ public types.Rpc.PageParamsOrBuilder getPagingOrBuilder() { if (pagingBuilder_ != null) { return pagingBuilder_.getMessageOrBuilder(); } else { return paging_ == null ? types.Rpc.PageParams.getDefaultInstance() : paging_; } } /** * .types.PageParams paging = 2; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.PageParams, types.Rpc.PageParams.Builder, types.Rpc.PageParamsOrBuilder> getPagingFieldBuilder() { if (pagingBuilder_ == null) { pagingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.PageParams, types.Rpc.PageParams.Builder, types.Rpc.PageParamsOrBuilder>( getPaging(), getParentForChildren(), isClean()); paging_ = null; } return pagingBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockBodyParams) } // @@protoc_insertion_point(class_scope:types.BlockBodyParams) private static final types.Rpc.BlockBodyParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockBodyParams(); } public static types.Rpc.BlockBodyParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockBodyParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockBodyParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockBodyParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockHeaderListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockHeaderList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.Block blocks = 1; */ java.util.List getBlocksList(); /** * repeated .types.Block blocks = 1; */ types.Blockchain.Block getBlocks(int index); /** * repeated .types.Block blocks = 1; */ int getBlocksCount(); /** * repeated .types.Block blocks = 1; */ java.util.List getBlocksOrBuilderList(); /** * repeated .types.Block blocks = 1; */ types.Blockchain.BlockOrBuilder getBlocksOrBuilder( int index); } /** * Protobuf type {@code types.BlockHeaderList} */ public static final class BlockHeaderList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockHeaderList) BlockHeaderListOrBuilder { private static final long serialVersionUID = 0L; // Use BlockHeaderList.newBuilder() to construct. private BlockHeaderList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockHeaderList() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockHeaderList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockHeaderList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } blocks_.add( input.readMessage(types.Blockchain.Block.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockHeaderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockHeaderList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockHeaderList.class, types.Rpc.BlockHeaderList.Builder.class); } public static final int BLOCKS_FIELD_NUMBER = 1; private java.util.List blocks_; /** * repeated .types.Block blocks = 1; */ @java.lang.Override public java.util.List getBlocksList() { return blocks_; } /** * repeated .types.Block blocks = 1; */ @java.lang.Override public java.util.List getBlocksOrBuilderList() { return blocks_; } /** * repeated .types.Block blocks = 1; */ @java.lang.Override public int getBlocksCount() { return blocks_.size(); } /** * repeated .types.Block blocks = 1; */ @java.lang.Override public types.Blockchain.Block getBlocks(int index) { return blocks_.get(index); } /** * repeated .types.Block blocks = 1; */ @java.lang.Override public types.Blockchain.BlockOrBuilder getBlocksOrBuilder( int index) { return blocks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < blocks_.size(); i++) { output.writeMessage(1, blocks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blocks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockHeaderList)) { return super.equals(obj); } types.Rpc.BlockHeaderList other = (types.Rpc.BlockHeaderList) obj; if (!getBlocksList() .equals(other.getBlocksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBlocksCount() > 0) { hash = (37 * hash) + BLOCKS_FIELD_NUMBER; hash = (53 * hash) + getBlocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockHeaderList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockHeaderList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockHeaderList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockHeaderList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockHeaderList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockHeaderList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockHeaderList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockHeaderList 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 types.Rpc.BlockHeaderList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockHeaderList 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 types.Rpc.BlockHeaderList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockHeaderList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockHeaderList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.BlockHeaderList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockHeaderList) types.Rpc.BlockHeaderListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockHeaderList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockHeaderList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockHeaderList.class, types.Rpc.BlockHeaderList.Builder.class); } // Construct using types.Rpc.BlockHeaderList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { blocksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockHeaderList_descriptor; } @java.lang.Override public types.Rpc.BlockHeaderList getDefaultInstanceForType() { return types.Rpc.BlockHeaderList.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockHeaderList build() { types.Rpc.BlockHeaderList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockHeaderList buildPartial() { types.Rpc.BlockHeaderList result = new types.Rpc.BlockHeaderList(this); int from_bitField0_ = bitField0_; if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000001); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockHeaderList) { return mergeFrom((types.Rpc.BlockHeaderList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockHeaderList other) { if (other == types.Rpc.BlockHeaderList.getDefaultInstance()) return this; if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); blocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockHeaderList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockHeaderList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Block, types.Blockchain.Block.Builder, types.Blockchain.BlockOrBuilder> blocksBuilder_; /** * repeated .types.Block blocks = 1; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .types.Block blocks = 1; */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * repeated .types.Block blocks = 1; */ public types.Blockchain.Block getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * repeated .types.Block blocks = 1; */ public Builder setBlocks( int index, types.Blockchain.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); } else { blocksBuilder_.setMessage(index, value); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder setBlocks( int index, types.Blockchain.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder addBlocks(types.Blockchain.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(value); onChanged(); } else { blocksBuilder_.addMessage(value); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder addBlocks( int index, types.Blockchain.Block value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(index, value); onChanged(); } else { blocksBuilder_.addMessage(index, value); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder addBlocks( types.Blockchain.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder addBlocks( int index, types.Blockchain.Block.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * repeated .types.Block blocks = 1; */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * repeated .types.Block blocks = 1; */ public types.Blockchain.Block.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * repeated .types.Block blocks = 1; */ public types.Blockchain.BlockOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.Block blocks = 1; */ public java.util.List getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * repeated .types.Block blocks = 1; */ public types.Blockchain.Block.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( types.Blockchain.Block.getDefaultInstance()); } /** * repeated .types.Block blocks = 1; */ public types.Blockchain.Block.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, types.Blockchain.Block.getDefaultInstance()); } /** * repeated .types.Block blocks = 1; */ public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Block, types.Blockchain.Block.Builder, types.Blockchain.BlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Block, types.Blockchain.Block.Builder, types.Blockchain.BlockOrBuilder>( blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockHeaderList) } // @@protoc_insertion_point(class_scope:types.BlockHeaderList) private static final types.Rpc.BlockHeaderList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockHeaderList(); } public static types.Rpc.BlockHeaderList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockHeaderList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockHeaderList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockHeaderList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockMetadata) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * .types.BlockHeader header = 2; * @return Whether the header field is set. */ boolean hasHeader(); /** * .types.BlockHeader header = 2; * @return The header. */ types.Blockchain.BlockHeader getHeader(); /** * .types.BlockHeader header = 2; */ types.Blockchain.BlockHeaderOrBuilder getHeaderOrBuilder(); /** * int32 txcount = 3; * @return The txcount. */ int getTxcount(); /** *
     * blocksize in bytes
     * 
* * int64 size = 4; * @return The size. */ long getSize(); } /** * Protobuf type {@code types.BlockMetadata} */ public static final class BlockMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockMetadata) BlockMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use BlockMetadata.newBuilder() to construct. private BlockMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockMetadata() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); break; } case 18: { types.Blockchain.BlockHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(types.Blockchain.BlockHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 24: { txcount_ = input.readInt32(); break; } case 32: { size_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockMetadata.class, types.Rpc.BlockMetadata.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int HEADER_FIELD_NUMBER = 2; private types.Blockchain.BlockHeader header_; /** * .types.BlockHeader header = 2; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return header_ != null; } /** * .types.BlockHeader header = 2; * @return The header. */ @java.lang.Override public types.Blockchain.BlockHeader getHeader() { return header_ == null ? types.Blockchain.BlockHeader.getDefaultInstance() : header_; } /** * .types.BlockHeader header = 2; */ @java.lang.Override public types.Blockchain.BlockHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int TXCOUNT_FIELD_NUMBER = 3; private int txcount_; /** * int32 txcount = 3; * @return The txcount. */ @java.lang.Override public int getTxcount() { return txcount_; } public static final int SIZE_FIELD_NUMBER = 4; private long size_; /** *
     * blocksize in bytes
     * 
* * int64 size = 4; * @return The size. */ @java.lang.Override public long getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hash_.isEmpty()) { output.writeBytes(1, hash_); } if (header_ != null) { output.writeMessage(2, getHeader()); } if (txcount_ != 0) { output.writeInt32(3, txcount_); } if (size_ != 0L) { output.writeInt64(4, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeader()); } if (txcount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, txcount_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockMetadata)) { return super.equals(obj); } types.Rpc.BlockMetadata other = (types.Rpc.BlockMetadata) obj; if (!getHash() .equals(other.getHash())) return false; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (getTxcount() != other.getTxcount()) return false; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + TXCOUNT_FIELD_NUMBER; hash = (53 * hash) + getTxcount(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockMetadata 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 types.Rpc.BlockMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockMetadata 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 types.Rpc.BlockMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.BlockMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockMetadata) types.Rpc.BlockMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockMetadata.class, types.Rpc.BlockMetadata.Builder.class); } // Construct using types.Rpc.BlockMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } txcount_ = 0; size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockMetadata_descriptor; } @java.lang.Override public types.Rpc.BlockMetadata getDefaultInstanceForType() { return types.Rpc.BlockMetadata.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockMetadata build() { types.Rpc.BlockMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockMetadata buildPartial() { types.Rpc.BlockMetadata result = new types.Rpc.BlockMetadata(this); result.hash_ = hash_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.txcount_ = txcount_; result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockMetadata) { return mergeFrom((types.Rpc.BlockMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockMetadata other) { if (other == types.Rpc.BlockMetadata.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getTxcount() != 0) { setTxcount(other.getTxcount()); } if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private types.Blockchain.BlockHeader header_; private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockHeader, types.Blockchain.BlockHeader.Builder, types.Blockchain.BlockHeaderOrBuilder> headerBuilder_; /** * .types.BlockHeader header = 2; * @return Whether the header field is set. */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .types.BlockHeader header = 2; * @return The header. */ public types.Blockchain.BlockHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? types.Blockchain.BlockHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .types.BlockHeader header = 2; */ public Builder setHeader(types.Blockchain.BlockHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .types.BlockHeader header = 2; */ public Builder setHeader( types.Blockchain.BlockHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.BlockHeader header = 2; */ public Builder mergeHeader(types.Blockchain.BlockHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = types.Blockchain.BlockHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .types.BlockHeader header = 2; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .types.BlockHeader header = 2; */ public types.Blockchain.BlockHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .types.BlockHeader header = 2; */ public types.Blockchain.BlockHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? types.Blockchain.BlockHeader.getDefaultInstance() : header_; } } /** * .types.BlockHeader header = 2; */ private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockHeader, types.Blockchain.BlockHeader.Builder, types.Blockchain.BlockHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.BlockHeader, types.Blockchain.BlockHeader.Builder, types.Blockchain.BlockHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int txcount_ ; /** * int32 txcount = 3; * @return The txcount. */ @java.lang.Override public int getTxcount() { return txcount_; } /** * int32 txcount = 3; * @param value The txcount to set. * @return This builder for chaining. */ public Builder setTxcount(int value) { txcount_ = value; onChanged(); return this; } /** * int32 txcount = 3; * @return This builder for chaining. */ public Builder clearTxcount() { txcount_ = 0; onChanged(); return this; } private long size_ ; /** *
       * blocksize in bytes
       * 
* * int64 size = 4; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
       * blocksize in bytes
       * 
* * int64 size = 4; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
       * blocksize in bytes
       * 
* * int64 size = 4; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockMetadata) } // @@protoc_insertion_point(class_scope:types.BlockMetadata) private static final types.Rpc.BlockMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockMetadata(); } public static types.Rpc.BlockMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockMetadata(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockMetadataListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.BlockMetadataList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.BlockMetadata blocks = 1; */ java.util.List getBlocksList(); /** * repeated .types.BlockMetadata blocks = 1; */ types.Rpc.BlockMetadata getBlocks(int index); /** * repeated .types.BlockMetadata blocks = 1; */ int getBlocksCount(); /** * repeated .types.BlockMetadata blocks = 1; */ java.util.List getBlocksOrBuilderList(); /** * repeated .types.BlockMetadata blocks = 1; */ types.Rpc.BlockMetadataOrBuilder getBlocksOrBuilder( int index); } /** * Protobuf type {@code types.BlockMetadataList} */ public static final class BlockMetadataList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.BlockMetadataList) BlockMetadataListOrBuilder { private static final long serialVersionUID = 0L; // Use BlockMetadataList.newBuilder() to construct. private BlockMetadataList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockMetadataList() { blocks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockMetadataList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockMetadataList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } blocks_.add( input.readMessage(types.Rpc.BlockMetadata.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockMetadataList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockMetadataList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockMetadataList.class, types.Rpc.BlockMetadataList.Builder.class); } public static final int BLOCKS_FIELD_NUMBER = 1; private java.util.List blocks_; /** * repeated .types.BlockMetadata blocks = 1; */ @java.lang.Override public java.util.List getBlocksList() { return blocks_; } /** * repeated .types.BlockMetadata blocks = 1; */ @java.lang.Override public java.util.List getBlocksOrBuilderList() { return blocks_; } /** * repeated .types.BlockMetadata blocks = 1; */ @java.lang.Override public int getBlocksCount() { return blocks_.size(); } /** * repeated .types.BlockMetadata blocks = 1; */ @java.lang.Override public types.Rpc.BlockMetadata getBlocks(int index) { return blocks_.get(index); } /** * repeated .types.BlockMetadata blocks = 1; */ @java.lang.Override public types.Rpc.BlockMetadataOrBuilder getBlocksOrBuilder( int index) { return blocks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < blocks_.size(); i++) { output.writeMessage(1, blocks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, blocks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.BlockMetadataList)) { return super.equals(obj); } types.Rpc.BlockMetadataList other = (types.Rpc.BlockMetadataList) obj; if (!getBlocksList() .equals(other.getBlocksList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBlocksCount() > 0) { hash = (37 * hash) + BLOCKS_FIELD_NUMBER; hash = (53 * hash) + getBlocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.BlockMetadataList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadataList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadataList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadataList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadataList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.BlockMetadataList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.BlockMetadataList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockMetadataList 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 types.Rpc.BlockMetadataList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.BlockMetadataList 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 types.Rpc.BlockMetadataList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.BlockMetadataList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.BlockMetadataList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.BlockMetadataList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.BlockMetadataList) types.Rpc.BlockMetadataListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_BlockMetadataList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_BlockMetadataList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.BlockMetadataList.class, types.Rpc.BlockMetadataList.Builder.class); } // Construct using types.Rpc.BlockMetadataList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { blocksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_BlockMetadataList_descriptor; } @java.lang.Override public types.Rpc.BlockMetadataList getDefaultInstanceForType() { return types.Rpc.BlockMetadataList.getDefaultInstance(); } @java.lang.Override public types.Rpc.BlockMetadataList build() { types.Rpc.BlockMetadataList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.BlockMetadataList buildPartial() { types.Rpc.BlockMetadataList result = new types.Rpc.BlockMetadataList(this); int from_bitField0_ = bitField0_; if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000001); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.BlockMetadataList) { return mergeFrom((types.Rpc.BlockMetadataList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.BlockMetadataList other) { if (other == types.Rpc.BlockMetadataList.getDefaultInstance()) return this; if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); blocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.BlockMetadataList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.BlockMetadataList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.BlockMetadata, types.Rpc.BlockMetadata.Builder, types.Rpc.BlockMetadataOrBuilder> blocksBuilder_; /** * repeated .types.BlockMetadata blocks = 1; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .types.BlockMetadata blocks = 1; */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * repeated .types.BlockMetadata blocks = 1; */ public types.Rpc.BlockMetadata getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder setBlocks( int index, types.Rpc.BlockMetadata value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); } else { blocksBuilder_.setMessage(index, value); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder setBlocks( int index, types.Rpc.BlockMetadata.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder addBlocks(types.Rpc.BlockMetadata value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(value); onChanged(); } else { blocksBuilder_.addMessage(value); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder addBlocks( int index, types.Rpc.BlockMetadata value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(index, value); onChanged(); } else { blocksBuilder_.addMessage(index, value); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder addBlocks( types.Rpc.BlockMetadata.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder addBlocks( int index, types.Rpc.BlockMetadata.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * repeated .types.BlockMetadata blocks = 1; */ public types.Rpc.BlockMetadata.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * repeated .types.BlockMetadata blocks = 1; */ public types.Rpc.BlockMetadataOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.BlockMetadata blocks = 1; */ public java.util.List getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * repeated .types.BlockMetadata blocks = 1; */ public types.Rpc.BlockMetadata.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( types.Rpc.BlockMetadata.getDefaultInstance()); } /** * repeated .types.BlockMetadata blocks = 1; */ public types.Rpc.BlockMetadata.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, types.Rpc.BlockMetadata.getDefaultInstance()); } /** * repeated .types.BlockMetadata blocks = 1; */ public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.BlockMetadata, types.Rpc.BlockMetadata.Builder, types.Rpc.BlockMetadataOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.BlockMetadata, types.Rpc.BlockMetadata.Builder, types.Rpc.BlockMetadataOrBuilder>( blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.BlockMetadataList) } // @@protoc_insertion_point(class_scope:types.BlockMetadataList) private static final types.Rpc.BlockMetadataList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.BlockMetadataList(); } public static types.Rpc.BlockMetadataList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockMetadataList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockMetadataList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.BlockMetadataList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResultOrBuilder extends // @@protoc_insertion_point(interface_extends:types.CommitResult) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * .types.CommitStatus error = 2; * @return The enum numeric value on the wire for error. */ int getErrorValue(); /** * .types.CommitStatus error = 2; * @return The error. */ types.Rpc.CommitStatus getError(); /** * string detail = 3; * @return The detail. */ java.lang.String getDetail(); /** * string detail = 3; * @return The bytes for detail. */ com.google.protobuf.ByteString getDetailBytes(); } /** * Protobuf type {@code types.CommitResult} */ public static final class CommitResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.CommitResult) CommitResultOrBuilder { private static final long serialVersionUID = 0L; // Use CommitResult.newBuilder() to construct. private CommitResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitResult() { hash_ = com.google.protobuf.ByteString.EMPTY; error_ = 0; detail_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { hash_ = input.readBytes(); break; } case 16: { int rawValue = input.readEnum(); error_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); detail_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_CommitResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_CommitResult_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.CommitResult.class, types.Rpc.CommitResult.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hash_; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } public static final int ERROR_FIELD_NUMBER = 2; private int error_; /** * .types.CommitStatus error = 2; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * .types.CommitStatus error = 2; * @return The error. */ @java.lang.Override public types.Rpc.CommitStatus getError() { @SuppressWarnings("deprecation") types.Rpc.CommitStatus result = types.Rpc.CommitStatus.valueOf(error_); return result == null ? types.Rpc.CommitStatus.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 3; private volatile java.lang.Object detail_; /** * string detail = 3; * @return The detail. */ @java.lang.Override public java.lang.String getDetail() { java.lang.Object ref = detail_; 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(); detail_ = s; return s; } } /** * string detail = 3; * @return The bytes for detail. */ @java.lang.Override public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); detail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hash_.isEmpty()) { output.writeBytes(1, hash_); } if (error_ != types.Rpc.CommitStatus.TX_OK.getNumber()) { output.writeEnum(2, error_); } if (!getDetailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detail_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, hash_); } if (error_ != types.Rpc.CommitStatus.TX_OK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, error_); } if (!getDetailBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.CommitResult)) { return super.equals(obj); } types.Rpc.CommitResult other = (types.Rpc.CommitResult) obj; if (!getHash() .equals(other.getHash())) return false; if (error_ != other.error_) return false; if (!getDetail() .equals(other.getDetail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; hash = (37 * hash) + DETAIL_FIELD_NUMBER; hash = (53 * hash) + getDetail().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.CommitResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.CommitResult 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 types.Rpc.CommitResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.CommitResult 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 types.Rpc.CommitResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.CommitResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.CommitResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.CommitResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.CommitResult) types.Rpc.CommitResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_CommitResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_CommitResult_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.CommitResult.class, types.Rpc.CommitResult.Builder.class); } // Construct using types.Rpc.CommitResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; error_ = 0; detail_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_CommitResult_descriptor; } @java.lang.Override public types.Rpc.CommitResult getDefaultInstanceForType() { return types.Rpc.CommitResult.getDefaultInstance(); } @java.lang.Override public types.Rpc.CommitResult build() { types.Rpc.CommitResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.CommitResult buildPartial() { types.Rpc.CommitResult result = new types.Rpc.CommitResult(this); result.hash_ = hash_; result.error_ = error_; result.detail_ = detail_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.CommitResult) { return mergeFrom((types.Rpc.CommitResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.CommitResult other) { if (other == types.Rpc.CommitResult.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.error_ != 0) { setErrorValue(other.getErrorValue()); } if (!other.getDetail().isEmpty()) { detail_ = other.detail_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.CommitResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.CommitResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 1; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 1; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * bytes hash = 1; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private int error_ = 0; /** * .types.CommitStatus error = 2; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * .types.CommitStatus error = 2; * @param value The enum numeric value on the wire for error to set. * @return This builder for chaining. */ public Builder setErrorValue(int value) { error_ = value; onChanged(); return this; } /** * .types.CommitStatus error = 2; * @return The error. */ @java.lang.Override public types.Rpc.CommitStatus getError() { @SuppressWarnings("deprecation") types.Rpc.CommitStatus result = types.Rpc.CommitStatus.valueOf(error_); return result == null ? types.Rpc.CommitStatus.UNRECOGNIZED : result; } /** * .types.CommitStatus error = 2; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(types.Rpc.CommitStatus value) { if (value == null) { throw new NullPointerException(); } error_ = value.getNumber(); onChanged(); return this; } /** * .types.CommitStatus error = 2; * @return This builder for chaining. */ public Builder clearError() { error_ = 0; onChanged(); return this; } private java.lang.Object detail_ = ""; /** * string detail = 3; * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); detail_ = s; return s; } else { return (java.lang.String) ref; } } /** * string detail = 3; * @return The bytes for detail. */ public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); detail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string detail = 3; * @param value The detail to set. * @return This builder for chaining. */ public Builder setDetail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); return this; } /** * string detail = 3; * @return This builder for chaining. */ public Builder clearDetail() { detail_ = getDefaultInstance().getDetail(); onChanged(); return this; } /** * string detail = 3; * @param value The bytes for detail to set. * @return This builder for chaining. */ public Builder setDetailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); detail_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.CommitResult) } // @@protoc_insertion_point(class_scope:types.CommitResult) private static final types.Rpc.CommitResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.CommitResult(); } public static types.Rpc.CommitResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.CommitResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResultListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.CommitResultList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.CommitResult results = 1; */ java.util.List getResultsList(); /** * repeated .types.CommitResult results = 1; */ types.Rpc.CommitResult getResults(int index); /** * repeated .types.CommitResult results = 1; */ int getResultsCount(); /** * repeated .types.CommitResult results = 1; */ java.util.List getResultsOrBuilderList(); /** * repeated .types.CommitResult results = 1; */ types.Rpc.CommitResultOrBuilder getResultsOrBuilder( int index); } /** * Protobuf type {@code types.CommitResultList} */ public static final class CommitResultList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.CommitResultList) CommitResultListOrBuilder { private static final long serialVersionUID = 0L; // Use CommitResultList.newBuilder() to construct. private CommitResultList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitResultList() { results_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitResultList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitResultList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add( input.readMessage(types.Rpc.CommitResult.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_CommitResultList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_CommitResultList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.CommitResultList.class, types.Rpc.CommitResultList.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** * repeated .types.CommitResult results = 1; */ @java.lang.Override public java.util.List getResultsList() { return results_; } /** * repeated .types.CommitResult results = 1; */ @java.lang.Override public java.util.List getResultsOrBuilderList() { return results_; } /** * repeated .types.CommitResult results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** * repeated .types.CommitResult results = 1; */ @java.lang.Override public types.Rpc.CommitResult getResults(int index) { return results_.get(index); } /** * repeated .types.CommitResult results = 1; */ @java.lang.Override public types.Rpc.CommitResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.CommitResultList)) { return super.equals(obj); } types.Rpc.CommitResultList other = (types.Rpc.CommitResultList) obj; if (!getResultsList() .equals(other.getResultsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.CommitResultList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResultList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResultList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResultList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResultList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.CommitResultList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.CommitResultList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.CommitResultList 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 types.Rpc.CommitResultList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.CommitResultList 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 types.Rpc.CommitResultList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.CommitResultList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.CommitResultList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.CommitResultList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.CommitResultList) types.Rpc.CommitResultListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_CommitResultList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_CommitResultList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.CommitResultList.class, types.Rpc.CommitResultList.Builder.class); } // Construct using types.Rpc.CommitResultList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_CommitResultList_descriptor; } @java.lang.Override public types.Rpc.CommitResultList getDefaultInstanceForType() { return types.Rpc.CommitResultList.getDefaultInstance(); } @java.lang.Override public types.Rpc.CommitResultList build() { types.Rpc.CommitResultList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.CommitResultList buildPartial() { types.Rpc.CommitResultList result = new types.Rpc.CommitResultList(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.CommitResultList) { return mergeFrom((types.Rpc.CommitResultList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.CommitResultList other) { if (other == types.Rpc.CommitResultList.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.CommitResultList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.CommitResultList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.CommitResult, types.Rpc.CommitResult.Builder, types.Rpc.CommitResultOrBuilder> resultsBuilder_; /** * repeated .types.CommitResult results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** * repeated .types.CommitResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** * repeated .types.CommitResult results = 1; */ public types.Rpc.CommitResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** * repeated .types.CommitResult results = 1; */ public Builder setResults( int index, types.Rpc.CommitResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder setResults( int index, types.Rpc.CommitResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder addResults(types.Rpc.CommitResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder addResults( int index, types.Rpc.CommitResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder addResults( types.Rpc.CommitResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder addResults( int index, types.Rpc.CommitResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** * repeated .types.CommitResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** * repeated .types.CommitResult results = 1; */ public types.Rpc.CommitResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** * repeated .types.CommitResult results = 1; */ public types.Rpc.CommitResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.CommitResult results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** * repeated .types.CommitResult results = 1; */ public types.Rpc.CommitResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( types.Rpc.CommitResult.getDefaultInstance()); } /** * repeated .types.CommitResult results = 1; */ public types.Rpc.CommitResult.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, types.Rpc.CommitResult.getDefaultInstance()); } /** * repeated .types.CommitResult results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.CommitResult, types.Rpc.CommitResult.Builder, types.Rpc.CommitResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.CommitResult, types.Rpc.CommitResult.Builder, types.Rpc.CommitResultOrBuilder>( results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.CommitResultList) } // @@protoc_insertion_point(class_scope:types.CommitResultList) private static final types.Rpc.CommitResultList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.CommitResultList(); } public static types.Rpc.CommitResultList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitResultList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitResultList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.CommitResultList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerifyResultOrBuilder extends // @@protoc_insertion_point(interface_extends:types.VerifyResult) com.google.protobuf.MessageOrBuilder { /** * .types.Tx tx = 1; * @return Whether the tx field is set. */ boolean hasTx(); /** * .types.Tx tx = 1; * @return The tx. */ types.Blockchain.Tx getTx(); /** * .types.Tx tx = 1; */ types.Blockchain.TxOrBuilder getTxOrBuilder(); /** * .types.VerifyStatus error = 2; * @return The enum numeric value on the wire for error. */ int getErrorValue(); /** * .types.VerifyStatus error = 2; * @return The error. */ types.Rpc.VerifyStatus getError(); } /** * Protobuf type {@code types.VerifyResult} */ public static final class VerifyResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.VerifyResult) VerifyResultOrBuilder { private static final long serialVersionUID = 0L; // Use VerifyResult.newBuilder() to construct. private VerifyResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerifyResult() { error_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VerifyResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerifyResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Blockchain.Tx.Builder subBuilder = null; if (tx_ != null) { subBuilder = tx_.toBuilder(); } tx_ = input.readMessage(types.Blockchain.Tx.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tx_); tx_ = subBuilder.buildPartial(); } break; } case 16: { int rawValue = input.readEnum(); error_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VerifyResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VerifyResult_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VerifyResult.class, types.Rpc.VerifyResult.Builder.class); } public static final int TX_FIELD_NUMBER = 1; private types.Blockchain.Tx tx_; /** * .types.Tx tx = 1; * @return Whether the tx field is set. */ @java.lang.Override public boolean hasTx() { return tx_ != null; } /** * .types.Tx tx = 1; * @return The tx. */ @java.lang.Override public types.Blockchain.Tx getTx() { return tx_ == null ? types.Blockchain.Tx.getDefaultInstance() : tx_; } /** * .types.Tx tx = 1; */ @java.lang.Override public types.Blockchain.TxOrBuilder getTxOrBuilder() { return getTx(); } public static final int ERROR_FIELD_NUMBER = 2; private int error_; /** * .types.VerifyStatus error = 2; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * .types.VerifyStatus error = 2; * @return The error. */ @java.lang.Override public types.Rpc.VerifyStatus getError() { @SuppressWarnings("deprecation") types.Rpc.VerifyStatus result = types.Rpc.VerifyStatus.valueOf(error_); return result == null ? types.Rpc.VerifyStatus.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tx_ != null) { output.writeMessage(1, getTx()); } if (error_ != types.Rpc.VerifyStatus.VERIFY_STATUS_OK.getNumber()) { output.writeEnum(2, error_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tx_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTx()); } if (error_ != types.Rpc.VerifyStatus.VERIFY_STATUS_OK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, error_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.VerifyResult)) { return super.equals(obj); } types.Rpc.VerifyResult other = (types.Rpc.VerifyResult) obj; if (hasTx() != other.hasTx()) return false; if (hasTx()) { if (!getTx() .equals(other.getTx())) return false; } if (error_ != other.error_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTx()) { hash = (37 * hash) + TX_FIELD_NUMBER; hash = (53 * hash) + getTx().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.VerifyResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VerifyResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VerifyResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VerifyResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VerifyResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VerifyResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VerifyResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VerifyResult 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 types.Rpc.VerifyResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.VerifyResult 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 types.Rpc.VerifyResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VerifyResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.VerifyResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.VerifyResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.VerifyResult) types.Rpc.VerifyResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VerifyResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VerifyResult_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VerifyResult.class, types.Rpc.VerifyResult.Builder.class); } // Construct using types.Rpc.VerifyResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (txBuilder_ == null) { tx_ = null; } else { tx_ = null; txBuilder_ = null; } error_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_VerifyResult_descriptor; } @java.lang.Override public types.Rpc.VerifyResult getDefaultInstanceForType() { return types.Rpc.VerifyResult.getDefaultInstance(); } @java.lang.Override public types.Rpc.VerifyResult build() { types.Rpc.VerifyResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.VerifyResult buildPartial() { types.Rpc.VerifyResult result = new types.Rpc.VerifyResult(this); if (txBuilder_ == null) { result.tx_ = tx_; } else { result.tx_ = txBuilder_.build(); } result.error_ = error_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.VerifyResult) { return mergeFrom((types.Rpc.VerifyResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.VerifyResult other) { if (other == types.Rpc.VerifyResult.getDefaultInstance()) return this; if (other.hasTx()) { mergeTx(other.getTx()); } if (other.error_ != 0) { setErrorValue(other.getErrorValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.VerifyResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.VerifyResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private types.Blockchain.Tx tx_; private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.Tx, types.Blockchain.Tx.Builder, types.Blockchain.TxOrBuilder> txBuilder_; /** * .types.Tx tx = 1; * @return Whether the tx field is set. */ public boolean hasTx() { return txBuilder_ != null || tx_ != null; } /** * .types.Tx tx = 1; * @return The tx. */ public types.Blockchain.Tx getTx() { if (txBuilder_ == null) { return tx_ == null ? types.Blockchain.Tx.getDefaultInstance() : tx_; } else { return txBuilder_.getMessage(); } } /** * .types.Tx tx = 1; */ public Builder setTx(types.Blockchain.Tx value) { if (txBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tx_ = value; onChanged(); } else { txBuilder_.setMessage(value); } return this; } /** * .types.Tx tx = 1; */ public Builder setTx( types.Blockchain.Tx.Builder builderForValue) { if (txBuilder_ == null) { tx_ = builderForValue.build(); onChanged(); } else { txBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.Tx tx = 1; */ public Builder mergeTx(types.Blockchain.Tx value) { if (txBuilder_ == null) { if (tx_ != null) { tx_ = types.Blockchain.Tx.newBuilder(tx_).mergeFrom(value).buildPartial(); } else { tx_ = value; } onChanged(); } else { txBuilder_.mergeFrom(value); } return this; } /** * .types.Tx tx = 1; */ public Builder clearTx() { if (txBuilder_ == null) { tx_ = null; onChanged(); } else { tx_ = null; txBuilder_ = null; } return this; } /** * .types.Tx tx = 1; */ public types.Blockchain.Tx.Builder getTxBuilder() { onChanged(); return getTxFieldBuilder().getBuilder(); } /** * .types.Tx tx = 1; */ public types.Blockchain.TxOrBuilder getTxOrBuilder() { if (txBuilder_ != null) { return txBuilder_.getMessageOrBuilder(); } else { return tx_ == null ? types.Blockchain.Tx.getDefaultInstance() : tx_; } } /** * .types.Tx tx = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.Tx, types.Blockchain.Tx.Builder, types.Blockchain.TxOrBuilder> getTxFieldBuilder() { if (txBuilder_ == null) { txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Blockchain.Tx, types.Blockchain.Tx.Builder, types.Blockchain.TxOrBuilder>( getTx(), getParentForChildren(), isClean()); tx_ = null; } return txBuilder_; } private int error_ = 0; /** * .types.VerifyStatus error = 2; * @return The enum numeric value on the wire for error. */ @java.lang.Override public int getErrorValue() { return error_; } /** * .types.VerifyStatus error = 2; * @param value The enum numeric value on the wire for error to set. * @return This builder for chaining. */ public Builder setErrorValue(int value) { error_ = value; onChanged(); return this; } /** * .types.VerifyStatus error = 2; * @return The error. */ @java.lang.Override public types.Rpc.VerifyStatus getError() { @SuppressWarnings("deprecation") types.Rpc.VerifyStatus result = types.Rpc.VerifyStatus.valueOf(error_); return result == null ? types.Rpc.VerifyStatus.UNRECOGNIZED : result; } /** * .types.VerifyStatus error = 2; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(types.Rpc.VerifyStatus value) { if (value == null) { throw new NullPointerException(); } error_ = value.getNumber(); onChanged(); return this; } /** * .types.VerifyStatus error = 2; * @return This builder for chaining. */ public Builder clearError() { error_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.VerifyResult) } // @@protoc_insertion_point(class_scope:types.VerifyResult) private static final types.Rpc.VerifyResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.VerifyResult(); } public static types.Rpc.VerifyResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VerifyResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerifyResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.VerifyResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersonalOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Personal) com.google.protobuf.MessageOrBuilder { /** * string passphrase = 1; * @return The passphrase. */ java.lang.String getPassphrase(); /** * string passphrase = 1; * @return The bytes for passphrase. */ com.google.protobuf.ByteString getPassphraseBytes(); /** * .types.Account account = 2; * @return Whether the account field is set. */ boolean hasAccount(); /** * .types.Account account = 2; * @return The account. */ types.AccountOuterClass.Account getAccount(); /** * .types.Account account = 2; */ types.AccountOuterClass.AccountOrBuilder getAccountOrBuilder(); } /** * Protobuf type {@code types.Personal} */ public static final class Personal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Personal) PersonalOrBuilder { private static final long serialVersionUID = 0L; // Use Personal.newBuilder() to construct. private Personal(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Personal() { passphrase_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Personal(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Personal( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); passphrase_ = s; break; } case 18: { types.AccountOuterClass.Account.Builder subBuilder = null; if (account_ != null) { subBuilder = account_.toBuilder(); } account_ = input.readMessage(types.AccountOuterClass.Account.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(account_); account_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Personal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Personal_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Personal.class, types.Rpc.Personal.Builder.class); } public static final int PASSPHRASE_FIELD_NUMBER = 1; private volatile java.lang.Object passphrase_; /** * string passphrase = 1; * @return The passphrase. */ @java.lang.Override public java.lang.String getPassphrase() { java.lang.Object ref = passphrase_; 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(); passphrase_ = s; return s; } } /** * string passphrase = 1; * @return The bytes for passphrase. */ @java.lang.Override public com.google.protobuf.ByteString getPassphraseBytes() { java.lang.Object ref = passphrase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passphrase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCOUNT_FIELD_NUMBER = 2; private types.AccountOuterClass.Account account_; /** * .types.Account account = 2; * @return Whether the account field is set. */ @java.lang.Override public boolean hasAccount() { return account_ != null; } /** * .types.Account account = 2; * @return The account. */ @java.lang.Override public types.AccountOuterClass.Account getAccount() { return account_ == null ? types.AccountOuterClass.Account.getDefaultInstance() : account_; } /** * .types.Account account = 2; */ @java.lang.Override public types.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() { return getAccount(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPassphraseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, passphrase_); } if (account_ != null) { output.writeMessage(2, getAccount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getPassphraseBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, passphrase_); } if (account_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAccount()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Personal)) { return super.equals(obj); } types.Rpc.Personal other = (types.Rpc.Personal) obj; if (!getPassphrase() .equals(other.getPassphrase())) return false; if (hasAccount() != other.hasAccount()) return false; if (hasAccount()) { if (!getAccount() .equals(other.getAccount())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PASSPHRASE_FIELD_NUMBER; hash = (53 * hash) + getPassphrase().hashCode(); if (hasAccount()) { hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getAccount().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Personal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Personal parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Personal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Personal parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Personal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Personal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Personal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Personal 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 types.Rpc.Personal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Personal 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 types.Rpc.Personal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Personal parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Personal prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Personal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Personal) types.Rpc.PersonalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Personal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Personal_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Personal.class, types.Rpc.Personal.Builder.class); } // Construct using types.Rpc.Personal.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); passphrase_ = ""; if (accountBuilder_ == null) { account_ = null; } else { account_ = null; accountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Personal_descriptor; } @java.lang.Override public types.Rpc.Personal getDefaultInstanceForType() { return types.Rpc.Personal.getDefaultInstance(); } @java.lang.Override public types.Rpc.Personal build() { types.Rpc.Personal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Personal buildPartial() { types.Rpc.Personal result = new types.Rpc.Personal(this); result.passphrase_ = passphrase_; if (accountBuilder_ == null) { result.account_ = account_; } else { result.account_ = accountBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Personal) { return mergeFrom((types.Rpc.Personal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Personal other) { if (other == types.Rpc.Personal.getDefaultInstance()) return this; if (!other.getPassphrase().isEmpty()) { passphrase_ = other.passphrase_; onChanged(); } if (other.hasAccount()) { mergeAccount(other.getAccount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Personal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Personal) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object passphrase_ = ""; /** * string passphrase = 1; * @return The passphrase. */ public java.lang.String getPassphrase() { java.lang.Object ref = passphrase_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passphrase_ = s; return s; } else { return (java.lang.String) ref; } } /** * string passphrase = 1; * @return The bytes for passphrase. */ public com.google.protobuf.ByteString getPassphraseBytes() { java.lang.Object ref = passphrase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passphrase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string passphrase = 1; * @param value The passphrase to set. * @return This builder for chaining. */ public Builder setPassphrase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passphrase_ = value; onChanged(); return this; } /** * string passphrase = 1; * @return This builder for chaining. */ public Builder clearPassphrase() { passphrase_ = getDefaultInstance().getPassphrase(); onChanged(); return this; } /** * string passphrase = 1; * @param value The bytes for passphrase to set. * @return This builder for chaining. */ public Builder setPassphraseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passphrase_ = value; onChanged(); return this; } private types.AccountOuterClass.Account account_; private com.google.protobuf.SingleFieldBuilderV3< types.AccountOuterClass.Account, types.AccountOuterClass.Account.Builder, types.AccountOuterClass.AccountOrBuilder> accountBuilder_; /** * .types.Account account = 2; * @return Whether the account field is set. */ public boolean hasAccount() { return accountBuilder_ != null || account_ != null; } /** * .types.Account account = 2; * @return The account. */ public types.AccountOuterClass.Account getAccount() { if (accountBuilder_ == null) { return account_ == null ? types.AccountOuterClass.Account.getDefaultInstance() : account_; } else { return accountBuilder_.getMessage(); } } /** * .types.Account account = 2; */ public Builder setAccount(types.AccountOuterClass.Account value) { if (accountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } account_ = value; onChanged(); } else { accountBuilder_.setMessage(value); } return this; } /** * .types.Account account = 2; */ public Builder setAccount( types.AccountOuterClass.Account.Builder builderForValue) { if (accountBuilder_ == null) { account_ = builderForValue.build(); onChanged(); } else { accountBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.Account account = 2; */ public Builder mergeAccount(types.AccountOuterClass.Account value) { if (accountBuilder_ == null) { if (account_ != null) { account_ = types.AccountOuterClass.Account.newBuilder(account_).mergeFrom(value).buildPartial(); } else { account_ = value; } onChanged(); } else { accountBuilder_.mergeFrom(value); } return this; } /** * .types.Account account = 2; */ public Builder clearAccount() { if (accountBuilder_ == null) { account_ = null; onChanged(); } else { account_ = null; accountBuilder_ = null; } return this; } /** * .types.Account account = 2; */ public types.AccountOuterClass.Account.Builder getAccountBuilder() { onChanged(); return getAccountFieldBuilder().getBuilder(); } /** * .types.Account account = 2; */ public types.AccountOuterClass.AccountOrBuilder getAccountOrBuilder() { if (accountBuilder_ != null) { return accountBuilder_.getMessageOrBuilder(); } else { return account_ == null ? types.AccountOuterClass.Account.getDefaultInstance() : account_; } } /** * .types.Account account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< types.AccountOuterClass.Account, types.AccountOuterClass.Account.Builder, types.AccountOuterClass.AccountOrBuilder> getAccountFieldBuilder() { if (accountBuilder_ == null) { accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.AccountOuterClass.Account, types.AccountOuterClass.Account.Builder, types.AccountOuterClass.AccountOrBuilder>( getAccount(), getParentForChildren(), isClean()); account_ = null; } return accountBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Personal) } // @@protoc_insertion_point(class_scope:types.Personal) private static final types.Rpc.Personal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Personal(); } public static types.Rpc.Personal getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Personal parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Personal(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Personal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImportFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ImportFormat) com.google.protobuf.MessageOrBuilder { /** * .types.SingleBytes wif = 1; * @return Whether the wif field is set. */ boolean hasWif(); /** * .types.SingleBytes wif = 1; * @return The wif. */ types.Rpc.SingleBytes getWif(); /** * .types.SingleBytes wif = 1; */ types.Rpc.SingleBytesOrBuilder getWifOrBuilder(); /** * string oldpass = 2; * @return The oldpass. */ java.lang.String getOldpass(); /** * string oldpass = 2; * @return The bytes for oldpass. */ com.google.protobuf.ByteString getOldpassBytes(); /** * string newpass = 3; * @return The newpass. */ java.lang.String getNewpass(); /** * string newpass = 3; * @return The bytes for newpass. */ com.google.protobuf.ByteString getNewpassBytes(); /** * .types.SingleBytes keystore = 4; * @return Whether the keystore field is set. */ boolean hasKeystore(); /** * .types.SingleBytes keystore = 4; * @return The keystore. */ types.Rpc.SingleBytes getKeystore(); /** * .types.SingleBytes keystore = 4; */ types.Rpc.SingleBytesOrBuilder getKeystoreOrBuilder(); } /** * Protobuf type {@code types.ImportFormat} */ public static final class ImportFormat extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ImportFormat) ImportFormatOrBuilder { private static final long serialVersionUID = 0L; // Use ImportFormat.newBuilder() to construct. private ImportFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImportFormat() { oldpass_ = ""; newpass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImportFormat(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImportFormat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Rpc.SingleBytes.Builder subBuilder = null; if (wif_ != null) { subBuilder = wif_.toBuilder(); } wif_ = input.readMessage(types.Rpc.SingleBytes.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(wif_); wif_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); oldpass_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); newpass_ = s; break; } case 34: { types.Rpc.SingleBytes.Builder subBuilder = null; if (keystore_ != null) { subBuilder = keystore_.toBuilder(); } keystore_ = input.readMessage(types.Rpc.SingleBytes.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keystore_); keystore_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ImportFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ImportFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ImportFormat.class, types.Rpc.ImportFormat.Builder.class); } public static final int WIF_FIELD_NUMBER = 1; private types.Rpc.SingleBytes wif_; /** * .types.SingleBytes wif = 1; * @return Whether the wif field is set. */ @java.lang.Override public boolean hasWif() { return wif_ != null; } /** * .types.SingleBytes wif = 1; * @return The wif. */ @java.lang.Override public types.Rpc.SingleBytes getWif() { return wif_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : wif_; } /** * .types.SingleBytes wif = 1; */ @java.lang.Override public types.Rpc.SingleBytesOrBuilder getWifOrBuilder() { return getWif(); } public static final int OLDPASS_FIELD_NUMBER = 2; private volatile java.lang.Object oldpass_; /** * string oldpass = 2; * @return The oldpass. */ @java.lang.Override public java.lang.String getOldpass() { java.lang.Object ref = oldpass_; 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(); oldpass_ = s; return s; } } /** * string oldpass = 2; * @return The bytes for oldpass. */ @java.lang.Override public com.google.protobuf.ByteString getOldpassBytes() { java.lang.Object ref = oldpass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldpass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEWPASS_FIELD_NUMBER = 3; private volatile java.lang.Object newpass_; /** * string newpass = 3; * @return The newpass. */ @java.lang.Override public java.lang.String getNewpass() { java.lang.Object ref = newpass_; 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(); newpass_ = s; return s; } } /** * string newpass = 3; * @return The bytes for newpass. */ @java.lang.Override public com.google.protobuf.ByteString getNewpassBytes() { java.lang.Object ref = newpass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newpass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEYSTORE_FIELD_NUMBER = 4; private types.Rpc.SingleBytes keystore_; /** * .types.SingleBytes keystore = 4; * @return Whether the keystore field is set. */ @java.lang.Override public boolean hasKeystore() { return keystore_ != null; } /** * .types.SingleBytes keystore = 4; * @return The keystore. */ @java.lang.Override public types.Rpc.SingleBytes getKeystore() { return keystore_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : keystore_; } /** * .types.SingleBytes keystore = 4; */ @java.lang.Override public types.Rpc.SingleBytesOrBuilder getKeystoreOrBuilder() { return getKeystore(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (wif_ != null) { output.writeMessage(1, getWif()); } if (!getOldpassBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oldpass_); } if (!getNewpassBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newpass_); } if (keystore_ != null) { output.writeMessage(4, getKeystore()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (wif_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWif()); } if (!getOldpassBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oldpass_); } if (!getNewpassBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newpass_); } if (keystore_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKeystore()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ImportFormat)) { return super.equals(obj); } types.Rpc.ImportFormat other = (types.Rpc.ImportFormat) obj; if (hasWif() != other.hasWif()) return false; if (hasWif()) { if (!getWif() .equals(other.getWif())) return false; } if (!getOldpass() .equals(other.getOldpass())) return false; if (!getNewpass() .equals(other.getNewpass())) return false; if (hasKeystore() != other.hasKeystore()) return false; if (hasKeystore()) { if (!getKeystore() .equals(other.getKeystore())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWif()) { hash = (37 * hash) + WIF_FIELD_NUMBER; hash = (53 * hash) + getWif().hashCode(); } hash = (37 * hash) + OLDPASS_FIELD_NUMBER; hash = (53 * hash) + getOldpass().hashCode(); hash = (37 * hash) + NEWPASS_FIELD_NUMBER; hash = (53 * hash) + getNewpass().hashCode(); if (hasKeystore()) { hash = (37 * hash) + KEYSTORE_FIELD_NUMBER; hash = (53 * hash) + getKeystore().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ImportFormat parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ImportFormat parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ImportFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ImportFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ImportFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ImportFormat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ImportFormat parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ImportFormat 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 types.Rpc.ImportFormat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ImportFormat 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 types.Rpc.ImportFormat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ImportFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ImportFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.ImportFormat} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ImportFormat) types.Rpc.ImportFormatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ImportFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ImportFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ImportFormat.class, types.Rpc.ImportFormat.Builder.class); } // Construct using types.Rpc.ImportFormat.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (wifBuilder_ == null) { wif_ = null; } else { wif_ = null; wifBuilder_ = null; } oldpass_ = ""; newpass_ = ""; if (keystoreBuilder_ == null) { keystore_ = null; } else { keystore_ = null; keystoreBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ImportFormat_descriptor; } @java.lang.Override public types.Rpc.ImportFormat getDefaultInstanceForType() { return types.Rpc.ImportFormat.getDefaultInstance(); } @java.lang.Override public types.Rpc.ImportFormat build() { types.Rpc.ImportFormat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ImportFormat buildPartial() { types.Rpc.ImportFormat result = new types.Rpc.ImportFormat(this); if (wifBuilder_ == null) { result.wif_ = wif_; } else { result.wif_ = wifBuilder_.build(); } result.oldpass_ = oldpass_; result.newpass_ = newpass_; if (keystoreBuilder_ == null) { result.keystore_ = keystore_; } else { result.keystore_ = keystoreBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ImportFormat) { return mergeFrom((types.Rpc.ImportFormat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ImportFormat other) { if (other == types.Rpc.ImportFormat.getDefaultInstance()) return this; if (other.hasWif()) { mergeWif(other.getWif()); } if (!other.getOldpass().isEmpty()) { oldpass_ = other.oldpass_; onChanged(); } if (!other.getNewpass().isEmpty()) { newpass_ = other.newpass_; onChanged(); } if (other.hasKeystore()) { mergeKeystore(other.getKeystore()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ImportFormat parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ImportFormat) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private types.Rpc.SingleBytes wif_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder> wifBuilder_; /** * .types.SingleBytes wif = 1; * @return Whether the wif field is set. */ public boolean hasWif() { return wifBuilder_ != null || wif_ != null; } /** * .types.SingleBytes wif = 1; * @return The wif. */ public types.Rpc.SingleBytes getWif() { if (wifBuilder_ == null) { return wif_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : wif_; } else { return wifBuilder_.getMessage(); } } /** * .types.SingleBytes wif = 1; */ public Builder setWif(types.Rpc.SingleBytes value) { if (wifBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wif_ = value; onChanged(); } else { wifBuilder_.setMessage(value); } return this; } /** * .types.SingleBytes wif = 1; */ public Builder setWif( types.Rpc.SingleBytes.Builder builderForValue) { if (wifBuilder_ == null) { wif_ = builderForValue.build(); onChanged(); } else { wifBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.SingleBytes wif = 1; */ public Builder mergeWif(types.Rpc.SingleBytes value) { if (wifBuilder_ == null) { if (wif_ != null) { wif_ = types.Rpc.SingleBytes.newBuilder(wif_).mergeFrom(value).buildPartial(); } else { wif_ = value; } onChanged(); } else { wifBuilder_.mergeFrom(value); } return this; } /** * .types.SingleBytes wif = 1; */ public Builder clearWif() { if (wifBuilder_ == null) { wif_ = null; onChanged(); } else { wif_ = null; wifBuilder_ = null; } return this; } /** * .types.SingleBytes wif = 1; */ public types.Rpc.SingleBytes.Builder getWifBuilder() { onChanged(); return getWifFieldBuilder().getBuilder(); } /** * .types.SingleBytes wif = 1; */ public types.Rpc.SingleBytesOrBuilder getWifOrBuilder() { if (wifBuilder_ != null) { return wifBuilder_.getMessageOrBuilder(); } else { return wif_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : wif_; } } /** * .types.SingleBytes wif = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder> getWifFieldBuilder() { if (wifBuilder_ == null) { wifBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder>( getWif(), getParentForChildren(), isClean()); wif_ = null; } return wifBuilder_; } private java.lang.Object oldpass_ = ""; /** * string oldpass = 2; * @return The oldpass. */ public java.lang.String getOldpass() { java.lang.Object ref = oldpass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); oldpass_ = s; return s; } else { return (java.lang.String) ref; } } /** * string oldpass = 2; * @return The bytes for oldpass. */ public com.google.protobuf.ByteString getOldpassBytes() { java.lang.Object ref = oldpass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); oldpass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string oldpass = 2; * @param value The oldpass to set. * @return This builder for chaining. */ public Builder setOldpass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } oldpass_ = value; onChanged(); return this; } /** * string oldpass = 2; * @return This builder for chaining. */ public Builder clearOldpass() { oldpass_ = getDefaultInstance().getOldpass(); onChanged(); return this; } /** * string oldpass = 2; * @param value The bytes for oldpass to set. * @return This builder for chaining. */ public Builder setOldpassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); oldpass_ = value; onChanged(); return this; } private java.lang.Object newpass_ = ""; /** * string newpass = 3; * @return The newpass. */ public java.lang.String getNewpass() { java.lang.Object ref = newpass_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); newpass_ = s; return s; } else { return (java.lang.String) ref; } } /** * string newpass = 3; * @return The bytes for newpass. */ public com.google.protobuf.ByteString getNewpassBytes() { java.lang.Object ref = newpass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newpass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string newpass = 3; * @param value The newpass to set. * @return This builder for chaining. */ public Builder setNewpass( java.lang.String value) { if (value == null) { throw new NullPointerException(); } newpass_ = value; onChanged(); return this; } /** * string newpass = 3; * @return This builder for chaining. */ public Builder clearNewpass() { newpass_ = getDefaultInstance().getNewpass(); onChanged(); return this; } /** * string newpass = 3; * @param value The bytes for newpass to set. * @return This builder for chaining. */ public Builder setNewpassBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); newpass_ = value; onChanged(); return this; } private types.Rpc.SingleBytes keystore_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder> keystoreBuilder_; /** * .types.SingleBytes keystore = 4; * @return Whether the keystore field is set. */ public boolean hasKeystore() { return keystoreBuilder_ != null || keystore_ != null; } /** * .types.SingleBytes keystore = 4; * @return The keystore. */ public types.Rpc.SingleBytes getKeystore() { if (keystoreBuilder_ == null) { return keystore_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : keystore_; } else { return keystoreBuilder_.getMessage(); } } /** * .types.SingleBytes keystore = 4; */ public Builder setKeystore(types.Rpc.SingleBytes value) { if (keystoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keystore_ = value; onChanged(); } else { keystoreBuilder_.setMessage(value); } return this; } /** * .types.SingleBytes keystore = 4; */ public Builder setKeystore( types.Rpc.SingleBytes.Builder builderForValue) { if (keystoreBuilder_ == null) { keystore_ = builderForValue.build(); onChanged(); } else { keystoreBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.SingleBytes keystore = 4; */ public Builder mergeKeystore(types.Rpc.SingleBytes value) { if (keystoreBuilder_ == null) { if (keystore_ != null) { keystore_ = types.Rpc.SingleBytes.newBuilder(keystore_).mergeFrom(value).buildPartial(); } else { keystore_ = value; } onChanged(); } else { keystoreBuilder_.mergeFrom(value); } return this; } /** * .types.SingleBytes keystore = 4; */ public Builder clearKeystore() { if (keystoreBuilder_ == null) { keystore_ = null; onChanged(); } else { keystore_ = null; keystoreBuilder_ = null; } return this; } /** * .types.SingleBytes keystore = 4; */ public types.Rpc.SingleBytes.Builder getKeystoreBuilder() { onChanged(); return getKeystoreFieldBuilder().getBuilder(); } /** * .types.SingleBytes keystore = 4; */ public types.Rpc.SingleBytesOrBuilder getKeystoreOrBuilder() { if (keystoreBuilder_ != null) { return keystoreBuilder_.getMessageOrBuilder(); } else { return keystore_ == null ? types.Rpc.SingleBytes.getDefaultInstance() : keystore_; } } /** * .types.SingleBytes keystore = 4; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder> getKeystoreFieldBuilder() { if (keystoreBuilder_ == null) { keystoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.SingleBytes, types.Rpc.SingleBytes.Builder, types.Rpc.SingleBytesOrBuilder>( getKeystore(), getParentForChildren(), isClean()); keystore_ = null; } return keystoreBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ImportFormat) } // @@protoc_insertion_point(class_scope:types.ImportFormat) private static final types.Rpc.ImportFormat DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ImportFormat(); } public static types.Rpc.ImportFormat getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImportFormat parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImportFormat(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ImportFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StakingOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Staking) com.google.protobuf.MessageOrBuilder { /** * bytes amount = 1; * @return The amount. */ com.google.protobuf.ByteString getAmount(); /** * uint64 when = 2; * @return The when. */ long getWhen(); } /** * Protobuf type {@code types.Staking} */ public static final class Staking extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Staking) StakingOrBuilder { private static final long serialVersionUID = 0L; // Use Staking.newBuilder() to construct. private Staking(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Staking() { amount_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Staking(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Staking( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { amount_ = input.readBytes(); break; } case 16: { when_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Staking_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Staking_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Staking.class, types.Rpc.Staking.Builder.class); } public static final int AMOUNT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString amount_; /** * bytes amount = 1; * @return The amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmount() { return amount_; } public static final int WHEN_FIELD_NUMBER = 2; private long when_; /** * uint64 when = 2; * @return The when. */ @java.lang.Override public long getWhen() { return when_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!amount_.isEmpty()) { output.writeBytes(1, amount_); } if (when_ != 0L) { output.writeUInt64(2, when_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!amount_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, amount_); } if (when_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, when_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Staking)) { return super.equals(obj); } types.Rpc.Staking other = (types.Rpc.Staking) obj; if (!getAmount() .equals(other.getAmount())) return false; if (getWhen() != other.getWhen()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + WHEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWhen()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Staking parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Staking parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Staking parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Staking parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Staking parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Staking parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Staking parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Staking 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 types.Rpc.Staking parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Staking 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 types.Rpc.Staking parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Staking parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Staking prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Staking} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Staking) types.Rpc.StakingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Staking_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Staking_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Staking.class, types.Rpc.Staking.Builder.class); } // Construct using types.Rpc.Staking.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); amount_ = com.google.protobuf.ByteString.EMPTY; when_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Staking_descriptor; } @java.lang.Override public types.Rpc.Staking getDefaultInstanceForType() { return types.Rpc.Staking.getDefaultInstance(); } @java.lang.Override public types.Rpc.Staking build() { types.Rpc.Staking result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Staking buildPartial() { types.Rpc.Staking result = new types.Rpc.Staking(this); result.amount_ = amount_; result.when_ = when_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Staking) { return mergeFrom((types.Rpc.Staking)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Staking other) { if (other == types.Rpc.Staking.getDefaultInstance()) return this; if (other.getAmount() != com.google.protobuf.ByteString.EMPTY) { setAmount(other.getAmount()); } if (other.getWhen() != 0L) { setWhen(other.getWhen()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Staking parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Staking) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString amount_ = com.google.protobuf.ByteString.EMPTY; /** * bytes amount = 1; * @return The amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmount() { return amount_; } /** * bytes amount = 1; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); return this; } /** * bytes amount = 1; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } private long when_ ; /** * uint64 when = 2; * @return The when. */ @java.lang.Override public long getWhen() { return when_; } /** * uint64 when = 2; * @param value The when to set. * @return This builder for chaining. */ public Builder setWhen(long value) { when_ = value; onChanged(); return this; } /** * uint64 when = 2; * @return This builder for chaining. */ public Builder clearWhen() { when_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Staking) } // @@protoc_insertion_point(class_scope:types.Staking) private static final types.Rpc.Staking DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Staking(); } public static types.Rpc.Staking getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Staking parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Staking(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Staking getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Vote) com.google.protobuf.MessageOrBuilder { /** * bytes candidate = 1; * @return The candidate. */ com.google.protobuf.ByteString getCandidate(); /** * bytes amount = 2; * @return The amount. */ com.google.protobuf.ByteString getAmount(); } /** * Protobuf type {@code types.Vote} */ public static final class Vote extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Vote) VoteOrBuilder { private static final long serialVersionUID = 0L; // Use Vote.newBuilder() to construct. private Vote(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Vote() { candidate_ = com.google.protobuf.ByteString.EMPTY; amount_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Vote(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vote( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { candidate_ = input.readBytes(); break; } case 18: { amount_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Vote.class, types.Rpc.Vote.Builder.class); } public static final int CANDIDATE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString candidate_; /** * bytes candidate = 1; * @return The candidate. */ @java.lang.Override public com.google.protobuf.ByteString getCandidate() { return candidate_; } public static final int AMOUNT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString amount_; /** * bytes amount = 2; * @return The amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmount() { return amount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!candidate_.isEmpty()) { output.writeBytes(1, candidate_); } if (!amount_.isEmpty()) { output.writeBytes(2, amount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!candidate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, candidate_); } if (!amount_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Vote)) { return super.equals(obj); } types.Rpc.Vote other = (types.Rpc.Vote) obj; if (!getCandidate() .equals(other.getCandidate())) return false; if (!getAmount() .equals(other.getAmount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CANDIDATE_FIELD_NUMBER; hash = (53 * hash) + getCandidate().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Vote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Vote parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Vote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Vote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Vote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Vote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Vote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Vote 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 types.Rpc.Vote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Vote 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 types.Rpc.Vote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Vote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Vote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Vote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Vote) types.Rpc.VoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Vote.class, types.Rpc.Vote.Builder.class); } // Construct using types.Rpc.Vote.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); candidate_ = com.google.protobuf.ByteString.EMPTY; amount_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Vote_descriptor; } @java.lang.Override public types.Rpc.Vote getDefaultInstanceForType() { return types.Rpc.Vote.getDefaultInstance(); } @java.lang.Override public types.Rpc.Vote build() { types.Rpc.Vote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Vote buildPartial() { types.Rpc.Vote result = new types.Rpc.Vote(this); result.candidate_ = candidate_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Vote) { return mergeFrom((types.Rpc.Vote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Vote other) { if (other == types.Rpc.Vote.getDefaultInstance()) return this; if (other.getCandidate() != com.google.protobuf.ByteString.EMPTY) { setCandidate(other.getCandidate()); } if (other.getAmount() != com.google.protobuf.ByteString.EMPTY) { setAmount(other.getAmount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Vote parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Vote) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString candidate_ = com.google.protobuf.ByteString.EMPTY; /** * bytes candidate = 1; * @return The candidate. */ @java.lang.Override public com.google.protobuf.ByteString getCandidate() { return candidate_; } /** * bytes candidate = 1; * @param value The candidate to set. * @return This builder for chaining. */ public Builder setCandidate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } candidate_ = value; onChanged(); return this; } /** * bytes candidate = 1; * @return This builder for chaining. */ public Builder clearCandidate() { candidate_ = getDefaultInstance().getCandidate(); onChanged(); return this; } private com.google.protobuf.ByteString amount_ = com.google.protobuf.ByteString.EMPTY; /** * bytes amount = 2; * @return The amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmount() { return amount_; } /** * bytes amount = 2; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); return this; } /** * bytes amount = 2; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Vote) } // @@protoc_insertion_point(class_scope:types.Vote) private static final types.Rpc.Vote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Vote(); } public static types.Rpc.Vote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Vote parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Vote(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Vote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.VoteParams) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * uint32 count = 2; * @return The count. */ int getCount(); } /** * Protobuf type {@code types.VoteParams} */ public static final class VoteParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.VoteParams) VoteParamsOrBuilder { private static final long serialVersionUID = 0L; // Use VoteParams.newBuilder() to construct. private VoteParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VoteParams() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VoteParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 16: { count_ = input.readUInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteParams.class, types.Rpc.VoteParams.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNT_FIELD_NUMBER = 2; private int count_; /** * uint32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (count_ != 0) { output.writeUInt32(2, count_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.VoteParams)) { return super.equals(obj); } types.Rpc.VoteParams other = (types.Rpc.VoteParams) obj; if (!getId() .equals(other.getId())) return false; if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.VoteParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteParams 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 types.Rpc.VoteParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.VoteParams 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 types.Rpc.VoteParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.VoteParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.VoteParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.VoteParams) types.Rpc.VoteParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteParams.class, types.Rpc.VoteParams.Builder.class); } // Construct using types.Rpc.VoteParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; count_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_VoteParams_descriptor; } @java.lang.Override public types.Rpc.VoteParams getDefaultInstanceForType() { return types.Rpc.VoteParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.VoteParams build() { types.Rpc.VoteParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.VoteParams buildPartial() { types.Rpc.VoteParams result = new types.Rpc.VoteParams(this); result.id_ = id_; result.count_ = count_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.VoteParams) { return mergeFrom((types.Rpc.VoteParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.VoteParams other) { if (other == types.Rpc.VoteParams.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.getCount() != 0) { setCount(other.getCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.VoteParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.VoteParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private int count_ ; /** * uint32 count = 2; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** * uint32 count = 2; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; onChanged(); return this; } /** * uint32 count = 2; * @return This builder for chaining. */ public Builder clearCount() { count_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.VoteParams) } // @@protoc_insertion_point(class_scope:types.VoteParams) private static final types.Rpc.VoteParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.VoteParams(); } public static types.Rpc.VoteParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VoteParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VoteParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.VoteParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccountVoteInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.AccountVoteInfo) com.google.protobuf.MessageOrBuilder { /** * .types.Staking staking = 1; * @return Whether the staking field is set. */ boolean hasStaking(); /** * .types.Staking staking = 1; * @return The staking. */ types.Rpc.Staking getStaking(); /** * .types.Staking staking = 1; */ types.Rpc.StakingOrBuilder getStakingOrBuilder(); /** * repeated .types.VoteInfo voting = 2; */ java.util.List getVotingList(); /** * repeated .types.VoteInfo voting = 2; */ types.Rpc.VoteInfo getVoting(int index); /** * repeated .types.VoteInfo voting = 2; */ int getVotingCount(); /** * repeated .types.VoteInfo voting = 2; */ java.util.List getVotingOrBuilderList(); /** * repeated .types.VoteInfo voting = 2; */ types.Rpc.VoteInfoOrBuilder getVotingOrBuilder( int index); } /** * Protobuf type {@code types.AccountVoteInfo} */ public static final class AccountVoteInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.AccountVoteInfo) AccountVoteInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AccountVoteInfo.newBuilder() to construct. private AccountVoteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AccountVoteInfo() { voting_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AccountVoteInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AccountVoteInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Rpc.Staking.Builder subBuilder = null; if (staking_ != null) { subBuilder = staking_.toBuilder(); } staking_ = input.readMessage(types.Rpc.Staking.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(staking_); staking_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { voting_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } voting_.add( input.readMessage(types.Rpc.VoteInfo.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { voting_ = java.util.Collections.unmodifiableList(voting_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountVoteInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountVoteInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountVoteInfo.class, types.Rpc.AccountVoteInfo.Builder.class); } public static final int STAKING_FIELD_NUMBER = 1; private types.Rpc.Staking staking_; /** * .types.Staking staking = 1; * @return Whether the staking field is set. */ @java.lang.Override public boolean hasStaking() { return staking_ != null; } /** * .types.Staking staking = 1; * @return The staking. */ @java.lang.Override public types.Rpc.Staking getStaking() { return staking_ == null ? types.Rpc.Staking.getDefaultInstance() : staking_; } /** * .types.Staking staking = 1; */ @java.lang.Override public types.Rpc.StakingOrBuilder getStakingOrBuilder() { return getStaking(); } public static final int VOTING_FIELD_NUMBER = 2; private java.util.List voting_; /** * repeated .types.VoteInfo voting = 2; */ @java.lang.Override public java.util.List getVotingList() { return voting_; } /** * repeated .types.VoteInfo voting = 2; */ @java.lang.Override public java.util.List getVotingOrBuilderList() { return voting_; } /** * repeated .types.VoteInfo voting = 2; */ @java.lang.Override public int getVotingCount() { return voting_.size(); } /** * repeated .types.VoteInfo voting = 2; */ @java.lang.Override public types.Rpc.VoteInfo getVoting(int index) { return voting_.get(index); } /** * repeated .types.VoteInfo voting = 2; */ @java.lang.Override public types.Rpc.VoteInfoOrBuilder getVotingOrBuilder( int index) { return voting_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (staking_ != null) { output.writeMessage(1, getStaking()); } for (int i = 0; i < voting_.size(); i++) { output.writeMessage(2, voting_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (staking_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStaking()); } for (int i = 0; i < voting_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, voting_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.AccountVoteInfo)) { return super.equals(obj); } types.Rpc.AccountVoteInfo other = (types.Rpc.AccountVoteInfo) obj; if (hasStaking() != other.hasStaking()) return false; if (hasStaking()) { if (!getStaking() .equals(other.getStaking())) return false; } if (!getVotingList() .equals(other.getVotingList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStaking()) { hash = (37 * hash) + STAKING_FIELD_NUMBER; hash = (53 * hash) + getStaking().hashCode(); } if (getVotingCount() > 0) { hash = (37 * hash) + VOTING_FIELD_NUMBER; hash = (53 * hash) + getVotingList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.AccountVoteInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountVoteInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountVoteInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountVoteInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountVoteInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.AccountVoteInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.AccountVoteInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountVoteInfo 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 types.Rpc.AccountVoteInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.AccountVoteInfo 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 types.Rpc.AccountVoteInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.AccountVoteInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.AccountVoteInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.AccountVoteInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.AccountVoteInfo) types.Rpc.AccountVoteInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_AccountVoteInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_AccountVoteInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.AccountVoteInfo.class, types.Rpc.AccountVoteInfo.Builder.class); } // Construct using types.Rpc.AccountVoteInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVotingFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (stakingBuilder_ == null) { staking_ = null; } else { staking_ = null; stakingBuilder_ = null; } if (votingBuilder_ == null) { voting_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { votingBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_AccountVoteInfo_descriptor; } @java.lang.Override public types.Rpc.AccountVoteInfo getDefaultInstanceForType() { return types.Rpc.AccountVoteInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.AccountVoteInfo build() { types.Rpc.AccountVoteInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.AccountVoteInfo buildPartial() { types.Rpc.AccountVoteInfo result = new types.Rpc.AccountVoteInfo(this); int from_bitField0_ = bitField0_; if (stakingBuilder_ == null) { result.staking_ = staking_; } else { result.staking_ = stakingBuilder_.build(); } if (votingBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { voting_ = java.util.Collections.unmodifiableList(voting_); bitField0_ = (bitField0_ & ~0x00000001); } result.voting_ = voting_; } else { result.voting_ = votingBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.AccountVoteInfo) { return mergeFrom((types.Rpc.AccountVoteInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.AccountVoteInfo other) { if (other == types.Rpc.AccountVoteInfo.getDefaultInstance()) return this; if (other.hasStaking()) { mergeStaking(other.getStaking()); } if (votingBuilder_ == null) { if (!other.voting_.isEmpty()) { if (voting_.isEmpty()) { voting_ = other.voting_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVotingIsMutable(); voting_.addAll(other.voting_); } onChanged(); } } else { if (!other.voting_.isEmpty()) { if (votingBuilder_.isEmpty()) { votingBuilder_.dispose(); votingBuilder_ = null; voting_ = other.voting_; bitField0_ = (bitField0_ & ~0x00000001); votingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotingFieldBuilder() : null; } else { votingBuilder_.addAllMessages(other.voting_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.AccountVoteInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.AccountVoteInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private types.Rpc.Staking staking_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Staking, types.Rpc.Staking.Builder, types.Rpc.StakingOrBuilder> stakingBuilder_; /** * .types.Staking staking = 1; * @return Whether the staking field is set. */ public boolean hasStaking() { return stakingBuilder_ != null || staking_ != null; } /** * .types.Staking staking = 1; * @return The staking. */ public types.Rpc.Staking getStaking() { if (stakingBuilder_ == null) { return staking_ == null ? types.Rpc.Staking.getDefaultInstance() : staking_; } else { return stakingBuilder_.getMessage(); } } /** * .types.Staking staking = 1; */ public Builder setStaking(types.Rpc.Staking value) { if (stakingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } staking_ = value; onChanged(); } else { stakingBuilder_.setMessage(value); } return this; } /** * .types.Staking staking = 1; */ public Builder setStaking( types.Rpc.Staking.Builder builderForValue) { if (stakingBuilder_ == null) { staking_ = builderForValue.build(); onChanged(); } else { stakingBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.Staking staking = 1; */ public Builder mergeStaking(types.Rpc.Staking value) { if (stakingBuilder_ == null) { if (staking_ != null) { staking_ = types.Rpc.Staking.newBuilder(staking_).mergeFrom(value).buildPartial(); } else { staking_ = value; } onChanged(); } else { stakingBuilder_.mergeFrom(value); } return this; } /** * .types.Staking staking = 1; */ public Builder clearStaking() { if (stakingBuilder_ == null) { staking_ = null; onChanged(); } else { staking_ = null; stakingBuilder_ = null; } return this; } /** * .types.Staking staking = 1; */ public types.Rpc.Staking.Builder getStakingBuilder() { onChanged(); return getStakingFieldBuilder().getBuilder(); } /** * .types.Staking staking = 1; */ public types.Rpc.StakingOrBuilder getStakingOrBuilder() { if (stakingBuilder_ != null) { return stakingBuilder_.getMessageOrBuilder(); } else { return staking_ == null ? types.Rpc.Staking.getDefaultInstance() : staking_; } } /** * .types.Staking staking = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Staking, types.Rpc.Staking.Builder, types.Rpc.StakingOrBuilder> getStakingFieldBuilder() { if (stakingBuilder_ == null) { stakingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Staking, types.Rpc.Staking.Builder, types.Rpc.StakingOrBuilder>( getStaking(), getParentForChildren(), isClean()); staking_ = null; } return stakingBuilder_; } private java.util.List voting_ = java.util.Collections.emptyList(); private void ensureVotingIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voting_ = new java.util.ArrayList(voting_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.VoteInfo, types.Rpc.VoteInfo.Builder, types.Rpc.VoteInfoOrBuilder> votingBuilder_; /** * repeated .types.VoteInfo voting = 2; */ public java.util.List getVotingList() { if (votingBuilder_ == null) { return java.util.Collections.unmodifiableList(voting_); } else { return votingBuilder_.getMessageList(); } } /** * repeated .types.VoteInfo voting = 2; */ public int getVotingCount() { if (votingBuilder_ == null) { return voting_.size(); } else { return votingBuilder_.getCount(); } } /** * repeated .types.VoteInfo voting = 2; */ public types.Rpc.VoteInfo getVoting(int index) { if (votingBuilder_ == null) { return voting_.get(index); } else { return votingBuilder_.getMessage(index); } } /** * repeated .types.VoteInfo voting = 2; */ public Builder setVoting( int index, types.Rpc.VoteInfo value) { if (votingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotingIsMutable(); voting_.set(index, value); onChanged(); } else { votingBuilder_.setMessage(index, value); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder setVoting( int index, types.Rpc.VoteInfo.Builder builderForValue) { if (votingBuilder_ == null) { ensureVotingIsMutable(); voting_.set(index, builderForValue.build()); onChanged(); } else { votingBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder addVoting(types.Rpc.VoteInfo value) { if (votingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotingIsMutable(); voting_.add(value); onChanged(); } else { votingBuilder_.addMessage(value); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder addVoting( int index, types.Rpc.VoteInfo value) { if (votingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotingIsMutable(); voting_.add(index, value); onChanged(); } else { votingBuilder_.addMessage(index, value); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder addVoting( types.Rpc.VoteInfo.Builder builderForValue) { if (votingBuilder_ == null) { ensureVotingIsMutable(); voting_.add(builderForValue.build()); onChanged(); } else { votingBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder addVoting( int index, types.Rpc.VoteInfo.Builder builderForValue) { if (votingBuilder_ == null) { ensureVotingIsMutable(); voting_.add(index, builderForValue.build()); onChanged(); } else { votingBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder addAllVoting( java.lang.Iterable values) { if (votingBuilder_ == null) { ensureVotingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, voting_); onChanged(); } else { votingBuilder_.addAllMessages(values); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder clearVoting() { if (votingBuilder_ == null) { voting_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { votingBuilder_.clear(); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public Builder removeVoting(int index) { if (votingBuilder_ == null) { ensureVotingIsMutable(); voting_.remove(index); onChanged(); } else { votingBuilder_.remove(index); } return this; } /** * repeated .types.VoteInfo voting = 2; */ public types.Rpc.VoteInfo.Builder getVotingBuilder( int index) { return getVotingFieldBuilder().getBuilder(index); } /** * repeated .types.VoteInfo voting = 2; */ public types.Rpc.VoteInfoOrBuilder getVotingOrBuilder( int index) { if (votingBuilder_ == null) { return voting_.get(index); } else { return votingBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.VoteInfo voting = 2; */ public java.util.List getVotingOrBuilderList() { if (votingBuilder_ != null) { return votingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(voting_); } } /** * repeated .types.VoteInfo voting = 2; */ public types.Rpc.VoteInfo.Builder addVotingBuilder() { return getVotingFieldBuilder().addBuilder( types.Rpc.VoteInfo.getDefaultInstance()); } /** * repeated .types.VoteInfo voting = 2; */ public types.Rpc.VoteInfo.Builder addVotingBuilder( int index) { return getVotingFieldBuilder().addBuilder( index, types.Rpc.VoteInfo.getDefaultInstance()); } /** * repeated .types.VoteInfo voting = 2; */ public java.util.List getVotingBuilderList() { return getVotingFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.VoteInfo, types.Rpc.VoteInfo.Builder, types.Rpc.VoteInfoOrBuilder> getVotingFieldBuilder() { if (votingBuilder_ == null) { votingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.VoteInfo, types.Rpc.VoteInfo.Builder, types.Rpc.VoteInfoOrBuilder>( voting_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); voting_ = null; } return votingBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.AccountVoteInfo) } // @@protoc_insertion_point(class_scope:types.AccountVoteInfo) private static final types.Rpc.AccountVoteInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.AccountVoteInfo(); } public static types.Rpc.AccountVoteInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AccountVoteInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AccountVoteInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.AccountVoteInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.VoteInfo) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * repeated string candidates = 2; * @return A list containing the candidates. */ java.util.List getCandidatesList(); /** * repeated string candidates = 2; * @return The count of candidates. */ int getCandidatesCount(); /** * repeated string candidates = 2; * @param index The index of the element to return. * @return The candidates at the given index. */ java.lang.String getCandidates(int index); /** * repeated string candidates = 2; * @param index The index of the value to return. * @return The bytes of the candidates at the given index. */ com.google.protobuf.ByteString getCandidatesBytes(int index); /** * string amount = 3; * @return The amount. */ java.lang.String getAmount(); /** * string amount = 3; * @return The bytes for amount. */ com.google.protobuf.ByteString getAmountBytes(); } /** * Protobuf type {@code types.VoteInfo} */ public static final class VoteInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.VoteInfo) VoteInfoOrBuilder { private static final long serialVersionUID = 0L; // Use VoteInfo.newBuilder() to construct. private VoteInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VoteInfo() { id_ = ""; candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY; amount_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VoteInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { candidates_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } candidates_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); amount_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { candidates_ = candidates_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteInfo.class, types.Rpc.VoteInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CANDIDATES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList candidates_; /** * repeated string candidates = 2; * @return A list containing the candidates. */ public com.google.protobuf.ProtocolStringList getCandidatesList() { return candidates_; } /** * repeated string candidates = 2; * @return The count of candidates. */ public int getCandidatesCount() { return candidates_.size(); } /** * repeated string candidates = 2; * @param index The index of the element to return. * @return The candidates at the given index. */ public java.lang.String getCandidates(int index) { return candidates_.get(index); } /** * repeated string candidates = 2; * @param index The index of the value to return. * @return The bytes of the candidates at the given index. */ public com.google.protobuf.ByteString getCandidatesBytes(int index) { return candidates_.getByteString(index); } public static final int AMOUNT_FIELD_NUMBER = 3; private volatile java.lang.Object amount_; /** * string amount = 3; * @return The amount. */ @java.lang.Override public java.lang.String getAmount() { java.lang.Object ref = amount_; 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(); amount_ = s; return s; } } /** * string amount = 3; * @return The bytes for amount. */ @java.lang.Override public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } for (int i = 0; i < candidates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, candidates_.getRaw(i)); } if (!getAmountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, amount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } { int dataSize = 0; for (int i = 0; i < candidates_.size(); i++) { dataSize += computeStringSizeNoTag(candidates_.getRaw(i)); } size += dataSize; size += 1 * getCandidatesList().size(); } if (!getAmountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, amount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.VoteInfo)) { return super.equals(obj); } types.Rpc.VoteInfo other = (types.Rpc.VoteInfo) obj; if (!getId() .equals(other.getId())) return false; if (!getCandidatesList() .equals(other.getCandidatesList())) return false; if (!getAmount() .equals(other.getAmount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (getCandidatesCount() > 0) { hash = (37 * hash) + CANDIDATES_FIELD_NUMBER; hash = (53 * hash) + getCandidatesList().hashCode(); } hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.VoteInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteInfo 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 types.Rpc.VoteInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.VoteInfo 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 types.Rpc.VoteInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.VoteInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.VoteInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.VoteInfo) types.Rpc.VoteInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteInfo.class, types.Rpc.VoteInfo.Builder.class); } // Construct using types.Rpc.VoteInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); amount_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_VoteInfo_descriptor; } @java.lang.Override public types.Rpc.VoteInfo getDefaultInstanceForType() { return types.Rpc.VoteInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.VoteInfo build() { types.Rpc.VoteInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.VoteInfo buildPartial() { types.Rpc.VoteInfo result = new types.Rpc.VoteInfo(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { candidates_ = candidates_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.candidates_ = candidates_; result.amount_ = amount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.VoteInfo) { return mergeFrom((types.Rpc.VoteInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.VoteInfo other) { if (other == types.Rpc.VoteInfo.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.candidates_.isEmpty()) { if (candidates_.isEmpty()) { candidates_ = other.candidates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCandidatesIsMutable(); candidates_.addAll(other.candidates_); } onChanged(); } if (!other.getAmount().isEmpty()) { amount_ = other.amount_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.VoteInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.VoteInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCandidatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { candidates_ = new com.google.protobuf.LazyStringArrayList(candidates_); bitField0_ |= 0x00000001; } } /** * repeated string candidates = 2; * @return A list containing the candidates. */ public com.google.protobuf.ProtocolStringList getCandidatesList() { return candidates_.getUnmodifiableView(); } /** * repeated string candidates = 2; * @return The count of candidates. */ public int getCandidatesCount() { return candidates_.size(); } /** * repeated string candidates = 2; * @param index The index of the element to return. * @return The candidates at the given index. */ public java.lang.String getCandidates(int index) { return candidates_.get(index); } /** * repeated string candidates = 2; * @param index The index of the value to return. * @return The bytes of the candidates at the given index. */ public com.google.protobuf.ByteString getCandidatesBytes(int index) { return candidates_.getByteString(index); } /** * repeated string candidates = 2; * @param index The index to set the value at. * @param value The candidates to set. * @return This builder for chaining. */ public Builder setCandidates( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCandidatesIsMutable(); candidates_.set(index, value); onChanged(); return this; } /** * repeated string candidates = 2; * @param value The candidates to add. * @return This builder for chaining. */ public Builder addCandidates( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCandidatesIsMutable(); candidates_.add(value); onChanged(); return this; } /** * repeated string candidates = 2; * @param values The candidates to add. * @return This builder for chaining. */ public Builder addAllCandidates( java.lang.Iterable values) { ensureCandidatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, candidates_); onChanged(); return this; } /** * repeated string candidates = 2; * @return This builder for chaining. */ public Builder clearCandidates() { candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string candidates = 2; * @param value The bytes of the candidates to add. * @return This builder for chaining. */ public Builder addCandidatesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCandidatesIsMutable(); candidates_.add(value); onChanged(); return this; } private java.lang.Object amount_ = ""; /** * string amount = 3; * @return The amount. */ public java.lang.String getAmount() { java.lang.Object ref = amount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); amount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string amount = 3; * @return The bytes for amount. */ public com.google.protobuf.ByteString getAmountBytes() { java.lang.Object ref = amount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); amount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string amount = 3; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } amount_ = value; onChanged(); return this; } /** * string amount = 3; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = getDefaultInstance().getAmount(); onChanged(); return this; } /** * string amount = 3; * @param value The bytes for amount to set. * @return This builder for chaining. */ public Builder setAmountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); amount_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.VoteInfo) } // @@protoc_insertion_point(class_scope:types.VoteInfo) private static final types.Rpc.VoteInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.VoteInfo(); } public static types.Rpc.VoteInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VoteInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VoteInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.VoteInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.VoteList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.Vote votes = 1; */ java.util.List getVotesList(); /** * repeated .types.Vote votes = 1; */ types.Rpc.Vote getVotes(int index); /** * repeated .types.Vote votes = 1; */ int getVotesCount(); /** * repeated .types.Vote votes = 1; */ java.util.List getVotesOrBuilderList(); /** * repeated .types.Vote votes = 1; */ types.Rpc.VoteOrBuilder getVotesOrBuilder( int index); /** * string id = 2; * @return The id. */ java.lang.String getId(); /** * string id = 2; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@code types.VoteList} */ public static final class VoteList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.VoteList) VoteListOrBuilder { private static final long serialVersionUID = 0L; // Use VoteList.newBuilder() to construct. private VoteList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VoteList() { votes_ = java.util.Collections.emptyList(); id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VoteList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VoteList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } votes_.add( input.readMessage(types.Rpc.Vote.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteList.class, types.Rpc.VoteList.Builder.class); } public static final int VOTES_FIELD_NUMBER = 1; private java.util.List votes_; /** * repeated .types.Vote votes = 1; */ @java.lang.Override public java.util.List getVotesList() { return votes_; } /** * repeated .types.Vote votes = 1; */ @java.lang.Override public java.util.List getVotesOrBuilderList() { return votes_; } /** * repeated .types.Vote votes = 1; */ @java.lang.Override public int getVotesCount() { return votes_.size(); } /** * repeated .types.Vote votes = 1; */ @java.lang.Override public types.Rpc.Vote getVotes(int index) { return votes_.get(index); } /** * repeated .types.Vote votes = 1; */ @java.lang.Override public types.Rpc.VoteOrBuilder getVotesOrBuilder( int index) { return votes_.get(index); } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** * string id = 2; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 2; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < votes_.size(); i++) { output.writeMessage(1, votes_.get(i)); } if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < votes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, votes_.get(i)); } if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.VoteList)) { return super.equals(obj); } types.Rpc.VoteList other = (types.Rpc.VoteList) obj; if (!getVotesList() .equals(other.getVotesList())) return false; if (!getId() .equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVotesCount() > 0) { hash = (37 * hash) + VOTES_FIELD_NUMBER; hash = (53 * hash) + getVotesList().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.VoteList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.VoteList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.VoteList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteList 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 types.Rpc.VoteList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.VoteList 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 types.Rpc.VoteList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.VoteList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.VoteList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.VoteList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.VoteList) types.Rpc.VoteListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_VoteList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_VoteList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.VoteList.class, types.Rpc.VoteList.Builder.class); } // Construct using types.Rpc.VoteList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVotesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { votesBuilder_.clear(); } id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_VoteList_descriptor; } @java.lang.Override public types.Rpc.VoteList getDefaultInstanceForType() { return types.Rpc.VoteList.getDefaultInstance(); } @java.lang.Override public types.Rpc.VoteList build() { types.Rpc.VoteList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.VoteList buildPartial() { types.Rpc.VoteList result = new types.Rpc.VoteList(this); int from_bitField0_ = bitField0_; if (votesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { votes_ = java.util.Collections.unmodifiableList(votes_); bitField0_ = (bitField0_ & ~0x00000001); } result.votes_ = votes_; } else { result.votes_ = votesBuilder_.build(); } result.id_ = id_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.VoteList) { return mergeFrom((types.Rpc.VoteList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.VoteList other) { if (other == types.Rpc.VoteList.getDefaultInstance()) return this; if (votesBuilder_ == null) { if (!other.votes_.isEmpty()) { if (votes_.isEmpty()) { votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVotesIsMutable(); votes_.addAll(other.votes_); } onChanged(); } } else { if (!other.votes_.isEmpty()) { if (votesBuilder_.isEmpty()) { votesBuilder_.dispose(); votesBuilder_ = null; votes_ = other.votes_; bitField0_ = (bitField0_ & ~0x00000001); votesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVotesFieldBuilder() : null; } else { votesBuilder_.addAllMessages(other.votes_); } } } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.VoteList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.VoteList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List votes_ = java.util.Collections.emptyList(); private void ensureVotesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { votes_ = new java.util.ArrayList(votes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Vote, types.Rpc.Vote.Builder, types.Rpc.VoteOrBuilder> votesBuilder_; /** * repeated .types.Vote votes = 1; */ public java.util.List getVotesList() { if (votesBuilder_ == null) { return java.util.Collections.unmodifiableList(votes_); } else { return votesBuilder_.getMessageList(); } } /** * repeated .types.Vote votes = 1; */ public int getVotesCount() { if (votesBuilder_ == null) { return votes_.size(); } else { return votesBuilder_.getCount(); } } /** * repeated .types.Vote votes = 1; */ public types.Rpc.Vote getVotes(int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessage(index); } } /** * repeated .types.Vote votes = 1; */ public Builder setVotes( int index, types.Rpc.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.set(index, value); onChanged(); } else { votesBuilder_.setMessage(index, value); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder setVotes( int index, types.Rpc.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.set(index, builderForValue.build()); onChanged(); } else { votesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder addVotes(types.Rpc.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(value); onChanged(); } else { votesBuilder_.addMessage(value); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder addVotes( int index, types.Rpc.Vote value) { if (votesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVotesIsMutable(); votes_.add(index, value); onChanged(); } else { votesBuilder_.addMessage(index, value); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder addVotes( types.Rpc.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder addVotes( int index, types.Rpc.Vote.Builder builderForValue) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.add(index, builderForValue.build()); onChanged(); } else { votesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder addAllVotes( java.lang.Iterable values) { if (votesBuilder_ == null) { ensureVotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, votes_); onChanged(); } else { votesBuilder_.addAllMessages(values); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder clearVotes() { if (votesBuilder_ == null) { votes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { votesBuilder_.clear(); } return this; } /** * repeated .types.Vote votes = 1; */ public Builder removeVotes(int index) { if (votesBuilder_ == null) { ensureVotesIsMutable(); votes_.remove(index); onChanged(); } else { votesBuilder_.remove(index); } return this; } /** * repeated .types.Vote votes = 1; */ public types.Rpc.Vote.Builder getVotesBuilder( int index) { return getVotesFieldBuilder().getBuilder(index); } /** * repeated .types.Vote votes = 1; */ public types.Rpc.VoteOrBuilder getVotesOrBuilder( int index) { if (votesBuilder_ == null) { return votes_.get(index); } else { return votesBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.Vote votes = 1; */ public java.util.List getVotesOrBuilderList() { if (votesBuilder_ != null) { return votesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(votes_); } } /** * repeated .types.Vote votes = 1; */ public types.Rpc.Vote.Builder addVotesBuilder() { return getVotesFieldBuilder().addBuilder( types.Rpc.Vote.getDefaultInstance()); } /** * repeated .types.Vote votes = 1; */ public types.Rpc.Vote.Builder addVotesBuilder( int index) { return getVotesFieldBuilder().addBuilder( index, types.Rpc.Vote.getDefaultInstance()); } /** * repeated .types.Vote votes = 1; */ public java.util.List getVotesBuilderList() { return getVotesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Vote, types.Rpc.Vote.Builder, types.Rpc.VoteOrBuilder> getVotesFieldBuilder() { if (votesBuilder_ == null) { votesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Rpc.Vote, types.Rpc.Vote.Builder, types.Rpc.VoteOrBuilder>( votes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); votes_ = null; } return votesBuilder_; } private java.lang.Object id_ = ""; /** * string id = 2; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 2; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 2; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.VoteList) } // @@protoc_insertion_point(class_scope:types.VoteList) private static final types.Rpc.VoteList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.VoteList(); } public static types.Rpc.VoteList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VoteList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VoteList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.VoteList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeReqOrBuilder extends // @@protoc_insertion_point(interface_extends:types.NodeReq) com.google.protobuf.MessageOrBuilder { /** * bytes timeout = 1; * @return The timeout. */ com.google.protobuf.ByteString getTimeout(); /** * bytes component = 2; * @return The component. */ com.google.protobuf.ByteString getComponent(); } /** * Protobuf type {@code types.NodeReq} */ public static final class NodeReq extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.NodeReq) NodeReqOrBuilder { private static final long serialVersionUID = 0L; // Use NodeReq.newBuilder() to construct. private NodeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeReq() { timeout_ = com.google.protobuf.ByteString.EMPTY; component_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeReq(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { timeout_ = input.readBytes(); break; } case 18: { component_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_NodeReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_NodeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.NodeReq.class, types.Rpc.NodeReq.Builder.class); } public static final int TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString timeout_; /** * bytes timeout = 1; * @return The timeout. */ @java.lang.Override public com.google.protobuf.ByteString getTimeout() { return timeout_; } public static final int COMPONENT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString component_; /** * bytes component = 2; * @return The component. */ @java.lang.Override public com.google.protobuf.ByteString getComponent() { return component_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!timeout_.isEmpty()) { output.writeBytes(1, timeout_); } if (!component_.isEmpty()) { output.writeBytes(2, component_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!timeout_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, timeout_); } if (!component_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, component_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.NodeReq)) { return super.equals(obj); } types.Rpc.NodeReq other = (types.Rpc.NodeReq) obj; if (!getTimeout() .equals(other.getTimeout())) return false; if (!getComponent() .equals(other.getComponent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); hash = (37 * hash) + COMPONENT_FIELD_NUMBER; hash = (53 * hash) + getComponent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.NodeReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NodeReq parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NodeReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NodeReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NodeReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NodeReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NodeReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.NodeReq 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 types.Rpc.NodeReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.NodeReq 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 types.Rpc.NodeReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.NodeReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.NodeReq prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.NodeReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.NodeReq) types.Rpc.NodeReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_NodeReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_NodeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.NodeReq.class, types.Rpc.NodeReq.Builder.class); } // Construct using types.Rpc.NodeReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); timeout_ = com.google.protobuf.ByteString.EMPTY; component_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_NodeReq_descriptor; } @java.lang.Override public types.Rpc.NodeReq getDefaultInstanceForType() { return types.Rpc.NodeReq.getDefaultInstance(); } @java.lang.Override public types.Rpc.NodeReq build() { types.Rpc.NodeReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.NodeReq buildPartial() { types.Rpc.NodeReq result = new types.Rpc.NodeReq(this); result.timeout_ = timeout_; result.component_ = component_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.NodeReq) { return mergeFrom((types.Rpc.NodeReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.NodeReq other) { if (other == types.Rpc.NodeReq.getDefaultInstance()) return this; if (other.getTimeout() != com.google.protobuf.ByteString.EMPTY) { setTimeout(other.getTimeout()); } if (other.getComponent() != com.google.protobuf.ByteString.EMPTY) { setComponent(other.getComponent()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.NodeReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.NodeReq) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString timeout_ = com.google.protobuf.ByteString.EMPTY; /** * bytes timeout = 1; * @return The timeout. */ @java.lang.Override public com.google.protobuf.ByteString getTimeout() { return timeout_; } /** * bytes timeout = 1; * @param value The timeout to set. * @return This builder for chaining. */ public Builder setTimeout(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } timeout_ = value; onChanged(); return this; } /** * bytes timeout = 1; * @return This builder for chaining. */ public Builder clearTimeout() { timeout_ = getDefaultInstance().getTimeout(); onChanged(); return this; } private com.google.protobuf.ByteString component_ = com.google.protobuf.ByteString.EMPTY; /** * bytes component = 2; * @return The component. */ @java.lang.Override public com.google.protobuf.ByteString getComponent() { return component_; } /** * bytes component = 2; * @param value The component to set. * @return This builder for chaining. */ public Builder setComponent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } component_ = value; onChanged(); return this; } /** * bytes component = 2; * @return This builder for chaining. */ public Builder clearComponent() { component_ = getDefaultInstance().getComponent(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.NodeReq) } // @@protoc_insertion_point(class_scope:types.NodeReq) private static final types.Rpc.NodeReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.NodeReq(); } public static types.Rpc.NodeReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeReq(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.NodeReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NameOrBuilder extends // @@protoc_insertion_point(interface_extends:types.Name) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * uint64 blockNo = 2; * @return The blockNo. */ long getBlockNo(); } /** * Protobuf type {@code types.Name} */ public static final class Name extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.Name) NameOrBuilder { private static final long serialVersionUID = 0L; // Use Name.newBuilder() to construct. private Name(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Name() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Name(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Name( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { blockNo_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Name_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Name_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Name.class, types.Rpc.Name.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCKNO_FIELD_NUMBER = 2; private long blockNo_; /** * uint64 blockNo = 2; * @return The blockNo. */ @java.lang.Override public long getBlockNo() { return blockNo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (blockNo_ != 0L) { output.writeUInt64(2, blockNo_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (blockNo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, blockNo_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.Name)) { return super.equals(obj); } types.Rpc.Name other = (types.Rpc.Name) obj; if (!getName() .equals(other.getName())) return false; if (getBlockNo() != other.getBlockNo()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + BLOCKNO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNo()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.Name parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Name parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Name parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Name parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Name parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.Name parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.Name parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Name 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 types.Rpc.Name parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.Name 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 types.Rpc.Name parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.Name parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.Name prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.Name} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.Name) types.Rpc.NameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_Name_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_Name_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.Name.class, types.Rpc.Name.Builder.class); } // Construct using types.Rpc.Name.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; blockNo_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_Name_descriptor; } @java.lang.Override public types.Rpc.Name getDefaultInstanceForType() { return types.Rpc.Name.getDefaultInstance(); } @java.lang.Override public types.Rpc.Name build() { types.Rpc.Name result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.Name buildPartial() { types.Rpc.Name result = new types.Rpc.Name(this); result.name_ = name_; result.blockNo_ = blockNo_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.Name) { return mergeFrom((types.Rpc.Name)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.Name other) { if (other == types.Rpc.Name.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getBlockNo() != 0L) { setBlockNo(other.getBlockNo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.Name parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.Name) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private long blockNo_ ; /** * uint64 blockNo = 2; * @return The blockNo. */ @java.lang.Override public long getBlockNo() { return blockNo_; } /** * uint64 blockNo = 2; * @param value The blockNo to set. * @return This builder for chaining. */ public Builder setBlockNo(long value) { blockNo_ = value; onChanged(); return this; } /** * uint64 blockNo = 2; * @return This builder for chaining. */ public Builder clearBlockNo() { blockNo_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.Name) } // @@protoc_insertion_point(class_scope:types.Name) private static final types.Rpc.Name DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.Name(); } public static types.Rpc.Name getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Name parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Name(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.Name getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NameInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.NameInfo) com.google.protobuf.MessageOrBuilder { /** * .types.Name name = 1; * @return Whether the name field is set. */ boolean hasName(); /** * .types.Name name = 1; * @return The name. */ types.Rpc.Name getName(); /** * .types.Name name = 1; */ types.Rpc.NameOrBuilder getNameOrBuilder(); /** * bytes owner = 2; * @return The owner. */ com.google.protobuf.ByteString getOwner(); /** * bytes destination = 3; * @return The destination. */ com.google.protobuf.ByteString getDestination(); } /** * Protobuf type {@code types.NameInfo} */ public static final class NameInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.NameInfo) NameInfoOrBuilder { private static final long serialVersionUID = 0L; // Use NameInfo.newBuilder() to construct. private NameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NameInfo() { owner_ = com.google.protobuf.ByteString.EMPTY; destination_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NameInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NameInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { types.Rpc.Name.Builder subBuilder = null; if (name_ != null) { subBuilder = name_.toBuilder(); } name_ = input.readMessage(types.Rpc.Name.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(name_); name_ = subBuilder.buildPartial(); } break; } case 18: { owner_ = input.readBytes(); break; } case 26: { destination_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_NameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_NameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.NameInfo.class, types.Rpc.NameInfo.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private types.Rpc.Name name_; /** * .types.Name name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return name_ != null; } /** * .types.Name name = 1; * @return The name. */ @java.lang.Override public types.Rpc.Name getName() { return name_ == null ? types.Rpc.Name.getDefaultInstance() : name_; } /** * .types.Name name = 1; */ @java.lang.Override public types.Rpc.NameOrBuilder getNameOrBuilder() { return getName(); } public static final int OWNER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString owner_; /** * bytes owner = 2; * @return The owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwner() { return owner_; } public static final int DESTINATION_FIELD_NUMBER = 3; private com.google.protobuf.ByteString destination_; /** * bytes destination = 3; * @return The destination. */ @java.lang.Override public com.google.protobuf.ByteString getDestination() { return destination_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (name_ != null) { output.writeMessage(1, getName()); } if (!owner_.isEmpty()) { output.writeBytes(2, owner_); } if (!destination_.isEmpty()) { output.writeBytes(3, destination_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (name_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getName()); } if (!owner_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, owner_); } if (!destination_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.NameInfo)) { return super.equals(obj); } types.Rpc.NameInfo other = (types.Rpc.NameInfo) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (!getOwner() .equals(other.getOwner())) return false; if (!getDestination() .equals(other.getDestination())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); hash = (37 * hash) + DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getDestination().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.NameInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NameInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.NameInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.NameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.NameInfo 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 types.Rpc.NameInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.NameInfo 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 types.Rpc.NameInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.NameInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.NameInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.NameInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.NameInfo) types.Rpc.NameInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_NameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_NameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.NameInfo.class, types.Rpc.NameInfo.Builder.class); } // Construct using types.Rpc.NameInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (nameBuilder_ == null) { name_ = null; } else { name_ = null; nameBuilder_ = null; } owner_ = com.google.protobuf.ByteString.EMPTY; destination_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_NameInfo_descriptor; } @java.lang.Override public types.Rpc.NameInfo getDefaultInstanceForType() { return types.Rpc.NameInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.NameInfo build() { types.Rpc.NameInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.NameInfo buildPartial() { types.Rpc.NameInfo result = new types.Rpc.NameInfo(this); if (nameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } result.owner_ = owner_; result.destination_ = destination_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.NameInfo) { return mergeFrom((types.Rpc.NameInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.NameInfo other) { if (other == types.Rpc.NameInfo.getDefaultInstance()) return this; if (other.hasName()) { mergeName(other.getName()); } if (other.getOwner() != com.google.protobuf.ByteString.EMPTY) { setOwner(other.getOwner()); } if (other.getDestination() != com.google.protobuf.ByteString.EMPTY) { setDestination(other.getDestination()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.NameInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.NameInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private types.Rpc.Name name_; private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Name, types.Rpc.Name.Builder, types.Rpc.NameOrBuilder> nameBuilder_; /** * .types.Name name = 1; * @return Whether the name field is set. */ public boolean hasName() { return nameBuilder_ != null || name_ != null; } /** * .types.Name name = 1; * @return The name. */ public types.Rpc.Name getName() { if (nameBuilder_ == null) { return name_ == null ? types.Rpc.Name.getDefaultInstance() : name_; } else { return nameBuilder_.getMessage(); } } /** * .types.Name name = 1; */ public Builder setName(types.Rpc.Name value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameBuilder_.setMessage(value); } return this; } /** * .types.Name name = 1; */ public Builder setName( types.Rpc.Name.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameBuilder_.setMessage(builderForValue.build()); } return this; } /** * .types.Name name = 1; */ public Builder mergeName(types.Rpc.Name value) { if (nameBuilder_ == null) { if (name_ != null) { name_ = types.Rpc.Name.newBuilder(name_).mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { nameBuilder_.mergeFrom(value); } return this; } /** * .types.Name name = 1; */ public Builder clearName() { if (nameBuilder_ == null) { name_ = null; onChanged(); } else { name_ = null; nameBuilder_ = null; } return this; } /** * .types.Name name = 1; */ public types.Rpc.Name.Builder getNameBuilder() { onChanged(); return getNameFieldBuilder().getBuilder(); } /** * .types.Name name = 1; */ public types.Rpc.NameOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { return name_ == null ? types.Rpc.Name.getDefaultInstance() : name_; } } /** * .types.Name name = 1; */ private com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Name, types.Rpc.Name.Builder, types.Rpc.NameOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< types.Rpc.Name, types.Rpc.Name.Builder, types.Rpc.NameOrBuilder>( getName(), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } private com.google.protobuf.ByteString owner_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner = 2; * @return The owner. */ @java.lang.Override public com.google.protobuf.ByteString getOwner() { return owner_; } /** * bytes owner = 2; * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); return this; } /** * bytes owner = 2; * @return This builder for chaining. */ public Builder clearOwner() { owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } private com.google.protobuf.ByteString destination_ = com.google.protobuf.ByteString.EMPTY; /** * bytes destination = 3; * @return The destination. */ @java.lang.Override public com.google.protobuf.ByteString getDestination() { return destination_; } /** * bytes destination = 3; * @param value The destination to set. * @return This builder for chaining. */ public Builder setDestination(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } destination_ = value; onChanged(); return this; } /** * bytes destination = 3; * @return This builder for chaining. */ public Builder clearDestination() { destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.NameInfo) } // @@protoc_insertion_point(class_scope:types.NameInfo) private static final types.Rpc.NameInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.NameInfo(); } public static types.Rpc.NameInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NameInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NameInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.NameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeersParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.PeersParams) com.google.protobuf.MessageOrBuilder { /** * bool noHidden = 1; * @return The noHidden. */ boolean getNoHidden(); /** * bool showSelf = 2; * @return The showSelf. */ boolean getShowSelf(); } /** * Protobuf type {@code types.PeersParams} */ public static final class PeersParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.PeersParams) PeersParamsOrBuilder { private static final long serialVersionUID = 0L; // Use PeersParams.newBuilder() to construct. private PeersParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeersParams() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeersParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PeersParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { noHidden_ = input.readBool(); break; } case 16: { showSelf_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PeersParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PeersParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PeersParams.class, types.Rpc.PeersParams.Builder.class); } public static final int NOHIDDEN_FIELD_NUMBER = 1; private boolean noHidden_; /** * bool noHidden = 1; * @return The noHidden. */ @java.lang.Override public boolean getNoHidden() { return noHidden_; } public static final int SHOWSELF_FIELD_NUMBER = 2; private boolean showSelf_; /** * bool showSelf = 2; * @return The showSelf. */ @java.lang.Override public boolean getShowSelf() { return showSelf_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (noHidden_ != false) { output.writeBool(1, noHidden_); } if (showSelf_ != false) { output.writeBool(2, showSelf_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (noHidden_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, noHidden_); } if (showSelf_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, showSelf_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.PeersParams)) { return super.equals(obj); } types.Rpc.PeersParams other = (types.Rpc.PeersParams) obj; if (getNoHidden() != other.getNoHidden()) return false; if (getShowSelf() != other.getShowSelf()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NOHIDDEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoHidden()); hash = (37 * hash) + SHOWSELF_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShowSelf()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.PeersParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeersParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeersParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeersParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeersParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.PeersParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.PeersParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PeersParams 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 types.Rpc.PeersParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.PeersParams 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 types.Rpc.PeersParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.PeersParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.PeersParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.PeersParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.PeersParams) types.Rpc.PeersParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_PeersParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_PeersParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.PeersParams.class, types.Rpc.PeersParams.Builder.class); } // Construct using types.Rpc.PeersParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); noHidden_ = false; showSelf_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_PeersParams_descriptor; } @java.lang.Override public types.Rpc.PeersParams getDefaultInstanceForType() { return types.Rpc.PeersParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.PeersParams build() { types.Rpc.PeersParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.PeersParams buildPartial() { types.Rpc.PeersParams result = new types.Rpc.PeersParams(this); result.noHidden_ = noHidden_; result.showSelf_ = showSelf_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.PeersParams) { return mergeFrom((types.Rpc.PeersParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.PeersParams other) { if (other == types.Rpc.PeersParams.getDefaultInstance()) return this; if (other.getNoHidden() != false) { setNoHidden(other.getNoHidden()); } if (other.getShowSelf() != false) { setShowSelf(other.getShowSelf()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.PeersParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.PeersParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean noHidden_ ; /** * bool noHidden = 1; * @return The noHidden. */ @java.lang.Override public boolean getNoHidden() { return noHidden_; } /** * bool noHidden = 1; * @param value The noHidden to set. * @return This builder for chaining. */ public Builder setNoHidden(boolean value) { noHidden_ = value; onChanged(); return this; } /** * bool noHidden = 1; * @return This builder for chaining. */ public Builder clearNoHidden() { noHidden_ = false; onChanged(); return this; } private boolean showSelf_ ; /** * bool showSelf = 2; * @return The showSelf. */ @java.lang.Override public boolean getShowSelf() { return showSelf_; } /** * bool showSelf = 2; * @param value The showSelf to set. * @return This builder for chaining. */ public Builder setShowSelf(boolean value) { showSelf_ = value; onChanged(); return this; } /** * bool showSelf = 2; * @return This builder for chaining. */ public Builder clearShowSelf() { showSelf_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.PeersParams) } // @@protoc_insertion_point(class_scope:types.PeersParams) private static final types.Rpc.PeersParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.PeersParams(); } public static types.Rpc.PeersParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PeersParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeersParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.PeersParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:types.KeyParams) com.google.protobuf.MessageOrBuilder { /** * repeated string key = 1; * @return A list containing the key. */ java.util.List getKeyList(); /** * repeated string key = 1; * @return The count of key. */ int getKeyCount(); /** * repeated string key = 1; * @param index The index of the element to return. * @return The key at the given index. */ java.lang.String getKey(int index); /** * repeated string key = 1; * @param index The index of the value to return. * @return The bytes of the key at the given index. */ com.google.protobuf.ByteString getKeyBytes(int index); } /** * Protobuf type {@code types.KeyParams} */ public static final class KeyParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.KeyParams) KeyParamsOrBuilder { private static final long serialVersionUID = 0L; // Use KeyParams.newBuilder() to construct. private KeyParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyParams() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeyParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { key_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } key_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { key_ = key_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_KeyParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_KeyParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.KeyParams.class, types.Rpc.KeyParams.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; /** * repeated string key = 1; * @return A list containing the key. */ public com.google.protobuf.ProtocolStringList getKeyList() { return key_; } /** * repeated string key = 1; * @return The count of key. */ public int getKeyCount() { return key_.size(); } /** * repeated string key = 1; * @param index The index of the element to return. * @return The key at the given index. */ public java.lang.String getKey(int index) { return key_.get(index); } /** * repeated string key = 1; * @param index The index of the value to return. * @return The bytes of the key at the given index. */ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < key_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override 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 += computeStringSizeNoTag(key_.getRaw(i)); } size += dataSize; size += 1 * getKeyList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.KeyParams)) { return super.equals(obj); } types.Rpc.KeyParams other = (types.Rpc.KeyParams) obj; if (!getKeyList() .equals(other.getKeyList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.KeyParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.KeyParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.KeyParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.KeyParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.KeyParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.KeyParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.KeyParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.KeyParams 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 types.Rpc.KeyParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.KeyParams 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 types.Rpc.KeyParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.KeyParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.KeyParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.KeyParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.KeyParams) types.Rpc.KeyParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_KeyParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_KeyParams_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.KeyParams.class, types.Rpc.KeyParams.Builder.class); } // Construct using types.Rpc.KeyParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_KeyParams_descriptor; } @java.lang.Override public types.Rpc.KeyParams getDefaultInstanceForType() { return types.Rpc.KeyParams.getDefaultInstance(); } @java.lang.Override public types.Rpc.KeyParams build() { types.Rpc.KeyParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.KeyParams buildPartial() { types.Rpc.KeyParams result = new types.Rpc.KeyParams(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { key_ = key_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.KeyParams) { return mergeFrom((types.Rpc.KeyParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.KeyParams other) { if (other == types.Rpc.KeyParams.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.KeyParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.KeyParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } /** * repeated string key = 1; * @return A list containing the key. */ public com.google.protobuf.ProtocolStringList getKeyList() { return key_.getUnmodifiableView(); } /** * repeated string key = 1; * @return The count of key. */ public int getKeyCount() { return key_.size(); } /** * repeated string key = 1; * @param index The index of the element to return. * @return The key at the given index. */ public java.lang.String getKey(int index) { return key_.get(index); } /** * repeated string key = 1; * @param index The index of the value to return. * @return The bytes of the key at the given index. */ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } /** * repeated string key = 1; * @param index The index to set the value at. * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * repeated string key = 1; * @param value The key to add. * @return This builder for chaining. */ public Builder addKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * repeated string key = 1; * @param values The key to add. * @return This builder for chaining. */ public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); return this; } /** * repeated string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string key = 1; * @param value The bytes of the key to add. * @return This builder for chaining. */ public Builder addKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.KeyParams) } // @@protoc_insertion_point(class_scope:types.KeyParams) private static final types.Rpc.KeyParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.KeyParams(); } public static types.Rpc.KeyParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeyParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.KeyParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ServerInfo) com.google.protobuf.MessageOrBuilder { /** * map<string, string> status = 1; */ int getStatusCount(); /** * map<string, string> status = 1; */ boolean containsStatus( java.lang.String key); /** * Use {@link #getStatusMap()} instead. */ @java.lang.Deprecated java.util.Map getStatus(); /** * map<string, string> status = 1; */ java.util.Map getStatusMap(); /** * map<string, string> status = 1; */ java.lang.String getStatusOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> status = 1; */ java.lang.String getStatusOrThrow( java.lang.String key); /** * map<string, .types.ConfigItem> config = 2; */ int getConfigCount(); /** * map<string, .types.ConfigItem> config = 2; */ boolean containsConfig( java.lang.String key); /** * Use {@link #getConfigMap()} instead. */ @java.lang.Deprecated java.util.Map getConfig(); /** * map<string, .types.ConfigItem> config = 2; */ java.util.Map getConfigMap(); /** * map<string, .types.ConfigItem> config = 2; */ types.Rpc.ConfigItem getConfigOrDefault( java.lang.String key, types.Rpc.ConfigItem defaultValue); /** * map<string, .types.ConfigItem> config = 2; */ types.Rpc.ConfigItem getConfigOrThrow( java.lang.String key); } /** * Protobuf type {@code types.ServerInfo} */ public static final class ServerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ServerInfo) ServerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ServerInfo.newBuilder() to construct. private ServerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServerInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServerInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { status_ = com.google.protobuf.MapField.newMapField( StatusDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry status__ = input.readMessage( StatusDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); status_.getMutableMap().put( status__.getKey(), status__.getValue()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { config_ = com.google.protobuf.MapField.newMapField( ConfigDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry config__ = input.readMessage( ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); config_.getMutableMap().put( config__.getKey(), config__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ServerInfo_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetStatus(); case 2: return internalGetConfig(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ServerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ServerInfo.class, types.Rpc.ServerInfo.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private static final class StatusDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( types.Rpc.internal_static_types_ServerInfo_StatusEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> status_; private com.google.protobuf.MapField internalGetStatus() { if (status_ == null) { return com.google.protobuf.MapField.emptyMapField( StatusDefaultEntryHolder.defaultEntry); } return status_; } public int getStatusCount() { return internalGetStatus().getMap().size(); } /** * map<string, string> status = 1; */ @java.lang.Override public boolean containsStatus( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetStatus().getMap().containsKey(key); } /** * Use {@link #getStatusMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getStatus() { return getStatusMap(); } /** * map<string, string> status = 1; */ @java.lang.Override public java.util.Map getStatusMap() { return internalGetStatus().getMap(); } /** * map<string, string> status = 1; */ @java.lang.Override public java.lang.String getStatusOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStatus().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> status = 1; */ @java.lang.Override public java.lang.String getStatusOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStatus().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONFIG_FIELD_NUMBER = 2; private static final class ConfigDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, types.Rpc.ConfigItem> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( types.Rpc.internal_static_types_ServerInfo_ConfigEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, types.Rpc.ConfigItem.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, types.Rpc.ConfigItem> config_; private com.google.protobuf.MapField internalGetConfig() { if (config_ == null) { return com.google.protobuf.MapField.emptyMapField( ConfigDefaultEntryHolder.defaultEntry); } return config_; } public int getConfigCount() { return internalGetConfig().getMap().size(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public boolean containsConfig( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetConfig().getMap().containsKey(key); } /** * Use {@link #getConfigMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConfig() { return getConfigMap(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public java.util.Map getConfigMap() { return internalGetConfig().getMap(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public types.Rpc.ConfigItem getConfigOrDefault( java.lang.String key, types.Rpc.ConfigItem defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConfig().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public types.Rpc.ConfigItem getConfigOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConfig().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetStatus(), StatusDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetConfig(), ConfigDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetStatus().getMap().entrySet()) { com.google.protobuf.MapEntry status__ = StatusDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, status__); } for (java.util.Map.Entry entry : internalGetConfig().getMap().entrySet()) { com.google.protobuf.MapEntry config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, config__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ServerInfo)) { return super.equals(obj); } types.Rpc.ServerInfo other = (types.Rpc.ServerInfo) obj; if (!internalGetStatus().equals( other.internalGetStatus())) return false; if (!internalGetConfig().equals( other.internalGetConfig())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetStatus().getMap().isEmpty()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + internalGetStatus().hashCode(); } if (!internalGetConfig().getMap().isEmpty()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + internalGetConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ServerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ServerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ServerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ServerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ServerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ServerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ServerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ServerInfo 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 types.Rpc.ServerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ServerInfo 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 types.Rpc.ServerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ServerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ServerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.ServerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ServerInfo) types.Rpc.ServerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ServerInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetStatus(); case 2: return internalGetConfig(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableStatus(); case 2: return internalGetMutableConfig(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ServerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ServerInfo.class, types.Rpc.ServerInfo.Builder.class); } // Construct using types.Rpc.ServerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableStatus().clear(); internalGetMutableConfig().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ServerInfo_descriptor; } @java.lang.Override public types.Rpc.ServerInfo getDefaultInstanceForType() { return types.Rpc.ServerInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.ServerInfo build() { types.Rpc.ServerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ServerInfo buildPartial() { types.Rpc.ServerInfo result = new types.Rpc.ServerInfo(this); int from_bitField0_ = bitField0_; result.status_ = internalGetStatus(); result.status_.makeImmutable(); result.config_ = internalGetConfig(); result.config_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ServerInfo) { return mergeFrom((types.Rpc.ServerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ServerInfo other) { if (other == types.Rpc.ServerInfo.getDefaultInstance()) return this; internalGetMutableStatus().mergeFrom( other.internalGetStatus()); internalGetMutableConfig().mergeFrom( other.internalGetConfig()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ServerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ServerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> status_; private com.google.protobuf.MapField internalGetStatus() { if (status_ == null) { return com.google.protobuf.MapField.emptyMapField( StatusDefaultEntryHolder.defaultEntry); } return status_; } private com.google.protobuf.MapField internalGetMutableStatus() { onChanged();; if (status_ == null) { status_ = com.google.protobuf.MapField.newMapField( StatusDefaultEntryHolder.defaultEntry); } if (!status_.isMutable()) { status_ = status_.copy(); } return status_; } public int getStatusCount() { return internalGetStatus().getMap().size(); } /** * map<string, string> status = 1; */ @java.lang.Override public boolean containsStatus( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetStatus().getMap().containsKey(key); } /** * Use {@link #getStatusMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getStatus() { return getStatusMap(); } /** * map<string, string> status = 1; */ @java.lang.Override public java.util.Map getStatusMap() { return internalGetStatus().getMap(); } /** * map<string, string> status = 1; */ @java.lang.Override public java.lang.String getStatusOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStatus().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> status = 1; */ @java.lang.Override public java.lang.String getStatusOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStatus().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearStatus() { internalGetMutableStatus().getMutableMap() .clear(); return this; } /** * map<string, string> status = 1; */ public Builder removeStatus( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableStatus().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableStatus() { return internalGetMutableStatus().getMutableMap(); } /** * map<string, string> status = 1; */ public Builder putStatus( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableStatus().getMutableMap() .put(key, value); return this; } /** * map<string, string> status = 1; */ public Builder putAllStatus( java.util.Map values) { internalGetMutableStatus().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, types.Rpc.ConfigItem> config_; private com.google.protobuf.MapField internalGetConfig() { if (config_ == null) { return com.google.protobuf.MapField.emptyMapField( ConfigDefaultEntryHolder.defaultEntry); } return config_; } private com.google.protobuf.MapField internalGetMutableConfig() { onChanged();; if (config_ == null) { config_ = com.google.protobuf.MapField.newMapField( ConfigDefaultEntryHolder.defaultEntry); } if (!config_.isMutable()) { config_ = config_.copy(); } return config_; } public int getConfigCount() { return internalGetConfig().getMap().size(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public boolean containsConfig( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetConfig().getMap().containsKey(key); } /** * Use {@link #getConfigMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConfig() { return getConfigMap(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public java.util.Map getConfigMap() { return internalGetConfig().getMap(); } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public types.Rpc.ConfigItem getConfigOrDefault( java.lang.String key, types.Rpc.ConfigItem defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConfig().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .types.ConfigItem> config = 2; */ @java.lang.Override public types.Rpc.ConfigItem getConfigOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConfig().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearConfig() { internalGetMutableConfig().getMutableMap() .clear(); return this; } /** * map<string, .types.ConfigItem> config = 2; */ public Builder removeConfig( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableConfig().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableConfig() { return internalGetMutableConfig().getMutableMap(); } /** * map<string, .types.ConfigItem> config = 2; */ public Builder putConfig( java.lang.String key, types.Rpc.ConfigItem value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableConfig().getMutableMap() .put(key, value); return this; } /** * map<string, .types.ConfigItem> config = 2; */ public Builder putAllConfig( java.util.Map values) { internalGetMutableConfig().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ServerInfo) } // @@protoc_insertion_point(class_scope:types.ServerInfo) private static final types.Rpc.ServerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ServerInfo(); } public static types.Rpc.ServerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ServerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigItemOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ConfigItem) com.google.protobuf.MessageOrBuilder { /** * map<string, string> props = 2; */ int getPropsCount(); /** * map<string, string> props = 2; */ boolean containsProps( java.lang.String key); /** * Use {@link #getPropsMap()} instead. */ @java.lang.Deprecated java.util.Map getProps(); /** * map<string, string> props = 2; */ java.util.Map getPropsMap(); /** * map<string, string> props = 2; */ java.lang.String getPropsOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> props = 2; */ java.lang.String getPropsOrThrow( java.lang.String key); } /** * Protobuf type {@code types.ConfigItem} */ public static final class ConfigItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ConfigItem) ConfigItemOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigItem.newBuilder() to construct. private ConfigItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { props_ = com.google.protobuf.MapField.newMapField( PropsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry props__ = input.readMessage( PropsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); props_.getMutableMap().put( props__.getKey(), props__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ConfigItem_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetProps(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ConfigItem_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ConfigItem.class, types.Rpc.ConfigItem.Builder.class); } public static final int PROPS_FIELD_NUMBER = 2; private static final class PropsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( types.Rpc.internal_static_types_ConfigItem_PropsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> props_; private com.google.protobuf.MapField internalGetProps() { if (props_ == null) { return com.google.protobuf.MapField.emptyMapField( PropsDefaultEntryHolder.defaultEntry); } return props_; } public int getPropsCount() { return internalGetProps().getMap().size(); } /** * map<string, string> props = 2; */ @java.lang.Override public boolean containsProps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetProps().getMap().containsKey(key); } /** * Use {@link #getPropsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProps() { return getPropsMap(); } /** * map<string, string> props = 2; */ @java.lang.Override public java.util.Map getPropsMap() { return internalGetProps().getMap(); } /** * map<string, string> props = 2; */ @java.lang.Override public java.lang.String getPropsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetProps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> props = 2; */ @java.lang.Override public java.lang.String getPropsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetProps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetProps(), PropsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetProps().getMap().entrySet()) { com.google.protobuf.MapEntry props__ = PropsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, props__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ConfigItem)) { return super.equals(obj); } types.Rpc.ConfigItem other = (types.Rpc.ConfigItem) obj; if (!internalGetProps().equals( other.internalGetProps())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetProps().getMap().isEmpty()) { hash = (37 * hash) + PROPS_FIELD_NUMBER; hash = (53 * hash) + internalGetProps().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ConfigItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConfigItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConfigItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConfigItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConfigItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConfigItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConfigItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ConfigItem 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 types.Rpc.ConfigItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ConfigItem 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 types.Rpc.ConfigItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ConfigItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ConfigItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.ConfigItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ConfigItem) types.Rpc.ConfigItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ConfigItem_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetProps(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableProps(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ConfigItem_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ConfigItem.class, types.Rpc.ConfigItem.Builder.class); } // Construct using types.Rpc.ConfigItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableProps().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ConfigItem_descriptor; } @java.lang.Override public types.Rpc.ConfigItem getDefaultInstanceForType() { return types.Rpc.ConfigItem.getDefaultInstance(); } @java.lang.Override public types.Rpc.ConfigItem build() { types.Rpc.ConfigItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ConfigItem buildPartial() { types.Rpc.ConfigItem result = new types.Rpc.ConfigItem(this); int from_bitField0_ = bitField0_; result.props_ = internalGetProps(); result.props_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ConfigItem) { return mergeFrom((types.Rpc.ConfigItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ConfigItem other) { if (other == types.Rpc.ConfigItem.getDefaultInstance()) return this; internalGetMutableProps().mergeFrom( other.internalGetProps()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ConfigItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ConfigItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> props_; private com.google.protobuf.MapField internalGetProps() { if (props_ == null) { return com.google.protobuf.MapField.emptyMapField( PropsDefaultEntryHolder.defaultEntry); } return props_; } private com.google.protobuf.MapField internalGetMutableProps() { onChanged();; if (props_ == null) { props_ = com.google.protobuf.MapField.newMapField( PropsDefaultEntryHolder.defaultEntry); } if (!props_.isMutable()) { props_ = props_.copy(); } return props_; } public int getPropsCount() { return internalGetProps().getMap().size(); } /** * map<string, string> props = 2; */ @java.lang.Override public boolean containsProps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetProps().getMap().containsKey(key); } /** * Use {@link #getPropsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProps() { return getPropsMap(); } /** * map<string, string> props = 2; */ @java.lang.Override public java.util.Map getPropsMap() { return internalGetProps().getMap(); } /** * map<string, string> props = 2; */ @java.lang.Override public java.lang.String getPropsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetProps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> props = 2; */ @java.lang.Override public java.lang.String getPropsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetProps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearProps() { internalGetMutableProps().getMutableMap() .clear(); return this; } /** * map<string, string> props = 2; */ public Builder removeProps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableProps().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableProps() { return internalGetMutableProps().getMutableMap(); } /** * map<string, string> props = 2; */ public Builder putProps( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableProps().getMutableMap() .put(key, value); return this; } /** * map<string, string> props = 2; */ public Builder putAllProps( java.util.Map values) { internalGetMutableProps().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ConfigItem) } // @@protoc_insertion_point(class_scope:types.ConfigItem) private static final types.Rpc.ConfigItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ConfigItem(); } public static types.Rpc.ConfigItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigItem(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ConfigItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventListOrBuilder extends // @@protoc_insertion_point(interface_extends:types.EventList) com.google.protobuf.MessageOrBuilder { /** * repeated .types.Event events = 1; */ java.util.List getEventsList(); /** * repeated .types.Event events = 1; */ types.Blockchain.Event getEvents(int index); /** * repeated .types.Event events = 1; */ int getEventsCount(); /** * repeated .types.Event events = 1; */ java.util.List getEventsOrBuilderList(); /** * repeated .types.Event events = 1; */ types.Blockchain.EventOrBuilder getEventsOrBuilder( int index); } /** * Protobuf type {@code types.EventList} */ public static final class EventList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.EventList) EventListOrBuilder { private static final long serialVersionUID = 0L; // Use EventList.newBuilder() to construct. private EventList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventList() { events_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EventList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } events_.add( input.readMessage(types.Blockchain.Event.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EventList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EventList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EventList.class, types.Rpc.EventList.Builder.class); } public static final int EVENTS_FIELD_NUMBER = 1; private java.util.List events_; /** * repeated .types.Event events = 1; */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** * repeated .types.Event events = 1; */ @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .types.Event events = 1; */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** * repeated .types.Event events = 1; */ @java.lang.Override public types.Blockchain.Event getEvents(int index) { return events_.get(index); } /** * repeated .types.Event events = 1; */ @java.lang.Override public types.Blockchain.EventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.EventList)) { return super.equals(obj); } types.Rpc.EventList other = (types.Rpc.EventList) obj; if (!getEventsList() .equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.EventList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EventList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EventList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EventList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EventList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EventList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EventList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EventList 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 types.Rpc.EventList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.EventList 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 types.Rpc.EventList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EventList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.EventList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.EventList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.EventList) types.Rpc.EventListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EventList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EventList_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EventList.class, types.Rpc.EventList.Builder.class); } // Construct using types.Rpc.EventList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_EventList_descriptor; } @java.lang.Override public types.Rpc.EventList getDefaultInstanceForType() { return types.Rpc.EventList.getDefaultInstance(); } @java.lang.Override public types.Rpc.EventList build() { types.Rpc.EventList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.EventList buildPartial() { types.Rpc.EventList result = new types.Rpc.EventList(this); int from_bitField0_ = bitField0_; if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.EventList) { return mergeFrom((types.Rpc.EventList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.EventList other) { if (other == types.Rpc.EventList.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.EventList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.EventList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Event, types.Blockchain.Event.Builder, types.Blockchain.EventOrBuilder> eventsBuilder_; /** * repeated .types.Event events = 1; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .types.Event events = 1; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .types.Event events = 1; */ public types.Blockchain.Event getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .types.Event events = 1; */ public Builder setEvents( int index, types.Blockchain.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .types.Event events = 1; */ public Builder setEvents( int index, types.Blockchain.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Event events = 1; */ public Builder addEvents(types.Blockchain.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .types.Event events = 1; */ public Builder addEvents( int index, types.Blockchain.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .types.Event events = 1; */ public Builder addEvents( types.Blockchain.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .types.Event events = 1; */ public Builder addEvents( int index, types.Blockchain.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .types.Event events = 1; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .types.Event events = 1; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .types.Event events = 1; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .types.Event events = 1; */ public types.Blockchain.Event.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .types.Event events = 1; */ public types.Blockchain.EventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .types.Event events = 1; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .types.Event events = 1; */ public types.Blockchain.Event.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( types.Blockchain.Event.getDefaultInstance()); } /** * repeated .types.Event events = 1; */ public types.Blockchain.Event.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, types.Blockchain.Event.getDefaultInstance()); } /** * repeated .types.Event events = 1; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Event, types.Blockchain.Event.Builder, types.Blockchain.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< types.Blockchain.Event, types.Blockchain.Event.Builder, types.Blockchain.EventOrBuilder>( events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.EventList) } // @@protoc_insertion_point(class_scope:types.EventList) private static final types.Rpc.EventList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.EventList(); } public static types.Rpc.EventList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.EventList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsensusInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:types.ConsensusInfo) com.google.protobuf.MessageOrBuilder { /** * string type = 1; * @return The type. */ java.lang.String getType(); /** * string type = 1; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * string info = 2; * @return The info. */ java.lang.String getInfo(); /** * string info = 2; * @return The bytes for info. */ com.google.protobuf.ByteString getInfoBytes(); /** * repeated string bps = 3; * @return A list containing the bps. */ java.util.List getBpsList(); /** * repeated string bps = 3; * @return The count of bps. */ int getBpsCount(); /** * repeated string bps = 3; * @param index The index of the element to return. * @return The bps at the given index. */ java.lang.String getBps(int index); /** * repeated string bps = 3; * @param index The index of the value to return. * @return The bytes of the bps at the given index. */ com.google.protobuf.ByteString getBpsBytes(int index); } /** *
   * info and bps is json string
   * 
* * Protobuf type {@code types.ConsensusInfo} */ public static final class ConsensusInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.ConsensusInfo) ConsensusInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusInfo.newBuilder() to construct. private ConsensusInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusInfo() { type_ = ""; info_ = ""; bps_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsensusInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsensusInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); type_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); info_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { bps_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } bps_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { bps_ = bps_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ConsensusInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ConsensusInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ConsensusInfo.class, types.Rpc.ConsensusInfo.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * string type = 1; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** * string type = 1; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INFO_FIELD_NUMBER = 2; private volatile java.lang.Object info_; /** * string info = 2; * @return The info. */ @java.lang.Override public java.lang.String getInfo() { java.lang.Object ref = info_; 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(); info_ = s; return s; } } /** * string info = 2; * @return The bytes for info. */ @java.lang.Override public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BPS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList bps_; /** * repeated string bps = 3; * @return A list containing the bps. */ public com.google.protobuf.ProtocolStringList getBpsList() { return bps_; } /** * repeated string bps = 3; * @return The count of bps. */ public int getBpsCount() { return bps_.size(); } /** * repeated string bps = 3; * @param index The index of the element to return. * @return The bps at the given index. */ public java.lang.String getBps(int index) { return bps_.get(index); } /** * repeated string bps = 3; * @param index The index of the value to return. * @return The bytes of the bps at the given index. */ public com.google.protobuf.ByteString getBpsBytes(int index) { return bps_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!getInfoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, info_); } for (int i = 0; i < bps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bps_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!getInfoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, info_); } { int dataSize = 0; for (int i = 0; i < bps_.size(); i++) { dataSize += computeStringSizeNoTag(bps_.getRaw(i)); } size += dataSize; size += 1 * getBpsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.ConsensusInfo)) { return super.equals(obj); } types.Rpc.ConsensusInfo other = (types.Rpc.ConsensusInfo) obj; if (!getType() .equals(other.getType())) return false; if (!getInfo() .equals(other.getInfo())) return false; if (!getBpsList() .equals(other.getBpsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); if (getBpsCount() > 0) { hash = (37 * hash) + BPS_FIELD_NUMBER; hash = (53 * hash) + getBpsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.ConsensusInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConsensusInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConsensusInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConsensusInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConsensusInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.ConsensusInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.ConsensusInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ConsensusInfo 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 types.Rpc.ConsensusInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.ConsensusInfo 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 types.Rpc.ConsensusInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.ConsensusInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.ConsensusInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * info and bps is json string
     * 
* * Protobuf type {@code types.ConsensusInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.ConsensusInfo) types.Rpc.ConsensusInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_ConsensusInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_ConsensusInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.ConsensusInfo.class, types.Rpc.ConsensusInfo.Builder.class); } // Construct using types.Rpc.ConsensusInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; info_ = ""; bps_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_ConsensusInfo_descriptor; } @java.lang.Override public types.Rpc.ConsensusInfo getDefaultInstanceForType() { return types.Rpc.ConsensusInfo.getDefaultInstance(); } @java.lang.Override public types.Rpc.ConsensusInfo build() { types.Rpc.ConsensusInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.ConsensusInfo buildPartial() { types.Rpc.ConsensusInfo result = new types.Rpc.ConsensusInfo(this); int from_bitField0_ = bitField0_; result.type_ = type_; result.info_ = info_; if (((bitField0_ & 0x00000001) != 0)) { bps_ = bps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.bps_ = bps_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.ConsensusInfo) { return mergeFrom((types.Rpc.ConsensusInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.ConsensusInfo other) { if (other == types.Rpc.ConsensusInfo.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getInfo().isEmpty()) { info_ = other.info_; onChanged(); } if (!other.bps_.isEmpty()) { if (bps_.isEmpty()) { bps_ = other.bps_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBpsIsMutable(); bps_.addAll(other.bps_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.ConsensusInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.ConsensusInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * string type = 1; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * string type = 1; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** * string type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * string type = 1; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private java.lang.Object info_ = ""; /** * string info = 2; * @return The info. */ public java.lang.String getInfo() { java.lang.Object ref = info_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); info_ = s; return s; } else { return (java.lang.String) ref; } } /** * string info = 2; * @return The bytes for info. */ public com.google.protobuf.ByteString getInfoBytes() { java.lang.Object ref = info_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); info_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string info = 2; * @param value The info to set. * @return This builder for chaining. */ public Builder setInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); return this; } /** * string info = 2; * @return This builder for chaining. */ public Builder clearInfo() { info_ = getDefaultInstance().getInfo(); onChanged(); return this; } /** * string info = 2; * @param value The bytes for info to set. * @return This builder for chaining. */ public Builder setInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); info_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList bps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bps_ = new com.google.protobuf.LazyStringArrayList(bps_); bitField0_ |= 0x00000001; } } /** * repeated string bps = 3; * @return A list containing the bps. */ public com.google.protobuf.ProtocolStringList getBpsList() { return bps_.getUnmodifiableView(); } /** * repeated string bps = 3; * @return The count of bps. */ public int getBpsCount() { return bps_.size(); } /** * repeated string bps = 3; * @param index The index of the element to return. * @return The bps at the given index. */ public java.lang.String getBps(int index) { return bps_.get(index); } /** * repeated string bps = 3; * @param index The index of the value to return. * @return The bytes of the bps at the given index. */ public com.google.protobuf.ByteString getBpsBytes(int index) { return bps_.getByteString(index); } /** * repeated string bps = 3; * @param index The index to set the value at. * @param value The bps to set. * @return This builder for chaining. */ public Builder setBps( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBpsIsMutable(); bps_.set(index, value); onChanged(); return this; } /** * repeated string bps = 3; * @param value The bps to add. * @return This builder for chaining. */ public Builder addBps( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBpsIsMutable(); bps_.add(value); onChanged(); return this; } /** * repeated string bps = 3; * @param values The bps to add. * @return This builder for chaining. */ public Builder addAllBps( java.lang.Iterable values) { ensureBpsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bps_); onChanged(); return this; } /** * repeated string bps = 3; * @return This builder for chaining. */ public Builder clearBps() { bps_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string bps = 3; * @param value The bytes of the bps to add. * @return This builder for chaining. */ public Builder addBpsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBpsIsMutable(); bps_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.ConsensusInfo) } // @@protoc_insertion_point(class_scope:types.ConsensusInfo) private static final types.Rpc.ConsensusInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.ConsensusInfo(); } public static types.Rpc.ConsensusInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.ConsensusInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnterpriseConfigKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:types.EnterpriseConfigKey) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); } /** * Protobuf type {@code types.EnterpriseConfigKey} */ public static final class EnterpriseConfigKey extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.EnterpriseConfigKey) EnterpriseConfigKeyOrBuilder { private static final long serialVersionUID = 0L; // Use EnterpriseConfigKey.newBuilder() to construct. private EnterpriseConfigKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnterpriseConfigKey() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnterpriseConfigKey(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnterpriseConfigKey( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EnterpriseConfigKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EnterpriseConfigKey_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EnterpriseConfigKey.class, types.Rpc.EnterpriseConfigKey.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; * @return The key. */ @java.lang.Override 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; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override 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; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.EnterpriseConfigKey)) { return super.equals(obj); } types.Rpc.EnterpriseConfigKey other = (types.Rpc.EnterpriseConfigKey) obj; if (!getKey() .equals(other.getKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.EnterpriseConfigKey parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfigKey parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfigKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfigKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfigKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfigKey parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfigKey parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfigKey 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 types.Rpc.EnterpriseConfigKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfigKey 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 types.Rpc.EnterpriseConfigKey parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfigKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.EnterpriseConfigKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.EnterpriseConfigKey} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.EnterpriseConfigKey) types.Rpc.EnterpriseConfigKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EnterpriseConfigKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EnterpriseConfigKey_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EnterpriseConfigKey.class, types.Rpc.EnterpriseConfigKey.Builder.class); } // Construct using types.Rpc.EnterpriseConfigKey.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_EnterpriseConfigKey_descriptor; } @java.lang.Override public types.Rpc.EnterpriseConfigKey getDefaultInstanceForType() { return types.Rpc.EnterpriseConfigKey.getDefaultInstance(); } @java.lang.Override public types.Rpc.EnterpriseConfigKey build() { types.Rpc.EnterpriseConfigKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.EnterpriseConfigKey buildPartial() { types.Rpc.EnterpriseConfigKey result = new types.Rpc.EnterpriseConfigKey(this); result.key_ = key_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.EnterpriseConfigKey) { return mergeFrom((types.Rpc.EnterpriseConfigKey)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.EnterpriseConfigKey other) { if (other == types.Rpc.EnterpriseConfigKey.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.EnterpriseConfigKey parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.EnterpriseConfigKey) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ 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; } } /** * string key = 1; * @return The bytes for key. */ 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; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.EnterpriseConfigKey) } // @@protoc_insertion_point(class_scope:types.EnterpriseConfigKey) private static final types.Rpc.EnterpriseConfigKey DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.EnterpriseConfigKey(); } public static types.Rpc.EnterpriseConfigKey getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnterpriseConfigKey parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnterpriseConfigKey(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.EnterpriseConfigKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnterpriseConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:types.EnterpriseConfig) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * bool on = 2; * @return The on. */ boolean getOn(); /** * repeated string values = 3; * @return A list containing the values. */ java.util.List getValuesList(); /** * repeated string values = 3; * @return The count of values. */ int getValuesCount(); /** * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * Protobuf type {@code types.EnterpriseConfig} */ public static final class EnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:types.EnterpriseConfig) EnterpriseConfigOrBuilder { private static final long serialVersionUID = 0L; // Use EnterpriseConfig.newBuilder() to construct. private EnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnterpriseConfig() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnterpriseConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnterpriseConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 16: { on_ = input.readBool(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } values_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EnterpriseConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EnterpriseConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EnterpriseConfig.class, types.Rpc.EnterpriseConfig.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; * @return The key. */ @java.lang.Override 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; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override 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 ON_FIELD_NUMBER = 2; private boolean on_; /** * bool on = 2; * @return The on. */ @java.lang.Override public boolean getOn() { return on_; } public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** * repeated string values = 3; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * repeated string values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (on_ != false) { output.writeBool(2, on_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override 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 (on_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, on_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof types.Rpc.EnterpriseConfig)) { return super.equals(obj); } types.Rpc.EnterpriseConfig other = (types.Rpc.EnterpriseConfig) obj; if (!getKey() .equals(other.getKey())) return false; if (getOn() != other.getOn()) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + ON_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOn()); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static types.Rpc.EnterpriseConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static types.Rpc.EnterpriseConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static types.Rpc.EnterpriseConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfig 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 types.Rpc.EnterpriseConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfig 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 types.Rpc.EnterpriseConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static types.Rpc.EnterpriseConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(types.Rpc.EnterpriseConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code types.EnterpriseConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:types.EnterpriseConfig) types.Rpc.EnterpriseConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return types.Rpc.internal_static_types_EnterpriseConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return types.Rpc.internal_static_types_EnterpriseConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( types.Rpc.EnterpriseConfig.class, types.Rpc.EnterpriseConfig.Builder.class); } // Construct using types.Rpc.EnterpriseConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; on_ = false; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return types.Rpc.internal_static_types_EnterpriseConfig_descriptor; } @java.lang.Override public types.Rpc.EnterpriseConfig getDefaultInstanceForType() { return types.Rpc.EnterpriseConfig.getDefaultInstance(); } @java.lang.Override public types.Rpc.EnterpriseConfig build() { types.Rpc.EnterpriseConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public types.Rpc.EnterpriseConfig buildPartial() { types.Rpc.EnterpriseConfig result = new types.Rpc.EnterpriseConfig(this); int from_bitField0_ = bitField0_; result.key_ = key_; result.on_ = on_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof types.Rpc.EnterpriseConfig) { return mergeFrom((types.Rpc.EnterpriseConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(types.Rpc.EnterpriseConfig other) { if (other == types.Rpc.EnterpriseConfig.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.getOn() != false) { setOn(other.getOn()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { types.Rpc.EnterpriseConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (types.Rpc.EnterpriseConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ 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; } } /** * string key = 1; * @return The bytes for key. */ 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; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private boolean on_ ; /** * bool on = 2; * @return The on. */ @java.lang.Override public boolean getOn() { return on_; } /** * bool on = 2; * @param value The on to set. * @return This builder for chaining. */ public Builder setOn(boolean value) { on_ = value; onChanged(); return this; } /** * bool on = 2; * @return This builder for chaining. */ public Builder clearOn() { on_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; } } /** * repeated string values = 3; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * repeated string values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 3; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated string values = 3; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated string values = 3; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * repeated string values = 3; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string values = 3; * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:types.EnterpriseConfig) } // @@protoc_insertion_point(class_scope:types.EnterpriseConfig) private static final types.Rpc.EnterpriseConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new types.Rpc.EnterpriseConfig(); } public static types.Rpc.EnterpriseConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnterpriseConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnterpriseConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public types.Rpc.EnterpriseConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockchainStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockchainStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ChainId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ChainId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ChainInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ChainInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ChainStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ChainStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Input_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Input_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Output_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Output_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Empty_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Empty_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_SingleBytes_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_SingleBytes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_SingleString_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_SingleString_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_AccountAddress_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_AccountAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_AccountAndRoot_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_AccountAndRoot_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Peer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Peer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_PeerList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_PeerList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ListParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ListParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_PageParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_PageParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockBodyPaged_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockBodyPaged_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockBodyParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockBodyParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockHeaderList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockHeaderList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_BlockMetadataList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_BlockMetadataList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_CommitResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_CommitResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_CommitResultList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_CommitResultList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_VerifyResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_VerifyResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Personal_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Personal_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ImportFormat_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ImportFormat_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Staking_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Staking_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Vote_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Vote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_VoteParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_VoteParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_AccountVoteInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_AccountVoteInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_VoteInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_VoteInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_VoteList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_VoteList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_NodeReq_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_NodeReq_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_Name_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_Name_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_NameInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_NameInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_PeersParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_PeersParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_KeyParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_KeyParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ServerInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ServerInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ServerInfo_StatusEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ServerInfo_StatusEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ServerInfo_ConfigEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ServerInfo_ConfigEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ConfigItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ConfigItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ConfigItem_PropsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ConfigItem_PropsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_EventList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_EventList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_ConsensusInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_ConsensusInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_EnterpriseConfigKey_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_EnterpriseConfigKey_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_types_EnterpriseConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_types_EnterpriseConfig_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\trpc.proto\022\005types\032\020blockchain.proto\032\rac" + "count.proto\032\nnode.proto\032\tp2p.proto\032\014metr" + "ic.proto\032\nraft.proto\"\232\001\n\020BlockchainStatu" + "s\022\027\n\017best_block_hash\030\001 \001(\014\022\023\n\013best_heigh" + "t\030\002 \001(\004\022\026\n\016consensus_info\030\003 \001(\t\022\032\n\022best_" + "chain_id_hash\030\004 \001(\014\022$\n\nchain_info\030\005 \001(\0132" + "\020.types.ChainInfo\"]\n\007ChainId\022\r\n\005magic\030\001 " + "\001(\t\022\016\n\006public\030\002 \001(\010\022\017\n\007mainnet\030\003 \001(\010\022\021\n\t" + "consensus\030\004 \001(\t\022\017\n\007version\030\005 \001(\005\"\345\001\n\tCha" + "inInfo\022\032\n\002id\030\001 \001(\0132\016.types.ChainId\022\020\n\010bp" + "Number\030\002 \001(\r\022\024\n\014maxblocksize\030\003 \001(\004\022\021\n\tma" + "xtokens\030\004 \001(\014\022\026\n\016stakingminimum\030\005 \001(\014\022\024\n" + "\014totalstaking\030\006 \001(\014\022\020\n\010gasprice\030\007 \001(\014\022\021\n" + "\tnameprice\030\010 \001(\014\022\030\n\020totalvotingpower\030\t \001" + "(\014\022\024\n\014votingreward\030\n \001(\014\"\034\n\nChainStats\022\016" + "\n\006report\030\001 \001(\t\"E\n\005Input\022\014\n\004hash\030\001 \001(\014\022\017\n" + "\007address\030\002 \003(\014\022\r\n\005value\030\003 \001(\014\022\016\n\006script\030" + "\004 \001(\014\"G\n\006Output\022\r\n\005index\030\001 \001(\r\022\017\n\007addres" + "s\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\016\n\006script\030\004 \001(\014\"\007" + "\n\005Empty\"\034\n\013SingleBytes\022\r\n\005value\030\001 \001(\014\"\035\n" + "\014SingleString\022\r\n\005value\030\001 \001(\t\"\037\n\016AccountA" + "ddress\022\r\n\005value\030\001 \001(\014\"C\n\016AccountAndRoot\022" + "\017\n\007Account\030\001 \001(\014\022\014\n\004Root\030\002 \001(\014\022\022\n\nCompre" + "ssed\030\003 \001(\010\"\200\002\n\004Peer\022#\n\007address\030\001 \001(\0132\022.t" + "ypes.PeerAddress\022(\n\tbestblock\030\002 \001(\0132\025.ty" + "pes.NewBlockNotice\022\r\n\005state\030\003 \001(\005\022\016\n\006hid" + "den\030\004 \001(\010\022\021\n\tlashCheck\030\005 \001(\003\022\020\n\010selfpeer" + "\030\006 \001(\010\022\017\n\007version\030\007 \001(\t\022-\n\014certificates\030" + "\010 \003(\0132\027.types.AgentCertificate\022%\n\014accept" + "edRole\030\t \001(\0162\017.types.PeerRole\"&\n\010PeerLis" + "t\022\032\n\005peers\030\001 \003(\0132\013.types.Peer\"U\n\nListPar" + "ams\022\014\n\004hash\030\001 \001(\014\022\016\n\006height\030\002 \001(\004\022\014\n\004siz" + "e\030\003 \001(\r\022\016\n\006offset\030\004 \001(\r\022\013\n\003asc\030\005 \001(\010\"*\n\n" + "PageParams\022\016\n\006offset\030\001 \001(\r\022\014\n\004size\030\002 \001(\r" + "\"]\n\016BlockBodyPaged\022\r\n\005total\030\001 \001(\r\022\016\n\006off" + "set\030\002 \001(\r\022\014\n\004size\030\003 \001(\r\022\036\n\004body\030\004 \001(\0132\020." + "types.BlockBody\"J\n\017BlockBodyParams\022\024\n\014ha" + "shornumber\030\001 \001(\014\022!\n\006paging\030\002 \001(\0132\021.types" + ".PageParams\"/\n\017BlockHeaderList\022\034\n\006blocks" + "\030\001 \003(\0132\014.types.Block\"`\n\rBlockMetadata\022\014\n" + "\004hash\030\001 \001(\014\022\"\n\006header\030\002 \001(\0132\022.types.Bloc" + "kHeader\022\017\n\007txcount\030\003 \001(\005\022\014\n\004size\030\004 \001(\003\"9" + "\n\021BlockMetadataList\022$\n\006blocks\030\001 \003(\0132\024.ty" + "pes.BlockMetadata\"P\n\014CommitResult\022\014\n\004has" + "h\030\001 \001(\014\022\"\n\005error\030\002 \001(\0162\023.types.CommitSta" + "tus\022\016\n\006detail\030\003 \001(\t\"8\n\020CommitResultList\022" + "$\n\007results\030\001 \003(\0132\023.types.CommitResult\"I\n" + "\014VerifyResult\022\025\n\002tx\030\001 \001(\0132\t.types.Tx\022\"\n\005" + "error\030\002 \001(\0162\023.types.VerifyStatus\"?\n\010Pers" + "onal\022\022\n\npassphrase\030\001 \001(\t\022\037\n\007account\030\002 \001(" + "\0132\016.types.Account\"w\n\014ImportFormat\022\037\n\003wif" + "\030\001 \001(\0132\022.types.SingleBytes\022\017\n\007oldpass\030\002 " + "\001(\t\022\017\n\007newpass\030\003 \001(\t\022$\n\010keystore\030\004 \001(\0132\022" + ".types.SingleBytes\"\'\n\007Staking\022\016\n\006amount\030" + "\001 \001(\014\022\014\n\004when\030\002 \001(\004\")\n\004Vote\022\021\n\tcandidate" + "\030\001 \001(\014\022\016\n\006amount\030\002 \001(\014\"\'\n\nVoteParams\022\n\n\002" + "id\030\001 \001(\t\022\r\n\005count\030\002 \001(\r\"S\n\017AccountVoteIn" + "fo\022\037\n\007staking\030\001 \001(\0132\016.types.Staking\022\037\n\006v" + "oting\030\002 \003(\0132\017.types.VoteInfo\":\n\010VoteInfo" + "\022\n\n\002id\030\001 \001(\t\022\022\n\ncandidates\030\002 \003(\t\022\016\n\006amou" + "nt\030\003 \001(\t\"2\n\010VoteList\022\032\n\005votes\030\001 \003(\0132\013.ty" + "pes.Vote\022\n\n\002id\030\002 \001(\t\"-\n\007NodeReq\022\017\n\007timeo" + "ut\030\001 \001(\014\022\021\n\tcomponent\030\002 \001(\014\"%\n\004Name\022\014\n\004n" + "ame\030\001 \001(\t\022\017\n\007blockNo\030\002 \001(\004\"I\n\010NameInfo\022\031" + "\n\004name\030\001 \001(\0132\013.types.Name\022\r\n\005owner\030\002 \001(\014" + "\022\023\n\013destination\030\003 \001(\014\"1\n\013PeersParams\022\020\n\010" + "noHidden\030\001 \001(\010\022\020\n\010showSelf\030\002 \001(\010\"\030\n\tKeyP" + "arams\022\013\n\003key\030\001 \003(\t\"\333\001\n\nServerInfo\022-\n\006sta" + "tus\030\001 \003(\0132\035.types.ServerInfo.StatusEntry" + "\022-\n\006config\030\002 \003(\0132\035.types.ServerInfo.Conf" + "igEntry\032-\n\013StatusEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001\032@\n\013ConfigEntry\022\013\n\003key\030\001 \001" + "(\t\022 \n\005value\030\002 \001(\0132\021.types.ConfigItem:\0028\001" + "\"g\n\nConfigItem\022+\n\005props\030\002 \003(\0132\034.types.Co" + "nfigItem.PropsEntry\032,\n\nPropsEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\")\n\tEventList\022\034" + "\n\006events\030\001 \003(\0132\014.types.Event\"8\n\rConsensu" + "sInfo\022\014\n\004type\030\001 \001(\t\022\014\n\004info\030\002 \001(\t\022\013\n\003bps" + "\030\003 \003(\t\"\"\n\023EnterpriseConfigKey\022\013\n\003key\030\001 \001" + "(\t\";\n\020EnterpriseConfig\022\013\n\003key\030\001 \001(\t\022\n\n\002o" + "n\030\002 \001(\010\022\016\n\006values\030\003 \003(\t*\322\001\n\014CommitStatus" + "\022\t\n\005TX_OK\020\000\022\024\n\020TX_NONCE_TOO_LOW\020\001\022\025\n\021TX_" + "ALREADY_EXISTS\020\002\022\023\n\017TX_INVALID_HASH\020\003\022\023\n" + "\017TX_INVALID_SIGN\020\004\022\025\n\021TX_INVALID_FORMAT\020" + "\005\022\033\n\027TX_INSUFFICIENT_BALANCE\020\006\022\025\n\021TX_HAS" + "_SAME_NONCE\020\007\022\025\n\021TX_INTERNAL_ERROR\020\t*f\n\014" + "VerifyStatus\022\024\n\020VERIFY_STATUS_OK\020\000\022 \n\034VE" + "RIFY_STATUS_SIGN_NOT_MATCH\020\001\022\036\n\032VERIFY_S" + "TATUS_INVALID_HASH\020\0022\350\022\n\017AergoRPCService" + "\0221\n\tNodeState\022\016.types.NodeReq\032\022.types.Si" + "ngleBytes\"\000\0221\n\006Metric\022\025.types.MetricsReq" + "uest\032\016.types.Metrics\"\000\0225\n\nBlockchain\022\014.t" + "ypes.Empty\032\027.types.BlockchainStatus\"\000\0220\n" + "\014GetChainInfo\022\014.types.Empty\032\020.types.Chai" + "nInfo\"\000\022.\n\tChainStat\022\014.types.Empty\032\021.typ" + "es.ChainStats\"\000\022?\n\020ListBlockHeaders\022\021.ty" + "pes.ListParams\032\026.types.BlockHeaderList\"\000" + "\022B\n\021ListBlockMetadata\022\021.types.ListParams" + "\032\030.types.BlockMetadataList\"\000\0221\n\017ListBloc" + "kStream\022\014.types.Empty\032\014.types.Block\"\0000\001\022" + "A\n\027ListBlockMetadataStream\022\014.types.Empty" + "\032\024.types.BlockMetadata\"\0000\001\022.\n\010GetBlock\022\022" + ".types.SingleBytes\032\014.types.Block\"\000\022>\n\020Ge" + "tBlockMetadata\022\022.types.SingleBytes\032\024.typ" + "es.BlockMetadata\"\000\022?\n\014GetBlockBody\022\026.typ" + "es.BlockBodyParams\032\025.types.BlockBodyPage" + "d\"\000\022(\n\005GetTX\022\022.types.SingleBytes\032\t.types" + ".Tx\"\000\0224\n\nGetBlockTX\022\022.types.SingleBytes\032" + "\020.types.TxInBlock\"\000\0222\n\nGetReceipt\022\022.type" + "s.SingleBytes\032\016.types.Receipt\"\000\022*\n\006GetAB" + "I\022\022.types.SingleBytes\032\n.types.ABI\"\000\022*\n\006S" + "endTX\022\t.types.Tx\032\023.types.CommitResult\"\000\022" + " \n\006SignTX\022\t.types.Tx\032\t.types.Tx\"\000\022,\n\010Ver" + "ifyTX\022\t.types.Tx\032\023.types.VerifyResult\"\000\022" + "4\n\010CommitTX\022\r.types.TxList\032\027.types.Commi" + "tResultList\"\000\022.\n\010GetState\022\022.types.Single" + "Bytes\032\014.types.State\"\000\022@\n\020GetStateAndProo" + "f\022\025.types.AccountAndRoot\032\023.types.Account" + "Proof\"\000\0222\n\rCreateAccount\022\017.types.Persona" + "l\032\016.types.Account\"\000\0221\n\013GetAccounts\022\014.typ" + "es.Empty\032\022.types.AccountList\"\000\0220\n\013LockAc" + "count\022\017.types.Personal\032\016.types.Account\"\000" + "\0222\n\rUnlockAccount\022\017.types.Personal\032\016.typ" + "es.Account\"\000\0226\n\rImportAccount\022\023.types.Im" + "portFormat\032\016.types.Account\"\000\0226\n\rExportAc" + "count\022\017.types.Personal\032\022.types.SingleByt" + "es\"\000\022>\n\025ExportAccountKeystore\022\017.types.Pe" + "rsonal\032\022.types.SingleBytes\"\000\0223\n\rQueryCon" + "tract\022\014.types.Query\032\022.types.SingleBytes\"" + "\000\022A\n\022QueryContractState\022\021.types.StateQue" + "ry\032\026.types.StateQueryProof\"\000\0221\n\010GetPeers" + "\022\022.types.PeersParams\032\017.types.PeerList\"\000\022" + "0\n\010GetVotes\022\021.types.VoteParams\032\017.types.V" + "oteList\"\000\022B\n\017GetAccountVotes\022\025.types.Acc" + "ountAddress\032\026.types.AccountVoteInfo\"\000\0225\n" + "\nGetStaking\022\025.types.AccountAddress\032\016.typ" + "es.Staking\"\000\022-\n\013GetNameInfo\022\013.types.Name" + "\032\017.types.NameInfo\"\000\0226\n\017ListEventStream\022\021" + ".types.FilterInfo\032\014.types.Event\"\0000\001\0223\n\nL" + "istEvents\022\021.types.FilterInfo\032\020.types.Eve" + "ntList\"\000\0226\n\rGetServerInfo\022\020.types.KeyPar" + "ams\032\021.types.ServerInfo\"\000\0228\n\020GetConsensus" + "Info\022\014.types.Empty\032\024.types.ConsensusInfo" + "\"\000\022K\n\020ChangeMembership\022\027.types.Membershi" + "pChange\032\034.types.MembershipChangeReply\"\000\022" + "L\n\023GetEnterpriseConfig\022\032.types.Enterpris" + "eConfigKey\032\027.types.EnterpriseConfig\"\000\022H\n" + "\025GetConfChangeProgress\022\022.types.SingleByt" + "es\032\031.types.ConfChangeProgress\"\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { types.Blockchain.getDescriptor(), types.AccountOuterClass.getDescriptor(), types.Node.getDescriptor(), types.P2P.getDescriptor(), types.Metric.getDescriptor(), types.Raft.getDescriptor(), }); internal_static_types_BlockchainStatus_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_types_BlockchainStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockchainStatus_descriptor, new java.lang.String[] { "BestBlockHash", "BestHeight", "ConsensusInfo", "BestChainIdHash", "ChainInfo", }); internal_static_types_ChainId_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_types_ChainId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ChainId_descriptor, new java.lang.String[] { "Magic", "Public", "Mainnet", "Consensus", "Version", }); internal_static_types_ChainInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_types_ChainInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ChainInfo_descriptor, new java.lang.String[] { "Id", "BpNumber", "Maxblocksize", "Maxtokens", "Stakingminimum", "Totalstaking", "Gasprice", "Nameprice", "Totalvotingpower", "Votingreward", }); internal_static_types_ChainStats_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_types_ChainStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ChainStats_descriptor, new java.lang.String[] { "Report", }); internal_static_types_Input_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_types_Input_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Input_descriptor, new java.lang.String[] { "Hash", "Address", "Value", "Script", }); internal_static_types_Output_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_types_Output_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Output_descriptor, new java.lang.String[] { "Index", "Address", "Value", "Script", }); internal_static_types_Empty_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_types_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Empty_descriptor, new java.lang.String[] { }); internal_static_types_SingleBytes_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_types_SingleBytes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_SingleBytes_descriptor, new java.lang.String[] { "Value", }); internal_static_types_SingleString_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_types_SingleString_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_SingleString_descriptor, new java.lang.String[] { "Value", }); internal_static_types_AccountAddress_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_types_AccountAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_AccountAddress_descriptor, new java.lang.String[] { "Value", }); internal_static_types_AccountAndRoot_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_types_AccountAndRoot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_AccountAndRoot_descriptor, new java.lang.String[] { "Account", "Root", "Compressed", }); internal_static_types_Peer_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_types_Peer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Peer_descriptor, new java.lang.String[] { "Address", "Bestblock", "State", "Hidden", "LashCheck", "Selfpeer", "Version", "Certificates", "AcceptedRole", }); internal_static_types_PeerList_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_types_PeerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_PeerList_descriptor, new java.lang.String[] { "Peers", }); internal_static_types_ListParams_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_types_ListParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ListParams_descriptor, new java.lang.String[] { "Hash", "Height", "Size", "Offset", "Asc", }); internal_static_types_PageParams_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_types_PageParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_PageParams_descriptor, new java.lang.String[] { "Offset", "Size", }); internal_static_types_BlockBodyPaged_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_types_BlockBodyPaged_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockBodyPaged_descriptor, new java.lang.String[] { "Total", "Offset", "Size", "Body", }); internal_static_types_BlockBodyParams_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_types_BlockBodyParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockBodyParams_descriptor, new java.lang.String[] { "Hashornumber", "Paging", }); internal_static_types_BlockHeaderList_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_types_BlockHeaderList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockHeaderList_descriptor, new java.lang.String[] { "Blocks", }); internal_static_types_BlockMetadata_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_types_BlockMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockMetadata_descriptor, new java.lang.String[] { "Hash", "Header", "Txcount", "Size", }); internal_static_types_BlockMetadataList_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_types_BlockMetadataList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_BlockMetadataList_descriptor, new java.lang.String[] { "Blocks", }); internal_static_types_CommitResult_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_types_CommitResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_CommitResult_descriptor, new java.lang.String[] { "Hash", "Error", "Detail", }); internal_static_types_CommitResultList_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_types_CommitResultList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_CommitResultList_descriptor, new java.lang.String[] { "Results", }); internal_static_types_VerifyResult_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_types_VerifyResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_VerifyResult_descriptor, new java.lang.String[] { "Tx", "Error", }); internal_static_types_Personal_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_types_Personal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Personal_descriptor, new java.lang.String[] { "Passphrase", "Account", }); internal_static_types_ImportFormat_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_types_ImportFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ImportFormat_descriptor, new java.lang.String[] { "Wif", "Oldpass", "Newpass", "Keystore", }); internal_static_types_Staking_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_types_Staking_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Staking_descriptor, new java.lang.String[] { "Amount", "When", }); internal_static_types_Vote_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_types_Vote_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Vote_descriptor, new java.lang.String[] { "Candidate", "Amount", }); internal_static_types_VoteParams_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_types_VoteParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_VoteParams_descriptor, new java.lang.String[] { "Id", "Count", }); internal_static_types_AccountVoteInfo_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_types_AccountVoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_AccountVoteInfo_descriptor, new java.lang.String[] { "Staking", "Voting", }); internal_static_types_VoteInfo_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_types_VoteInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_VoteInfo_descriptor, new java.lang.String[] { "Id", "Candidates", "Amount", }); internal_static_types_VoteList_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_types_VoteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_VoteList_descriptor, new java.lang.String[] { "Votes", "Id", }); internal_static_types_NodeReq_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_types_NodeReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_NodeReq_descriptor, new java.lang.String[] { "Timeout", "Component", }); internal_static_types_Name_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_types_Name_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_Name_descriptor, new java.lang.String[] { "Name", "BlockNo", }); internal_static_types_NameInfo_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_types_NameInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_NameInfo_descriptor, new java.lang.String[] { "Name", "Owner", "Destination", }); internal_static_types_PeersParams_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_types_PeersParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_PeersParams_descriptor, new java.lang.String[] { "NoHidden", "ShowSelf", }); internal_static_types_KeyParams_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_types_KeyParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_KeyParams_descriptor, new java.lang.String[] { "Key", }); internal_static_types_ServerInfo_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_types_ServerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ServerInfo_descriptor, new java.lang.String[] { "Status", "Config", }); internal_static_types_ServerInfo_StatusEntry_descriptor = internal_static_types_ServerInfo_descriptor.getNestedTypes().get(0); internal_static_types_ServerInfo_StatusEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ServerInfo_StatusEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_types_ServerInfo_ConfigEntry_descriptor = internal_static_types_ServerInfo_descriptor.getNestedTypes().get(1); internal_static_types_ServerInfo_ConfigEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ServerInfo_ConfigEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_types_ConfigItem_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_types_ConfigItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ConfigItem_descriptor, new java.lang.String[] { "Props", }); internal_static_types_ConfigItem_PropsEntry_descriptor = internal_static_types_ConfigItem_descriptor.getNestedTypes().get(0); internal_static_types_ConfigItem_PropsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ConfigItem_PropsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_types_EventList_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_types_EventList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_EventList_descriptor, new java.lang.String[] { "Events", }); internal_static_types_ConsensusInfo_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_types_ConsensusInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_ConsensusInfo_descriptor, new java.lang.String[] { "Type", "Info", "Bps", }); internal_static_types_EnterpriseConfigKey_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_types_EnterpriseConfigKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_EnterpriseConfigKey_descriptor, new java.lang.String[] { "Key", }); internal_static_types_EnterpriseConfig_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_types_EnterpriseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_types_EnterpriseConfig_descriptor, new java.lang.String[] { "Key", "On", "Values", }); types.Blockchain.getDescriptor(); types.AccountOuterClass.getDescriptor(); types.Node.getDescriptor(); types.P2P.getDescriptor(); types.Metric.getDescriptor(); types.Raft.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy