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

com.brewchain.sdk.model.TokensContract20 Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tokensContract20.proto

package com.brewchain.sdk.model;

public final class TokensContract20 {
  private TokensContract20() {}
  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 ContractRC20OrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.ContractRC20)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ int getFunctionValue(); /** *
     * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 getFunction(); /** * bytes from = 2; */ com.google.protobuf.ByteString getFrom(); /** * repeated bytes tos = 3; */ java.util.List getTosList(); /** * repeated bytes tos = 3; */ int getTosCount(); /** * repeated bytes tos = 3; */ com.google.protobuf.ByteString getTos(int index); /** * repeated bytes values = 4; */ java.util.List getValuesList(); /** * repeated bytes values = 4; */ int getValuesCount(); /** * repeated bytes values = 4; */ com.google.protobuf.ByteString getValues(int index); /** *
     *扩展信息
     * 
* * bytes ext_datas = 6; */ com.google.protobuf.ByteString getExtDatas(); /** *
     *构建函数时候使用
     * 
* * string name = 10; */ java.lang.String getName(); /** *
     *构建函数时候使用
     * 
* * string name = 10; */ com.google.protobuf.ByteString getNameBytes(); /** *
     *构建函数时候使用
     * 
* * string symbol = 11; */ java.lang.String getSymbol(); /** *
     *构建函数时候使用
     * 
* * string symbol = 11; */ com.google.protobuf.ByteString getSymbolBytes(); /** *
     *精度构建函数时候使用
     * 
* * int64 decimals = 12; */ long getDecimals(); } /** * Protobuf type {@code com.brewchain.sdk.model.ContractRC20} */ public static final class ContractRC20 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.ContractRC20) ContractRC20OrBuilder { private static final long serialVersionUID = 0L; // Use ContractRC20.newBuilder() to construct. private ContractRC20(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractRC20() { function_ = 0; from_ = com.google.protobuf.ByteString.EMPTY; tos_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); extDatas_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; symbol_ = ""; decimals_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContractRC20( 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 8: { int rawValue = input.readEnum(); function_ = rawValue; break; } case 18: { from_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } tos_.add(input.readBytes()); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } values_.add(input.readBytes()); break; } case 50: { extDatas_ = input.readBytes(); break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); symbol_ = s; break; } case 96: { decimals_ = input.readInt64(); 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_ & 0x00000004) == 0x00000004)) { tos_ = java.util.Collections.unmodifiableList(tos_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ContractRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ContractRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ContractRC20.class, com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder.class); } /** * Protobuf enum {@code com.brewchain.sdk.model.ContractRC20.Function20} */ public enum Function20 implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOW = 0; */ UNKNOW(0), /** * CONSTRUCT_PRINTABLE = 2; */ CONSTRUCT_PRINTABLE(2), /** * TRANSFERS = 3; */ TRANSFERS(3), /** * PRINT = 4; */ PRINT(4), /** * BURN = 5; */ BURN(5), UNRECOGNIZED(-1), ; /** * UNKNOW = 0; */ public static final int UNKNOW_VALUE = 0; /** * CONSTRUCT_PRINTABLE = 2; */ public static final int CONSTRUCT_PRINTABLE_VALUE = 2; /** * TRANSFERS = 3; */ public static final int TRANSFERS_VALUE = 3; /** * PRINT = 4; */ public static final int PRINT_VALUE = 4; /** * BURN = 5; */ public static final int BURN_VALUE = 5; 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 Function20 valueOf(int value) { return forNumber(value); } public static Function20 forNumber(int value) { switch (value) { case 0: return UNKNOW; case 2: return CONSTRUCT_PRINTABLE; case 3: return TRANSFERS; case 4: return PRINT; case 5: return BURN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Function20> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Function20 findValueByNumber(int number) { return Function20.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.TokensContract20.ContractRC20.getDescriptor().getEnumTypes().get(0); } private static final Function20[] VALUES = values(); public static Function20 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 Function20(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:com.brewchain.sdk.model.ContractRC20.Function20) } private int bitField0_; public static final int FUNCTION_FIELD_NUMBER = 1; private int function_; /** *
     * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public int getFunctionValue() { return function_; } /** *
     * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 getFunction() { @SuppressWarnings("deprecation") com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 result = com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.valueOf(function_); return result == null ? com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.UNRECOGNIZED : result; } public static final int FROM_FIELD_NUMBER = 2; private com.google.protobuf.ByteString from_; /** * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; } public static final int TOS_FIELD_NUMBER = 3; private java.util.List tos_; /** * repeated bytes tos = 3; */ public java.util.List getTosList() { return tos_; } /** * repeated bytes tos = 3; */ public int getTosCount() { return tos_.size(); } /** * repeated bytes tos = 3; */ public com.google.protobuf.ByteString getTos(int index) { return tos_.get(index); } public static final int VALUES_FIELD_NUMBER = 4; private java.util.List values_; /** * repeated bytes values = 4; */ public java.util.List getValuesList() { return values_; } /** * repeated bytes values = 4; */ public int getValuesCount() { return values_.size(); } /** * repeated bytes values = 4; */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } public static final int EXT_DATAS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString extDatas_; /** *
     *扩展信息
     * 
* * bytes ext_datas = 6; */ public com.google.protobuf.ByteString getExtDatas() { return extDatas_; } public static final int NAME_FIELD_NUMBER = 10; private volatile java.lang.Object name_; /** *
     *构建函数时候使用
     * 
* * string name = 10; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     *构建函数时候使用
     * 
* * string name = 10; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOL_FIELD_NUMBER = 11; private volatile java.lang.Object symbol_; /** *
     *构建函数时候使用
     * 
* * string symbol = 11; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } } /** *
     *构建函数时候使用
     * 
* * string symbol = 11; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DECIMALS_FIELD_NUMBER = 12; private long decimals_; /** *
     *精度构建函数时候使用
     * 
* * int64 decimals = 12; */ public long getDecimals() { return decimals_; } 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 (function_ != com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.UNKNOW.getNumber()) { output.writeEnum(1, function_); } if (!from_.isEmpty()) { output.writeBytes(2, from_); } for (int i = 0; i < tos_.size(); i++) { output.writeBytes(3, tos_.get(i)); } for (int i = 0; i < values_.size(); i++) { output.writeBytes(4, values_.get(i)); } if (!extDatas_.isEmpty()) { output.writeBytes(6, extDatas_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, name_); } if (!getSymbolBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, symbol_); } if (decimals_ != 0L) { output.writeInt64(12, decimals_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (function_ != com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.UNKNOW.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, function_); } if (!from_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, from_); } { int dataSize = 0; for (int i = 0; i < tos_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(tos_.get(i)); } size += dataSize; size += 1 * getTosList().size(); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } if (!extDatas_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, extDatas_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, name_); } if (!getSymbolBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, symbol_); } if (decimals_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, decimals_); } 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.TokensContract20.ContractRC20)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.ContractRC20 other = (com.brewchain.sdk.model.TokensContract20.ContractRC20) obj; boolean result = true; result = result && function_ == other.function_; result = result && getFrom() .equals(other.getFrom()); result = result && getTosList() .equals(other.getTosList()); result = result && getValuesList() .equals(other.getValuesList()); result = result && getExtDatas() .equals(other.getExtDatas()); result = result && getName() .equals(other.getName()); result = result && getSymbol() .equals(other.getSymbol()); result = result && (getDecimals() == other.getDecimals()); 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) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + function_; hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); if (getTosCount() > 0) { hash = (37 * hash) + TOS_FIELD_NUMBER; hash = (53 * hash) + getTosList().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (37 * hash) + EXT_DATAS_FIELD_NUMBER; hash = (53 * hash) + getExtDatas().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDecimals()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 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.TokensContract20.ContractRC20 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 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.TokensContract20.ContractRC20 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 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.TokensContract20.ContractRC20 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 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.TokensContract20.ContractRC20 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 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.TokensContract20.ContractRC20 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.ContractRC20} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.ContractRC20) com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ContractRC20_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ContractRC20_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ContractRC20.class, com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.ContractRC20.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(); function_ = 0; from_ = com.google.protobuf.ByteString.EMPTY; tos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); extDatas_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; symbol_ = ""; decimals_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ContractRC20_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ContractRC20 getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.ContractRC20.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ContractRC20 build() { com.brewchain.sdk.model.TokensContract20.ContractRC20 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ContractRC20 buildPartial() { com.brewchain.sdk.model.TokensContract20.ContractRC20 result = new com.brewchain.sdk.model.TokensContract20.ContractRC20(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.function_ = function_; result.from_ = from_; if (((bitField0_ & 0x00000004) == 0x00000004)) { tos_ = java.util.Collections.unmodifiableList(tos_); bitField0_ = (bitField0_ & ~0x00000004); } result.tos_ = tos_; if (((bitField0_ & 0x00000008) == 0x00000008)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000008); } result.values_ = values_; result.extDatas_ = extDatas_; result.name_ = name_; result.symbol_ = symbol_; result.decimals_ = decimals_; result.bitField0_ = to_bitField0_; 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.TokensContract20.ContractRC20) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.ContractRC20)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.ContractRC20 other) { if (other == com.brewchain.sdk.model.TokensContract20.ContractRC20.getDefaultInstance()) return this; if (other.function_ != 0) { setFunctionValue(other.getFunctionValue()); } if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { setFrom(other.getFrom()); } if (!other.tos_.isEmpty()) { if (tos_.isEmpty()) { tos_ = other.tos_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTosIsMutable(); tos_.addAll(other.tos_); } onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } if (other.getExtDatas() != com.google.protobuf.ByteString.EMPTY) { setExtDatas(other.getExtDatas()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; onChanged(); } if (other.getDecimals() != 0L) { setDecimals(other.getDecimals()); } 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.TokensContract20.ContractRC20 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.ContractRC20) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int function_ = 0; /** *
       * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public int getFunctionValue() { return function_; } /** *
       * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public Builder setFunctionValue(int value) { function_ = value; onChanged(); return this; } /** *
       * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 getFunction() { @SuppressWarnings("deprecation") com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 result = com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.valueOf(function_); return result == null ? com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20.UNRECOGNIZED : result; } /** *
       * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public Builder setFunction(com.brewchain.sdk.model.TokensContract20.ContractRC20.Function20 value) { if (value == null) { throw new NullPointerException(); } function_ = value.getNumber(); onChanged(); return this; } /** *
       * 
* * .com.brewchain.sdk.model.ContractRC20.Function20 function = 1; */ public Builder clearFunction() { function_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** * bytes from = 2; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** * bytes from = 2; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } from_ = value; onChanged(); return this; } /** * bytes from = 2; */ public Builder clearFrom() { from_ = getDefaultInstance().getFrom(); onChanged(); return this; } private java.util.List tos_ = java.util.Collections.emptyList(); private void ensureTosIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { tos_ = new java.util.ArrayList(tos_); bitField0_ |= 0x00000004; } } /** * repeated bytes tos = 3; */ public java.util.List getTosList() { return java.util.Collections.unmodifiableList(tos_); } /** * repeated bytes tos = 3; */ public int getTosCount() { return tos_.size(); } /** * repeated bytes tos = 3; */ public com.google.protobuf.ByteString getTos(int index) { return tos_.get(index); } /** * repeated bytes tos = 3; */ public Builder setTos( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTosIsMutable(); tos_.set(index, value); onChanged(); return this; } /** * repeated bytes tos = 3; */ public Builder addTos(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTosIsMutable(); tos_.add(value); onChanged(); return this; } /** * repeated bytes tos = 3; */ public Builder addAllTos( java.lang.Iterable values) { ensureTosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tos_); onChanged(); return this; } /** * repeated bytes tos = 3; */ public Builder clearTos() { tos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000008; } } /** * repeated bytes values = 4; */ public java.util.List getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** * repeated bytes values = 4; */ public int getValuesCount() { return values_.size(); } /** * repeated bytes values = 4; */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } /** * repeated bytes values = 4; */ public Builder setValues( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated bytes values = 4; */ public Builder addValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated bytes values = 4; */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * repeated bytes values = 4; */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private com.google.protobuf.ByteString extDatas_ = com.google.protobuf.ByteString.EMPTY; /** *
       *扩展信息
       * 
* * bytes ext_datas = 6; */ public com.google.protobuf.ByteString getExtDatas() { return extDatas_; } /** *
       *扩展信息
       * 
* * bytes ext_datas = 6; */ public Builder setExtDatas(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extDatas_ = value; onChanged(); return this; } /** *
       *扩展信息
       * 
* * bytes ext_datas = 6; */ public Builder clearExtDatas() { extDatas_ = getDefaultInstance().getExtDatas(); onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       *构建函数时候使用
       * 
* * string name = 10; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *构建函数时候使用
       * 
* * string name = 10; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *构建函数时候使用
       * 
* * string name = 10; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       *构建函数时候使用
       * 
* * string name = 10; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       *构建函数时候使用
       * 
* * string name = 10; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object symbol_ = ""; /** *
       *构建函数时候使用
       * 
* * string symbol = 11; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *构建函数时候使用
       * 
* * string symbol = 11; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *构建函数时候使用
       * 
* * string symbol = 11; */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; onChanged(); return this; } /** *
       *构建函数时候使用
       * 
* * string symbol = 11; */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); onChanged(); return this; } /** *
       *构建函数时候使用
       * 
* * string symbol = 11; */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; onChanged(); return this; } private long decimals_ ; /** *
       *精度构建函数时候使用
       * 
* * int64 decimals = 12; */ public long getDecimals() { return decimals_; } /** *
       *精度构建函数时候使用
       * 
* * int64 decimals = 12; */ public Builder setDecimals(long value) { decimals_ = value; onChanged(); return this; } /** *
       *精度构建函数时候使用
       * 
* * int64 decimals = 12; */ public Builder clearDecimals() { decimals_ = 0L; 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.ContractRC20) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.ContractRC20) private static final com.brewchain.sdk.model.TokensContract20.ContractRC20 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.ContractRC20(); } public static com.brewchain.sdk.model.TokensContract20.ContractRC20 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContractRC20 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContractRC20(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.TokensContract20.ContractRC20 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenRC20ValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TokenRC20Value) 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.TokenRC20Value} */ public static final class TokenRC20Value extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TokenRC20Value) TokenRC20ValueOrBuilder { private static final long serialVersionUID = 0L; // Use TokenRC20Value.newBuilder() to construct. private TokenRC20Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenRC20Value() { 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 TokenRC20Value( 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.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.TokenRC20Value.class, com.brewchain.sdk.model.TokensContract20.TokenRC20Value.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.TokensContract20.TokenRC20Value)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.TokenRC20Value other = (com.brewchain.sdk.model.TokensContract20.TokenRC20Value) 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.TokensContract20.TokenRC20Value parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value 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.TokensContract20.TokenRC20Value parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value 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.TokensContract20.TokenRC20Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value 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.TokensContract20.TokenRC20Value parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value 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.TokensContract20.TokenRC20Value parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value 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.TokensContract20.TokenRC20Value 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.TokenRC20Value} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TokenRC20Value) com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Value_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.TokenRC20Value.class, com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.TokenRC20Value.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.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Value getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.TokenRC20Value.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Value build() { com.brewchain.sdk.model.TokensContract20.TokenRC20Value result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Value buildPartial() { com.brewchain.sdk.model.TokensContract20.TokenRC20Value result = new com.brewchain.sdk.model.TokensContract20.TokenRC20Value(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.TokensContract20.TokenRC20Value) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.TokenRC20Value)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.TokenRC20Value other) { if (other == com.brewchain.sdk.model.TokensContract20.TokenRC20Value.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.TokensContract20.TokenRC20Value parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.TokenRC20Value) 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.TokenRC20Value) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TokenRC20Value) private static final com.brewchain.sdk.model.TokensContract20.TokenRC20Value DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.TokenRC20Value(); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Value getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenRC20Value parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenRC20Value(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.TokensContract20.TokenRC20Value getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TokenRC20InfoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TokenRC20Info) com.google.protobuf.MessageOrBuilder { /** *
     *创建者
     * 
* * bytes creator = 1; */ com.google.protobuf.ByteString getCreator(); /** * int64 create_time = 2; */ long getCreateTime(); /** *
     *总量
     * 
* * bytes totalSupply = 3; */ com.google.protobuf.ByteString getTotalSupply(); /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ java.util.List getManagersList(); /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ int getManagersCount(); /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ com.google.protobuf.ByteString getManagers(int index); /** * string name = 5; */ java.lang.String getName(); /** * string name = 5; */ com.google.protobuf.ByteString getNameBytes(); /** * string symbol = 6; */ java.lang.String getSymbol(); /** * string symbol = 6; */ com.google.protobuf.ByteString getSymbolBytes(); /** *
     *精度
     * 
* * int64 decimals = 7; */ long getDecimals(); /** * bytes ext_datas = 8; */ com.google.protobuf.ByteString getExtDatas(); /** *
     *是否可以增发
     * 
* * bool printable = 9; */ boolean getPrintable(); /** *
     *存储根
     * 
* * bytes storageTrieRoot = 10; */ com.google.protobuf.ByteString getStorageTrieRoot(); } /** * Protobuf type {@code com.brewchain.sdk.model.TokenRC20Info} */ public static final class TokenRC20Info extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TokenRC20Info) TokenRC20InfoOrBuilder { private static final long serialVersionUID = 0L; // Use TokenRC20Info.newBuilder() to construct. private TokenRC20Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TokenRC20Info() { creator_ = com.google.protobuf.ByteString.EMPTY; createTime_ = 0L; totalSupply_ = com.google.protobuf.ByteString.EMPTY; managers_ = java.util.Collections.emptyList(); name_ = ""; symbol_ = ""; decimals_ = 0L; extDatas_ = com.google.protobuf.ByteString.EMPTY; printable_ = false; storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TokenRC20Info( 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: { creator_ = input.readBytes(); break; } case 16: { createTime_ = input.readInt64(); break; } case 26: { totalSupply_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { managers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } managers_.add(input.readBytes()); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); symbol_ = s; break; } case 56: { decimals_ = input.readInt64(); break; } case 66: { extDatas_ = input.readBytes(); break; } case 72: { printable_ = input.readBool(); break; } case 82: { storageTrieRoot_ = 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_ & 0x00000008) == 0x00000008)) { managers_ = java.util.Collections.unmodifiableList(managers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Info_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.TokenRC20Info.class, com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder.class); } private int bitField0_; public static final int CREATOR_FIELD_NUMBER = 1; private com.google.protobuf.ByteString creator_; /** *
     *创建者
     * 
* * bytes creator = 1; */ public com.google.protobuf.ByteString getCreator() { return creator_; } public static final int CREATE_TIME_FIELD_NUMBER = 2; private long createTime_; /** * int64 create_time = 2; */ public long getCreateTime() { return createTime_; } public static final int TOTALSUPPLY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString totalSupply_; /** *
     *总量
     * 
* * bytes totalSupply = 3; */ public com.google.protobuf.ByteString getTotalSupply() { return totalSupply_; } public static final int MANAGERS_FIELD_NUMBER = 4; private java.util.List managers_; /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ public java.util.List getManagersList() { return managers_; } /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ public int getManagersCount() { return managers_.size(); } /** *
     *管理员
     * 
* * repeated bytes managers = 4; */ public com.google.protobuf.ByteString getManagers(int index) { return managers_.get(index); } public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** * string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOL_FIELD_NUMBER = 6; private volatile java.lang.Object symbol_; /** * string symbol = 6; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } } /** * string symbol = 6; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DECIMALS_FIELD_NUMBER = 7; private long decimals_; /** *
     *精度
     * 
* * int64 decimals = 7; */ public long getDecimals() { return decimals_; } public static final int EXT_DATAS_FIELD_NUMBER = 8; private com.google.protobuf.ByteString extDatas_; /** * bytes ext_datas = 8; */ public com.google.protobuf.ByteString getExtDatas() { return extDatas_; } public static final int PRINTABLE_FIELD_NUMBER = 9; private boolean printable_; /** *
     *是否可以增发
     * 
* * bool printable = 9; */ public boolean getPrintable() { return printable_; } public static final int STORAGETRIEROOT_FIELD_NUMBER = 10; private com.google.protobuf.ByteString storageTrieRoot_; /** *
     *存储根
     * 
* * bytes storageTrieRoot = 10; */ public com.google.protobuf.ByteString getStorageTrieRoot() { return storageTrieRoot_; } 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 (!creator_.isEmpty()) { output.writeBytes(1, creator_); } if (createTime_ != 0L) { output.writeInt64(2, createTime_); } if (!totalSupply_.isEmpty()) { output.writeBytes(3, totalSupply_); } for (int i = 0; i < managers_.size(); i++) { output.writeBytes(4, managers_.get(i)); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } if (!getSymbolBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, symbol_); } if (decimals_ != 0L) { output.writeInt64(7, decimals_); } if (!extDatas_.isEmpty()) { output.writeBytes(8, extDatas_); } if (printable_ != false) { output.writeBool(9, printable_); } if (!storageTrieRoot_.isEmpty()) { output.writeBytes(10, storageTrieRoot_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!creator_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, creator_); } if (createTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, createTime_); } if (!totalSupply_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, totalSupply_); } { int dataSize = 0; for (int i = 0; i < managers_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(managers_.get(i)); } size += dataSize; size += 1 * getManagersList().size(); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } if (!getSymbolBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, symbol_); } if (decimals_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, decimals_); } if (!extDatas_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, extDatas_); } if (printable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, printable_); } if (!storageTrieRoot_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, storageTrieRoot_); } 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.TokensContract20.TokenRC20Info)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.TokenRC20Info other = (com.brewchain.sdk.model.TokensContract20.TokenRC20Info) obj; boolean result = true; result = result && getCreator() .equals(other.getCreator()); result = result && (getCreateTime() == other.getCreateTime()); result = result && getTotalSupply() .equals(other.getTotalSupply()); result = result && getManagersList() .equals(other.getManagersList()); result = result && getName() .equals(other.getName()); result = result && getSymbol() .equals(other.getSymbol()); result = result && (getDecimals() == other.getDecimals()); result = result && getExtDatas() .equals(other.getExtDatas()); result = result && (getPrintable() == other.getPrintable()); result = result && getStorageTrieRoot() .equals(other.getStorageTrieRoot()); 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) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreateTime()); hash = (37 * hash) + TOTALSUPPLY_FIELD_NUMBER; hash = (53 * hash) + getTotalSupply().hashCode(); if (getManagersCount() > 0) { hash = (37 * hash) + MANAGERS_FIELD_NUMBER; hash = (53 * hash) + getManagersList().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDecimals()); hash = (37 * hash) + EXT_DATAS_FIELD_NUMBER; hash = (53 * hash) + getExtDatas().hashCode(); hash = (37 * hash) + PRINTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrintable()); hash = (37 * hash) + STORAGETRIEROOT_FIELD_NUMBER; hash = (53 * hash) + getStorageTrieRoot().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info 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.TokensContract20.TokenRC20Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info 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.TokensContract20.TokenRC20Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info 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.TokensContract20.TokenRC20Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info 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.TokensContract20.TokenRC20Info parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info 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.TokensContract20.TokenRC20Info 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.TokenRC20Info} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TokenRC20Info) com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Info_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.TokenRC20Info.class, com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.TokenRC20Info.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(); creator_ = com.google.protobuf.ByteString.EMPTY; createTime_ = 0L; totalSupply_ = com.google.protobuf.ByteString.EMPTY; managers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); name_ = ""; symbol_ = ""; decimals_ = 0L; extDatas_ = com.google.protobuf.ByteString.EMPTY; printable_ = false; storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Info getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.TokenRC20Info.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Info build() { com.brewchain.sdk.model.TokensContract20.TokenRC20Info result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.TokenRC20Info buildPartial() { com.brewchain.sdk.model.TokensContract20.TokenRC20Info result = new com.brewchain.sdk.model.TokensContract20.TokenRC20Info(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.creator_ = creator_; result.createTime_ = createTime_; result.totalSupply_ = totalSupply_; if (((bitField0_ & 0x00000008) == 0x00000008)) { managers_ = java.util.Collections.unmodifiableList(managers_); bitField0_ = (bitField0_ & ~0x00000008); } result.managers_ = managers_; result.name_ = name_; result.symbol_ = symbol_; result.decimals_ = decimals_; result.extDatas_ = extDatas_; result.printable_ = printable_; result.storageTrieRoot_ = storageTrieRoot_; result.bitField0_ = to_bitField0_; 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.TokensContract20.TokenRC20Info) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.TokenRC20Info)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.TokenRC20Info other) { if (other == com.brewchain.sdk.model.TokensContract20.TokenRC20Info.getDefaultInstance()) return this; if (other.getCreator() != com.google.protobuf.ByteString.EMPTY) { setCreator(other.getCreator()); } if (other.getCreateTime() != 0L) { setCreateTime(other.getCreateTime()); } if (other.getTotalSupply() != com.google.protobuf.ByteString.EMPTY) { setTotalSupply(other.getTotalSupply()); } if (!other.managers_.isEmpty()) { if (managers_.isEmpty()) { managers_ = other.managers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureManagersIsMutable(); managers_.addAll(other.managers_); } onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; onChanged(); } if (other.getDecimals() != 0L) { setDecimals(other.getDecimals()); } if (other.getExtDatas() != com.google.protobuf.ByteString.EMPTY) { setExtDatas(other.getExtDatas()); } if (other.getPrintable() != false) { setPrintable(other.getPrintable()); } if (other.getStorageTrieRoot() != com.google.protobuf.ByteString.EMPTY) { setStorageTrieRoot(other.getStorageTrieRoot()); } 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.TokensContract20.TokenRC20Info parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.TokenRC20Info) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString creator_ = com.google.protobuf.ByteString.EMPTY; /** *
       *创建者
       * 
* * bytes creator = 1; */ public com.google.protobuf.ByteString getCreator() { return creator_; } /** *
       *创建者
       * 
* * bytes creator = 1; */ public Builder setCreator(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creator_ = value; onChanged(); return this; } /** *
       *创建者
       * 
* * bytes creator = 1; */ public Builder clearCreator() { creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } private long createTime_ ; /** * int64 create_time = 2; */ public long getCreateTime() { return createTime_; } /** * int64 create_time = 2; */ public Builder setCreateTime(long value) { createTime_ = value; onChanged(); return this; } /** * int64 create_time = 2; */ public Builder clearCreateTime() { createTime_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString totalSupply_ = com.google.protobuf.ByteString.EMPTY; /** *
       *总量
       * 
* * bytes totalSupply = 3; */ public com.google.protobuf.ByteString getTotalSupply() { return totalSupply_; } /** *
       *总量
       * 
* * bytes totalSupply = 3; */ public Builder setTotalSupply(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } totalSupply_ = value; onChanged(); return this; } /** *
       *总量
       * 
* * bytes totalSupply = 3; */ public Builder clearTotalSupply() { totalSupply_ = getDefaultInstance().getTotalSupply(); onChanged(); return this; } private java.util.List managers_ = java.util.Collections.emptyList(); private void ensureManagersIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { managers_ = new java.util.ArrayList(managers_); bitField0_ |= 0x00000008; } } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public java.util.List getManagersList() { return java.util.Collections.unmodifiableList(managers_); } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public int getManagersCount() { return managers_.size(); } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public com.google.protobuf.ByteString getManagers(int index) { return managers_.get(index); } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public Builder setManagers( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureManagersIsMutable(); managers_.set(index, value); onChanged(); return this; } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public Builder addManagers(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureManagersIsMutable(); managers_.add(value); onChanged(); return this; } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public Builder addAllManagers( java.lang.Iterable values) { ensureManagersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, managers_); onChanged(); return this; } /** *
       *管理员
       * 
* * repeated bytes managers = 4; */ public Builder clearManagers() { managers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 5; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 5; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 5; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object symbol_ = ""; /** * string symbol = 6; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** * string symbol = 6; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string symbol = 6; */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; onChanged(); return this; } /** * string symbol = 6; */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); onChanged(); return this; } /** * string symbol = 6; */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; onChanged(); return this; } private long decimals_ ; /** *
       *精度
       * 
* * int64 decimals = 7; */ public long getDecimals() { return decimals_; } /** *
       *精度
       * 
* * int64 decimals = 7; */ public Builder setDecimals(long value) { decimals_ = value; onChanged(); return this; } /** *
       *精度
       * 
* * int64 decimals = 7; */ public Builder clearDecimals() { decimals_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString extDatas_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ext_datas = 8; */ public com.google.protobuf.ByteString getExtDatas() { return extDatas_; } /** * bytes ext_datas = 8; */ public Builder setExtDatas(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extDatas_ = value; onChanged(); return this; } /** * bytes ext_datas = 8; */ public Builder clearExtDatas() { extDatas_ = getDefaultInstance().getExtDatas(); onChanged(); return this; } private boolean printable_ ; /** *
       *是否可以增发
       * 
* * bool printable = 9; */ public boolean getPrintable() { return printable_; } /** *
       *是否可以增发
       * 
* * bool printable = 9; */ public Builder setPrintable(boolean value) { printable_ = value; onChanged(); return this; } /** *
       *是否可以增发
       * 
* * bool printable = 9; */ public Builder clearPrintable() { printable_ = false; onChanged(); return this; } private com.google.protobuf.ByteString storageTrieRoot_ = com.google.protobuf.ByteString.EMPTY; /** *
       *存储根
       * 
* * bytes storageTrieRoot = 10; */ public com.google.protobuf.ByteString getStorageTrieRoot() { return storageTrieRoot_; } /** *
       *存储根
       * 
* * bytes storageTrieRoot = 10; */ public Builder setStorageTrieRoot(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } storageTrieRoot_ = value; onChanged(); return this; } /** *
       *存储根
       * 
* * bytes storageTrieRoot = 10; */ public Builder clearStorageTrieRoot() { storageTrieRoot_ = getDefaultInstance().getStorageTrieRoot(); 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.TokenRC20Info) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TokenRC20Info) private static final com.brewchain.sdk.model.TokensContract20.TokenRC20Info DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.TokenRC20Info(); } public static com.brewchain.sdk.model.TokensContract20.TokenRC20Info getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TokenRC20Info parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenRC20Info(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.TokensContract20.TokenRC20Info getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReqCall20ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.ReqCall20Contract) com.google.protobuf.MessageOrBuilder { /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ boolean hasData(); /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ com.brewchain.sdk.model.TokensContract20.ContractRC20 getData(); /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder getDataOrBuilder(); } /** * Protobuf type {@code com.brewchain.sdk.model.ReqCall20Contract} */ public static final class ReqCall20Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.ReqCall20Contract) ReqCall20ContractOrBuilder { private static final long serialVersionUID = 0L; // Use ReqCall20Contract.newBuilder() to construct. private ReqCall20Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReqCall20Contract() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqCall20Contract( 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: { com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(com.brewchain.sdk.model.TokensContract20.ContractRC20.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } 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.TokensContract20.internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqCall20Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.class, com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.brewchain.sdk.model.TokensContract20.ContractRC20 data_; /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public boolean hasData() { return data_ != null; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20 getData() { return data_ == null ? com.brewchain.sdk.model.TokensContract20.ContractRC20.getDefaultInstance() : data_; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder getDataOrBuilder() { return getData(); } 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 (data_ != null) { output.writeMessage(1, getData()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getData()); } 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.TokensContract20.ReqCall20Contract)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.ReqCall20Contract other = (com.brewchain.sdk.model.TokensContract20.ReqCall20Contract) obj; boolean result = true; result = result && (hasData() == other.hasData()); if (hasData()) { 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(); if (hasData()) { 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.TokensContract20.ReqCall20Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract 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.TokensContract20.ReqCall20Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract 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.TokensContract20.ReqCall20Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract 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.TokensContract20.ReqCall20Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract 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.TokensContract20.ReqCall20Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract 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.TokensContract20.ReqCall20Contract 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.ReqCall20Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.ReqCall20Contract) com.brewchain.sdk.model.TokensContract20.ReqCall20ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqCall20Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.class, com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqCall20Contract getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqCall20Contract build() { com.brewchain.sdk.model.TokensContract20.ReqCall20Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqCall20Contract buildPartial() { com.brewchain.sdk.model.TokensContract20.ReqCall20Contract result = new com.brewchain.sdk.model.TokensContract20.ReqCall20Contract(this); if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } 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.TokensContract20.ReqCall20Contract) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.ReqCall20Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.ReqCall20Contract other) { if (other == com.brewchain.sdk.model.TokensContract20.ReqCall20Contract.getDefaultInstance()) return this; if (other.hasData()) { mergeData(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.TokensContract20.ReqCall20Contract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.ReqCall20Contract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.brewchain.sdk.model.TokensContract20.ContractRC20 data_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.ContractRC20, com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder, com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder> dataBuilder_; /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20 getData() { if (dataBuilder_ == null) { return data_ == null ? com.brewchain.sdk.model.TokensContract20.ContractRC20.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public Builder setData(com.brewchain.sdk.model.TokensContract20.ContractRC20 value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public Builder setData( com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public Builder mergeData(com.brewchain.sdk.model.TokensContract20.ContractRC20 value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = com.brewchain.sdk.model.TokensContract20.ContractRC20.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ public com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? com.brewchain.sdk.model.TokensContract20.ContractRC20.getDefaultInstance() : data_; } } /** * .com.brewchain.sdk.model.ContractRC20 data = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.ContractRC20, com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder, com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.ContractRC20, com.brewchain.sdk.model.TokensContract20.ContractRC20.Builder, com.brewchain.sdk.model.TokensContract20.ContractRC20OrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } @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.ReqCall20Contract) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.ReqCall20Contract) private static final com.brewchain.sdk.model.TokensContract20.ReqCall20Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.ReqCall20Contract(); } public static com.brewchain.sdk.model.TokensContract20.ReqCall20Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReqCall20Contract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqCall20Contract(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.TokensContract20.ReqCall20Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RespCall20ContractOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.RespCall20Contract) com.google.protobuf.MessageOrBuilder { /** * bytes datas = 1; */ com.google.protobuf.ByteString getDatas(); /** * int32 ret_code = 2; */ int getRetCode(); /** * string ret_message = 3; */ java.lang.String getRetMessage(); /** * string ret_message = 3; */ com.google.protobuf.ByteString getRetMessageBytes(); } /** * Protobuf type {@code com.brewchain.sdk.model.RespCall20Contract} */ public static final class RespCall20Contract extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.RespCall20Contract) RespCall20ContractOrBuilder { private static final long serialVersionUID = 0L; // Use RespCall20Contract.newBuilder() to construct. private RespCall20Contract(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RespCall20Contract() { datas_ = com.google.protobuf.ByteString.EMPTY; retCode_ = 0; retMessage_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespCall20Contract( 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: { datas_ = input.readBytes(); break; } case 16: { retCode_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); retMessage_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespCall20Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespCall20Contract.class, com.brewchain.sdk.model.TokensContract20.RespCall20Contract.Builder.class); } public static final int DATAS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString datas_; /** * bytes datas = 1; */ public com.google.protobuf.ByteString getDatas() { return datas_; } public static final int RET_CODE_FIELD_NUMBER = 2; private int retCode_; /** * int32 ret_code = 2; */ public int getRetCode() { return retCode_; } public static final int RET_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object retMessage_; /** * string ret_message = 3; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } } /** * string ret_message = 3; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!datas_.isEmpty()) { output.writeBytes(1, datas_); } if (retCode_ != 0) { output.writeInt32(2, retCode_); } if (!getRetMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, retMessage_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!datas_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, datas_); } if (retCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, retCode_); } if (!getRetMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, retMessage_); } 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.TokensContract20.RespCall20Contract)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.RespCall20Contract other = (com.brewchain.sdk.model.TokensContract20.RespCall20Contract) obj; boolean result = true; result = result && getDatas() .equals(other.getDatas()); result = result && (getRetCode() == other.getRetCode()); result = result && getRetMessage() .equals(other.getRetMessage()); 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) + DATAS_FIELD_NUMBER; hash = (53 * hash) + getDatas().hashCode(); hash = (37 * hash) + RET_CODE_FIELD_NUMBER; hash = (53 * hash) + getRetCode(); hash = (37 * hash) + RET_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRetMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract 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.TokensContract20.RespCall20Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract 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.TokensContract20.RespCall20Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract 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.TokensContract20.RespCall20Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract 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.TokensContract20.RespCall20Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract 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.TokensContract20.RespCall20Contract 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.RespCall20Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.RespCall20Contract) com.brewchain.sdk.model.TokensContract20.RespCall20ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespCall20Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespCall20Contract.class, com.brewchain.sdk.model.TokensContract20.RespCall20Contract.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.RespCall20Contract.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(); datas_ = com.google.protobuf.ByteString.EMPTY; retCode_ = 0; retMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespCall20Contract getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.RespCall20Contract.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespCall20Contract build() { com.brewchain.sdk.model.TokensContract20.RespCall20Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespCall20Contract buildPartial() { com.brewchain.sdk.model.TokensContract20.RespCall20Contract result = new com.brewchain.sdk.model.TokensContract20.RespCall20Contract(this); result.datas_ = datas_; result.retCode_ = retCode_; result.retMessage_ = retMessage_; 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.TokensContract20.RespCall20Contract) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.RespCall20Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.RespCall20Contract other) { if (other == com.brewchain.sdk.model.TokensContract20.RespCall20Contract.getDefaultInstance()) return this; if (other.getDatas() != com.google.protobuf.ByteString.EMPTY) { setDatas(other.getDatas()); } if (other.getRetCode() != 0) { setRetCode(other.getRetCode()); } if (!other.getRetMessage().isEmpty()) { retMessage_ = other.retMessage_; 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.TokensContract20.RespCall20Contract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.RespCall20Contract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString datas_ = com.google.protobuf.ByteString.EMPTY; /** * bytes datas = 1; */ public com.google.protobuf.ByteString getDatas() { return datas_; } /** * bytes datas = 1; */ public Builder setDatas(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } datas_ = value; onChanged(); return this; } /** * bytes datas = 1; */ public Builder clearDatas() { datas_ = getDefaultInstance().getDatas(); onChanged(); return this; } private int retCode_ ; /** * int32 ret_code = 2; */ public int getRetCode() { return retCode_; } /** * int32 ret_code = 2; */ public Builder setRetCode(int value) { retCode_ = value; onChanged(); return this; } /** * int32 ret_code = 2; */ public Builder clearRetCode() { retCode_ = 0; onChanged(); return this; } private java.lang.Object retMessage_ = ""; /** * string ret_message = 3; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string ret_message = 3; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ret_message = 3; */ public Builder setRetMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } retMessage_ = value; onChanged(); return this; } /** * string ret_message = 3; */ public Builder clearRetMessage() { retMessage_ = getDefaultInstance().getRetMessage(); onChanged(); return this; } /** * string ret_message = 3; */ public Builder setRetMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); retMessage_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.RespCall20Contract) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.RespCall20Contract) private static final com.brewchain.sdk.model.TokensContract20.RespCall20Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.RespCall20Contract(); } public static com.brewchain.sdk.model.TokensContract20.RespCall20Contract getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RespCall20Contract parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespCall20Contract(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.TokensContract20.RespCall20Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReqQueryRC20TokenInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.ReqQueryRC20TokenInfo) com.google.protobuf.MessageOrBuilder { /** * bytes token_address = 1; */ com.google.protobuf.ByteString getTokenAddress(); } /** * Protobuf type {@code com.brewchain.sdk.model.ReqQueryRC20TokenInfo} */ public static final class ReqQueryRC20TokenInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.ReqQueryRC20TokenInfo) ReqQueryRC20TokenInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ReqQueryRC20TokenInfo.newBuilder() to construct. private ReqQueryRC20TokenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReqQueryRC20TokenInfo() { tokenAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqQueryRC20TokenInfo( 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: { tokenAddress_ = 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.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.class, com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.Builder.class); } public static final int TOKEN_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString tokenAddress_; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } 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 (!tokenAddress_.isEmpty()) { output.writeBytes(1, tokenAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!tokenAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, tokenAddress_); } 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.TokensContract20.ReqQueryRC20TokenInfo)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo other = (com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo) obj; boolean result = true; result = result && getTokenAddress() .equals(other.getTokenAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTokenAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo 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.TokensContract20.ReqQueryRC20TokenInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo 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.TokensContract20.ReqQueryRC20TokenInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo 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.TokensContract20.ReqQueryRC20TokenInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo 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.TokensContract20.ReqQueryRC20TokenInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo 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.TokensContract20.ReqQueryRC20TokenInfo 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.ReqQueryRC20TokenInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.ReqQueryRC20TokenInfo) com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.class, com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.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(); tokenAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo build() { com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo buildPartial() { com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo result = new com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo(this); result.tokenAddress_ = tokenAddress_; 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.TokensContract20.ReqQueryRC20TokenInfo) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo other) { if (other == com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo.getDefaultInstance()) return this; if (other.getTokenAddress() != com.google.protobuf.ByteString.EMPTY) { setTokenAddress(other.getTokenAddress()); } 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.TokensContract20.ReqQueryRC20TokenInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString tokenAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } /** * bytes token_address = 1; */ public Builder setTokenAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenAddress_ = value; onChanged(); return this; } /** * bytes token_address = 1; */ public Builder clearTokenAddress() { tokenAddress_ = getDefaultInstance().getTokenAddress(); 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.ReqQueryRC20TokenInfo) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.ReqQueryRC20TokenInfo) private static final com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo(); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReqQueryRC20TokenInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqQueryRC20TokenInfo(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.TokensContract20.ReqQueryRC20TokenInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RespQueryRC20TokenInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.RespQueryRC20TokenInfo) com.google.protobuf.MessageOrBuilder { /** * bytes token_address = 1; */ com.google.protobuf.ByteString getTokenAddress(); /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ boolean hasInfo(); /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ com.brewchain.sdk.model.TokensContract20.TokenRC20Info getInfo(); /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder getInfoOrBuilder(); /** * int32 token_nonce = 3; */ int getTokenNonce(); /** * int32 ret_code = 10; */ int getRetCode(); /** * string ret_message = 11; */ java.lang.String getRetMessage(); /** * string ret_message = 11; */ com.google.protobuf.ByteString getRetMessageBytes(); } /** * Protobuf type {@code com.brewchain.sdk.model.RespQueryRC20TokenInfo} */ public static final class RespQueryRC20TokenInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.RespQueryRC20TokenInfo) RespQueryRC20TokenInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RespQueryRC20TokenInfo.newBuilder() to construct. private RespQueryRC20TokenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RespQueryRC20TokenInfo() { tokenAddress_ = com.google.protobuf.ByteString.EMPTY; tokenNonce_ = 0; retCode_ = 0; retMessage_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespQueryRC20TokenInfo( 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: { tokenAddress_ = input.readBytes(); break; } case 18: { com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder subBuilder = null; if (info_ != null) { subBuilder = info_.toBuilder(); } info_ = input.readMessage(com.brewchain.sdk.model.TokensContract20.TokenRC20Info.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(info_); info_ = subBuilder.buildPartial(); } break; } case 24: { tokenNonce_ = input.readInt32(); break; } case 80: { retCode_ = input.readInt32(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); retMessage_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.class, com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.Builder.class); } public static final int TOKEN_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString tokenAddress_; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } public static final int INFO_FIELD_NUMBER = 2; private com.brewchain.sdk.model.TokensContract20.TokenRC20Info info_; /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public boolean hasInfo() { return info_ != null; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Info getInfo() { return info_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Info.getDefaultInstance() : info_; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder getInfoOrBuilder() { return getInfo(); } public static final int TOKEN_NONCE_FIELD_NUMBER = 3; private int tokenNonce_; /** * int32 token_nonce = 3; */ public int getTokenNonce() { return tokenNonce_; } public static final int RET_CODE_FIELD_NUMBER = 10; private int retCode_; /** * int32 ret_code = 10; */ public int getRetCode() { return retCode_; } public static final int RET_MESSAGE_FIELD_NUMBER = 11; private volatile java.lang.Object retMessage_; /** * string ret_message = 11; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } } /** * string ret_message = 11; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!tokenAddress_.isEmpty()) { output.writeBytes(1, tokenAddress_); } if (info_ != null) { output.writeMessage(2, getInfo()); } if (tokenNonce_ != 0) { output.writeInt32(3, tokenNonce_); } if (retCode_ != 0) { output.writeInt32(10, retCode_); } if (!getRetMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, retMessage_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!tokenAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, tokenAddress_); } if (info_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInfo()); } if (tokenNonce_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, tokenNonce_); } if (retCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, retCode_); } if (!getRetMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, retMessage_); } 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.TokensContract20.RespQueryRC20TokenInfo)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo other = (com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo) obj; boolean result = true; result = result && getTokenAddress() .equals(other.getTokenAddress()); result = result && (hasInfo() == other.hasInfo()); if (hasInfo()) { result = result && getInfo() .equals(other.getInfo()); } result = result && (getTokenNonce() == other.getTokenNonce()); result = result && (getRetCode() == other.getRetCode()); result = result && getRetMessage() .equals(other.getRetMessage()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTokenAddress().hashCode(); if (hasInfo()) { hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); } hash = (37 * hash) + TOKEN_NONCE_FIELD_NUMBER; hash = (53 * hash) + getTokenNonce(); hash = (37 * hash) + RET_CODE_FIELD_NUMBER; hash = (53 * hash) + getRetCode(); hash = (37 * hash) + RET_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRetMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo 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.TokensContract20.RespQueryRC20TokenInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo 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.TokensContract20.RespQueryRC20TokenInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo 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.TokensContract20.RespQueryRC20TokenInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo 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.TokensContract20.RespQueryRC20TokenInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo 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.TokensContract20.RespQueryRC20TokenInfo 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.RespQueryRC20TokenInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.RespQueryRC20TokenInfo) com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.class, com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.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(); tokenAddress_ = com.google.protobuf.ByteString.EMPTY; if (infoBuilder_ == null) { info_ = null; } else { info_ = null; infoBuilder_ = null; } tokenNonce_ = 0; retCode_ = 0; retMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo build() { com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo buildPartial() { com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo result = new com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo(this); result.tokenAddress_ = tokenAddress_; if (infoBuilder_ == null) { result.info_ = info_; } else { result.info_ = infoBuilder_.build(); } result.tokenNonce_ = tokenNonce_; result.retCode_ = retCode_; result.retMessage_ = retMessage_; 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.TokensContract20.RespQueryRC20TokenInfo) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo other) { if (other == com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo.getDefaultInstance()) return this; if (other.getTokenAddress() != com.google.protobuf.ByteString.EMPTY) { setTokenAddress(other.getTokenAddress()); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } if (other.getTokenNonce() != 0) { setTokenNonce(other.getTokenNonce()); } if (other.getRetCode() != 0) { setRetCode(other.getRetCode()); } if (!other.getRetMessage().isEmpty()) { retMessage_ = other.retMessage_; 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.TokensContract20.RespQueryRC20TokenInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString tokenAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } /** * bytes token_address = 1; */ public Builder setTokenAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenAddress_ = value; onChanged(); return this; } /** * bytes token_address = 1; */ public Builder clearTokenAddress() { tokenAddress_ = getDefaultInstance().getTokenAddress(); onChanged(); return this; } private com.brewchain.sdk.model.TokensContract20.TokenRC20Info info_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Info, com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder> infoBuilder_; /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public boolean hasInfo() { return infoBuilder_ != null || info_ != null; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public Builder setInfo(com.brewchain.sdk.model.TokensContract20.TokenRC20Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public Builder setInfo( com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public Builder mergeInfo(com.brewchain.sdk.model.TokensContract20.TokenRC20Info value) { if (infoBuilder_ == null) { if (info_ != null) { info_ = com.brewchain.sdk.model.TokensContract20.TokenRC20Info.newBuilder(info_).mergeFrom(value).buildPartial(); } else { info_ = value; } onChanged(); } else { infoBuilder_.mergeFrom(value); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = null; onChanged(); } else { info_ = null; infoBuilder_ = null; } return this; } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder getInfoBuilder() { onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Info.getDefaultInstance() : info_; } } /** * .com.brewchain.sdk.model.TokenRC20Info info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Info, com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Info, com.brewchain.sdk.model.TokensContract20.TokenRC20Info.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20InfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private int tokenNonce_ ; /** * int32 token_nonce = 3; */ public int getTokenNonce() { return tokenNonce_; } /** * int32 token_nonce = 3; */ public Builder setTokenNonce(int value) { tokenNonce_ = value; onChanged(); return this; } /** * int32 token_nonce = 3; */ public Builder clearTokenNonce() { tokenNonce_ = 0; onChanged(); return this; } private int retCode_ ; /** * int32 ret_code = 10; */ public int getRetCode() { return retCode_; } /** * int32 ret_code = 10; */ public Builder setRetCode(int value) { retCode_ = value; onChanged(); return this; } /** * int32 ret_code = 10; */ public Builder clearRetCode() { retCode_ = 0; onChanged(); return this; } private java.lang.Object retMessage_ = ""; /** * string ret_message = 11; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string ret_message = 11; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ret_message = 11; */ public Builder setRetMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } retMessage_ = value; onChanged(); return this; } /** * string ret_message = 11; */ public Builder clearRetMessage() { retMessage_ = getDefaultInstance().getRetMessage(); onChanged(); return this; } /** * string ret_message = 11; */ public Builder setRetMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); retMessage_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.RespQueryRC20TokenInfo) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.RespQueryRC20TokenInfo) private static final com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo(); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RespQueryRC20TokenInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespQueryRC20TokenInfo(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.TokensContract20.RespQueryRC20TokenInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReqQueryRC20TokenValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.ReqQueryRC20TokenValue) com.google.protobuf.MessageOrBuilder { /** * bytes token_address = 1; */ com.google.protobuf.ByteString getTokenAddress(); /** * bytes owner_address = 2; */ com.google.protobuf.ByteString getOwnerAddress(); } /** * Protobuf type {@code com.brewchain.sdk.model.ReqQueryRC20TokenValue} */ public static final class ReqQueryRC20TokenValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.ReqQueryRC20TokenValue) ReqQueryRC20TokenValueOrBuilder { private static final long serialVersionUID = 0L; // Use ReqQueryRC20TokenValue.newBuilder() to construct. private ReqQueryRC20TokenValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReqQueryRC20TokenValue() { tokenAddress_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReqQueryRC20TokenValue( 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: { tokenAddress_ = input.readBytes(); break; } case 18: { ownerAddress_ = 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.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.class, com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.Builder.class); } public static final int TOKEN_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString tokenAddress_; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } public static final int OWNER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ownerAddress_; /** * bytes owner_address = 2; */ public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } 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 (!tokenAddress_.isEmpty()) { output.writeBytes(1, tokenAddress_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!tokenAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, tokenAddress_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } 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.TokensContract20.ReqQueryRC20TokenValue)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue other = (com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue) obj; boolean result = true; result = result && getTokenAddress() .equals(other.getTokenAddress()); result = result && getOwnerAddress() .equals(other.getOwnerAddress()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTokenAddress().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue 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.TokensContract20.ReqQueryRC20TokenValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue 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.TokensContract20.ReqQueryRC20TokenValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue 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.TokensContract20.ReqQueryRC20TokenValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue 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.TokensContract20.ReqQueryRC20TokenValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue 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.TokensContract20.ReqQueryRC20TokenValue 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.ReqQueryRC20TokenValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.ReqQueryRC20TokenValue) com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.class, com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.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(); tokenAddress_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue build() { com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue buildPartial() { com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue result = new com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue(this); result.tokenAddress_ = tokenAddress_; result.ownerAddress_ = ownerAddress_; 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.TokensContract20.ReqQueryRC20TokenValue) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue other) { if (other == com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue.getDefaultInstance()) return this; if (other.getTokenAddress() != com.google.protobuf.ByteString.EMPTY) { setTokenAddress(other.getTokenAddress()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } 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.TokensContract20.ReqQueryRC20TokenValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString tokenAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } /** * bytes token_address = 1; */ public Builder setTokenAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenAddress_ = value; onChanged(); return this; } /** * bytes token_address = 1; */ public Builder clearTokenAddress() { tokenAddress_ = getDefaultInstance().getTokenAddress(); onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 2; */ public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 2; */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; onChanged(); return this; } /** * bytes owner_address = 2; */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); 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.ReqQueryRC20TokenValue) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.ReqQueryRC20TokenValue) private static final com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue(); } public static com.brewchain.sdk.model.TokensContract20.ReqQueryRC20TokenValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReqQueryRC20TokenValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReqQueryRC20TokenValue(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.TokensContract20.ReqQueryRC20TokenValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RespQueryRC20TokenValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.RespQueryRC20TokenValue) com.google.protobuf.MessageOrBuilder { /** * bytes token_address = 1; */ com.google.protobuf.ByteString getTokenAddress(); /** * bytes owner_address = 2; */ com.google.protobuf.ByteString getOwnerAddress(); /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ boolean hasValue(); /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ com.brewchain.sdk.model.TokensContract20.TokenRC20Value getValue(); /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder getValueOrBuilder(); /** *
     *总量
     * 
* * bytes totalSupply = 4; */ com.google.protobuf.ByteString getTotalSupply(); /** * string name = 5; */ java.lang.String getName(); /** * string name = 5; */ com.google.protobuf.ByteString getNameBytes(); /** * string symbol = 6; */ java.lang.String getSymbol(); /** * string symbol = 6; */ com.google.protobuf.ByteString getSymbolBytes(); /** *
     *精度
     * 
* * int64 decimals = 7; */ long getDecimals(); /** * int32 ret_code = 10; */ int getRetCode(); /** * string ret_message = 11; */ java.lang.String getRetMessage(); /** * string ret_message = 11; */ com.google.protobuf.ByteString getRetMessageBytes(); } /** * Protobuf type {@code com.brewchain.sdk.model.RespQueryRC20TokenValue} */ public static final class RespQueryRC20TokenValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.RespQueryRC20TokenValue) RespQueryRC20TokenValueOrBuilder { private static final long serialVersionUID = 0L; // Use RespQueryRC20TokenValue.newBuilder() to construct. private RespQueryRC20TokenValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RespQueryRC20TokenValue() { tokenAddress_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; totalSupply_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; symbol_ = ""; decimals_ = 0L; retCode_ = 0; retMessage_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RespQueryRC20TokenValue( 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: { tokenAddress_ = input.readBytes(); break; } case 18: { ownerAddress_ = input.readBytes(); break; } case 26: { com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(com.brewchain.sdk.model.TokensContract20.TokenRC20Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } case 34: { totalSupply_ = input.readBytes(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); symbol_ = s; break; } case 56: { decimals_ = input.readInt64(); break; } case 80: { retCode_ = input.readInt32(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); retMessage_ = s; break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.class, com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.Builder.class); } public static final int TOKEN_ADDRESS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString tokenAddress_; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } public static final int OWNER_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString ownerAddress_; /** * bytes owner_address = 2; */ public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } public static final int VALUE_FIELD_NUMBER = 3; private com.brewchain.sdk.model.TokensContract20.TokenRC20Value value_; /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public boolean hasValue() { return value_ != null; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Value getValue() { return value_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Value.getDefaultInstance() : value_; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder getValueOrBuilder() { return getValue(); } public static final int TOTALSUPPLY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString totalSupply_; /** *
     *总量
     * 
* * bytes totalSupply = 4; */ public com.google.protobuf.ByteString getTotalSupply() { return totalSupply_; } public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** * string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOL_FIELD_NUMBER = 6; private volatile java.lang.Object symbol_; /** * string symbol = 6; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } } /** * string symbol = 6; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DECIMALS_FIELD_NUMBER = 7; private long decimals_; /** *
     *精度
     * 
* * int64 decimals = 7; */ public long getDecimals() { return decimals_; } public static final int RET_CODE_FIELD_NUMBER = 10; private int retCode_; /** * int32 ret_code = 10; */ public int getRetCode() { return retCode_; } public static final int RET_MESSAGE_FIELD_NUMBER = 11; private volatile java.lang.Object retMessage_; /** * string ret_message = 11; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } } /** * string ret_message = 11; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!tokenAddress_.isEmpty()) { output.writeBytes(1, tokenAddress_); } if (!ownerAddress_.isEmpty()) { output.writeBytes(2, ownerAddress_); } if (value_ != null) { output.writeMessage(3, getValue()); } if (!totalSupply_.isEmpty()) { output.writeBytes(4, totalSupply_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } if (!getSymbolBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, symbol_); } if (decimals_ != 0L) { output.writeInt64(7, decimals_); } if (retCode_ != 0) { output.writeInt32(10, retCode_); } if (!getRetMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, retMessage_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!tokenAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, tokenAddress_); } if (!ownerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ownerAddress_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } if (!totalSupply_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, totalSupply_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } if (!getSymbolBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, symbol_); } if (decimals_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, decimals_); } if (retCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, retCode_); } if (!getRetMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, retMessage_); } 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.TokensContract20.RespQueryRC20TokenValue)) { return super.equals(obj); } com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue other = (com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue) obj; boolean result = true; result = result && getTokenAddress() .equals(other.getTokenAddress()); result = result && getOwnerAddress() .equals(other.getOwnerAddress()); result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getTotalSupply() .equals(other.getTotalSupply()); result = result && getName() .equals(other.getName()); result = result && getSymbol() .equals(other.getSymbol()); result = result && (getDecimals() == other.getDecimals()); result = result && (getRetCode() == other.getRetCode()); result = result && getRetMessage() .equals(other.getRetMessage()); 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_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTokenAddress().hashCode(); hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (37 * hash) + TOTALSUPPLY_FIELD_NUMBER; hash = (53 * hash) + getTotalSupply().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDecimals()); hash = (37 * hash) + RET_CODE_FIELD_NUMBER; hash = (53 * hash) + getRetCode(); hash = (37 * hash) + RET_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getRetMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue 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.TokensContract20.RespQueryRC20TokenValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue 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.TokensContract20.RespQueryRC20TokenValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue 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.TokensContract20.RespQueryRC20TokenValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue 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.TokensContract20.RespQueryRC20TokenValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue 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.TokensContract20.RespQueryRC20TokenValue 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.RespQueryRC20TokenValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.RespQueryRC20TokenValue) com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.class, com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.Builder.class); } // Construct using com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.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(); tokenAddress_ = com.google.protobuf.ByteString.EMPTY; ownerAddress_ = com.google.protobuf.ByteString.EMPTY; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } totalSupply_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; symbol_ = ""; decimals_ = 0L; retCode_ = 0; retMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.brewchain.sdk.model.TokensContract20.internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue getDefaultInstanceForType() { return com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.getDefaultInstance(); } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue build() { com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue buildPartial() { com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue result = new com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue(this); result.tokenAddress_ = tokenAddress_; result.ownerAddress_ = ownerAddress_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } result.totalSupply_ = totalSupply_; result.name_ = name_; result.symbol_ = symbol_; result.decimals_ = decimals_; result.retCode_ = retCode_; result.retMessage_ = retMessage_; 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.TokensContract20.RespQueryRC20TokenValue) { return mergeFrom((com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue other) { if (other == com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue.getDefaultInstance()) return this; if (other.getTokenAddress() != com.google.protobuf.ByteString.EMPTY) { setTokenAddress(other.getTokenAddress()); } if (other.getOwnerAddress() != com.google.protobuf.ByteString.EMPTY) { setOwnerAddress(other.getOwnerAddress()); } if (other.hasValue()) { mergeValue(other.getValue()); } if (other.getTotalSupply() != com.google.protobuf.ByteString.EMPTY) { setTotalSupply(other.getTotalSupply()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; onChanged(); } if (other.getDecimals() != 0L) { setDecimals(other.getDecimals()); } if (other.getRetCode() != 0) { setRetCode(other.getRetCode()); } if (!other.getRetMessage().isEmpty()) { retMessage_ = other.retMessage_; 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.TokensContract20.RespQueryRC20TokenValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString tokenAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes token_address = 1; */ public com.google.protobuf.ByteString getTokenAddress() { return tokenAddress_; } /** * bytes token_address = 1; */ public Builder setTokenAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tokenAddress_ = value; onChanged(); return this; } /** * bytes token_address = 1; */ public Builder clearTokenAddress() { tokenAddress_ = getDefaultInstance().getTokenAddress(); onChanged(); return this; } private com.google.protobuf.ByteString ownerAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes owner_address = 2; */ public com.google.protobuf.ByteString getOwnerAddress() { return ownerAddress_; } /** * bytes owner_address = 2; */ public Builder setOwnerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; onChanged(); return this; } /** * bytes owner_address = 2; */ public Builder clearOwnerAddress() { ownerAddress_ = getDefaultInstance().getOwnerAddress(); onChanged(); return this; } private com.brewchain.sdk.model.TokensContract20.TokenRC20Value value_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Value, com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder> valueBuilder_; /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public Builder setValue(com.brewchain.sdk.model.TokensContract20.TokenRC20Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public Builder setValue( com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public Builder mergeValue(com.brewchain.sdk.model.TokensContract20.TokenRC20Value value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.brewchain.sdk.model.TokensContract20.TokenRC20Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ public com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.brewchain.sdk.model.TokensContract20.TokenRC20Value.getDefaultInstance() : value_; } } /** * .com.brewchain.sdk.model.TokenRC20Value value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Value, com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.brewchain.sdk.model.TokensContract20.TokenRC20Value, com.brewchain.sdk.model.TokensContract20.TokenRC20Value.Builder, com.brewchain.sdk.model.TokensContract20.TokenRC20ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private com.google.protobuf.ByteString totalSupply_ = com.google.protobuf.ByteString.EMPTY; /** *
       *总量
       * 
* * bytes totalSupply = 4; */ public com.google.protobuf.ByteString getTotalSupply() { return totalSupply_; } /** *
       *总量
       * 
* * bytes totalSupply = 4; */ public Builder setTotalSupply(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } totalSupply_ = value; onChanged(); return this; } /** *
       *总量
       * 
* * bytes totalSupply = 4; */ public Builder clearTotalSupply() { totalSupply_ = getDefaultInstance().getTotalSupply(); onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 5; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 5; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 5; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 5; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 5; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object symbol_ = ""; /** * string symbol = 6; */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** * string symbol = 6; */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string symbol = 6; */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; onChanged(); return this; } /** * string symbol = 6; */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); onChanged(); return this; } /** * string symbol = 6; */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; onChanged(); return this; } private long decimals_ ; /** *
       *精度
       * 
* * int64 decimals = 7; */ public long getDecimals() { return decimals_; } /** *
       *精度
       * 
* * int64 decimals = 7; */ public Builder setDecimals(long value) { decimals_ = value; onChanged(); return this; } /** *
       *精度
       * 
* * int64 decimals = 7; */ public Builder clearDecimals() { decimals_ = 0L; onChanged(); return this; } private int retCode_ ; /** * int32 ret_code = 10; */ public int getRetCode() { return retCode_; } /** * int32 ret_code = 10; */ public Builder setRetCode(int value) { retCode_ = value; onChanged(); return this; } /** * int32 ret_code = 10; */ public Builder clearRetCode() { retCode_ = 0; onChanged(); return this; } private java.lang.Object retMessage_ = ""; /** * string ret_message = 11; */ public java.lang.String getRetMessage() { java.lang.Object ref = retMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * string ret_message = 11; */ public com.google.protobuf.ByteString getRetMessageBytes() { java.lang.Object ref = retMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ret_message = 11; */ public Builder setRetMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } retMessage_ = value; onChanged(); return this; } /** * string ret_message = 11; */ public Builder clearRetMessage() { retMessage_ = getDefaultInstance().getRetMessage(); onChanged(); return this; } /** * string ret_message = 11; */ public Builder setRetMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); retMessage_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.RespQueryRC20TokenValue) } // @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.RespQueryRC20TokenValue) private static final com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue(); } public static com.brewchain.sdk.model.TokensContract20.RespQueryRC20TokenValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RespQueryRC20TokenValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RespQueryRC20TokenValue(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.TokensContract20.RespQueryRC20TokenValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_ContractRC20_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_ContractRC20_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_TokenRC20Value_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_TokenRC20Info_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_ReqCall20Contract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_RespCall20Contract_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_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\026tokensContract20.proto\022\027com.brewchain." + "sdk.model\"\227\002\n\014ContractRC20\022B\n\010function\030\001" + " \001(\01620.com.brewchain.sdk.model.ContractR" + "C20.Function20\022\014\n\004from\030\002 \001(\014\022\013\n\003tos\030\003 \003(" + "\014\022\016\n\006values\030\004 \003(\014\022\021\n\text_datas\030\006 \001(\014\022\014\n\004" + "name\030\n \001(\t\022\016\n\006symbol\030\013 \001(\t\022\020\n\010decimals\030\014" + " \001(\003\"U\n\nFunction20\022\n\n\006UNKNOW\020\000\022\027\n\023CONSTR" + "UCT_PRINTABLE\020\002\022\r\n\tTRANSFERS\020\003\022\t\n\005PRINT\020" + "\004\022\010\n\004BURN\020\005\"C\n\016TokenRC20Value\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" + "\"\313\001\n\rTokenRC20Info\022\017\n\007creator\030\001 \001(\014\022\023\n\013c" + "reate_time\030\002 \001(\003\022\023\n\013totalSupply\030\003 \001(\014\022\020\n" + "\010managers\030\004 \003(\014\022\014\n\004name\030\005 \001(\t\022\016\n\006symbol\030" + "\006 \001(\t\022\020\n\010decimals\030\007 \001(\003\022\021\n\text_datas\030\010 \001" + "(\014\022\021\n\tprintable\030\t \001(\010\022\027\n\017storageTrieRoot" + "\030\n \001(\014\"H\n\021ReqCall20Contract\0223\n\004data\030\001 \001(" + "\0132%.com.brewchain.sdk.model.ContractRC20" + "\"J\n\022RespCall20Contract\022\r\n\005datas\030\001 \001(\014\022\020\n" + "\010ret_code\030\002 \001(\005\022\023\n\013ret_message\030\003 \001(\t\".\n\025" + "ReqQueryRC20TokenInfo\022\025\n\rtoken_address\030\001" + " \001(\014\"\241\001\n\026RespQueryRC20TokenInfo\022\025\n\rtoken" + "_address\030\001 \001(\014\0224\n\004info\030\002 \001(\0132&.com.brewc" + "hain.sdk.model.TokenRC20Info\022\023\n\013token_no" + "nce\030\003 \001(\005\022\020\n\010ret_code\030\n \001(\005\022\023\n\013ret_messa" + "ge\030\013 \001(\t\"F\n\026ReqQueryRC20TokenValue\022\025\n\rto" + "ken_address\030\001 \001(\014\022\025\n\rowner_address\030\002 \001(\014" + "\"\353\001\n\027RespQueryRC20TokenValue\022\025\n\rtoken_ad" + "dress\030\001 \001(\014\022\025\n\rowner_address\030\002 \001(\014\0226\n\005va" + "lue\030\003 \001(\0132\'.com.brewchain.sdk.model.Toke" + "nRC20Value\022\023\n\013totalSupply\030\004 \001(\014\022\014\n\004name\030" + "\005 \001(\t\022\016\n\006symbol\030\006 \001(\t\022\020\n\010decimals\030\007 \001(\003\022" + "\020\n\010ret_code\030\n \001(\005\022\023\n\013ret_message\030\013 \001(\tb\006" + "proto3" }; 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_ContractRC20_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_brewchain_sdk_model_ContractRC20_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_ContractRC20_descriptor, new java.lang.String[] { "Function", "From", "Tos", "Values", "ExtDatas", "Name", "Symbol", "Decimals", }); internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_brewchain_sdk_model_TokenRC20Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_TokenRC20Value_descriptor, new java.lang.String[] { "Balance", "Locked", "ExtData", }); internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_brewchain_sdk_model_TokenRC20Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_TokenRC20Info_descriptor, new java.lang.String[] { "Creator", "CreateTime", "TotalSupply", "Managers", "Name", "Symbol", "Decimals", "ExtDatas", "Printable", "StorageTrieRoot", }); internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_brewchain_sdk_model_ReqCall20Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_ReqCall20Contract_descriptor, new java.lang.String[] { "Data", }); internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_brewchain_sdk_model_RespCall20Contract_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_RespCall20Contract_descriptor, new java.lang.String[] { "Datas", "RetCode", "RetMessage", }); internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenInfo_descriptor, new java.lang.String[] { "TokenAddress", }); internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_RespQueryRC20TokenInfo_descriptor, new java.lang.String[] { "TokenAddress", "Info", "TokenNonce", "RetCode", "RetMessage", }); internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_ReqQueryRC20TokenValue_descriptor, new java.lang.String[] { "TokenAddress", "OwnerAddress", }); internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_brewchain_sdk_model_RespQueryRC20TokenValue_descriptor, new java.lang.String[] { "TokenAddress", "OwnerAddress", "Value", "TotalSupply", "Name", "Symbol", "Decimals", "RetCode", "RetMessage", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy