com.brewchain.sdk.model.Account Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cwvj Show documentation
Show all versions of cwvj Show documentation
Java sdk for Dapps interact with cwv blockchain node
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: account.proto
package com.brewchain.sdk.model;
public final class Account {
private Account() {}
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.AccountInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
*/
com.google.protobuf.ByteString getAddress();
/**
* bytes name = 2;
*/
com.google.protobuf.ByteString getName();
/**
* int32 version = 3;
*/
int getVersion();
/**
* int32 nonce = 4;
*/
int getNonce();
/**
* bytes balance = 5;
*/
com.google.protobuf.ByteString getBalance();
/**
*
*0:正常,-1:异常锁定黑名单
*
*
* int32 status = 6;
*/
int getStatus();
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* bytes storage_trie_root = 7;
*/
com.google.protobuf.ByteString getStorageTrieRoot();
/**
*
*扩展信息
*
*
* bytes ext_data = 8;
*/
com.google.protobuf.ByteString getExtData();
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.AccountInfo.AccountType type = 9;
*/
int getTypeValue();
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.AccountInfo.AccountType type = 9;
*/
com.brewchain.sdk.model.Account.AccountInfo.AccountType getType();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.AccountInfo}
*/
public static final class AccountInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = com.google.protobuf.ByteString.EMPTY;
name_ = com.google.protobuf.ByteString.EMPTY;
version_ = 0;
nonce_ = 0;
balance_ = com.google.protobuf.ByteString.EMPTY;
status_ = 0;
storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
}
@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: {
address_ = input.readBytes();
break;
}
case 18: {
name_ = input.readBytes();
break;
}
case 24: {
version_ = input.readInt32();
break;
}
case 32: {
nonce_ = input.readInt32();
break;
}
case 42: {
balance_ = input.readBytes();
break;
}
case 48: {
status_ = input.readInt32();
break;
}
case 58: {
storageTrieRoot_ = input.readBytes();
break;
}
case 66: {
extData_ = input.readBytes();
break;
}
case 72: {
int rawValue = input.readEnum();
type_ = rawValue;
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.Account.internal_static_com_brewchain_sdk_model_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.AccountInfo.class, com.brewchain.sdk.model.Account.AccountInfo.Builder.class);
}
/**
* Protobuf enum {@code com.brewchain.sdk.model.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.Account.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.AccountInfo.AccountType)
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int NAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString name_;
/**
* bytes name = 2;
*/
public com.google.protobuf.ByteString getName() {
return name_;
}
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 com.google.protobuf.ByteString balance_;
/**
* bytes balance = 5;
*/
public com.google.protobuf.ByteString getBalance() {
return balance_;
}
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 com.google.protobuf.ByteString storageTrieRoot_;
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* bytes storage_trie_root = 7;
*/
public com.google.protobuf.ByteString getStorageTrieRoot() {
return storageTrieRoot_;
}
public static final int EXT_DATA_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString extData_;
/**
*
*扩展信息
*
*
* bytes ext_data = 8;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
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.AccountInfo.AccountType type = 9;
*/
public int getTypeValue() {
return type_;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.AccountInfo.AccountType type = 9;
*/
public com.brewchain.sdk.model.Account.AccountInfo.AccountType getType() {
@SuppressWarnings("deprecation")
com.brewchain.sdk.model.Account.AccountInfo.AccountType result = com.brewchain.sdk.model.Account.AccountInfo.AccountType.valueOf(type_);
return result == null ? com.brewchain.sdk.model.Account.AccountInfo.AccountType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (!name_.isEmpty()) {
output.writeBytes(2, name_);
}
if (version_ != 0) {
output.writeInt32(3, version_);
}
if (nonce_ != 0) {
output.writeInt32(4, nonce_);
}
if (!balance_.isEmpty()) {
output.writeBytes(5, balance_);
}
if (status_ != 0) {
output.writeInt32(6, status_);
}
if (!storageTrieRoot_.isEmpty()) {
output.writeBytes(7, storageTrieRoot_);
}
if (!extData_.isEmpty()) {
output.writeBytes(8, extData_);
}
if (type_ != com.brewchain.sdk.model.Account.AccountInfo.AccountType.NORMAL.getNumber()) {
output.writeEnum(9, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (!name_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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 (!balance_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, balance_);
}
if (status_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, status_);
}
if (!storageTrieRoot_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, storageTrieRoot_);
}
if (!extData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, extData_);
}
if (type_ != com.brewchain.sdk.model.Account.AccountInfo.AccountType.NORMAL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, type_);
}
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.Account.AccountInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.AccountInfo other = (com.brewchain.sdk.model.Account.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 && 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Account.AccountInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.AccountInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.AccountInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.AccountInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.AccountInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.AccountInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.AccountInfo)
com.brewchain.sdk.model.Account.AccountInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.AccountInfo.class, com.brewchain.sdk.model.Account.AccountInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = com.google.protobuf.ByteString.EMPTY;
name_ = com.google.protobuf.ByteString.EMPTY;
version_ = 0;
nonce_ = 0;
balance_ = com.google.protobuf.ByteString.EMPTY;
status_ = 0;
storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_AccountInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.AccountInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.AccountInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.AccountInfo build() {
com.brewchain.sdk.model.Account.AccountInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.AccountInfo buildPartial() {
com.brewchain.sdk.model.Account.AccountInfo result = new com.brewchain.sdk.model.Account.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_;
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.Account.AccountInfo) {
return mergeFrom((com.brewchain.sdk.model.Account.AccountInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.AccountInfo other) {
if (other == com.brewchain.sdk.model.Account.AccountInfo.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getName() != com.google.protobuf.ByteString.EMPTY) {
setName(other.getName());
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getNonce() != 0) {
setNonce(other.getNonce());
}
if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) {
setBalance(other.getBalance());
}
if (other.getStatus() != 0) {
setStatus(other.getStatus());
}
if (other.getStorageTrieRoot() != com.google.protobuf.ByteString.EMPTY) {
setStorageTrieRoot(other.getStorageTrieRoot());
}
if (other.getExtData() != com.google.protobuf.ByteString.EMPTY) {
setExtData(other.getExtData());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
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.Account.AccountInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.AccountInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 1;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes name = 2;
*/
public com.google.protobuf.ByteString getName() {
return name_;
}
/**
* bytes name = 2;
*/
public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* bytes name = 2;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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 com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes balance = 5;
*/
public com.google.protobuf.ByteString getBalance() {
return balance_;
}
/**
* bytes balance = 5;
*/
public Builder setBalance(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
return this;
}
/**
* bytes balance = 5;
*/
public Builder clearBalance() {
balance_ = getDefaultInstance().getBalance();
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 com.google.protobuf.ByteString storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* bytes storage_trie_root = 7;
*/
public com.google.protobuf.ByteString getStorageTrieRoot() {
return storageTrieRoot_;
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* bytes storage_trie_root = 7;
*/
public Builder setStorageTrieRoot(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
storageTrieRoot_ = value;
onChanged();
return this;
}
/**
*
*trie_sub_addressess(token,crypto,code,0001(union_subaddrs),0000(storage))
*
*
* bytes storage_trie_root = 7;
*/
public Builder clearStorageTrieRoot() {
storageTrieRoot_ = getDefaultInstance().getStorageTrieRoot();
onChanged();
return this;
}
private com.google.protobuf.ByteString extData_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*扩展信息
*
*
* bytes ext_data = 8;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
/**
*
*扩展信息
*
*
* bytes ext_data = 8;
*/
public Builder setExtData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
*
*扩展信息
*
*
* bytes ext_data = 8;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
onChanged();
return this;
}
private int type_ = 0;
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.AccountInfo.AccountType type = 9;
*/
public int getTypeValue() {
return type_;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.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.AccountInfo.AccountType type = 9;
*/
public com.brewchain.sdk.model.Account.AccountInfo.AccountType getType() {
@SuppressWarnings("deprecation")
com.brewchain.sdk.model.Account.AccountInfo.AccountType result = com.brewchain.sdk.model.Account.AccountInfo.AccountType.valueOf(type_);
return result == null ? com.brewchain.sdk.model.Account.AccountInfo.AccountType.UNRECOGNIZED : result;
}
/**
*
*账户类型:0普通账户,1=多重签名账户,2=20合约账户,3=721合约账户,4=CVM合约,5=JSVM合约(可并行)
*
*
* .com.brewchain.sdk.model.AccountInfo.AccountType type = 9;
*/
public Builder setType(com.brewchain.sdk.model.Account.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.AccountInfo.AccountType type = 9;
*/
public Builder clearType() {
type_ = 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.AccountInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.AccountInfo)
private static final com.brewchain.sdk.model.Account.AccountInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.AccountInfo();
}
public static com.brewchain.sdk.model.Account.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.Account.AccountInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnionAccountOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.UnionAccount)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes union_coaddress = 1;
*/
java.util.List getUnionCoaddressList();
/**
* repeated bytes union_coaddress = 1;
*/
int getUnionCoaddressCount();
/**
* repeated bytes union_coaddress = 1;
*/
com.google.protobuf.ByteString getUnionCoaddress(int index);
}
/**
* Protobuf type {@code com.brewchain.sdk.model.UnionAccount}
*/
public static final class UnionAccount extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = java.util.Collections.emptyList();
}
@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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
unionCoaddress_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
unionCoaddress_.add(input.readBytes());
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_ = java.util.Collections.unmodifiableList(unionCoaddress_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_UnionAccount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_UnionAccount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.UnionAccount.class, com.brewchain.sdk.model.Account.UnionAccount.Builder.class);
}
public static final int UNION_COADDRESS_FIELD_NUMBER = 1;
private java.util.List unionCoaddress_;
/**
* repeated bytes union_coaddress = 1;
*/
public java.util.List
getUnionCoaddressList() {
return unionCoaddress_;
}
/**
* repeated bytes union_coaddress = 1;
*/
public int getUnionCoaddressCount() {
return unionCoaddress_.size();
}
/**
* repeated bytes union_coaddress = 1;
*/
public com.google.protobuf.ByteString getUnionCoaddress(int index) {
return unionCoaddress_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < unionCoaddress_.size(); i++) {
output.writeBytes(1, unionCoaddress_.get(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 += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(unionCoaddress_.get(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.Account.UnionAccount)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.UnionAccount other = (com.brewchain.sdk.model.Account.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.Account.UnionAccount parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.UnionAccount parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.UnionAccount parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.UnionAccount parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.UnionAccount parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.UnionAccount}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.UnionAccount)
com.brewchain.sdk.model.Account.UnionAccountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_UnionAccount_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_UnionAccount_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.UnionAccount.class, com.brewchain.sdk.model.Account.UnionAccount.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_UnionAccount_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.UnionAccount getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.UnionAccount.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.UnionAccount build() {
com.brewchain.sdk.model.Account.UnionAccount result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.UnionAccount buildPartial() {
com.brewchain.sdk.model.Account.UnionAccount result = new com.brewchain.sdk.model.Account.UnionAccount(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
unionCoaddress_ = java.util.Collections.unmodifiableList(unionCoaddress_);
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.Account.UnionAccount) {
return mergeFrom((com.brewchain.sdk.model.Account.UnionAccount)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.UnionAccount other) {
if (other == com.brewchain.sdk.model.Account.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.Account.UnionAccount parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.UnionAccount) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List unionCoaddress_ = java.util.Collections.emptyList();
private void ensureUnionCoaddressIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
unionCoaddress_ = new java.util.ArrayList(unionCoaddress_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes union_coaddress = 1;
*/
public java.util.List
getUnionCoaddressList() {
return java.util.Collections.unmodifiableList(unionCoaddress_);
}
/**
* repeated bytes union_coaddress = 1;
*/
public int getUnionCoaddressCount() {
return unionCoaddress_.size();
}
/**
* repeated bytes union_coaddress = 1;
*/
public com.google.protobuf.ByteString getUnionCoaddress(int index) {
return unionCoaddress_.get(index);
}
/**
* repeated bytes union_coaddress = 1;
*/
public Builder setUnionCoaddress(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnionCoaddressIsMutable();
unionCoaddress_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes union_coaddress = 1;
*/
public Builder addUnionCoaddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnionCoaddressIsMutable();
unionCoaddress_.add(value);
onChanged();
return this;
}
/**
* repeated bytes union_coaddress = 1;
*/
public Builder addAllUnionCoaddress(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureUnionCoaddressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unionCoaddress_);
onChanged();
return this;
}
/**
* repeated bytes union_coaddress = 1;
*/
public Builder clearUnionCoaddress() {
unionCoaddress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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.UnionAccount)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.UnionAccount)
private static final com.brewchain.sdk.model.Account.UnionAccount DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.UnionAccount();
}
public static com.brewchain.sdk.model.Account.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.Account.UnionAccount getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenPrintInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TokenPrintInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes symbol = 1;
*/
com.google.protobuf.ByteString getSymbol();
/**
* bytes address = 2;
*/
com.google.protobuf.ByteString getAddress();
/**
* int64 timestamp = 3;
*/
long getTimestamp();
/**
* bytes total_supply = 4;
*/
com.google.protobuf.ByteString getTotalSupply();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TokenPrintInfo}
*/
public static final class TokenPrintInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = com.google.protobuf.ByteString.EMPTY;
address_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
totalSupply_ = com.google.protobuf.ByteString.EMPTY;
}
@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: {
symbol_ = input.readBytes();
break;
}
case 18: {
address_ = input.readBytes();
break;
}
case 24: {
timestamp_ = input.readInt64();
break;
}
case 34: {
totalSupply_ = input.readBytes();
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.Account.internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.TokenPrintInfo.class, com.brewchain.sdk.model.Account.TokenPrintInfo.Builder.class);
}
public static final int SYMBOL_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString symbol_;
/**
* bytes symbol = 1;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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 com.google.protobuf.ByteString totalSupply_;
/**
* bytes total_supply = 4;
*/
public com.google.protobuf.ByteString getTotalSupply() {
return totalSupply_;
}
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 (!symbol_.isEmpty()) {
output.writeBytes(1, symbol_);
}
if (!address_.isEmpty()) {
output.writeBytes(2, address_);
}
if (timestamp_ != 0L) {
output.writeInt64(3, timestamp_);
}
if (!totalSupply_.isEmpty()) {
output.writeBytes(4, totalSupply_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!symbol_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, symbol_);
}
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, address_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (!totalSupply_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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.Account.TokenPrintInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.TokenPrintInfo other = (com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.TokenPrintInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TokenPrintInfo)
com.brewchain.sdk.model.Account.TokenPrintInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.TokenPrintInfo.class, com.brewchain.sdk.model.Account.TokenPrintInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = com.google.protobuf.ByteString.EMPTY;
address_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
totalSupply_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenPrintInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.TokenPrintInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenPrintInfo build() {
com.brewchain.sdk.model.Account.TokenPrintInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenPrintInfo buildPartial() {
com.brewchain.sdk.model.Account.TokenPrintInfo result = new com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo) {
return mergeFrom((com.brewchain.sdk.model.Account.TokenPrintInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.TokenPrintInfo other) {
if (other == com.brewchain.sdk.model.Account.TokenPrintInfo.getDefaultInstance()) return this;
if (other.getSymbol() != com.google.protobuf.ByteString.EMPTY) {
setSymbol(other.getSymbol());
}
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getTotalSupply() != com.google.protobuf.ByteString.EMPTY) {
setTotalSupply(other.getTotalSupply());
}
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.Account.TokenPrintInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.TokenPrintInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString symbol_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes symbol = 1;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
/**
* bytes symbol = 1;
*/
public Builder setSymbol(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
* bytes symbol = 1;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 2;
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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 com.google.protobuf.ByteString totalSupply_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes total_supply = 4;
*/
public com.google.protobuf.ByteString getTotalSupply() {
return totalSupply_;
}
/**
* bytes total_supply = 4;
*/
public Builder setTotalSupply(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
totalSupply_ = value;
onChanged();
return this;
}
/**
* bytes total_supply = 4;
*/
public Builder clearTotalSupply() {
totalSupply_ = getDefaultInstance().getTotalSupply();
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.TokenPrintInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TokenPrintInfo)
private static final com.brewchain.sdk.model.Account.TokenPrintInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.TokenPrintInfo();
}
public static com.brewchain.sdk.model.Account.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.Account.TokenPrintInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TokenValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TokenValue)
com.google.protobuf.MessageOrBuilder {
/**
* bytes balance = 1;
*/
com.google.protobuf.ByteString getBalance();
/**
* bytes locked = 2;
*/
com.google.protobuf.ByteString getLocked();
/**
* bytes ext_data = 3;
*/
com.google.protobuf.ByteString getExtData();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TokenValue}
*/
public static final class TokenValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = com.google.protobuf.ByteString.EMPTY;
locked_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
}
@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: {
balance_ = input.readBytes();
break;
}
case 18: {
locked_ = input.readBytes();
break;
}
case 26: {
extData_ = input.readBytes();
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.Account.internal_static_com_brewchain_sdk_model_TokenValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.TokenValue.class, com.brewchain.sdk.model.Account.TokenValue.Builder.class);
}
public static final int BALANCE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString balance_;
/**
* bytes balance = 1;
*/
public com.google.protobuf.ByteString getBalance() {
return balance_;
}
public static final int LOCKED_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString locked_;
/**
* bytes locked = 2;
*/
public com.google.protobuf.ByteString getLocked() {
return locked_;
}
public static final int EXT_DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString extData_;
/**
* bytes ext_data = 3;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
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 (!balance_.isEmpty()) {
output.writeBytes(1, balance_);
}
if (!locked_.isEmpty()) {
output.writeBytes(2, locked_);
}
if (!extData_.isEmpty()) {
output.writeBytes(3, extData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!balance_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, balance_);
}
if (!locked_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, locked_);
}
if (!extData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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.Account.TokenValue)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.TokenValue other = (com.brewchain.sdk.model.Account.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.Account.TokenValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.TokenValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.TokenValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TokenValue)
com.brewchain.sdk.model.Account.TokenValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.TokenValue.class, com.brewchain.sdk.model.Account.TokenValue.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = com.google.protobuf.ByteString.EMPTY;
locked_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_TokenValue_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenValue getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.TokenValue.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenValue build() {
com.brewchain.sdk.model.Account.TokenValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.TokenValue buildPartial() {
com.brewchain.sdk.model.Account.TokenValue result = new com.brewchain.sdk.model.Account.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.Account.TokenValue) {
return mergeFrom((com.brewchain.sdk.model.Account.TokenValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.TokenValue other) {
if (other == com.brewchain.sdk.model.Account.TokenValue.getDefaultInstance()) return this;
if (other.getBalance() != com.google.protobuf.ByteString.EMPTY) {
setBalance(other.getBalance());
}
if (other.getLocked() != com.google.protobuf.ByteString.EMPTY) {
setLocked(other.getLocked());
}
if (other.getExtData() != com.google.protobuf.ByteString.EMPTY) {
setExtData(other.getExtData());
}
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.Account.TokenValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.TokenValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString balance_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes balance = 1;
*/
public com.google.protobuf.ByteString getBalance() {
return balance_;
}
/**
* bytes balance = 1;
*/
public Builder setBalance(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
return this;
}
/**
* bytes balance = 1;
*/
public Builder clearBalance() {
balance_ = getDefaultInstance().getBalance();
onChanged();
return this;
}
private com.google.protobuf.ByteString locked_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes locked = 2;
*/
public com.google.protobuf.ByteString getLocked() {
return locked_;
}
/**
* bytes locked = 2;
*/
public Builder setLocked(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
locked_ = value;
onChanged();
return this;
}
/**
* bytes locked = 2;
*/
public Builder clearLocked() {
locked_ = getDefaultInstance().getLocked();
onChanged();
return this;
}
private com.google.protobuf.ByteString extData_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ext_data = 3;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
/**
* bytes ext_data = 3;
*/
public Builder setExtData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
* bytes ext_data = 3;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
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.TokenValue)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TokenValue)
private static final com.brewchain.sdk.model.Account.TokenValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.TokenValue();
}
public static com.brewchain.sdk.model.Account.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.Account.TokenValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CryptoValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.CryptoValue)
com.google.protobuf.MessageOrBuilder {
/**
* bytes token_hash = 1;
*/
com.google.protobuf.ByteString getTokenHash();
/**
* bytes symbol = 2;
*/
com.google.protobuf.ByteString getSymbol();
/**
* int32 count = 3;
*/
int getCount();
/**
* bytes cryptos = 4;
*/
com.google.protobuf.ByteString getCryptos();
/**
*
* 所有人的账户地址
*
*
* int64 ownertime = 5;
*/
long getOwnertime();
/**
* bytes owner = 6;
*/
com.google.protobuf.ByteString getOwner();
/**
* bytes lastowner = 7;
*/
com.google.protobuf.ByteString getLastowner();
/**
*
*
*
*
* int64 timestamp = 8;
*/
long getTimestamp();
/**
* int32 nonce = 9;
*/
int getNonce();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.CryptoValue}
*/
public static final class CryptoValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = com.google.protobuf.ByteString.EMPTY;
symbol_ = com.google.protobuf.ByteString.EMPTY;
count_ = 0;
cryptos_ = com.google.protobuf.ByteString.EMPTY;
ownertime_ = 0L;
owner_ = com.google.protobuf.ByteString.EMPTY;
lastowner_ = com.google.protobuf.ByteString.EMPTY;
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: {
tokenHash_ = input.readBytes();
break;
}
case 18: {
symbol_ = input.readBytes();
break;
}
case 24: {
count_ = input.readInt32();
break;
}
case 34: {
cryptos_ = input.readBytes();
break;
}
case 40: {
ownertime_ = input.readInt64();
break;
}
case 50: {
owner_ = input.readBytes();
break;
}
case 58: {
lastowner_ = input.readBytes();
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.Account.internal_static_com_brewchain_sdk_model_CryptoValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.CryptoValue.class, com.brewchain.sdk.model.Account.CryptoValue.Builder.class);
}
public static final int TOKEN_HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString tokenHash_;
/**
* bytes token_hash = 1;
*/
public com.google.protobuf.ByteString getTokenHash() {
return tokenHash_;
}
public static final int SYMBOL_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString symbol_;
/**
* bytes symbol = 2;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
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 com.google.protobuf.ByteString cryptos_;
/**
* bytes cryptos = 4;
*/
public com.google.protobuf.ByteString getCryptos() {
return cryptos_;
}
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 com.google.protobuf.ByteString owner_;
/**
* bytes owner = 6;
*/
public com.google.protobuf.ByteString getOwner() {
return owner_;
}
public static final int LASTOWNER_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString lastowner_;
/**
* bytes lastowner = 7;
*/
public com.google.protobuf.ByteString getLastowner() {
return lastowner_;
}
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 (!tokenHash_.isEmpty()) {
output.writeBytes(1, tokenHash_);
}
if (!symbol_.isEmpty()) {
output.writeBytes(2, symbol_);
}
if (count_ != 0) {
output.writeInt32(3, count_);
}
if (!cryptos_.isEmpty()) {
output.writeBytes(4, cryptos_);
}
if (ownertime_ != 0L) {
output.writeInt64(5, ownertime_);
}
if (!owner_.isEmpty()) {
output.writeBytes(6, owner_);
}
if (!lastowner_.isEmpty()) {
output.writeBytes(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 (!tokenHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, tokenHash_);
}
if (!symbol_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, symbol_);
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, count_);
}
if (!cryptos_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, cryptos_);
}
if (ownertime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, ownertime_);
}
if (!owner_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, owner_);
}
if (!lastowner_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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.Account.CryptoValue)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.CryptoValue other = (com.brewchain.sdk.model.Account.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.Account.CryptoValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.CryptoValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.CryptoValue)
com.brewchain.sdk.model.Account.CryptoValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.CryptoValue.class, com.brewchain.sdk.model.Account.CryptoValue.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = com.google.protobuf.ByteString.EMPTY;
symbol_ = com.google.protobuf.ByteString.EMPTY;
count_ = 0;
cryptos_ = com.google.protobuf.ByteString.EMPTY;
ownertime_ = 0L;
owner_ = com.google.protobuf.ByteString.EMPTY;
lastowner_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
nonce_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoValue_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoValue getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.CryptoValue.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoValue build() {
com.brewchain.sdk.model.Account.CryptoValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoValue buildPartial() {
com.brewchain.sdk.model.Account.CryptoValue result = new com.brewchain.sdk.model.Account.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.Account.CryptoValue) {
return mergeFrom((com.brewchain.sdk.model.Account.CryptoValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.CryptoValue other) {
if (other == com.brewchain.sdk.model.Account.CryptoValue.getDefaultInstance()) return this;
if (other.getTokenHash() != com.google.protobuf.ByteString.EMPTY) {
setTokenHash(other.getTokenHash());
}
if (other.getSymbol() != com.google.protobuf.ByteString.EMPTY) {
setSymbol(other.getSymbol());
}
if (other.getCount() != 0) {
setCount(other.getCount());
}
if (other.getCryptos() != com.google.protobuf.ByteString.EMPTY) {
setCryptos(other.getCryptos());
}
if (other.getOwnertime() != 0L) {
setOwnertime(other.getOwnertime());
}
if (other.getOwner() != com.google.protobuf.ByteString.EMPTY) {
setOwner(other.getOwner());
}
if (other.getLastowner() != com.google.protobuf.ByteString.EMPTY) {
setLastowner(other.getLastowner());
}
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.Account.CryptoValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.CryptoValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString tokenHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes token_hash = 1;
*/
public com.google.protobuf.ByteString getTokenHash() {
return tokenHash_;
}
/**
* bytes token_hash = 1;
*/
public Builder setTokenHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tokenHash_ = value;
onChanged();
return this;
}
/**
* bytes token_hash = 1;
*/
public Builder clearTokenHash() {
tokenHash_ = getDefaultInstance().getTokenHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString symbol_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes symbol = 2;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
/**
* bytes symbol = 2;
*/
public Builder setSymbol(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
* bytes symbol = 2;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
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 com.google.protobuf.ByteString cryptos_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes cryptos = 4;
*/
public com.google.protobuf.ByteString getCryptos() {
return cryptos_;
}
/**
* bytes cryptos = 4;
*/
public Builder setCryptos(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
cryptos_ = value;
onChanged();
return this;
}
/**
* bytes cryptos = 4;
*/
public Builder clearCryptos() {
cryptos_ = getDefaultInstance().getCryptos();
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 com.google.protobuf.ByteString owner_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes owner = 6;
*/
public com.google.protobuf.ByteString getOwner() {
return owner_;
}
/**
* bytes owner = 6;
*/
public Builder setOwner(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
onChanged();
return this;
}
/**
* bytes owner = 6;
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
private com.google.protobuf.ByteString lastowner_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes lastowner = 7;
*/
public com.google.protobuf.ByteString getLastowner() {
return lastowner_;
}
/**
* bytes lastowner = 7;
*/
public Builder setLastowner(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
lastowner_ = value;
onChanged();
return this;
}
/**
* bytes lastowner = 7;
*/
public Builder clearLastowner() {
lastowner_ = getDefaultInstance().getLastowner();
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.CryptoValue)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.CryptoValue)
private static final com.brewchain.sdk.model.Account.CryptoValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.CryptoValue();
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CryptoTokenPrintInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.CryptoTokenPrintInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Token的hash
*
*
* bytes hash = 1;
*/
com.google.protobuf.ByteString getHash();
/**
*
* Token创建时间
*
*
* int64 timestamp = 2;
*/
long getTimestamp();
/**
*
* 该Token发行时的索引
*
*
* int64 index = 3;
*/
long getIndex();
/**
*
* 该Token的发行总数量
*
*
* int64 total = 4;
*/
long getTotal();
/**
*
* Token的编号
*
*
* bytes symbol = 5;
*/
com.google.protobuf.ByteString getSymbol();
/**
*
* Token的名称
*
*
* bytes name = 6;
*/
com.google.protobuf.ByteString getName();
/**
*
* 所有人的账户地址
*
*
* bytes owner = 7;
*/
com.google.protobuf.ByteString getOwner();
/**
*
*数据信息
*
*
* bytes data = 8;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.CryptoTokenPrintInfo}
*/
public static final class CryptoTokenPrintInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.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_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
index_ = 0L;
total_ = 0L;
symbol_ = com.google.protobuf.ByteString.EMPTY;
name_ = com.google.protobuf.ByteString.EMPTY;
owner_ = com.google.protobuf.ByteString.EMPTY;
data_ = com.google.protobuf.ByteString.EMPTY;
}
@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: {
hash_ = input.readBytes();
break;
}
case 16: {
timestamp_ = input.readInt64();
break;
}
case 24: {
index_ = input.readInt64();
break;
}
case 32: {
total_ = input.readInt64();
break;
}
case 42: {
symbol_ = input.readBytes();
break;
}
case 50: {
name_ = input.readBytes();
break;
}
case 58: {
owner_ = input.readBytes();
break;
}
case 66: {
data_ = input.readBytes();
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.Account.internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.class, com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_;
/**
*
* Token的hash
*
*
* bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
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 com.google.protobuf.ByteString symbol_;
/**
*
* Token的编号
*
*
* bytes symbol = 5;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
public static final int NAME_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString name_;
/**
*
* Token的名称
*
*
* bytes name = 6;
*/
public com.google.protobuf.ByteString getName() {
return name_;
}
public static final int OWNER_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString owner_;
/**
*
* 所有人的账户地址
*
*
* bytes owner = 7;
*/
public com.google.protobuf.ByteString getOwner() {
return owner_;
}
public static final int DATA_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString data_;
/**
*
*数据信息
*
*
* bytes data = 8;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
if (timestamp_ != 0L) {
output.writeInt64(2, timestamp_);
}
if (index_ != 0L) {
output.writeInt64(3, index_);
}
if (total_ != 0L) {
output.writeInt64(4, total_);
}
if (!symbol_.isEmpty()) {
output.writeBytes(5, symbol_);
}
if (!name_.isEmpty()) {
output.writeBytes(6, name_);
}
if (!owner_.isEmpty()) {
output.writeBytes(7, owner_);
}
if (!data_.isEmpty()) {
output.writeBytes(8, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
if (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 (!symbol_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, symbol_);
}
if (!name_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, name_);
}
if (!owner_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, owner_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(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.Account.CryptoTokenPrintInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Account.CryptoTokenPrintInfo other = (com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Account.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.Account.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.Account.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.Account.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.CryptoTokenPrintInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.CryptoTokenPrintInfo)
com.brewchain.sdk.model.Account.CryptoTokenPrintInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.class, com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.Account.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_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
index_ = 0L;
total_ = 0L;
symbol_ = com.google.protobuf.ByteString.EMPTY;
name_ = com.google.protobuf.ByteString.EMPTY;
owner_ = com.google.protobuf.ByteString.EMPTY;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Account.internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoTokenPrintInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoTokenPrintInfo build() {
com.brewchain.sdk.model.Account.CryptoTokenPrintInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Account.CryptoTokenPrintInfo buildPartial() {
com.brewchain.sdk.model.Account.CryptoTokenPrintInfo result = new com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo) {
return mergeFrom((com.brewchain.sdk.model.Account.CryptoTokenPrintInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Account.CryptoTokenPrintInfo other) {
if (other == com.brewchain.sdk.model.Account.CryptoTokenPrintInfo.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getIndex() != 0L) {
setIndex(other.getIndex());
}
if (other.getTotal() != 0L) {
setTotal(other.getTotal());
}
if (other.getSymbol() != com.google.protobuf.ByteString.EMPTY) {
setSymbol(other.getSymbol());
}
if (other.getName() != com.google.protobuf.ByteString.EMPTY) {
setName(other.getName());
}
if (other.getOwner() != com.google.protobuf.ByteString.EMPTY) {
setOwner(other.getOwner());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
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.Account.CryptoTokenPrintInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Account.CryptoTokenPrintInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Token的hash
*
*
* bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
*
* Token的hash
*
*
* bytes hash = 1;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
*
* Token的hash
*
*
* bytes hash = 1;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
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 com.google.protobuf.ByteString symbol_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Token的编号
*
*
* bytes symbol = 5;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
/**
*
* Token的编号
*
*
* bytes symbol = 5;
*/
public Builder setSymbol(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
*
* Token的编号
*
*
* bytes symbol = 5;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Token的名称
*
*
* bytes name = 6;
*/
public com.google.protobuf.ByteString getName() {
return name_;
}
/**
*
* Token的名称
*
*
* bytes name = 6;
*/
public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Token的名称
*
*
* bytes name = 6;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
private com.google.protobuf.ByteString owner_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 所有人的账户地址
*
*
* bytes owner = 7;
*/
public com.google.protobuf.ByteString getOwner() {
return owner_;
}
/**
*
* 所有人的账户地址
*
*
* bytes owner = 7;
*/
public Builder setOwner(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
owner_ = value;
onChanged();
return this;
}
/**
*
* 所有人的账户地址
*
*
* bytes owner = 7;
*/
public Builder clearOwner() {
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*数据信息
*
*
* bytes data = 8;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
*数据信息
*
*
* bytes data = 8;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
*数据信息
*
*
* bytes data = 8;
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
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.CryptoTokenPrintInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.CryptoTokenPrintInfo)
private static final com.brewchain.sdk.model.Account.CryptoTokenPrintInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Account.CryptoTokenPrintInfo();
}
public static com.brewchain.sdk.model.Account.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.Account.CryptoTokenPrintInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_AccountInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_AccountInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_UnionAccount_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_UnionAccount_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TokenPrintInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TokenValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TokenValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_CryptoValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_CryptoValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_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\raccount.proto\022\027com.brewchain.sdk.model" +
"\"\343\002\n\013AccountInfo\022\017\n\007address\030\001 \001(\014\022\014\n\004nam" +
"e\030\002 \001(\014\022\017\n\007version\030\003 \001(\005\022\r\n\005nonce\030\004 \001(\005\022" +
"\017\n\007balance\030\005 \001(\014\022\016\n\006status\030\006 \001(\005\022\031\n\021stor" +
"age_trie_root\030\007 \001(\014\022\020\n\010ext_data\030\010 \001(\014\022>\n" +
"\004type\030\t \001(\01620.com.brewchain.sdk.model.Ac" +
"countInfo.AccountType\"\206\001\n\013AccountType\022\n\n" +
"\006NORMAL\020\000\022\r\n\tMULI_SIGN\020\001\022\021\n\rRC20_CONTRAC" +
"T\020\002\022\022\n\016RC721_CONTRACT\020\003\022\020\n\014CVM_CONTRACT\020" +
"\004\022\021\n\rJSVM_CONTRACT\020\005\022\020\n\014UNIONACCOUNT\020\006\"\'" +
"\n\014UnionAccount\022\027\n\017union_coaddress\030\001 \003(\014\"" +
"Z\n\016TokenPrintInfo\022\016\n\006symbol\030\001 \001(\014\022\017\n\007add" +
"ress\030\002 \001(\014\022\021\n\ttimestamp\030\003 \001(\003\022\024\n\014total_s" +
"upply\030\004 \001(\014\"?\n\nTokenValue\022\017\n\007balance\030\001 \001" +
"(\014\022\016\n\006locked\030\002 \001(\014\022\020\n\010ext_data\030\003 \001(\014\"\250\001\n" +
"\013CryptoValue\022\022\n\ntoken_hash\030\001 \001(\014\022\016\n\006symb" +
"ol\030\002 \001(\014\022\r\n\005count\030\003 \001(\005\022\017\n\007cryptos\030\004 \001(\014" +
"\022\021\n\townertime\030\005 \001(\003\022\r\n\005owner\030\006 \001(\014\022\021\n\tla" +
"stowner\030\007 \001(\014\022\021\n\ttimestamp\030\010 \001(\003\022\r\n\005nonc" +
"e\030\t \001(\005\"\220\001\n\024CryptoTokenPrintInfo\022\014\n\004hash" +
"\030\001 \001(\014\022\021\n\ttimestamp\030\002 \001(\003\022\r\n\005index\030\003 \001(\003" +
"\022\r\n\005total\030\004 \001(\003\022\016\n\006symbol\030\005 \001(\014\022\014\n\004name\030" +
"\006 \001(\014\022\r\n\005owner\030\007 \001(\014\022\014\n\004data\030\010 \001(\014b\006prot" +
"o3"
};
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_AccountInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_brewchain_sdk_model_AccountInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_AccountInfo_descriptor,
new java.lang.String[] { "Address", "Name", "Version", "Nonce", "Balance", "Status", "StorageTrieRoot", "ExtData", "Type", });
internal_static_com_brewchain_sdk_model_UnionAccount_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_brewchain_sdk_model_UnionAccount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_UnionAccount_descriptor,
new java.lang.String[] { "UnionCoaddress", });
internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_brewchain_sdk_model_TokenPrintInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TokenPrintInfo_descriptor,
new java.lang.String[] { "Symbol", "Address", "Timestamp", "TotalSupply", });
internal_static_com_brewchain_sdk_model_TokenValue_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_brewchain_sdk_model_TokenValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TokenValue_descriptor,
new java.lang.String[] { "Balance", "Locked", "ExtData", });
internal_static_com_brewchain_sdk_model_CryptoValue_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_brewchain_sdk_model_CryptoValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_CryptoValue_descriptor,
new java.lang.String[] { "TokenHash", "Symbol", "Count", "Cryptos", "Ownertime", "Owner", "Lastowner", "Timestamp", "Nonce", });
internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_brewchain_sdk_model_CryptoTokenPrintInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_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