com.brewchain.sdk.model.impl.AccountImpl Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: accountImpl.proto
package com.brewchain.sdk.model.impl;
public final class AccountImpl {
private AccountImpl() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AccountInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.AccountInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
*/
java.lang.String getAddress();
/**
* string address = 1;
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* string name = 2;
*/
java.lang.String getName();
/**
* string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* int32 version = 3;
*/
int getVersion();
/**
* int32 nonce = 4;
*/
int getNonce();
/**
* string balance = 5;
*/
java.lang.String getBalance();
/**
* string balance = 5;
*/
com.google.protobuf.ByteString
getBalanceBytes();
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
int getStatus();
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
java.lang.String getStorageTrieRoot();
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
com.google.protobuf.ByteString
getStorageTrieRootBytes();
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
java.lang.String getExtData();
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
com.google.protobuf.ByteString
getExtDataBytes();
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
int getTypeValue();
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType getType();
/**
*
*repeated string union_coaddress = 7;
*string max = 3;
*repeated AccountTokenValue tokens = 7;
*repeated AccountCryptoValue cryptos = 8;
*string storage = 9;
*string codeHash = 10;
*string code = 11;
*string data = 12;
*int64 accumulatedTimestamp = 13;
*string accumulated = 14;
*string acceptMax = 4;
*int32 acceptLimit = 5;
*
*
* int32 retCode = 11;
*/
int getRetCode();
/**
* string retMsg = 12;
*/
java.lang.String getRetMsg();
/**
* string retMsg = 12;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.AccountInfo}
*/
public static final class AccountInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.AccountInfo)
AccountInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountInfo.newBuilder() to construct.
private AccountInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountInfo() {
address_ = "";
name_ = "";
version_ = 0;
nonce_ = 0;
balance_ = "";
status_ = 0;
storageTrieRoot_ = "";
extData_ = "";
type_ = 0;
retCode_ = 0;
retMsg_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountInfo(
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();
address_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
version_ = input.readInt32();
break;
}
case 32: {
nonce_ = input.readInt32();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
balance_ = s;
break;
}
case 48: {
status_ = input.readInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
storageTrieRoot_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
extData_ = s;
break;
}
case 72: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 88: {
retCode_ = input.readInt32();
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
retMsg_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.class, com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.Builder.class);
}
/**
* Protobuf enum {@code com.brewchain.sdk.model.impl.AccountInfo.AccountType}
*/
public enum AccountType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* 普通账户
*
*
* NORMAL = 0;
*/
NORMAL(0),
/**
*
* 多重签名账户
*
*
* MULI_SIGN = 1;
*/
MULI_SIGN(1),
/**
*
* 20合约账户
*
*
* RC20_CONTRACT = 2;
*/
RC20_CONTRACT(2),
/**
*
* 721合约账户
*
*
* RC721_CONTRACT = 3;
*/
RC721_CONTRACT(3),
/**
*
* CVM合约
*
*
* CVM_CONTRACT = 4;
*/
CVM_CONTRACT(4),
/**
*
* JSVM合约(可并行)
*
*
* JSVM_CONTRACT = 5;
*/
JSVM_CONTRACT(5),
/**
*
* 联合账户
*
*
* UNIONACCOUNT = 6;
*/
UNIONACCOUNT(6),
UNRECOGNIZED(-1),
;
/**
*
* 普通账户
*
*
* NORMAL = 0;
*/
public static final int NORMAL_VALUE = 0;
/**
*
* 多重签名账户
*
*
* MULI_SIGN = 1;
*/
public static final int MULI_SIGN_VALUE = 1;
/**
*
* 20合约账户
*
*
* RC20_CONTRACT = 2;
*/
public static final int RC20_CONTRACT_VALUE = 2;
/**
*
* 721合约账户
*
*
* RC721_CONTRACT = 3;
*/
public static final int RC721_CONTRACT_VALUE = 3;
/**
*
* CVM合约
*
*
* CVM_CONTRACT = 4;
*/
public static final int CVM_CONTRACT_VALUE = 4;
/**
*
* JSVM合约(可并行)
*
*
* JSVM_CONTRACT = 5;
*/
public static final int JSVM_CONTRACT_VALUE = 5;
/**
*
* 联合账户
*
*
* UNIONACCOUNT = 6;
*/
public static final int UNIONACCOUNT_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AccountType valueOf(int value) {
return forNumber(value);
}
public static AccountType forNumber(int value) {
switch (value) {
case 0: return NORMAL;
case 1: return MULI_SIGN;
case 2: return RC20_CONTRACT;
case 3: return RC721_CONTRACT;
case 4: return CVM_CONTRACT;
case 5: return JSVM_CONTRACT;
case 6: return UNIONACCOUNT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AccountType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AccountType findValueByNumber(int number) {
return AccountType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.getDescriptor().getEnumTypes().get(0);
}
private static final AccountType[] VALUES = values();
public static AccountType 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 AccountType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.brewchain.sdk.model.impl.AccountInfo.AccountType)
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
* string address = 1;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 1;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
*/
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 = 2;
*/
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 VERSION_FIELD_NUMBER = 3;
private int version_;
/**
* int32 version = 3;
*/
public int getVersion() {
return version_;
}
public static final int NONCE_FIELD_NUMBER = 4;
private int nonce_;
/**
* int32 nonce = 4;
*/
public int getNonce() {
return nonce_;
}
public static final int BALANCE_FIELD_NUMBER = 5;
private volatile java.lang.Object balance_;
/**
* string balance = 5;
*/
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
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();
balance_ = s;
return s;
}
}
/**
* string balance = 5;
*/
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 6;
private int status_;
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
public int getStatus() {
return status_;
}
public static final int STORAGE_TRIE_ROOT_FIELD_NUMBER = 7;
private volatile java.lang.Object storageTrieRoot_;
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public java.lang.String getStorageTrieRoot() {
java.lang.Object ref = storageTrieRoot_;
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();
storageTrieRoot_ = s;
return s;
}
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public com.google.protobuf.ByteString
getStorageTrieRootBytes() {
java.lang.Object ref = storageTrieRoot_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageTrieRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXT_DATA_FIELD_NUMBER = 8;
private volatile java.lang.Object extData_;
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
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();
extData_ = s;
return s;
}
}
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 9;
private int type_;
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public int getTypeValue() {
return type_;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType getType() {
@SuppressWarnings("deprecation")
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType result = com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.valueOf(type_);
return result == null ? com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.UNRECOGNIZED : result;
}
public static final int RETCODE_FIELD_NUMBER = 11;
private int retCode_;
/**
*
*repeated string union_coaddress = 7;
*string max = 3;
*repeated AccountTokenValue tokens = 7;
*repeated AccountCryptoValue cryptos = 8;
*string storage = 9;
*string codeHash = 10;
*string code = 11;
*string data = 12;
*int64 accumulatedTimestamp = 13;
*string accumulated = 14;
*string acceptMax = 4;
*int32 acceptLimit = 5;
*
*
* int32 retCode = 11;
*/
public int getRetCode() {
return retCode_;
}
public static final int RETMSG_FIELD_NUMBER = 12;
private volatile java.lang.Object retMsg_;
/**
* string retMsg = 12;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
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();
retMsg_ = s;
return s;
}
}
/**
* string retMsg = 12;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = 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 (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (version_ != 0) {
output.writeInt32(3, version_);
}
if (nonce_ != 0) {
output.writeInt32(4, nonce_);
}
if (!getBalanceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, balance_);
}
if (status_ != 0) {
output.writeInt32(6, status_);
}
if (!getStorageTrieRootBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, storageTrieRoot_);
}
if (!getExtDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, extData_);
}
if (type_ != com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.NORMAL.getNumber()) {
output.writeEnum(9, type_);
}
if (retCode_ != 0) {
output.writeInt32(11, retCode_);
}
if (!getRetMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, retMsg_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, version_);
}
if (nonce_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, nonce_);
}
if (!getBalanceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, balance_);
}
if (status_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, status_);
}
if (!getStorageTrieRootBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storageTrieRoot_);
}
if (!getExtDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, extData_);
}
if (type_ != com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.NORMAL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, type_);
}
if (retCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, retCode_);
}
if (!getRetMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, retMsg_);
}
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 com.brewchain.sdk.model.impl.AccountImpl.AccountInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo other = (com.brewchain.sdk.model.impl.AccountImpl.AccountInfo) obj;
boolean result = true;
result = result && getAddress()
.equals(other.getAddress());
result = result && getName()
.equals(other.getName());
result = result && (getVersion()
== other.getVersion());
result = result && (getNonce()
== other.getNonce());
result = result && getBalance()
.equals(other.getBalance());
result = result && (getStatus()
== other.getStatus());
result = result && getStorageTrieRoot()
.equals(other.getStorageTrieRoot());
result = result && getExtData()
.equals(other.getExtData());
result = result && type_ == other.type_;
result = result && (getRetCode()
== other.getRetCode());
result = result && getRetMsg()
.equals(other.getRetMsg());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce();
hash = (37 * hash) + BALANCE_FIELD_NUMBER;
hash = (53 * hash) + getBalance().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus();
hash = (37 * hash) + STORAGE_TRIE_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getStorageTrieRoot().hashCode();
hash = (37 * hash) + EXT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getExtData().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetCode();
hash = (37 * hash) + RETMSG_FIELD_NUMBER;
hash = (53 * hash) + getRetMsg().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo 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 com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo 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 com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo 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(com.brewchain.sdk.model.impl.AccountImpl.AccountInfo 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 com.brewchain.sdk.model.impl.AccountInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.AccountInfo)
com.brewchain.sdk.model.impl.AccountImpl.AccountInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.class, com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.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();
address_ = "";
name_ = "";
version_ = 0;
nonce_ = 0;
balance_ = "";
status_ = 0;
storageTrieRoot_ = "";
extData_ = "";
type_ = 0;
retCode_ = 0;
retMsg_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.AccountInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.AccountInfo build() {
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.AccountInfo buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo result = new com.brewchain.sdk.model.impl.AccountImpl.AccountInfo(this);
result.address_ = address_;
result.name_ = name_;
result.version_ = version_;
result.nonce_ = nonce_;
result.balance_ = balance_;
result.status_ = status_;
result.storageTrieRoot_ = storageTrieRoot_;
result.extData_ = extData_;
result.type_ = type_;
result.retCode_ = retCode_;
result.retMsg_ = retMsg_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.AccountInfo) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.AccountInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.AccountInfo other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getNonce() != 0) {
setNonce(other.getNonce());
}
if (!other.getBalance().isEmpty()) {
balance_ = other.balance_;
onChanged();
}
if (other.getStatus() != 0) {
setStatus(other.getStatus());
}
if (!other.getStorageTrieRoot().isEmpty()) {
storageTrieRoot_ = other.storageTrieRoot_;
onChanged();
}
if (!other.getExtData().isEmpty()) {
extData_ = other.extData_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getRetCode() != 0) {
setRetCode(other.getRetCode());
}
if (!other.getRetMsg().isEmpty()) {
retMsg_ = other.retMsg_;
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 {
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.AccountInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 1;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 1;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 1;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int version_ ;
/**
* int32 version = 3;
*/
public int getVersion() {
return version_;
}
/**
* int32 version = 3;
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 3;
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private int nonce_ ;
/**
* int32 nonce = 4;
*/
public int getNonce() {
return nonce_;
}
/**
* int32 nonce = 4;
*/
public Builder setNonce(int value) {
nonce_ = value;
onChanged();
return this;
}
/**
* int32 nonce = 4;
*/
public Builder clearNonce() {
nonce_ = 0;
onChanged();
return this;
}
private java.lang.Object balance_ = "";
/**
* string balance = 5;
*/
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
balance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string balance = 5;
*/
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string balance = 5;
*/
public Builder setBalance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
return this;
}
/**
* string balance = 5;
*/
public Builder clearBalance() {
balance_ = getDefaultInstance().getBalance();
onChanged();
return this;
}
/**
* string balance = 5;
*/
public Builder setBalanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
balance_ = value;
onChanged();
return this;
}
private int status_ ;
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
public int getStatus() {
return status_;
}
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
public Builder setStatus(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object storageTrieRoot_ = "";
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public java.lang.String getStorageTrieRoot() {
java.lang.Object ref = storageTrieRoot_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storageTrieRoot_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public com.google.protobuf.ByteString
getStorageTrieRootBytes() {
java.lang.Object ref = storageTrieRoot_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageTrieRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public Builder setStorageTrieRoot(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storageTrieRoot_ = value;
onChanged();
return this;
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public Builder clearStorageTrieRoot() {
storageTrieRoot_ = getDefaultInstance().getStorageTrieRoot();
onChanged();
return this;
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* string storage_trie_root = 7;
*/
public Builder setStorageTrieRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storageTrieRoot_ = value;
onChanged();
return this;
}
private java.lang.Object extData_ = "";
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public Builder setExtData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
onChanged();
return this;
}
/**
*
*扩展信息
*
*
* string ext_data = 8;
*/
public Builder setExtDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
extData_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public int getTypeValue() {
return type_;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType getType() {
@SuppressWarnings("deprecation")
com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType result = com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.valueOf(type_);
return result == null ? com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType.UNRECOGNIZED : result;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public Builder setType(com.brewchain.sdk.model.impl.AccountImpl.AccountInfo.AccountType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.impl.AccountInfo.AccountType type = 9;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int retCode_ ;
/**
*
*repeated string union_coaddress = 7;
*string max = 3;
*repeated AccountTokenValue tokens = 7;
*repeated AccountCryptoValue cryptos = 8;
*string storage = 9;
*string codeHash = 10;
*string code = 11;
*string data = 12;
*int64 accumulatedTimestamp = 13;
*string accumulated = 14;
*string acceptMax = 4;
*int32 acceptLimit = 5;
*
*
* int32 retCode = 11;
*/
public int getRetCode() {
return retCode_;
}
/**
*
*repeated string union_coaddress = 7;
*string max = 3;
*repeated AccountTokenValue tokens = 7;
*repeated AccountCryptoValue cryptos = 8;
*string storage = 9;
*string codeHash = 10;
*string code = 11;
*string data = 12;
*int64 accumulatedTimestamp = 13;
*string accumulated = 14;
*string acceptMax = 4;
*int32 acceptLimit = 5;
*
*
* int32 retCode = 11;
*/
public Builder setRetCode(int value) {
retCode_ = value;
onChanged();
return this;
}
/**
*
*repeated string union_coaddress = 7;
*string max = 3;
*repeated AccountTokenValue tokens = 7;
*repeated AccountCryptoValue cryptos = 8;
*string storage = 9;
*string codeHash = 10;
*string code = 11;
*string data = 12;
*int64 accumulatedTimestamp = 13;
*string accumulated = 14;
*string acceptMax = 4;
*int32 acceptLimit = 5;
*
*
* int32 retCode = 11;
*/
public Builder clearRetCode() {
retCode_ = 0;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* string retMsg = 12;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
retMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string retMsg = 12;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string retMsg = 12;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
retMsg_ = value;
onChanged();
return this;
}
/**
* string retMsg = 12;
*/
public Builder clearRetMsg() {
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* string retMsg = 12;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
retMsg_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.AccountInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.AccountInfo)
private static final com.brewchain.sdk.model.impl.AccountImpl.AccountInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.AccountInfo();
}
public static com.brewchain.sdk.model.impl.AccountImpl.AccountInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccountInfo(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 com.brewchain.sdk.model.impl.AccountImpl.AccountInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnionAccountOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.UnionAccount)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string union_coaddress = 1;
*/
java.util.List
getUnionCoaddressList();
/**
* repeated string union_coaddress = 1;
*/
int getUnionCoaddressCount();
/**
* repeated string union_coaddress = 1;
*/
java.lang.String getUnionCoaddress(int index);
/**
* repeated string union_coaddress = 1;
*/
com.google.protobuf.ByteString
getUnionCoaddressBytes(int index);
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.UnionAccount}
*/
public static final class UnionAccount extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.UnionAccount)
UnionAccountOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnionAccount.newBuilder() to construct.
private UnionAccount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnionAccount() {
unionCoaddress_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UnionAccount(
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) == 0x00000001)) {
unionCoaddress_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
unionCoaddress_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
unionCoaddress_ = unionCoaddress_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_UnionAccount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.class, com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.Builder.class);
}
public static final int UNION_COADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList unionCoaddress_;
/**
* repeated string union_coaddress = 1;
*/
public com.google.protobuf.ProtocolStringList
getUnionCoaddressList() {
return unionCoaddress_;
}
/**
* repeated string union_coaddress = 1;
*/
public int getUnionCoaddressCount() {
return unionCoaddress_.size();
}
/**
* repeated string union_coaddress = 1;
*/
public java.lang.String getUnionCoaddress(int index) {
return unionCoaddress_.get(index);
}
/**
* repeated string union_coaddress = 1;
*/
public com.google.protobuf.ByteString
getUnionCoaddressBytes(int index) {
return unionCoaddress_.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 < unionCoaddress_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unionCoaddress_.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 < unionCoaddress_.size(); i++) {
dataSize += computeStringSizeNoTag(unionCoaddress_.getRaw(i));
}
size += dataSize;
size += 1 * getUnionCoaddressList().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 com.brewchain.sdk.model.impl.AccountImpl.UnionAccount)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount other = (com.brewchain.sdk.model.impl.AccountImpl.UnionAccount) obj;
boolean result = true;
result = result && getUnionCoaddressList()
.equals(other.getUnionCoaddressList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getUnionCoaddressCount() > 0) {
hash = (37 * hash) + UNION_COADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getUnionCoaddressList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount 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 com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount 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 com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount 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(com.brewchain.sdk.model.impl.AccountImpl.UnionAccount 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 com.brewchain.sdk.model.impl.UnionAccount}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.UnionAccount)
com.brewchain.sdk.model.impl.AccountImpl.UnionAccountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_UnionAccount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.class, com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.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();
unionCoaddress_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.UnionAccount getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.UnionAccount build() {
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.UnionAccount buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount result = new com.brewchain.sdk.model.impl.AccountImpl.UnionAccount(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
unionCoaddress_ = unionCoaddress_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.unionCoaddress_ = unionCoaddress_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.UnionAccount) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.UnionAccount)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.UnionAccount other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.UnionAccount.getDefaultInstance()) return this;
if (!other.unionCoaddress_.isEmpty()) {
if (unionCoaddress_.isEmpty()) {
unionCoaddress_ = other.unionCoaddress_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUnionCoaddressIsMutable();
unionCoaddress_.addAll(other.unionCoaddress_);
}
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 {
com.brewchain.sdk.model.impl.AccountImpl.UnionAccount parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.UnionAccount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList unionCoaddress_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUnionCoaddressIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
unionCoaddress_ = new com.google.protobuf.LazyStringArrayList(unionCoaddress_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string union_coaddress = 1;
*/
public com.google.protobuf.ProtocolStringList
getUnionCoaddressList() {
return unionCoaddress_.getUnmodifiableView();
}
/**
* repeated string union_coaddress = 1;
*/
public int getUnionCoaddressCount() {
return unionCoaddress_.size();
}
/**
* repeated string union_coaddress = 1;
*/
public java.lang.String getUnionCoaddress(int index) {
return unionCoaddress_.get(index);
}
/**
* repeated string union_coaddress = 1;
*/
public com.google.protobuf.ByteString
getUnionCoaddressBytes(int index) {
return unionCoaddress_.getByteString(index);
}
/**
* repeated string union_coaddress = 1;
*/
public Builder setUnionCoaddress(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnionCoaddressIsMutable();
unionCoaddress_.set(index, value);
onChanged();
return this;
}
/**
* repeated string union_coaddress = 1;
*/
public Builder addUnionCoaddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnionCoaddressIsMutable();
unionCoaddress_.add(value);
onChanged();
return this;
}
/**
* repeated string union_coaddress = 1;
*/
public Builder addAllUnionCoaddress(
java.lang.Iterable values) {
ensureUnionCoaddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unionCoaddress_);
onChanged();
return this;
}
/**
* repeated string union_coaddress = 1;
*/
public Builder clearUnionCoaddress() {
unionCoaddress_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string union_coaddress = 1;
*/
public Builder addUnionCoaddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUnionCoaddressIsMutable();
unionCoaddress_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.UnionAccount)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.UnionAccount)
private static final com.brewchain.sdk.model.impl.AccountImpl.UnionAccount DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.UnionAccount();
}
public static com.brewchain.sdk.model.impl.AccountImpl.UnionAccount getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnionAccount parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UnionAccount(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 com.brewchain.sdk.model.impl.AccountImpl.UnionAccount getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenPrintInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.TokenPrintInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string symbol = 1;
*/
java.lang.String getSymbol();
/**
* string symbol = 1;
*/
com.google.protobuf.ByteString
getSymbolBytes();
/**
* string address = 2;
*/
java.lang.String getAddress();
/**
* string address = 2;
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* int64 timestamp = 3;
*/
long getTimestamp();
/**
* string total_supply = 4;
*/
java.lang.String getTotalSupply();
/**
* string total_supply = 4;
*/
com.google.protobuf.ByteString
getTotalSupplyBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.TokenPrintInfo}
*/
public static final class TokenPrintInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.TokenPrintInfo)
TokenPrintInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenPrintInfo.newBuilder() to construct.
private TokenPrintInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenPrintInfo() {
symbol_ = "";
address_ = "";
timestamp_ = 0L;
totalSupply_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TokenPrintInfo(
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();
symbol_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 24: {
timestamp_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
totalSupply_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.class, com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.Builder.class);
}
public static final int SYMBOL_FIELD_NUMBER = 1;
private volatile java.lang.Object symbol_;
/**
* string symbol = 1;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
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();
symbol_ = s;
return s;
}
}
/**
* string symbol = 1;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object address_;
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int TOTAL_SUPPLY_FIELD_NUMBER = 4;
private volatile java.lang.Object totalSupply_;
/**
* string total_supply = 4;
*/
public java.lang.String getTotalSupply() {
java.lang.Object ref = totalSupply_;
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();
totalSupply_ = s;
return s;
}
}
/**
* string total_supply = 4;
*/
public com.google.protobuf.ByteString
getTotalSupplyBytes() {
java.lang.Object ref = totalSupply_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalSupply_ = 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 (!getSymbolBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, symbol_);
}
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_);
}
if (timestamp_ != 0L) {
output.writeInt64(3, timestamp_);
}
if (!getTotalSupplyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, totalSupply_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSymbolBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, symbol_);
}
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (!getTotalSupplyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, totalSupply_);
}
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 com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo other = (com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo) obj;
boolean result = true;
result = result && getSymbol()
.equals(other.getSymbol());
result = result && getAddress()
.equals(other.getAddress());
result = result && (getTimestamp()
== other.getTimestamp());
result = result && getTotalSupply()
.equals(other.getTotalSupply());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + TOTAL_SUPPLY_FIELD_NUMBER;
hash = (53 * hash) + getTotalSupply().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo 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 com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo 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 com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo 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(com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo 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 com.brewchain.sdk.model.impl.TokenPrintInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.TokenPrintInfo)
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.class, com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.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();
symbol_ = "";
address_ = "";
timestamp_ = 0L;
totalSupply_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo build() {
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo result = new com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo(this);
result.symbol_ = symbol_;
result.address_ = address_;
result.timestamp_ = timestamp_;
result.totalSupply_ = totalSupply_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo.getDefaultInstance()) return this;
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (!other.getTotalSupply().isEmpty()) {
totalSupply_ = other.totalSupply_;
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 {
com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object symbol_ = "";
/**
* string symbol = 1;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string symbol = 1;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string symbol = 1;
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
* string symbol = 1;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
* string symbol = 1;
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symbol_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 2;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 3;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 3;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private java.lang.Object totalSupply_ = "";
/**
* string total_supply = 4;
*/
public java.lang.String getTotalSupply() {
java.lang.Object ref = totalSupply_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
totalSupply_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string total_supply = 4;
*/
public com.google.protobuf.ByteString
getTotalSupplyBytes() {
java.lang.Object ref = totalSupply_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
totalSupply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string total_supply = 4;
*/
public Builder setTotalSupply(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
totalSupply_ = value;
onChanged();
return this;
}
/**
* string total_supply = 4;
*/
public Builder clearTotalSupply() {
totalSupply_ = getDefaultInstance().getTotalSupply();
onChanged();
return this;
}
/**
* string total_supply = 4;
*/
public Builder setTotalSupplyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
totalSupply_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.TokenPrintInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.TokenPrintInfo)
private static final com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo();
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenPrintInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenPrintInfo(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 com.brewchain.sdk.model.impl.AccountImpl.TokenPrintInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.TokenValue)
com.google.protobuf.MessageOrBuilder {
/**
* string balance = 1;
*/
java.lang.String getBalance();
/**
* string balance = 1;
*/
com.google.protobuf.ByteString
getBalanceBytes();
/**
* string locked = 2;
*/
java.lang.String getLocked();
/**
* string locked = 2;
*/
com.google.protobuf.ByteString
getLockedBytes();
/**
* string ext_data = 3;
*/
java.lang.String getExtData();
/**
* string ext_data = 3;
*/
com.google.protobuf.ByteString
getExtDataBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.TokenValue}
*/
public static final class TokenValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.TokenValue)
TokenValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenValue.newBuilder() to construct.
private TokenValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenValue() {
balance_ = "";
locked_ = "";
extData_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TokenValue(
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();
balance_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
locked_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
extData_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.TokenValue.class, com.brewchain.sdk.model.impl.AccountImpl.TokenValue.Builder.class);
}
public static final int BALANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object balance_;
/**
* string balance = 1;
*/
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
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();
balance_ = s;
return s;
}
}
/**
* string balance = 1;
*/
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCKED_FIELD_NUMBER = 2;
private volatile java.lang.Object locked_;
/**
* string locked = 2;
*/
public java.lang.String getLocked() {
java.lang.Object ref = locked_;
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();
locked_ = s;
return s;
}
}
/**
* string locked = 2;
*/
public com.google.protobuf.ByteString
getLockedBytes() {
java.lang.Object ref = locked_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locked_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXT_DATA_FIELD_NUMBER = 3;
private volatile java.lang.Object extData_;
/**
* string ext_data = 3;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
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();
extData_ = s;
return s;
}
}
/**
* string ext_data = 3;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = 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 (!getBalanceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, balance_);
}
if (!getLockedBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, locked_);
}
if (!getExtDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getBalanceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, balance_);
}
if (!getLockedBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locked_);
}
if (!getExtDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, extData_);
}
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 com.brewchain.sdk.model.impl.AccountImpl.TokenValue)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.TokenValue other = (com.brewchain.sdk.model.impl.AccountImpl.TokenValue) obj;
boolean result = true;
result = result && getBalance()
.equals(other.getBalance());
result = result && getLocked()
.equals(other.getLocked());
result = result && getExtData()
.equals(other.getExtData());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BALANCE_FIELD_NUMBER;
hash = (53 * hash) + getBalance().hashCode();
hash = (37 * hash) + LOCKED_FIELD_NUMBER;
hash = (53 * hash) + getLocked().hashCode();
hash = (37 * hash) + EXT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getExtData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue 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 com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue 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 com.brewchain.sdk.model.impl.AccountImpl.TokenValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue 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(com.brewchain.sdk.model.impl.AccountImpl.TokenValue 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 com.brewchain.sdk.model.impl.TokenValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.TokenValue)
com.brewchain.sdk.model.impl.AccountImpl.TokenValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.TokenValue.class, com.brewchain.sdk.model.impl.AccountImpl.TokenValue.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.TokenValue.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();
balance_ = "";
locked_ = "";
extData_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenValue getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.TokenValue.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenValue build() {
com.brewchain.sdk.model.impl.AccountImpl.TokenValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.TokenValue buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.TokenValue result = new com.brewchain.sdk.model.impl.AccountImpl.TokenValue(this);
result.balance_ = balance_;
result.locked_ = locked_;
result.extData_ = extData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.TokenValue) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.TokenValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.TokenValue other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.TokenValue.getDefaultInstance()) return this;
if (!other.getBalance().isEmpty()) {
balance_ = other.balance_;
onChanged();
}
if (!other.getLocked().isEmpty()) {
locked_ = other.locked_;
onChanged();
}
if (!other.getExtData().isEmpty()) {
extData_ = other.extData_;
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 {
com.brewchain.sdk.model.impl.AccountImpl.TokenValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.TokenValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object balance_ = "";
/**
* string balance = 1;
*/
public java.lang.String getBalance() {
java.lang.Object ref = balance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
balance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string balance = 1;
*/
public com.google.protobuf.ByteString
getBalanceBytes() {
java.lang.Object ref = balance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
balance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string balance = 1;
*/
public Builder setBalance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
return this;
}
/**
* string balance = 1;
*/
public Builder clearBalance() {
balance_ = getDefaultInstance().getBalance();
onChanged();
return this;
}
/**
* string balance = 1;
*/
public Builder setBalanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
balance_ = value;
onChanged();
return this;
}
private java.lang.Object locked_ = "";
/**
* string locked = 2;
*/
public java.lang.String getLocked() {
java.lang.Object ref = locked_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locked_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string locked = 2;
*/
public com.google.protobuf.ByteString
getLockedBytes() {
java.lang.Object ref = locked_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locked_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string locked = 2;
*/
public Builder setLocked(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
locked_ = value;
onChanged();
return this;
}
/**
* string locked = 2;
*/
public Builder clearLocked() {
locked_ = getDefaultInstance().getLocked();
onChanged();
return this;
}
/**
* string locked = 2;
*/
public Builder setLockedBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
locked_ = value;
onChanged();
return this;
}
private java.lang.Object extData_ = "";
/**
* string ext_data = 3;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ext_data = 3;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ext_data = 3;
*/
public Builder setExtData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
* string ext_data = 3;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
onChanged();
return this;
}
/**
* string ext_data = 3;
*/
public Builder setExtDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
extData_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.TokenValue)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.TokenValue)
private static final com.brewchain.sdk.model.impl.AccountImpl.TokenValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.TokenValue();
}
public static com.brewchain.sdk.model.impl.AccountImpl.TokenValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenValue(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 com.brewchain.sdk.model.impl.AccountImpl.TokenValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CryptoValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.CryptoValue)
com.google.protobuf.MessageOrBuilder {
/**
* string token_hash = 1;
*/
java.lang.String getTokenHash();
/**
* string token_hash = 1;
*/
com.google.protobuf.ByteString
getTokenHashBytes();
/**
* string symbol = 2;
*/
java.lang.String getSymbol();
/**
* string symbol = 2;
*/
com.google.protobuf.ByteString
getSymbolBytes();
/**
* int32 count = 3;
*/
int getCount();
/**
* string cryptos = 4;
*/
java.lang.String getCryptos();
/**
* string cryptos = 4;
*/
com.google.protobuf.ByteString
getCryptosBytes();
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
long getOwnertime();
/**
* string owner = 6;
*/
java.lang.String getOwner();
/**
* string owner = 6;
*/
com.google.protobuf.ByteString
getOwnerBytes();
/**
* string lastowner = 7;
*/
java.lang.String getLastowner();
/**
* string lastowner = 7;
*/
com.google.protobuf.ByteString
getLastownerBytes();
/**
*
*
*
*
* int64 timestamp = 8;
*/
long getTimestamp();
/**
* int32 nonce = 9;
*/
int getNonce();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.CryptoValue}
*/
public static final class CryptoValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.CryptoValue)
CryptoValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoValue.newBuilder() to construct.
private CryptoValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoValue() {
tokenHash_ = "";
symbol_ = "";
count_ = 0;
cryptos_ = "";
ownertime_ = 0L;
owner_ = "";
lastowner_ = "";
timestamp_ = 0L;
nonce_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CryptoValue(
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();
tokenHash_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
symbol_ = s;
break;
}
case 24: {
count_ = input.readInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
cryptos_ = s;
break;
}
case 40: {
ownertime_ = input.readInt64();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
owner_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
lastowner_ = s;
break;
}
case 64: {
timestamp_ = input.readInt64();
break;
}
case 72: {
nonce_ = input.readInt32();
break;
}
default: {
if (!parseUnknownFieldProto3(
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 com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.class, com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.Builder.class);
}
public static final int TOKEN_HASH_FIELD_NUMBER = 1;
private volatile java.lang.Object tokenHash_;
/**
* string token_hash = 1;
*/
public java.lang.String getTokenHash() {
java.lang.Object ref = tokenHash_;
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();
tokenHash_ = s;
return s;
}
}
/**
* string token_hash = 1;
*/
public com.google.protobuf.ByteString
getTokenHashBytes() {
java.lang.Object ref = tokenHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tokenHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYMBOL_FIELD_NUMBER = 2;
private volatile java.lang.Object symbol_;
/**
* string symbol = 2;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
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();
symbol_ = s;
return s;
}
}
/**
* string symbol = 2;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 3;
private int count_;
/**
* int32 count = 3;
*/
public int getCount() {
return count_;
}
public static final int CRYPTOS_FIELD_NUMBER = 4;
private volatile java.lang.Object cryptos_;
/**
* string cryptos = 4;
*/
public java.lang.String getCryptos() {
java.lang.Object ref = cryptos_;
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();
cryptos_ = s;
return s;
}
}
/**
* string cryptos = 4;
*/
public com.google.protobuf.ByteString
getCryptosBytes() {
java.lang.Object ref = cryptos_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cryptos_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OWNERTIME_FIELD_NUMBER = 5;
private long ownertime_;
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
public long getOwnertime() {
return ownertime_;
}
public static final int OWNER_FIELD_NUMBER = 6;
private volatile java.lang.Object owner_;
/**
* string owner = 6;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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();
owner_ = s;
return s;
}
}
/**
* string owner = 6;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LASTOWNER_FIELD_NUMBER = 7;
private volatile java.lang.Object lastowner_;
/**
* string lastowner = 7;
*/
public java.lang.String getLastowner() {
java.lang.Object ref = lastowner_;
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();
lastowner_ = s;
return s;
}
}
/**
* string lastowner = 7;
*/
public com.google.protobuf.ByteString
getLastownerBytes() {
java.lang.Object ref = lastowner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastowner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 8;
private long timestamp_;
/**
*
*
*
*
* int64 timestamp = 8;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int NONCE_FIELD_NUMBER = 9;
private int nonce_;
/**
* int32 nonce = 9;
*/
public int getNonce() {
return nonce_;
}
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 (!getTokenHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tokenHash_);
}
if (!getSymbolBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, symbol_);
}
if (count_ != 0) {
output.writeInt32(3, count_);
}
if (!getCryptosBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cryptos_);
}
if (ownertime_ != 0L) {
output.writeInt64(5, ownertime_);
}
if (!getOwnerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, owner_);
}
if (!getLastownerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, lastowner_);
}
if (timestamp_ != 0L) {
output.writeInt64(8, timestamp_);
}
if (nonce_ != 0) {
output.writeInt32(9, nonce_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTokenHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tokenHash_);
}
if (!getSymbolBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, symbol_);
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, count_);
}
if (!getCryptosBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cryptos_);
}
if (ownertime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, ownertime_);
}
if (!getOwnerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, owner_);
}
if (!getLastownerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, lastowner_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, timestamp_);
}
if (nonce_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, nonce_);
}
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 com.brewchain.sdk.model.impl.AccountImpl.CryptoValue)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue other = (com.brewchain.sdk.model.impl.AccountImpl.CryptoValue) obj;
boolean result = true;
result = result && getTokenHash()
.equals(other.getTokenHash());
result = result && getSymbol()
.equals(other.getSymbol());
result = result && (getCount()
== other.getCount());
result = result && getCryptos()
.equals(other.getCryptos());
result = result && (getOwnertime()
== other.getOwnertime());
result = result && getOwner()
.equals(other.getOwner());
result = result && getLastowner()
.equals(other.getLastowner());
result = result && (getTimestamp()
== other.getTimestamp());
result = result && (getNonce()
== other.getNonce());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TOKEN_HASH_FIELD_NUMBER;
hash = (53 * hash) + getTokenHash().hashCode();
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (37 * hash) + CRYPTOS_FIELD_NUMBER;
hash = (53 * hash) + getCryptos().hashCode();
hash = (37 * hash) + OWNERTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOwnertime());
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
hash = (37 * hash) + LASTOWNER_FIELD_NUMBER;
hash = (53 * hash) + getLastowner().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue 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 com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue 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 com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue 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(com.brewchain.sdk.model.impl.AccountImpl.CryptoValue 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 com.brewchain.sdk.model.impl.CryptoValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.CryptoValue)
com.brewchain.sdk.model.impl.AccountImpl.CryptoValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.class, com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.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();
tokenHash_ = "";
symbol_ = "";
count_ = 0;
cryptos_ = "";
ownertime_ = 0L;
owner_ = "";
lastowner_ = "";
timestamp_ = 0L;
nonce_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoValue getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoValue build() {
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoValue buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue result = new com.brewchain.sdk.model.impl.AccountImpl.CryptoValue(this);
result.tokenHash_ = tokenHash_;
result.symbol_ = symbol_;
result.count_ = count_;
result.cryptos_ = cryptos_;
result.ownertime_ = ownertime_;
result.owner_ = owner_;
result.lastowner_ = lastowner_;
result.timestamp_ = timestamp_;
result.nonce_ = nonce_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.CryptoValue) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.CryptoValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.CryptoValue other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.CryptoValue.getDefaultInstance()) return this;
if (!other.getTokenHash().isEmpty()) {
tokenHash_ = other.tokenHash_;
onChanged();
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
onChanged();
}
if (other.getCount() != 0) {
setCount(other.getCount());
}
if (!other.getCryptos().isEmpty()) {
cryptos_ = other.cryptos_;
onChanged();
}
if (other.getOwnertime() != 0L) {
setOwnertime(other.getOwnertime());
}
if (!other.getOwner().isEmpty()) {
owner_ = other.owner_;
onChanged();
}
if (!other.getLastowner().isEmpty()) {
lastowner_ = other.lastowner_;
onChanged();
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getNonce() != 0) {
setNonce(other.getNonce());
}
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 {
com.brewchain.sdk.model.impl.AccountImpl.CryptoValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.CryptoValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object tokenHash_ = "";
/**
* string token_hash = 1;
*/
public java.lang.String getTokenHash() {
java.lang.Object ref = tokenHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tokenHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string token_hash = 1;
*/
public com.google.protobuf.ByteString
getTokenHashBytes() {
java.lang.Object ref = tokenHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tokenHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string token_hash = 1;
*/
public Builder setTokenHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tokenHash_ = value;
onChanged();
return this;
}
/**
* string token_hash = 1;
*/
public Builder clearTokenHash() {
tokenHash_ = getDefaultInstance().getTokenHash();
onChanged();
return this;
}
/**
* string token_hash = 1;
*/
public Builder setTokenHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tokenHash_ = value;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
* string symbol = 2;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string symbol = 2;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string symbol = 2;
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
* string symbol = 2;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
* string symbol = 2;
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symbol_ = value;
onChanged();
return this;
}
private int count_ ;
/**
* int32 count = 3;
*/
public int getCount() {
return count_;
}
/**
* int32 count = 3;
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* int32 count = 3;
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private java.lang.Object cryptos_ = "";
/**
* string cryptos = 4;
*/
public java.lang.String getCryptos() {
java.lang.Object ref = cryptos_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cryptos_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cryptos = 4;
*/
public com.google.protobuf.ByteString
getCryptosBytes() {
java.lang.Object ref = cryptos_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cryptos_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cryptos = 4;
*/
public Builder setCryptos(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cryptos_ = value;
onChanged();
return this;
}
/**
* string cryptos = 4;
*/
public Builder clearCryptos() {
cryptos_ = getDefaultInstance().getCryptos();
onChanged();
return this;
}
/**
* string cryptos = 4;
*/
public Builder setCryptosBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cryptos_ = value;
onChanged();
return this;
}
private long ownertime_ ;
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
public long getOwnertime() {
return ownertime_;
}
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
public Builder setOwnertime(long value) {
ownertime_ = value;
onChanged();
return this;
}
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
public Builder clearOwnertime() {
ownertime_ = 0L;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
* string owner = 6;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string owner = 6;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string owner = 6;
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
onChanged();
return this;
}
/**
* string owner = 6;
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* string owner = 6;
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
owner_ = value;
onChanged();
return this;
}
private java.lang.Object lastowner_ = "";
/**
* string lastowner = 7;
*/
public java.lang.String getLastowner() {
java.lang.Object ref = lastowner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lastowner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string lastowner = 7;
*/
public com.google.protobuf.ByteString
getLastownerBytes() {
java.lang.Object ref = lastowner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastowner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string lastowner = 7;
*/
public Builder setLastowner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
lastowner_ = value;
onChanged();
return this;
}
/**
* string lastowner = 7;
*/
public Builder clearLastowner() {
lastowner_ = getDefaultInstance().getLastowner();
onChanged();
return this;
}
/**
* string lastowner = 7;
*/
public Builder setLastownerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lastowner_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
*
*
*
*
* int64 timestamp = 8;
*/
public long getTimestamp() {
return timestamp_;
}
/**
*
*
*
*
* int64 timestamp = 8;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
*
*
*
* int64 timestamp = 8;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private int nonce_ ;
/**
* int32 nonce = 9;
*/
public int getNonce() {
return nonce_;
}
/**
* int32 nonce = 9;
*/
public Builder setNonce(int value) {
nonce_ = value;
onChanged();
return this;
}
/**
* int32 nonce = 9;
*/
public Builder clearNonce() {
nonce_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.CryptoValue)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.CryptoValue)
private static final com.brewchain.sdk.model.impl.AccountImpl.CryptoValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.CryptoValue();
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CryptoValue(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 com.brewchain.sdk.model.impl.AccountImpl.CryptoValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CryptoTokenPrintInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.impl.CryptoTokenPrintInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Token的hash
*
*
* string hash = 1;
*/
java.lang.String getHash();
/**
*
* Token的hash
*
*
* string hash = 1;
*/
com.google.protobuf.ByteString
getHashBytes();
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
long getTimestamp();
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
long getIndex();
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
long getTotal();
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
java.lang.String getSymbol();
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
com.google.protobuf.ByteString
getSymbolBytes();
/**
*
* Token的名称
*
*
* string name = 6;
*/
java.lang.String getName();
/**
*
* Token的名称
*
*
* string name = 6;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
java.lang.String getOwner();
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
com.google.protobuf.ByteString
getOwnerBytes();
/**
*
*数据信息
*
*
* string data = 8;
*/
java.lang.String getData();
/**
*
*数据信息
*
*
* string data = 8;
*/
com.google.protobuf.ByteString
getDataBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.impl.CryptoTokenPrintInfo}
*/
public static final class CryptoTokenPrintInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.impl.CryptoTokenPrintInfo)
CryptoTokenPrintInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoTokenPrintInfo.newBuilder() to construct.
private CryptoTokenPrintInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoTokenPrintInfo() {
hash_ = "";
timestamp_ = 0L;
index_ = 0L;
total_ = 0L;
symbol_ = "";
name_ = "";
owner_ = "";
data_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CryptoTokenPrintInfo(
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();
hash_ = s;
break;
}
case 16: {
timestamp_ = input.readInt64();
break;
}
case 24: {
index_ = input.readInt64();
break;
}
case 32: {
total_ = input.readInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
symbol_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
owner_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
data_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.class, com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private volatile java.lang.Object hash_;
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
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();
hash_ = s;
return s;
}
}
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int INDEX_FIELD_NUMBER = 3;
private long index_;
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
public long getIndex() {
return index_;
}
public static final int TOTAL_FIELD_NUMBER = 4;
private long total_;
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
public long getTotal() {
return total_;
}
public static final int SYMBOL_FIELD_NUMBER = 5;
private volatile java.lang.Object symbol_;
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
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();
symbol_ = s;
return s;
}
}
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object name_;
/**
*
* Token的名称
*
*
* string name = 6;
*/
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;
}
}
/**
*
* Token的名称
*
*
* string name = 6;
*/
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 OWNER_FIELD_NUMBER = 7;
private volatile java.lang.Object owner_;
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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();
owner_ = s;
return s;
}
}
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 8;
private volatile java.lang.Object data_;
/**
*
*数据信息
*
*
* string data = 8;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
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();
data_ = s;
return s;
}
}
/**
*
*数据信息
*
*
* string data = 8;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = 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 (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
if (timestamp_ != 0L) {
output.writeInt64(2, timestamp_);
}
if (index_ != 0L) {
output.writeInt64(3, index_);
}
if (total_ != 0L) {
output.writeInt64(4, total_);
}
if (!getSymbolBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, symbol_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
}
if (!getOwnerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, owner_);
}
if (!getDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, timestamp_);
}
if (index_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, index_);
}
if (total_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, total_);
}
if (!getSymbolBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, symbol_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_);
}
if (!getOwnerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, owner_);
}
if (!getDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, data_);
}
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 com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo other = (com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo) obj;
boolean result = true;
result = result && getHash()
.equals(other.getHash());
result = result && (getTimestamp()
== other.getTimestamp());
result = result && (getIndex()
== other.getIndex());
result = result && (getTotal()
== other.getTotal());
result = result && getSymbol()
.equals(other.getSymbol());
result = result && getName()
.equals(other.getName());
result = result && getOwner()
.equals(other.getOwner());
result = result && getData()
.equals(other.getData());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndex());
hash = (37 * hash) + TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotal());
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo 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 com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo 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 com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo 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(com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo 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 com.brewchain.sdk.model.impl.CryptoTokenPrintInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.impl.CryptoTokenPrintInfo)
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.class, com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.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_ = "";
timestamp_ = 0L;
index_ = 0L;
total_ = 0L;
symbol_ = "";
name_ = "";
owner_ = "";
data_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.impl.AccountImpl.internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo build() {
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo buildPartial() {
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo result = new com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo(this);
result.hash_ = hash_;
result.timestamp_ = timestamp_;
result.index_ = index_;
result.total_ = total_;
result.symbol_ = symbol_;
result.name_ = name_;
result.owner_ = owner_;
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo) {
return mergeFrom((com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo other) {
if (other == com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
if (other.getTotal() != 0L) {
setTotal(other.getTotal());
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getOwner().isEmpty()) {
owner_ = other.owner_;
onChanged();
}
if (!other.getData().isEmpty()) {
data_ = other.data_;
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 {
com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hash_ = "";
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
*
* Token的hash
*
*
* string hash = 1;
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
public long getTimestamp() {
return timestamp_;
}
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private long index_ ;
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
public long getIndex() {
return index_;
}
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
public Builder setIndex(long value) {
index_ = value;
onChanged();
return this;
}
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
public Builder clearIndex() {
index_ = 0L;
onChanged();
return this;
}
private long total_ ;
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
public long getTotal() {
return total_;
}
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
public Builder setTotal(long value) {
total_ = value;
onChanged();
return this;
}
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
public Builder clearTotal() {
total_ = 0L;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
*
* Token的编号
*
*
* string symbol = 5;
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symbol_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Token的名称
*
*
* string name = 6;
*/
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;
}
}
/**
*
* Token的名称
*
*
* string name = 6;
*/
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;
}
}
/**
*
* Token的名称
*
*
* string name = 6;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Token的名称
*
*
* string name = 6;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Token的名称
*
*
* string name = 6;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
onChanged();
return this;
}
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
*
* 所有人的账户地址
*
*
* string owner = 7;
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
owner_ = value;
onChanged();
return this;
}
private java.lang.Object data_ = "";
/**
*
*数据信息
*
*
* string data = 8;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*数据信息
*
*
* string data = 8;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*数据信息
*
*
* string data = 8;
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
*数据信息
*
*
* string data = 8;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
*
*数据信息
*
*
* string data = 8;
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
data_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.impl.CryptoTokenPrintInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.impl.CryptoTokenPrintInfo)
private static final com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo();
}
public static com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoTokenPrintInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CryptoTokenPrintInfo(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 com.brewchain.sdk.model.impl.AccountImpl.CryptoTokenPrintInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_AccountInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_UnionAccount_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_TokenValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_CryptoValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021accountImpl.proto\022\034com.brewchain.sdk.m" +
"odel.impl\"\211\003\n\013AccountInfo\022\017\n\007address\030\001 \001" +
"(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007version\030\003 \001(\005\022\r\n\005non" +
"ce\030\004 \001(\005\022\017\n\007balance\030\005 \001(\t\022\016\n\006status\030\006 \001(" +
"\005\022\031\n\021storage_trie_root\030\007 \001(\t\022\020\n\010ext_data" +
"\030\010 \001(\t\022C\n\004type\030\t \001(\01625.com.brewchain.sdk" +
".model.impl.AccountInfo.AccountType\022\017\n\007r" +
"etCode\030\013 \001(\005\022\016\n\006retMsg\030\014 \001(\t\"\206\001\n\013Account" +
"Type\022\n\n\006NORMAL\020\000\022\r\n\tMULI_SIGN\020\001\022\021\n\rRC20_" +
"CONTRACT\020\002\022\022\n\016RC721_CONTRACT\020\003\022\020\n\014CVM_CO" +
"NTRACT\020\004\022\021\n\rJSVM_CONTRACT\020\005\022\020\n\014UNIONACCO" +
"UNT\020\006\"\'\n\014UnionAccount\022\027\n\017union_coaddress" +
"\030\001 \003(\t\"Z\n\016TokenPrintInfo\022\016\n\006symbol\030\001 \001(\t" +
"\022\017\n\007address\030\002 \001(\t\022\021\n\ttimestamp\030\003 \001(\003\022\024\n\014" +
"total_supply\030\004 \001(\t\"?\n\nTokenValue\022\017\n\007bala" +
"nce\030\001 \001(\t\022\016\n\006locked\030\002 \001(\t\022\020\n\010ext_data\030\003 " +
"\001(\t\"\250\001\n\013CryptoValue\022\022\n\ntoken_hash\030\001 \001(\t\022" +
"\016\n\006symbol\030\002 \001(\t\022\r\n\005count\030\003 \001(\005\022\017\n\007crypto" +
"s\030\004 \001(\t\022\021\n\townertime\030\005 \001(\003\022\r\n\005owner\030\006 \001(" +
"\t\022\021\n\tlastowner\030\007 \001(\t\022\021\n\ttimestamp\030\010 \001(\003\022" +
"\r\n\005nonce\030\t \001(\005\"\220\001\n\024CryptoTokenPrintInfo\022" +
"\014\n\004hash\030\001 \001(\t\022\021\n\ttimestamp\030\002 \001(\003\022\r\n\005inde" +
"x\030\003 \001(\003\022\r\n\005total\030\004 \001(\003\022\016\n\006symbol\030\005 \001(\t\022\014" +
"\n\004name\030\006 \001(\t\022\r\n\005owner\030\007 \001(\t\022\014\n\004data\030\010 \001(" +
"\tb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_brewchain_sdk_model_impl_AccountInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_AccountInfo_descriptor,
new java.lang.String[] { "Address", "Name", "Version", "Nonce", "Balance", "Status", "StorageTrieRoot", "ExtData", "Type", "RetCode", "RetMsg", });
internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_brewchain_sdk_model_impl_UnionAccount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_UnionAccount_descriptor,
new java.lang.String[] { "UnionCoaddress", });
internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_TokenPrintInfo_descriptor,
new java.lang.String[] { "Symbol", "Address", "Timestamp", "TotalSupply", });
internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_brewchain_sdk_model_impl_TokenValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_TokenValue_descriptor,
new java.lang.String[] { "Balance", "Locked", "ExtData", });
internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_brewchain_sdk_model_impl_CryptoValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_CryptoValue_descriptor,
new java.lang.String[] { "TokenHash", "Symbol", "Count", "Cryptos", "Ownertime", "Owner", "Lastowner", "Timestamp", "Nonce", });
internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_impl_CryptoTokenPrintInfo_descriptor,
new java.lang.String[] { "Hash", "Timestamp", "Index", "Total", "Symbol", "Name", "Owner", "Data", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy