com.brewchain.sdk.model.Transaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cwvj Show documentation
Show all versions of cwvj Show documentation
Java sdk for Dapps interact with cwv blockchain node
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: transaction.proto
package com.brewchain.sdk.model;
public final class Transaction {
private Transaction() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.brewchain.sdk.model.TransactionType}
*/
public enum TransactionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NORMAL = 0;
*/
NORMAL(0),
/**
* MULI_SIGN = 1;
*/
MULI_SIGN(1),
/**
* RC20_CONTRACT = 2;
*/
RC20_CONTRACT(2),
/**
* RC721_CONTRACT = 3;
*/
RC721_CONTRACT(3),
/**
* CVM_CONTRACT = 4;
*/
CVM_CONTRACT(4),
/**
* JSVM_CONTRACT = 5;
*/
JSVM_CONTRACT(5),
UNRECOGNIZED(-1),
;
/**
* NORMAL = 0;
*/
public static final int NORMAL_VALUE = 0;
/**
* MULI_SIGN = 1;
*/
public static final int MULI_SIGN_VALUE = 1;
/**
* RC20_CONTRACT = 2;
*/
public static final int RC20_CONTRACT_VALUE = 2;
/**
* RC721_CONTRACT = 3;
*/
public static final int RC721_CONTRACT_VALUE = 3;
/**
* CVM_CONTRACT = 4;
*/
public static final int CVM_CONTRACT_VALUE = 4;
/**
* JSVM_CONTRACT = 5;
*/
public static final int JSVM_CONTRACT_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 TransactionType valueOf(int value) {
return forNumber(value);
}
public static TransactionType forNumber(int value) {
switch (value) {
case 0: return NORMAL;
case 1: return MULI_SIGN;
case 2: return RC20_CONTRACT;
case 3: return RC721_CONTRACT;
case 4: return CVM_CONTRACT;
case 5: return JSVM_CONTRACT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransactionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransactionType findValueByNumber(int number) {
return TransactionType.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.Transaction.getDescriptor().getEnumTypes().get(0);
}
private static final TransactionType[] VALUES = values();
public static TransactionType 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 TransactionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.brewchain.sdk.model.TransactionType)
}
public interface TransactionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes hash = 1;
*/
com.google.protobuf.ByteString getHash();
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
boolean hasBody();
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
com.brewchain.sdk.model.Transaction.TransactionBody getBody();
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder getBodyOrBuilder();
/**
* bytes signature = 3;
*/
com.google.protobuf.ByteString getSignature();
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
boolean hasStatus();
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
com.brewchain.sdk.model.Transaction.TransactionStatus getStatus();
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder getStatusOrBuilder();
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
boolean hasNode();
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
com.brewchain.sdk.model.Transaction.TransactionNode getNode();
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder getNodeOrBuilder();
/**
* int64 accepttimestamp = 6;
*/
long getAccepttimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionInfo}
*/
public static final class TransactionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionInfo)
TransactionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionInfo.newBuilder() to construct.
private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionInfo() {
hash_ = com.google.protobuf.ByteString.EMPTY;
signature_ = com.google.protobuf.ByteString.EMPTY;
accepttimestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
hash_ = input.readBytes();
break;
}
case 18: {
com.brewchain.sdk.model.Transaction.TransactionBody.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(com.brewchain.sdk.model.Transaction.TransactionBody.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
case 26: {
signature_ = input.readBytes();
break;
}
case 34: {
com.brewchain.sdk.model.Transaction.TransactionStatus.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(com.brewchain.sdk.model.Transaction.TransactionStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.brewchain.sdk.model.Transaction.TransactionNode.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(com.brewchain.sdk.model.Transaction.TransactionNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 48: {
accepttimestamp_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionInfo.class, com.brewchain.sdk.model.Transaction.TransactionInfo.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
public static final int BODY_FIELD_NUMBER = 2;
private com.brewchain.sdk.model.Transaction.TransactionBody body_;
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public boolean hasBody() {
return body_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public com.brewchain.sdk.model.Transaction.TransactionBody getBody() {
return body_ == null ? com.brewchain.sdk.model.Transaction.TransactionBody.getDefaultInstance() : body_;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder getBodyOrBuilder() {
return getBody();
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString signature_;
/**
* bytes signature = 3;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
public static final int STATUS_FIELD_NUMBER = 4;
private com.brewchain.sdk.model.Transaction.TransactionStatus status_;
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public boolean hasStatus() {
return status_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public com.brewchain.sdk.model.Transaction.TransactionStatus getStatus() {
return status_ == null ? com.brewchain.sdk.model.Transaction.TransactionStatus.getDefaultInstance() : status_;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int NODE_FIELD_NUMBER = 5;
private com.brewchain.sdk.model.Transaction.TransactionNode node_;
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public boolean hasNode() {
return node_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public com.brewchain.sdk.model.Transaction.TransactionNode getNode() {
return node_ == null ? com.brewchain.sdk.model.Transaction.TransactionNode.getDefaultInstance() : node_;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int ACCEPTTIMESTAMP_FIELD_NUMBER = 6;
private long accepttimestamp_;
/**
* int64 accepttimestamp = 6;
*/
public long getAccepttimestamp() {
return accepttimestamp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
if (body_ != null) {
output.writeMessage(2, getBody());
}
if (!signature_.isEmpty()) {
output.writeBytes(3, signature_);
}
if (status_ != null) {
output.writeMessage(4, getStatus());
}
if (node_ != null) {
output.writeMessage(5, getNode());
}
if (accepttimestamp_ != 0L) {
output.writeInt64(6, accepttimestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBody());
}
if (!signature_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, signature_);
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStatus());
}
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getNode());
}
if (accepttimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, accepttimestamp_);
}
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.Transaction.TransactionInfo)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.TransactionInfo other = (com.brewchain.sdk.model.Transaction.TransactionInfo) obj;
boolean result = true;
result = result && getHash()
.equals(other.getHash());
result = result && (hasBody() == other.hasBody());
if (hasBody()) {
result = result && getBody()
.equals(other.getBody());
}
result = result && getSignature()
.equals(other.getSignature());
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && (hasNode() == other.hasNode());
if (hasNode()) {
result = result && getNode()
.equals(other.getNode());
}
result = result && (getAccepttimestamp()
== other.getAccepttimestamp());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody().hashCode();
}
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
hash = (37 * hash) + ACCEPTTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccepttimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo 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.Transaction.TransactionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo 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.Transaction.TransactionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo 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.Transaction.TransactionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo 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.Transaction.TransactionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo 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.Transaction.TransactionInfo 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.TransactionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionInfo)
com.brewchain.sdk.model.Transaction.TransactionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionInfo.class, com.brewchain.sdk.model.Transaction.TransactionInfo.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.TransactionInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hash_ = com.google.protobuf.ByteString.EMPTY;
if (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
signature_ = com.google.protobuf.ByteString.EMPTY;
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
accepttimestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionInfo getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.TransactionInfo.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionInfo build() {
com.brewchain.sdk.model.Transaction.TransactionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionInfo buildPartial() {
com.brewchain.sdk.model.Transaction.TransactionInfo result = new com.brewchain.sdk.model.Transaction.TransactionInfo(this);
result.hash_ = hash_;
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
result.signature_ = signature_;
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
result.accepttimestamp_ = accepttimestamp_;
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.Transaction.TransactionInfo) {
return mergeFrom((com.brewchain.sdk.model.Transaction.TransactionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.TransactionInfo other) {
if (other == com.brewchain.sdk.model.Transaction.TransactionInfo.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.hasBody()) {
mergeBody(other.getBody());
}
if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) {
setSignature(other.getSignature());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (other.getAccepttimestamp() != 0L) {
setAccepttimestamp(other.getAccepttimestamp());
}
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.Transaction.TransactionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.TransactionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 1;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 1;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 1;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private com.brewchain.sdk.model.Transaction.TransactionBody body_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionBody, com.brewchain.sdk.model.Transaction.TransactionBody.Builder, com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder> bodyBuilder_;
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public com.brewchain.sdk.model.Transaction.TransactionBody getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? com.brewchain.sdk.model.Transaction.TransactionBody.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public Builder setBody(com.brewchain.sdk.model.Transaction.TransactionBody value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public Builder setBody(
com.brewchain.sdk.model.Transaction.TransactionBody.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public Builder mergeBody(com.brewchain.sdk.model.Transaction.TransactionBody value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
com.brewchain.sdk.model.Transaction.TransactionBody.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public com.brewchain.sdk.model.Transaction.TransactionBody.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
public com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
com.brewchain.sdk.model.Transaction.TransactionBody.getDefaultInstance() : body_;
}
}
/**
* .com.brewchain.sdk.model.TransactionBody body = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionBody, com.brewchain.sdk.model.Transaction.TransactionBody.Builder, com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionBody, com.brewchain.sdk.model.Transaction.TransactionBody.Builder, com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes signature = 3;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
* bytes signature = 3;
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* bytes signature = 3;
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
private com.brewchain.sdk.model.Transaction.TransactionStatus status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionStatus, com.brewchain.sdk.model.Transaction.TransactionStatus.Builder, com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder> statusBuilder_;
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public com.brewchain.sdk.model.Transaction.TransactionStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.brewchain.sdk.model.Transaction.TransactionStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public Builder setStatus(com.brewchain.sdk.model.Transaction.TransactionStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public Builder setStatus(
com.brewchain.sdk.model.Transaction.TransactionStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public Builder mergeStatus(com.brewchain.sdk.model.Transaction.TransactionStatus value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
com.brewchain.sdk.model.Transaction.TransactionStatus.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public com.brewchain.sdk.model.Transaction.TransactionStatus.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
public com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
com.brewchain.sdk.model.Transaction.TransactionStatus.getDefaultInstance() : status_;
}
}
/**
* .com.brewchain.sdk.model.TransactionStatus status = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionStatus, com.brewchain.sdk.model.Transaction.TransactionStatus.Builder, com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionStatus, com.brewchain.sdk.model.Transaction.TransactionStatus.Builder, com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
private com.brewchain.sdk.model.Transaction.TransactionNode node_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionNode, com.brewchain.sdk.model.Transaction.TransactionNode.Builder, com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder> nodeBuilder_;
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public com.brewchain.sdk.model.Transaction.TransactionNode getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? com.brewchain.sdk.model.Transaction.TransactionNode.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public Builder setNode(com.brewchain.sdk.model.Transaction.TransactionNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public Builder setNode(
com.brewchain.sdk.model.Transaction.TransactionNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public Builder mergeNode(com.brewchain.sdk.model.Transaction.TransactionNode value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
com.brewchain.sdk.model.Transaction.TransactionNode.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public com.brewchain.sdk.model.Transaction.TransactionNode.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
public com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
com.brewchain.sdk.model.Transaction.TransactionNode.getDefaultInstance() : node_;
}
}
/**
* .com.brewchain.sdk.model.TransactionNode node = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionNode, com.brewchain.sdk.model.Transaction.TransactionNode.Builder, com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionNode, com.brewchain.sdk.model.Transaction.TransactionNode.Builder, com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private long accepttimestamp_ ;
/**
* int64 accepttimestamp = 6;
*/
public long getAccepttimestamp() {
return accepttimestamp_;
}
/**
* int64 accepttimestamp = 6;
*/
public Builder setAccepttimestamp(long value) {
accepttimestamp_ = value;
onChanged();
return this;
}
/**
* int64 accepttimestamp = 6;
*/
public Builder clearAccepttimestamp() {
accepttimestamp_ = 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.TransactionInfo)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionInfo)
private static final com.brewchain.sdk.model.Transaction.TransactionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.TransactionInfo();
}
public static com.brewchain.sdk.model.Transaction.TransactionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionInfo(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.Transaction.TransactionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionBodyOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionBody)
com.google.protobuf.MessageOrBuilder {
/**
* int32 nonce = 1;
*/
int getNonce();
/**
* bytes address = 2;
*/
com.google.protobuf.ByteString getAddress();
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
java.util.List
getOutputsList();
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
com.brewchain.sdk.model.Transaction.TransactionOutput getOutputs(int index);
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
int getOutputsCount();
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
java.util.List extends com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder>
getOutputsOrBuilderList();
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder getOutputsOrBuilder(
int index);
/**
*
*手续费高位
*
*
* int64 fee_hi = 4;
*/
long getFeeHi();
/**
*
*手续费低位;
*
*
* int64 fee_low = 5;
*/
long getFeeLow();
/**
*
*内置指令交易[0=普通交易,1=多重签名交易,2=RC20交易,3=RC721交易,4=CVM合约调用,5=JSVM合约调用,6=evfs交易,7=链委员会,8=链管理员组
*
*
* int32 inner_codetype = 6;
*/
int getInnerCodetype();
/**
*
*指令数据
*
*
* bytes code_data = 7;
*/
com.google.protobuf.ByteString getCodeData();
/**
* bytes ext_data = 8;
*/
com.google.protobuf.ByteString getExtData();
/**
* int64 timestamp = 9;
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionBody}
*/
public static final class TransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionBody)
TransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionBody.newBuilder() to construct.
private TransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionBody() {
nonce_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
outputs_ = java.util.Collections.emptyList();
feeHi_ = 0L;
feeLow_ = 0L;
innerCodetype_ = 0;
codeData_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionBody(
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: {
nonce_ = input.readInt32();
break;
}
case 18: {
address_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
outputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
outputs_.add(
input.readMessage(com.brewchain.sdk.model.Transaction.TransactionOutput.parser(), extensionRegistry));
break;
}
case 32: {
feeHi_ = input.readInt64();
break;
}
case 40: {
feeLow_ = input.readInt64();
break;
}
case 48: {
innerCodetype_ = input.readInt32();
break;
}
case 58: {
codeData_ = input.readBytes();
break;
}
case 66: {
extData_ = input.readBytes();
break;
}
case 72: {
timestamp_ = 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)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionBody.class, com.brewchain.sdk.model.Transaction.TransactionBody.Builder.class);
}
private int bitField0_;
public static final int NONCE_FIELD_NUMBER = 1;
private int nonce_;
/**
* int32 nonce = 1;
*/
public int getNonce() {
return nonce_;
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int OUTPUTS_FIELD_NUMBER = 3;
private java.util.List outputs_;
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public java.util.List getOutputsList() {
return outputs_;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public java.util.List extends com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder>
getOutputsOrBuilderList() {
return outputs_;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutput getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder getOutputsOrBuilder(
int index) {
return outputs_.get(index);
}
public static final int FEE_HI_FIELD_NUMBER = 4;
private long feeHi_;
/**
*
*手续费高位
*
*
* int64 fee_hi = 4;
*/
public long getFeeHi() {
return feeHi_;
}
public static final int FEE_LOW_FIELD_NUMBER = 5;
private long feeLow_;
/**
*
*手续费低位;
*
*
* int64 fee_low = 5;
*/
public long getFeeLow() {
return feeLow_;
}
public static final int INNER_CODETYPE_FIELD_NUMBER = 6;
private int innerCodetype_;
/**
*
*内置指令交易[0=普通交易,1=多重签名交易,2=RC20交易,3=RC721交易,4=CVM合约调用,5=JSVM合约调用,6=evfs交易,7=链委员会,8=链管理员组
*
*
* int32 inner_codetype = 6;
*/
public int getInnerCodetype() {
return innerCodetype_;
}
public static final int CODE_DATA_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString codeData_;
/**
*
*指令数据
*
*
* bytes code_data = 7;
*/
public com.google.protobuf.ByteString getCodeData() {
return codeData_;
}
public static final int EXT_DATA_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString extData_;
/**
* bytes ext_data = 8;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 9;
private long timestamp_;
/**
* int64 timestamp = 9;
*/
public long getTimestamp() {
return timestamp_;
}
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 (nonce_ != 0) {
output.writeInt32(1, nonce_);
}
if (!address_.isEmpty()) {
output.writeBytes(2, address_);
}
for (int i = 0; i < outputs_.size(); i++) {
output.writeMessage(3, outputs_.get(i));
}
if (feeHi_ != 0L) {
output.writeInt64(4, feeHi_);
}
if (feeLow_ != 0L) {
output.writeInt64(5, feeLow_);
}
if (innerCodetype_ != 0) {
output.writeInt32(6, innerCodetype_);
}
if (!codeData_.isEmpty()) {
output.writeBytes(7, codeData_);
}
if (!extData_.isEmpty()) {
output.writeBytes(8, extData_);
}
if (timestamp_ != 0L) {
output.writeInt64(9, timestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nonce_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, nonce_);
}
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, address_);
}
for (int i = 0; i < outputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, outputs_.get(i));
}
if (feeHi_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, feeHi_);
}
if (feeLow_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, feeLow_);
}
if (innerCodetype_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, innerCodetype_);
}
if (!codeData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, codeData_);
}
if (!extData_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, extData_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, timestamp_);
}
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.Transaction.TransactionBody)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.TransactionBody other = (com.brewchain.sdk.model.Transaction.TransactionBody) obj;
boolean result = true;
result = result && (getNonce()
== other.getNonce());
result = result && getAddress()
.equals(other.getAddress());
result = result && getOutputsList()
.equals(other.getOutputsList());
result = result && (getFeeHi()
== other.getFeeHi());
result = result && (getFeeLow()
== other.getFeeLow());
result = result && (getInnerCodetype()
== other.getInnerCodetype());
result = result && getCodeData()
.equals(other.getCodeData());
result = result && getExtData()
.equals(other.getExtData());
result = result && (getTimestamp()
== other.getTimestamp());
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) + NONCE_FIELD_NUMBER;
hash = (53 * hash) + getNonce();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getOutputsCount() > 0) {
hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + getOutputsList().hashCode();
}
hash = (37 * hash) + FEE_HI_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFeeHi());
hash = (37 * hash) + FEE_LOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFeeLow());
hash = (37 * hash) + INNER_CODETYPE_FIELD_NUMBER;
hash = (53 * hash) + getInnerCodetype();
hash = (37 * hash) + CODE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getCodeData().hashCode();
hash = (37 * hash) + EXT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getExtData().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.TransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody 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.Transaction.TransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody 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.Transaction.TransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody 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.Transaction.TransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody 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.Transaction.TransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionBody 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.Transaction.TransactionBody 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.TransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionBody)
com.brewchain.sdk.model.Transaction.TransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionBody.class, com.brewchain.sdk.model.Transaction.TransactionBody.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.TransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOutputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nonce_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
outputsBuilder_.clear();
}
feeHi_ = 0L;
feeLow_ = 0L;
innerCodetype_ = 0;
codeData_ = com.google.protobuf.ByteString.EMPTY;
extData_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionBody_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionBody getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.TransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionBody build() {
com.brewchain.sdk.model.Transaction.TransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionBody buildPartial() {
com.brewchain.sdk.model.Transaction.TransactionBody result = new com.brewchain.sdk.model.Transaction.TransactionBody(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.nonce_ = nonce_;
result.address_ = address_;
if (outputsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.outputs_ = outputs_;
} else {
result.outputs_ = outputsBuilder_.build();
}
result.feeHi_ = feeHi_;
result.feeLow_ = feeLow_;
result.innerCodetype_ = innerCodetype_;
result.codeData_ = codeData_;
result.extData_ = extData_;
result.timestamp_ = timestamp_;
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.Transaction.TransactionBody) {
return mergeFrom((com.brewchain.sdk.model.Transaction.TransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.TransactionBody other) {
if (other == com.brewchain.sdk.model.Transaction.TransactionBody.getDefaultInstance()) return this;
if (other.getNonce() != 0) {
setNonce(other.getNonce());
}
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (outputsBuilder_ == null) {
if (!other.outputs_.isEmpty()) {
if (outputs_.isEmpty()) {
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOutputsIsMutable();
outputs_.addAll(other.outputs_);
}
onChanged();
}
} else {
if (!other.outputs_.isEmpty()) {
if (outputsBuilder_.isEmpty()) {
outputsBuilder_.dispose();
outputsBuilder_ = null;
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000004);
outputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputsFieldBuilder() : null;
} else {
outputsBuilder_.addAllMessages(other.outputs_);
}
}
}
if (other.getFeeHi() != 0L) {
setFeeHi(other.getFeeHi());
}
if (other.getFeeLow() != 0L) {
setFeeLow(other.getFeeLow());
}
if (other.getInnerCodetype() != 0) {
setInnerCodetype(other.getInnerCodetype());
}
if (other.getCodeData() != com.google.protobuf.ByteString.EMPTY) {
setCodeData(other.getCodeData());
}
if (other.getExtData() != com.google.protobuf.ByteString.EMPTY) {
setExtData(other.getExtData());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
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.Transaction.TransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.TransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int nonce_ ;
/**
* int32 nonce = 1;
*/
public int getNonce() {
return nonce_;
}
/**
* int32 nonce = 1;
*/
public Builder setNonce(int value) {
nonce_ = value;
onChanged();
return this;
}
/**
* int32 nonce = 1;
*/
public Builder clearNonce() {
nonce_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 2;
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private java.util.List outputs_ =
java.util.Collections.emptyList();
private void ensureOutputsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
outputs_ = new java.util.ArrayList(outputs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionOutput, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder, com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder> outputsBuilder_;
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public java.util.List getOutputsList() {
if (outputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(outputs_);
} else {
return outputsBuilder_.getMessageList();
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public int getOutputsCount() {
if (outputsBuilder_ == null) {
return outputs_.size();
} else {
return outputsBuilder_.getCount();
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutput getOutputs(int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index);
} else {
return outputsBuilder_.getMessage(index);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder setOutputs(
int index, com.brewchain.sdk.model.Transaction.TransactionOutput value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.set(index, value);
onChanged();
} else {
outputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder setOutputs(
int index, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.set(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder addOutputs(com.brewchain.sdk.model.Transaction.TransactionOutput value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(value);
onChanged();
} else {
outputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder addOutputs(
int index, com.brewchain.sdk.model.Transaction.TransactionOutput value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(index, value);
onChanged();
} else {
outputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder addOutputs(
com.brewchain.sdk.model.Transaction.TransactionOutput.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder addOutputs(
int index, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder addAllOutputs(
java.lang.Iterable extends com.brewchain.sdk.model.Transaction.TransactionOutput> values) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputs_);
onChanged();
} else {
outputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder clearOutputs() {
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
outputsBuilder_.clear();
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public Builder removeOutputs(int index) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.remove(index);
onChanged();
} else {
outputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutput.Builder getOutputsBuilder(
int index) {
return getOutputsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder getOutputsOrBuilder(
int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index); } else {
return outputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public java.util.List extends com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder>
getOutputsOrBuilderList() {
if (outputsBuilder_ != null) {
return outputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputs_);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutput.Builder addOutputsBuilder() {
return getOutputsFieldBuilder().addBuilder(
com.brewchain.sdk.model.Transaction.TransactionOutput.getDefaultInstance());
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public com.brewchain.sdk.model.Transaction.TransactionOutput.Builder addOutputsBuilder(
int index) {
return getOutputsFieldBuilder().addBuilder(
index, com.brewchain.sdk.model.Transaction.TransactionOutput.getDefaultInstance());
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutput outputs = 3;
*/
public java.util.List
getOutputsBuilderList() {
return getOutputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionOutput, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder, com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder>
getOutputsFieldBuilder() {
if (outputsBuilder_ == null) {
outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.brewchain.sdk.model.Transaction.TransactionOutput, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder, com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder>(
outputs_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
outputs_ = null;
}
return outputsBuilder_;
}
private long feeHi_ ;
/**
*
*手续费高位
*
*
* int64 fee_hi = 4;
*/
public long getFeeHi() {
return feeHi_;
}
/**
*
*手续费高位
*
*
* int64 fee_hi = 4;
*/
public Builder setFeeHi(long value) {
feeHi_ = value;
onChanged();
return this;
}
/**
*
*手续费高位
*
*
* int64 fee_hi = 4;
*/
public Builder clearFeeHi() {
feeHi_ = 0L;
onChanged();
return this;
}
private long feeLow_ ;
/**
*
*手续费低位;
*
*
* int64 fee_low = 5;
*/
public long getFeeLow() {
return feeLow_;
}
/**
*
*手续费低位;
*
*
* int64 fee_low = 5;
*/
public Builder setFeeLow(long value) {
feeLow_ = value;
onChanged();
return this;
}
/**
*
*手续费低位;
*
*
* int64 fee_low = 5;
*/
public Builder clearFeeLow() {
feeLow_ = 0L;
onChanged();
return this;
}
private int innerCodetype_ ;
/**
*
*内置指令交易[0=普通交易,1=多重签名交易,2=RC20交易,3=RC721交易,4=CVM合约调用,5=JSVM合约调用,6=evfs交易,7=链委员会,8=链管理员组
*
*
* int32 inner_codetype = 6;
*/
public int getInnerCodetype() {
return innerCodetype_;
}
/**
*
*内置指令交易[0=普通交易,1=多重签名交易,2=RC20交易,3=RC721交易,4=CVM合约调用,5=JSVM合约调用,6=evfs交易,7=链委员会,8=链管理员组
*
*
* int32 inner_codetype = 6;
*/
public Builder setInnerCodetype(int value) {
innerCodetype_ = value;
onChanged();
return this;
}
/**
*
*内置指令交易[0=普通交易,1=多重签名交易,2=RC20交易,3=RC721交易,4=CVM合约调用,5=JSVM合约调用,6=evfs交易,7=链委员会,8=链管理员组
*
*
* int32 inner_codetype = 6;
*/
public Builder clearInnerCodetype() {
innerCodetype_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString codeData_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*指令数据
*
*
* bytes code_data = 7;
*/
public com.google.protobuf.ByteString getCodeData() {
return codeData_;
}
/**
*
*指令数据
*
*
* bytes code_data = 7;
*/
public Builder setCodeData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
codeData_ = value;
onChanged();
return this;
}
/**
*
*指令数据
*
*
* bytes code_data = 7;
*/
public Builder clearCodeData() {
codeData_ = getDefaultInstance().getCodeData();
onChanged();
return this;
}
private com.google.protobuf.ByteString extData_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes ext_data = 8;
*/
public com.google.protobuf.ByteString getExtData() {
return extData_;
}
/**
* bytes ext_data = 8;
*/
public Builder setExtData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
* bytes ext_data = 8;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 9;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 9;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 9;
*/
public Builder clearTimestamp() {
timestamp_ = 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.TransactionBody)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionBody)
private static final com.brewchain.sdk.model.Transaction.TransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.TransactionBody();
}
public static com.brewchain.sdk.model.Transaction.TransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionBody(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.Transaction.TransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionOutputOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionOutput)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
*/
com.google.protobuf.ByteString getAddress();
/**
* bytes amount = 2;
*/
com.google.protobuf.ByteString getAmount();
/**
* bytes token = 3;
*/
com.google.protobuf.ByteString getToken();
/**
* bytes tokenAmount = 4;
*/
com.google.protobuf.ByteString getTokenAmount();
/**
* bytes symbol = 5;
*/
com.google.protobuf.ByteString getSymbol();
/**
* repeated bytes cryptoToken = 6;
*/
java.util.List getCryptoTokenList();
/**
* repeated bytes cryptoToken = 6;
*/
int getCryptoTokenCount();
/**
* repeated bytes cryptoToken = 6;
*/
com.google.protobuf.ByteString getCryptoToken(int index);
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionOutput}
*/
public static final class TransactionOutput extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionOutput)
TransactionOutputOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionOutput.newBuilder() to construct.
private TransactionOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionOutput() {
address_ = com.google.protobuf.ByteString.EMPTY;
amount_ = com.google.protobuf.ByteString.EMPTY;
token_ = com.google.protobuf.ByteString.EMPTY;
tokenAmount_ = com.google.protobuf.ByteString.EMPTY;
symbol_ = com.google.protobuf.ByteString.EMPTY;
cryptoToken_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionOutput(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
break;
}
case 18: {
amount_ = input.readBytes();
break;
}
case 26: {
token_ = input.readBytes();
break;
}
case 34: {
tokenAmount_ = input.readBytes();
break;
}
case 42: {
symbol_ = input.readBytes();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
cryptoToken_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
cryptoToken_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
cryptoToken_ = java.util.Collections.unmodifiableList(cryptoToken_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionOutput.class, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder.class);
}
private int bitField0_;
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int AMOUNT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString amount_;
/**
* bytes amount = 2;
*/
public com.google.protobuf.ByteString getAmount() {
return amount_;
}
public static final int TOKEN_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString token_;
/**
* bytes token = 3;
*/
public com.google.protobuf.ByteString getToken() {
return token_;
}
public static final int TOKENAMOUNT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString tokenAmount_;
/**
* bytes tokenAmount = 4;
*/
public com.google.protobuf.ByteString getTokenAmount() {
return tokenAmount_;
}
public static final int SYMBOL_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString symbol_;
/**
* bytes symbol = 5;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
public static final int CRYPTOTOKEN_FIELD_NUMBER = 6;
private java.util.List cryptoToken_;
/**
* repeated bytes cryptoToken = 6;
*/
public java.util.List
getCryptoTokenList() {
return cryptoToken_;
}
/**
* repeated bytes cryptoToken = 6;
*/
public int getCryptoTokenCount() {
return cryptoToken_.size();
}
/**
* repeated bytes cryptoToken = 6;
*/
public com.google.protobuf.ByteString getCryptoToken(int index) {
return cryptoToken_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (!amount_.isEmpty()) {
output.writeBytes(2, amount_);
}
if (!token_.isEmpty()) {
output.writeBytes(3, token_);
}
if (!tokenAmount_.isEmpty()) {
output.writeBytes(4, tokenAmount_);
}
if (!symbol_.isEmpty()) {
output.writeBytes(5, symbol_);
}
for (int i = 0; i < cryptoToken_.size(); i++) {
output.writeBytes(6, cryptoToken_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (!amount_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, amount_);
}
if (!token_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, token_);
}
if (!tokenAmount_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, tokenAmount_);
}
if (!symbol_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, symbol_);
}
{
int dataSize = 0;
for (int i = 0; i < cryptoToken_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(cryptoToken_.get(i));
}
size += dataSize;
size += 1 * getCryptoTokenList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.brewchain.sdk.model.Transaction.TransactionOutput)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.TransactionOutput other = (com.brewchain.sdk.model.Transaction.TransactionOutput) obj;
boolean result = true;
result = result && getAddress()
.equals(other.getAddress());
result = result && getAmount()
.equals(other.getAmount());
result = result && getToken()
.equals(other.getToken());
result = result && getTokenAmount()
.equals(other.getTokenAmount());
result = result && getSymbol()
.equals(other.getSymbol());
result = result && getCryptoTokenList()
.equals(other.getCryptoTokenList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAmount().hashCode();
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
hash = (37 * hash) + TOKENAMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getTokenAmount().hashCode();
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
if (getCryptoTokenCount() > 0) {
hash = (37 * hash) + CRYPTOTOKEN_FIELD_NUMBER;
hash = (53 * hash) + getCryptoTokenList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput 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.Transaction.TransactionOutput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput 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.Transaction.TransactionOutput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput 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.Transaction.TransactionOutput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput 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.Transaction.TransactionOutput parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput 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.Transaction.TransactionOutput 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.TransactionOutput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionOutput)
com.brewchain.sdk.model.Transaction.TransactionOutputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionOutput.class, com.brewchain.sdk.model.Transaction.TransactionOutput.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.TransactionOutput.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.ByteString.EMPTY;
amount_ = com.google.protobuf.ByteString.EMPTY;
token_ = com.google.protobuf.ByteString.EMPTY;
tokenAmount_ = com.google.protobuf.ByteString.EMPTY;
symbol_ = com.google.protobuf.ByteString.EMPTY;
cryptoToken_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionOutput getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.TransactionOutput.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionOutput build() {
com.brewchain.sdk.model.Transaction.TransactionOutput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionOutput buildPartial() {
com.brewchain.sdk.model.Transaction.TransactionOutput result = new com.brewchain.sdk.model.Transaction.TransactionOutput(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.address_ = address_;
result.amount_ = amount_;
result.token_ = token_;
result.tokenAmount_ = tokenAmount_;
result.symbol_ = symbol_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
cryptoToken_ = java.util.Collections.unmodifiableList(cryptoToken_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.cryptoToken_ = cryptoToken_;
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.Transaction.TransactionOutput) {
return mergeFrom((com.brewchain.sdk.model.Transaction.TransactionOutput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.TransactionOutput other) {
if (other == com.brewchain.sdk.model.Transaction.TransactionOutput.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getAmount() != com.google.protobuf.ByteString.EMPTY) {
setAmount(other.getAmount());
}
if (other.getToken() != com.google.protobuf.ByteString.EMPTY) {
setToken(other.getToken());
}
if (other.getTokenAmount() != com.google.protobuf.ByteString.EMPTY) {
setTokenAmount(other.getTokenAmount());
}
if (other.getSymbol() != com.google.protobuf.ByteString.EMPTY) {
setSymbol(other.getSymbol());
}
if (!other.cryptoToken_.isEmpty()) {
if (cryptoToken_.isEmpty()) {
cryptoToken_ = other.cryptoToken_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCryptoTokenIsMutable();
cryptoToken_.addAll(other.cryptoToken_);
}
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.Transaction.TransactionOutput parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.TransactionOutput) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 1;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString amount_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes amount = 2;
*/
public com.google.protobuf.ByteString getAmount() {
return amount_;
}
/**
* bytes amount = 2;
*/
public Builder setAmount(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
amount_ = value;
onChanged();
return this;
}
/**
* bytes amount = 2;
*/
public Builder clearAmount() {
amount_ = getDefaultInstance().getAmount();
onChanged();
return this;
}
private com.google.protobuf.ByteString token_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes token = 3;
*/
public com.google.protobuf.ByteString getToken() {
return token_;
}
/**
* bytes token = 3;
*/
public Builder setToken(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
token_ = value;
onChanged();
return this;
}
/**
* bytes token = 3;
*/
public Builder clearToken() {
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
private com.google.protobuf.ByteString tokenAmount_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes tokenAmount = 4;
*/
public com.google.protobuf.ByteString getTokenAmount() {
return tokenAmount_;
}
/**
* bytes tokenAmount = 4;
*/
public Builder setTokenAmount(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
tokenAmount_ = value;
onChanged();
return this;
}
/**
* bytes tokenAmount = 4;
*/
public Builder clearTokenAmount() {
tokenAmount_ = getDefaultInstance().getTokenAmount();
onChanged();
return this;
}
private com.google.protobuf.ByteString symbol_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes symbol = 5;
*/
public com.google.protobuf.ByteString getSymbol() {
return symbol_;
}
/**
* bytes symbol = 5;
*/
public Builder setSymbol(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
* bytes symbol = 5;
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
private java.util.List cryptoToken_ = java.util.Collections.emptyList();
private void ensureCryptoTokenIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
cryptoToken_ = new java.util.ArrayList(cryptoToken_);
bitField0_ |= 0x00000020;
}
}
/**
* repeated bytes cryptoToken = 6;
*/
public java.util.List
getCryptoTokenList() {
return java.util.Collections.unmodifiableList(cryptoToken_);
}
/**
* repeated bytes cryptoToken = 6;
*/
public int getCryptoTokenCount() {
return cryptoToken_.size();
}
/**
* repeated bytes cryptoToken = 6;
*/
public com.google.protobuf.ByteString getCryptoToken(int index) {
return cryptoToken_.get(index);
}
/**
* repeated bytes cryptoToken = 6;
*/
public Builder setCryptoToken(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCryptoTokenIsMutable();
cryptoToken_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes cryptoToken = 6;
*/
public Builder addCryptoToken(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCryptoTokenIsMutable();
cryptoToken_.add(value);
onChanged();
return this;
}
/**
* repeated bytes cryptoToken = 6;
*/
public Builder addAllCryptoToken(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureCryptoTokenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cryptoToken_);
onChanged();
return this;
}
/**
* repeated bytes cryptoToken = 6;
*/
public Builder clearCryptoToken() {
cryptoToken_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
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.TransactionOutput)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionOutput)
private static final com.brewchain.sdk.model.Transaction.TransactionOutput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.TransactionOutput();
}
public static com.brewchain.sdk.model.Transaction.TransactionOutput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionOutput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionOutput(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.Transaction.TransactionOutput getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionNode)
com.google.protobuf.MessageOrBuilder {
/**
* string nid = 1;
*/
java.lang.String getNid();
/**
* string nid = 1;
*/
com.google.protobuf.ByteString
getNidBytes();
/**
* bytes address = 2;
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionNode}
*/
public static final class TransactionNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionNode)
TransactionNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionNode.newBuilder() to construct.
private TransactionNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionNode() {
nid_ = "";
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
nid_ = s;
break;
}
case 18: {
address_ = 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.Transaction.internal_static_com_brewchain_sdk_model_TransactionNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionNode.class, com.brewchain.sdk.model.Transaction.TransactionNode.Builder.class);
}
public static final int NID_FIELD_NUMBER = 1;
private volatile java.lang.Object nid_;
/**
* string nid = 1;
*/
public java.lang.String getNid() {
java.lang.Object ref = nid_;
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();
nid_ = s;
return s;
}
}
/**
* string nid = 1;
*/
public com.google.protobuf.ByteString
getNidBytes() {
java.lang.Object ref = nid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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 (!getNidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nid_);
}
if (!address_.isEmpty()) {
output.writeBytes(2, address_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nid_);
}
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, address_);
}
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.Transaction.TransactionNode)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.TransactionNode other = (com.brewchain.sdk.model.Transaction.TransactionNode) obj;
boolean result = true;
result = result && getNid()
.equals(other.getNid());
result = result && getAddress()
.equals(other.getAddress());
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) + NID_FIELD_NUMBER;
hash = (53 * hash) + getNid().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.TransactionNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode 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.Transaction.TransactionNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode 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.Transaction.TransactionNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode 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.Transaction.TransactionNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode 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.Transaction.TransactionNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionNode 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.Transaction.TransactionNode 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.TransactionNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionNode)
com.brewchain.sdk.model.Transaction.TransactionNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionNode.class, com.brewchain.sdk.model.Transaction.TransactionNode.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.TransactionNode.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();
nid_ = "";
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionNode_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionNode getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.TransactionNode.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionNode build() {
com.brewchain.sdk.model.Transaction.TransactionNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionNode buildPartial() {
com.brewchain.sdk.model.Transaction.TransactionNode result = new com.brewchain.sdk.model.Transaction.TransactionNode(this);
result.nid_ = nid_;
result.address_ = address_;
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.Transaction.TransactionNode) {
return mergeFrom((com.brewchain.sdk.model.Transaction.TransactionNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.TransactionNode other) {
if (other == com.brewchain.sdk.model.Transaction.TransactionNode.getDefaultInstance()) return this;
if (!other.getNid().isEmpty()) {
nid_ = other.nid_;
onChanged();
}
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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.Transaction.TransactionNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.TransactionNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object nid_ = "";
/**
* string nid = 1;
*/
public java.lang.String getNid() {
java.lang.Object ref = nid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string nid = 1;
*/
public com.google.protobuf.ByteString
getNidBytes() {
java.lang.Object ref = nid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string nid = 1;
*/
public Builder setNid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nid_ = value;
onChanged();
return this;
}
/**
* string nid = 1;
*/
public Builder clearNid() {
nid_ = getDefaultInstance().getNid();
onChanged();
return this;
}
/**
* string nid = 1;
*/
public Builder setNidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nid_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 2;
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 2;
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
@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.TransactionNode)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionNode)
private static final com.brewchain.sdk.model.Transaction.TransactionNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.TransactionNode();
}
public static com.brewchain.sdk.model.Transaction.TransactionNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionNode(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.Transaction.TransactionNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionStatus)
com.google.protobuf.MessageOrBuilder {
/**
* bytes status = 1;
*/
com.google.protobuf.ByteString getStatus();
/**
* bytes result = 2;
*/
com.google.protobuf.ByteString getResult();
/**
* bytes hash = 3;
*/
com.google.protobuf.ByteString getHash();
/**
* int64 height = 4;
*/
long getHeight();
/**
* int64 timestamp = 5;
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionStatus}
*/
public static final class TransactionStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionStatus)
TransactionStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionStatus.newBuilder() to construct.
private TransactionStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionStatus() {
status_ = com.google.protobuf.ByteString.EMPTY;
result_ = com.google.protobuf.ByteString.EMPTY;
hash_ = com.google.protobuf.ByteString.EMPTY;
height_ = 0L;
timestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionStatus(
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: {
status_ = input.readBytes();
break;
}
case 18: {
result_ = input.readBytes();
break;
}
case 26: {
hash_ = input.readBytes();
break;
}
case 32: {
height_ = input.readInt64();
break;
}
case 40: {
timestamp_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionStatus.class, com.brewchain.sdk.model.Transaction.TransactionStatus.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString status_;
/**
* bytes status = 1;
*/
public com.google.protobuf.ByteString getStatus() {
return status_;
}
public static final int RESULT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString result_;
/**
* bytes result = 2;
*/
public com.google.protobuf.ByteString getResult() {
return result_;
}
public static final int HASH_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString hash_;
/**
* bytes hash = 3;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
public static final int HEIGHT_FIELD_NUMBER = 4;
private long height_;
/**
* int64 height = 4;
*/
public long getHeight() {
return height_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
private long timestamp_;
/**
* int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
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 (!status_.isEmpty()) {
output.writeBytes(1, status_);
}
if (!result_.isEmpty()) {
output.writeBytes(2, result_);
}
if (!hash_.isEmpty()) {
output.writeBytes(3, hash_);
}
if (height_ != 0L) {
output.writeInt64(4, height_);
}
if (timestamp_ != 0L) {
output.writeInt64(5, timestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!status_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, status_);
}
if (!result_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, result_);
}
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, hash_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, height_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, timestamp_);
}
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.Transaction.TransactionStatus)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.TransactionStatus other = (com.brewchain.sdk.model.Transaction.TransactionStatus) obj;
boolean result = true;
result = result && getStatus()
.equals(other.getStatus());
result = result && getResult()
.equals(other.getResult());
result = result && getHash()
.equals(other.getHash());
result = result && (getHeight()
== other.getHeight());
result = result && (getTimestamp()
== other.getTimestamp());
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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus 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.Transaction.TransactionStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus 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.Transaction.TransactionStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus 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.Transaction.TransactionStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus 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.Transaction.TransactionStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus 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.Transaction.TransactionStatus 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.TransactionStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionStatus)
com.brewchain.sdk.model.Transaction.TransactionStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.TransactionStatus.class, com.brewchain.sdk.model.Transaction.TransactionStatus.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.TransactionStatus.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();
status_ = com.google.protobuf.ByteString.EMPTY;
result_ = com.google.protobuf.ByteString.EMPTY;
hash_ = com.google.protobuf.ByteString.EMPTY;
height_ = 0L;
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionStatus getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.TransactionStatus.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionStatus build() {
com.brewchain.sdk.model.Transaction.TransactionStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.TransactionStatus buildPartial() {
com.brewchain.sdk.model.Transaction.TransactionStatus result = new com.brewchain.sdk.model.Transaction.TransactionStatus(this);
result.status_ = status_;
result.result_ = result_;
result.hash_ = hash_;
result.height_ = height_;
result.timestamp_ = timestamp_;
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.Transaction.TransactionStatus) {
return mergeFrom((com.brewchain.sdk.model.Transaction.TransactionStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.TransactionStatus other) {
if (other == com.brewchain.sdk.model.Transaction.TransactionStatus.getDefaultInstance()) return this;
if (other.getStatus() != com.google.protobuf.ByteString.EMPTY) {
setStatus(other.getStatus());
}
if (other.getResult() != com.google.protobuf.ByteString.EMPTY) {
setResult(other.getResult());
}
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
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.Transaction.TransactionStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.TransactionStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString status_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes status = 1;
*/
public com.google.protobuf.ByteString getStatus() {
return status_;
}
/**
* bytes status = 1;
*/
public Builder setStatus(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
return this;
}
/**
* bytes status = 1;
*/
public Builder clearStatus() {
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
private com.google.protobuf.ByteString result_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes result = 2;
*/
public com.google.protobuf.ByteString getResult() {
return result_;
}
/**
* bytes result = 2;
*/
public Builder setResult(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
return this;
}
/**
* bytes result = 2;
*/
public Builder clearResult() {
result_ = getDefaultInstance().getResult();
onChanged();
return this;
}
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes hash = 3;
*/
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
* bytes hash = 3;
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* bytes hash = 3;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private long height_ ;
/**
* int64 height = 4;
*/
public long getHeight() {
return height_;
}
/**
* int64 height = 4;
*/
public Builder setHeight(long value) {
height_ = value;
onChanged();
return this;
}
/**
* int64 height = 4;
*/
public Builder clearHeight() {
height_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 5;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 5;
*/
public Builder clearTimestamp() {
timestamp_ = 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.TransactionStatus)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionStatus)
private static final com.brewchain.sdk.model.Transaction.TransactionStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.TransactionStatus();
}
public static com.brewchain.sdk.model.Transaction.TransactionStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionStatus(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.Transaction.TransactionStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BroadcastTransactionMsgOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.BroadcastTransactionMsg)
com.google.protobuf.MessageOrBuilder {
/**
* repeated bytes txHash = 1;
*/
java.util.List getTxHashList();
/**
* repeated bytes txHash = 1;
*/
int getTxHashCount();
/**
* repeated bytes txHash = 1;
*/
com.google.protobuf.ByteString getTxHash(int index);
/**
* repeated bytes txDatas = 2;
*/
java.util.List getTxDatasList();
/**
* repeated bytes txDatas = 2;
*/
int getTxDatasCount();
/**
* repeated bytes txDatas = 2;
*/
com.google.protobuf.ByteString getTxDatas(int index);
}
/**
* Protobuf type {@code com.brewchain.sdk.model.BroadcastTransactionMsg}
*/
public static final class BroadcastTransactionMsg extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.BroadcastTransactionMsg)
BroadcastTransactionMsgOrBuilder {
private static final long serialVersionUID = 0L;
// Use BroadcastTransactionMsg.newBuilder() to construct.
private BroadcastTransactionMsg(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BroadcastTransactionMsg() {
txHash_ = java.util.Collections.emptyList();
txDatas_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BroadcastTransactionMsg(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
txHash_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
txHash_.add(input.readBytes());
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
txDatas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
txDatas_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
txHash_ = java.util.Collections.unmodifiableList(txHash_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
txDatas_ = java.util.Collections.unmodifiableList(txDatas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.class, com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.Builder.class);
}
public static final int TXHASH_FIELD_NUMBER = 1;
private java.util.List txHash_;
/**
* repeated bytes txHash = 1;
*/
public java.util.List
getTxHashList() {
return txHash_;
}
/**
* repeated bytes txHash = 1;
*/
public int getTxHashCount() {
return txHash_.size();
}
/**
* repeated bytes txHash = 1;
*/
public com.google.protobuf.ByteString getTxHash(int index) {
return txHash_.get(index);
}
public static final int TXDATAS_FIELD_NUMBER = 2;
private java.util.List txDatas_;
/**
* repeated bytes txDatas = 2;
*/
public java.util.List
getTxDatasList() {
return txDatas_;
}
/**
* repeated bytes txDatas = 2;
*/
public int getTxDatasCount() {
return txDatas_.size();
}
/**
* repeated bytes txDatas = 2;
*/
public com.google.protobuf.ByteString getTxDatas(int index) {
return txDatas_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < txHash_.size(); i++) {
output.writeBytes(1, txHash_.get(i));
}
for (int i = 0; i < txDatas_.size(); i++) {
output.writeBytes(2, txDatas_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < txHash_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(txHash_.get(i));
}
size += dataSize;
size += 1 * getTxHashList().size();
}
{
int dataSize = 0;
for (int i = 0; i < txDatas_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(txDatas_.get(i));
}
size += dataSize;
size += 1 * getTxDatasList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg)) {
return super.equals(obj);
}
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg other = (com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg) obj;
boolean result = true;
result = result && getTxHashList()
.equals(other.getTxHashList());
result = result && getTxDatasList()
.equals(other.getTxDatasList());
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 (getTxHashCount() > 0) {
hash = (37 * hash) + TXHASH_FIELD_NUMBER;
hash = (53 * hash) + getTxHashList().hashCode();
}
if (getTxDatasCount() > 0) {
hash = (37 * hash) + TXDATAS_FIELD_NUMBER;
hash = (53 * hash) + getTxDatasList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg 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.Transaction.BroadcastTransactionMsg parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg 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.Transaction.BroadcastTransactionMsg parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg 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.Transaction.BroadcastTransactionMsg parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg 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.Transaction.BroadcastTransactionMsg parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg 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.Transaction.BroadcastTransactionMsg 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.BroadcastTransactionMsg}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.BroadcastTransactionMsg)
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsgOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.class, com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.Builder.class);
}
// Construct using com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.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();
txHash_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
txDatas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.Transaction.internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg getDefaultInstanceForType() {
return com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg build() {
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg buildPartial() {
com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg result = new com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
txHash_ = java.util.Collections.unmodifiableList(txHash_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.txHash_ = txHash_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
txDatas_ = java.util.Collections.unmodifiableList(txDatas_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.txDatas_ = txDatas_;
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.Transaction.BroadcastTransactionMsg) {
return mergeFrom((com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg other) {
if (other == com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg.getDefaultInstance()) return this;
if (!other.txHash_.isEmpty()) {
if (txHash_.isEmpty()) {
txHash_ = other.txHash_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTxHashIsMutable();
txHash_.addAll(other.txHash_);
}
onChanged();
}
if (!other.txDatas_.isEmpty()) {
if (txDatas_.isEmpty()) {
txDatas_ = other.txDatas_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTxDatasIsMutable();
txDatas_.addAll(other.txDatas_);
}
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.Transaction.BroadcastTransactionMsg parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List txHash_ = java.util.Collections.emptyList();
private void ensureTxHashIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
txHash_ = new java.util.ArrayList(txHash_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes txHash = 1;
*/
public java.util.List
getTxHashList() {
return java.util.Collections.unmodifiableList(txHash_);
}
/**
* repeated bytes txHash = 1;
*/
public int getTxHashCount() {
return txHash_.size();
}
/**
* repeated bytes txHash = 1;
*/
public com.google.protobuf.ByteString getTxHash(int index) {
return txHash_.get(index);
}
/**
* repeated bytes txHash = 1;
*/
public Builder setTxHash(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTxHashIsMutable();
txHash_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes txHash = 1;
*/
public Builder addTxHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTxHashIsMutable();
txHash_.add(value);
onChanged();
return this;
}
/**
* repeated bytes txHash = 1;
*/
public Builder addAllTxHash(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTxHashIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, txHash_);
onChanged();
return this;
}
/**
* repeated bytes txHash = 1;
*/
public Builder clearTxHash() {
txHash_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List txDatas_ = java.util.Collections.emptyList();
private void ensureTxDatasIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
txDatas_ = new java.util.ArrayList(txDatas_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated bytes txDatas = 2;
*/
public java.util.List
getTxDatasList() {
return java.util.Collections.unmodifiableList(txDatas_);
}
/**
* repeated bytes txDatas = 2;
*/
public int getTxDatasCount() {
return txDatas_.size();
}
/**
* repeated bytes txDatas = 2;
*/
public com.google.protobuf.ByteString getTxDatas(int index) {
return txDatas_.get(index);
}
/**
* repeated bytes txDatas = 2;
*/
public Builder setTxDatas(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTxDatasIsMutable();
txDatas_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes txDatas = 2;
*/
public Builder addTxDatas(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTxDatasIsMutable();
txDatas_.add(value);
onChanged();
return this;
}
/**
* repeated bytes txDatas = 2;
*/
public Builder addAllTxDatas(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTxDatasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, txDatas_);
onChanged();
return this;
}
/**
* repeated bytes txDatas = 2;
*/
public Builder clearTxDatas() {
txDatas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
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.BroadcastTransactionMsg)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.BroadcastTransactionMsg)
private static final com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg();
}
public static com.brewchain.sdk.model.Transaction.BroadcastTransactionMsg getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BroadcastTransactionMsg parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BroadcastTransactionMsg(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.Transaction.BroadcastTransactionMsg getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionBody_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionBody_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionOutput_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionNode_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionNode_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_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\021transaction.proto\022\027com.brewchain.sdk.m" +
"odel\"\367\001\n\017TransactionInfo\022\014\n\004hash\030\001 \001(\014\0226" +
"\n\004body\030\002 \001(\0132(.com.brewchain.sdk.model.T" +
"ransactionBody\022\021\n\tsignature\030\003 \001(\014\022:\n\006sta" +
"tus\030\004 \001(\0132*.com.brewchain.sdk.model.Tran" +
"sactionStatus\0226\n\004node\030\005 \001(\0132(.com.brewch" +
"ain.sdk.model.TransactionNode\022\027\n\017acceptt" +
"imestamp\030\006 \001(\003\"\337\001\n\017TransactionBody\022\r\n\005no" +
"nce\030\001 \001(\005\022\017\n\007address\030\002 \001(\014\022;\n\007outputs\030\003 " +
"\003(\0132*.com.brewchain.sdk.model.Transactio" +
"nOutput\022\016\n\006fee_hi\030\004 \001(\003\022\017\n\007fee_low\030\005 \001(\003" +
"\022\026\n\016inner_codetype\030\006 \001(\005\022\021\n\tcode_data\030\007 " +
"\001(\014\022\020\n\010ext_data\030\010 \001(\014\022\021\n\ttimestamp\030\t \001(\003" +
"\"}\n\021TransactionOutput\022\017\n\007address\030\001 \001(\014\022\016" +
"\n\006amount\030\002 \001(\014\022\r\n\005token\030\003 \001(\014\022\023\n\013tokenAm" +
"ount\030\004 \001(\014\022\016\n\006symbol\030\005 \001(\014\022\023\n\013cryptoToke" +
"n\030\006 \003(\014\"/\n\017TransactionNode\022\013\n\003nid\030\001 \001(\t\022" +
"\017\n\007address\030\002 \001(\014\"d\n\021TransactionStatus\022\016\n" +
"\006status\030\001 \001(\014\022\016\n\006result\030\002 \001(\014\022\014\n\004hash\030\003 " +
"\001(\014\022\016\n\006height\030\004 \001(\003\022\021\n\ttimestamp\030\005 \001(\003\":" +
"\n\027BroadcastTransactionMsg\022\016\n\006txHash\030\001 \003(" +
"\014\022\017\n\007txDatas\030\002 \003(\014*x\n\017TransactionType\022\n\n" +
"\006NORMAL\020\000\022\r\n\tMULI_SIGN\020\001\022\021\n\rRC20_CONTRAC" +
"T\020\002\022\022\n\016RC721_CONTRACT\020\003\022\020\n\014CVM_CONTRACT\020" +
"\004\022\021\n\rJSVM_CONTRACT\020\005b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_brewchain_sdk_model_TransactionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionInfo_descriptor,
new java.lang.String[] { "Hash", "Body", "Signature", "Status", "Node", "Accepttimestamp", });
internal_static_com_brewchain_sdk_model_TransactionBody_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_brewchain_sdk_model_TransactionBody_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionBody_descriptor,
new java.lang.String[] { "Nonce", "Address", "Outputs", "FeeHi", "FeeLow", "InnerCodetype", "CodeData", "ExtData", "Timestamp", });
internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_brewchain_sdk_model_TransactionOutput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionOutput_descriptor,
new java.lang.String[] { "Address", "Amount", "Token", "TokenAmount", "Symbol", "CryptoToken", });
internal_static_com_brewchain_sdk_model_TransactionNode_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_brewchain_sdk_model_TransactionNode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionNode_descriptor,
new java.lang.String[] { "Nid", "Address", });
internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_brewchain_sdk_model_TransactionStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionStatus_descriptor,
new java.lang.String[] { "Status", "Result", "Hash", "Height", "Timestamp", });
internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_BroadcastTransactionMsg_descriptor,
new java.lang.String[] { "TxHash", "TxDatas", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy