// Generated by the protocol buffer compiler. DO NOT EDIT! // source: bdchain/api/ac_chain.proto package bdchain.api.grpc; /** * Protobuf type {@code bdchain.api.Transaction} */ public final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bdchain.api.Transaction) TransactionOrBuilder { private static final long serialVersionUID = 0L; // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transaction() { blockNumber_ = 0L; blockHash_ = com.google.protobuf.ByteString.EMPTY; index_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; from_ = com.google.protobuf.ByteString.EMPTY; nonce_ = 0L; to_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; v_ = com.google.protobuf.ByteString.EMPTY; r_ = com.google.protobuf.ByteString.EMPTY; s_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transaction( 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: { blockNumber_ = input.readUInt64(); break; } case 18: { blockHash_ = input.readBytes(); break; } case 24: { index_ = input.readUInt32(); break; } case 34: { hash_ = input.readBytes(); break; } case 40: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 50: { from_ = input.readBytes(); break; } case 56: { nonce_ = input.readUInt64(); break; } case 66: { to_ = input.readBytes(); break; } case 74: { data_ = input.readBytes(); break; } case 82: { v_ = input.readBytes(); break; } case 90: { r_ = input.readBytes(); break; } case 98: { s_ = 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 bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( bdchain.api.grpc.Transaction.class, bdchain.api.grpc.Transaction.Builder.class); } public static final int BLOCK_NUMBER_FIELD_NUMBER = 1; private long blockNumber_; /** *
   * 事务所在的区块的区块号,当事务处于待确认状态时为`null`
   * 
* * uint64 block_number = 1; */ public long getBlockNumber() { return blockNumber_; } public static final int BLOCK_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString blockHash_; /** *
   * 事务所在的区块的哈希,当事务处于待确认状态时为`null`
   * 
* * bytes block_hash = 2; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } public static final int INDEX_FIELD_NUMBER = 3; private int index_; /** *
   * 事务在区块中的位置index,当事务处于待确认状态时为`null`
   * 
* * uint32 index = 3; */ public int getIndex() { return index_; } public static final int HASH_FIELD_NUMBER = 4; private com.google.protobuf.ByteString hash_; /** *
   * 事务的哈希
   * 
* * bytes hash = 4; */ public com.google.protobuf.ByteString getHash() { return hash_; } public static final int TYPE_FIELD_NUMBER = 5; private int type_; /** *
   * 事务类型
   * 
* * .bdchain.api.TransactionType type = 5; */ public int getTypeValue() { return type_; } /** *
   * 事务类型
   * 
* * .bdchain.api.TransactionType type = 5; */ public bdchain.api.grpc.TransactionType getType() { @SuppressWarnings("deprecation") bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_); return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result; } public static final int FROM_FIELD_NUMBER = 6; private com.google.protobuf.ByteString from_; /** *
   * 发送账户地址
   * 
* * bytes from = 6; */ public com.google.protobuf.ByteString getFrom() { return from_; } public static final int NONCE_FIELD_NUMBER = 7; private long nonce_; /** *
   * 这条事务之前发送者所发送的事务数量
   * 
* * uint64 nonce = 7; */ public long getNonce() { return nonce_; } public static final int TO_FIELD_NUMBER = 8; private com.google.protobuf.ByteString to_; /** *
   * 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
   * 
* * bytes to = 8; */ public com.google.protobuf.ByteString getTo() { return to_; } public static final int DATA_FIELD_NUMBER = 9; private com.google.protobuf.ByteString data_; /** *
   * 数据或合约代码
   * 
* * bytes data = 9; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int V_FIELD_NUMBER = 10; private com.google.protobuf.ByteString v_; /** *
   * ECDSA recovery id
   * 
* * bytes v = 10; */ public com.google.protobuf.ByteString getV() { return v_; } public static final int R_FIELD_NUMBER = 11; private com.google.protobuf.ByteString r_; /** *
   * ECDSA signature r
   * 
* * bytes r = 11; */ public com.google.protobuf.ByteString getR() { return r_; } public static final int S_FIELD_NUMBER = 12; private com.google.protobuf.ByteString s_; /** *
   * ECDSA signature s
   * 
* * bytes s = 12; */ public com.google.protobuf.ByteString getS() { return s_; } 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 (blockNumber_ != 0L) { output.writeUInt64(1, blockNumber_); } if (!blockHash_.isEmpty()) { output.writeBytes(2, blockHash_); } if (index_ != 0) { output.writeUInt32(3, index_); } if (!hash_.isEmpty()) { output.writeBytes(4, hash_); } if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) { output.writeEnum(5, type_); } if (!from_.isEmpty()) { output.writeBytes(6, from_); } if (nonce_ != 0L) { output.writeUInt64(7, nonce_); } if (!to_.isEmpty()) { output.writeBytes(8, to_); } if (!data_.isEmpty()) { output.writeBytes(9, data_); } if (!v_.isEmpty()) { output.writeBytes(10, v_); } if (!r_.isEmpty()) { output.writeBytes(11, r_); } if (!s_.isEmpty()) { output.writeBytes(12, s_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (blockNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, blockNumber_); } if (!blockHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, blockHash_); } if (index_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, index_); } if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, hash_); } if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, type_); } if (!from_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, from_); } if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, nonce_); } if (!to_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, to_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, data_); } if (!v_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, v_); } if (!r_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, r_); } if (!s_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, s_); } 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 bdchain.api.grpc.Transaction)) { return super.equals(obj); } bdchain.api.grpc.Transaction other = (bdchain.api.grpc.Transaction) obj; boolean result = true; result = result && (getBlockNumber() == other.getBlockNumber()); result = result && getBlockHash() .equals(other.getBlockHash()); result = result && (getIndex() == other.getIndex()); result = result && getHash() .equals(other.getHash()); result = result && type_ == other.type_; result = result && getFrom() .equals(other.getFrom()); result = result && (getNonce() == other.getNonce()); result = result && getTo() .equals(other.getTo()); result = result && getData() .equals(other.getData()); result = result && getV() .equals(other.getV()); result = result && getR() .equals(other.getR()); result = result && getS() .equals(other.getS()); 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) + BLOCK_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockNumber()); hash = (37 * hash) + BLOCK_HASH_FIELD_NUMBER; hash = (53 * hash) + getBlockHash().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (37 * hash) + TO_FIELD_NUMBER; hash = (53 * hash) + getTo().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + V_FIELD_NUMBER; hash = (53 * hash) + getV().hashCode(); hash = (37 * hash) + R_FIELD_NUMBER; hash = (53 * hash) + getR().hashCode(); hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static bdchain.api.grpc.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static bdchain.api.grpc.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static bdchain.api.grpc.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static bdchain.api.grpc.Transaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static bdchain.api.grpc.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static bdchain.api.grpc.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static bdchain.api.grpc.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static bdchain.api.grpc.Transaction 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 bdchain.api.grpc.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static bdchain.api.grpc.Transaction 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 bdchain.api.grpc.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static bdchain.api.grpc.Transaction 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(bdchain.api.grpc.Transaction 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 bdchain.api.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bdchain.api.Transaction) bdchain.api.grpc.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( bdchain.api.grpc.Transaction.class, bdchain.api.grpc.Transaction.Builder.class); } // Construct using bdchain.api.grpc.Transaction.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(); blockNumber_ = 0L; blockHash_ = com.google.protobuf.ByteString.EMPTY; index_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; from_ = com.google.protobuf.ByteString.EMPTY; nonce_ = 0L; to_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; v_ = com.google.protobuf.ByteString.EMPTY; r_ = com.google.protobuf.ByteString.EMPTY; s_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor; } @java.lang.Override public bdchain.api.grpc.Transaction getDefaultInstanceForType() { return bdchain.api.grpc.Transaction.getDefaultInstance(); } @java.lang.Override public bdchain.api.grpc.Transaction build() { bdchain.api.grpc.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public bdchain.api.grpc.Transaction buildPartial() { bdchain.api.grpc.Transaction result = new bdchain.api.grpc.Transaction(this); result.blockNumber_ = blockNumber_; result.blockHash_ = blockHash_; result.index_ = index_; result.hash_ = hash_; result.type_ = type_; result.from_ = from_; result.nonce_ = nonce_; result.to_ = to_; result.data_ = data_; result.v_ = v_; result.r_ = r_; result.s_ = s_; 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 bdchain.api.grpc.Transaction) { return mergeFrom((bdchain.api.grpc.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(bdchain.api.grpc.Transaction other) { if (other == bdchain.api.grpc.Transaction.getDefaultInstance()) return this; if (other.getBlockNumber() != 0L) { setBlockNumber(other.getBlockNumber()); } if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) { setBlockHash(other.getBlockHash()); } if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) { setFrom(other.getFrom()); } if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (other.getTo() != com.google.protobuf.ByteString.EMPTY) { setTo(other.getTo()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getV() != com.google.protobuf.ByteString.EMPTY) { setV(other.getV()); } if (other.getR() != com.google.protobuf.ByteString.EMPTY) { setR(other.getR()); } if (other.getS() != com.google.protobuf.ByteString.EMPTY) { setS(other.getS()); } 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 { bdchain.api.grpc.Transaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (bdchain.api.grpc.Transaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long blockNumber_ ; /** *
     * 事务所在的区块的区块号,当事务处于待确认状态时为`null`
     * 
* * uint64 block_number = 1; */ public long getBlockNumber() { return blockNumber_; } /** *
     * 事务所在的区块的区块号,当事务处于待确认状态时为`null`
     * 
* * uint64 block_number = 1; */ public Builder setBlockNumber(long value) { blockNumber_ = value; onChanged(); return this; } /** *
     * 事务所在的区块的区块号,当事务处于待确认状态时为`null`
     * 
* * uint64 block_number = 1; */ public Builder clearBlockNumber() { blockNumber_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 事务所在的区块的哈希,当事务处于待确认状态时为`null`
     * 
* * bytes block_hash = 2; */ public com.google.protobuf.ByteString getBlockHash() { return blockHash_; } /** *
     * 事务所在的区块的哈希,当事务处于待确认状态时为`null`
     * 
* * bytes block_hash = 2; */ public Builder setBlockHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } blockHash_ = value; onChanged(); return this; } /** *
     * 事务所在的区块的哈希,当事务处于待确认状态时为`null`
     * 
* * bytes block_hash = 2; */ public Builder clearBlockHash() { blockHash_ = getDefaultInstance().getBlockHash(); onChanged(); return this; } private int index_ ; /** *
     * 事务在区块中的位置index,当事务处于待确认状态时为`null`
     * 
* * uint32 index = 3; */ public int getIndex() { return index_; } /** *
     * 事务在区块中的位置index,当事务处于待确认状态时为`null`
     * 
* * uint32 index = 3; */ public Builder setIndex(int value) { index_ = value; onChanged(); return this; } /** *
     * 事务在区块中的位置index,当事务处于待确认状态时为`null`
     * 
* * uint32 index = 3; */ public Builder clearIndex() { index_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 事务的哈希
     * 
* * bytes hash = 4; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** *
     * 事务的哈希
     * 
* * bytes hash = 4; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** *
     * 事务的哈希
     * 
* * bytes hash = 4; */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private int type_ = 0; /** *
     * 事务类型
     * 
* * .bdchain.api.TransactionType type = 5; */ public int getTypeValue() { return type_; } /** *
     * 事务类型
     * 
* * .bdchain.api.TransactionType type = 5; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
     * 事务类型
     * 
* * .bdchain.api.TransactionType type = 5; */ public bdchain.api.grpc.TransactionType getType() { @SuppressWarnings("deprecation") bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_); return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result; } /** *
     * 事务类型
     * 
* * .bdchain.api.TransactionType type = 5; */ public Builder setType(bdchain.api.grpc.TransactionType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
     * 事务类型
     * 
* * .bdchain.api.TransactionType type = 5; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 发送账户地址
     * 
* * bytes from = 6; */ public com.google.protobuf.ByteString getFrom() { return from_; } /** *
     * 发送账户地址
     * 
* * bytes from = 6; */ public Builder setFrom(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } from_ = value; onChanged(); return this; } /** *
     * 发送账户地址
     * 
* * bytes from = 6; */ public Builder clearFrom() { from_ = getDefaultInstance().getFrom(); onChanged(); return this; } private long nonce_ ; /** *
     * 这条事务之前发送者所发送的事务数量
     * 
* * uint64 nonce = 7; */ public long getNonce() { return nonce_; } /** *
     * 这条事务之前发送者所发送的事务数量
     * 
* * uint64 nonce = 7; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** *
     * 这条事务之前发送者所发送的事务数量
     * 
* * uint64 nonce = 7; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
     * 
* * bytes to = 8; */ public com.google.protobuf.ByteString getTo() { return to_; } /** *
     * 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
     * 
* * bytes to = 8; */ public Builder setTo(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } to_ = value; onChanged(); return this; } /** *
     * 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
     * 
* * bytes to = 8; */ public Builder clearTo() { to_ = getDefaultInstance().getTo(); onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 数据或合约代码
     * 
* * bytes data = 9; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
     * 数据或合约代码
     * 
* * bytes data = 9; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
     * 数据或合约代码
     * 
* * bytes data = 9; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.ByteString v_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ECDSA recovery id
     * 
* * bytes v = 10; */ public com.google.protobuf.ByteString getV() { return v_; } /** *
     * ECDSA recovery id
     * 
* * bytes v = 10; */ public Builder setV(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } v_ = value; onChanged(); return this; } /** *
     * ECDSA recovery id
     * 
* * bytes v = 10; */ public Builder clearV() { v_ = getDefaultInstance().getV(); onChanged(); return this; } private com.google.protobuf.ByteString r_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ECDSA signature r
     * 
* * bytes r = 11; */ public com.google.protobuf.ByteString getR() { return r_; } /** *
     * ECDSA signature r
     * 
* * bytes r = 11; */ public Builder setR(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } r_ = value; onChanged(); return this; } /** *
     * ECDSA signature r
     * 
* * bytes r = 11; */ public Builder clearR() { r_ = getDefaultInstance().getR(); onChanged(); return this; } private com.google.protobuf.ByteString s_ = com.google.protobuf.ByteString.EMPTY; /** *
     * ECDSA signature s
     * 
* * bytes s = 12; */ public com.google.protobuf.ByteString getS() { return s_; } /** *
     * ECDSA signature s
     * 
* * bytes s = 12; */ public Builder setS(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } s_ = value; onChanged(); return this; } /** *
     * ECDSA signature s
     * 
* * bytes s = 12; */ public Builder clearS() { s_ = getDefaultInstance().getS(); 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:bdchain.api.Transaction) } // @@protoc_insertion_point(class_scope:bdchain.api.Transaction) private static final bdchain.api.grpc.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new bdchain.api.grpc.Transaction(); } public static bdchain.api.grpc.Transaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transaction(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 bdchain.api.grpc.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }