Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
types.Rpc Maven / Gradle / Ivy
// 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 extends com.google.protobuf.ByteString> 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 extends types.Node.AgentCertificateOrBuilder>
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 extends types.Node.AgentCertificateOrBuilder>
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 extends types.Node.AgentCertificate> 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 extends types.Node.AgentCertificateOrBuilder>
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 extends types.Rpc.PeerOrBuilder>
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 extends types.Rpc.PeerOrBuilder>
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 extends types.Rpc.Peer> 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 extends types.Rpc.PeerOrBuilder>
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 extends types.Blockchain.BlockOrBuilder>
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 extends types.Blockchain.BlockOrBuilder>
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 extends types.Blockchain.Block> 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 extends types.Blockchain.BlockOrBuilder>
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 extends types.Rpc.BlockMetadataOrBuilder>
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 extends types.Rpc.BlockMetadataOrBuilder>
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 extends types.Rpc.BlockMetadata> 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 extends types.Rpc.BlockMetadataOrBuilder>
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 extends types.Rpc.CommitResultOrBuilder>
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 extends types.Rpc.CommitResultOrBuilder>
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 extends types.Rpc.CommitResult> 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 extends types.Rpc.CommitResultOrBuilder>
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 extends types.Rpc.VoteInfoOrBuilder>
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 extends types.Rpc.VoteInfoOrBuilder>
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 extends types.Rpc.VoteInfo> 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 extends types.Rpc.VoteInfoOrBuilder>
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 extends types.Rpc.VoteOrBuilder>
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 extends types.Rpc.VoteOrBuilder>
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 extends types.Rpc.Vote> 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 extends types.Rpc.VoteOrBuilder>
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();
/**
*