com.brewchain.sdk.model.TransactionImpl 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_impl.proto
package com.brewchain.sdk.model;
public final class TransactionImpl {
private TransactionImpl() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TransactionInfoImplOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionInfoImpl)
com.google.protobuf.MessageOrBuilder {
/**
* string hash = 1;
*/
java.lang.String getHash();
/**
* string hash = 1;
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
boolean hasBody();
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl getBody();
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder getBodyOrBuilder();
/**
* string signature = 3;
*/
java.lang.String getSignature();
/**
* string signature = 3;
*/
com.google.protobuf.ByteString
getSignatureBytes();
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
boolean hasNode();
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl getNode();
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder getNodeOrBuilder();
/**
* int64 accepttimestamp = 6;
*/
long getAccepttimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionInfoImpl}
*/
public static final class TransactionInfoImpl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionInfoImpl)
TransactionInfoImplOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionInfoImpl.newBuilder() to construct.
private TransactionInfoImpl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionInfoImpl() {
hash_ = "";
signature_ = "";
accepttimestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionInfoImpl(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
hash_ = s;
break;
}
case 18: {
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder subBuilder = null;
if (body_ != null) {
subBuilder = body_.toBuilder();
}
body_ = input.readMessage(com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(body_);
body_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
signature_ = s;
break;
}
case 42: {
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.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.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionInfoImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionInfoImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
private volatile java.lang.Object hash_;
/**
* string hash = 1;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
}
}
/**
* string hash = 1;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BODY_FIELD_NUMBER = 2;
private com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl body_;
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public boolean hasBody() {
return body_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl getBody() {
return body_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.getDefaultInstance() : body_;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder getBodyOrBuilder() {
return getBody();
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private volatile java.lang.Object signature_;
/**
* string signature = 3;
*/
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
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();
signature_ = s;
return s;
}
}
/**
* string signature = 3;
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_FIELD_NUMBER = 5;
private com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl node_;
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public boolean hasNode() {
return node_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl getNode() {
return node_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.getDefaultInstance() : node_;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder 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 (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hash_);
}
if (body_ != null) {
output.writeMessage(2, getBody());
}
if (!getSignatureBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signature_);
}
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 (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hash_);
}
if (body_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBody());
}
if (!getSignatureBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signature_);
}
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.TransactionImpl.TransactionInfoImpl)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl other = (com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl) 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 && (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 (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.TransactionImpl.TransactionInfoImpl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl 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.TransactionImpl.TransactionInfoImpl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl 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.TransactionImpl.TransactionInfoImpl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl 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.TransactionImpl.TransactionInfoImpl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl 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.TransactionImpl.TransactionInfoImpl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl 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.TransactionImpl.TransactionInfoImpl 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.TransactionInfoImpl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionInfoImpl)
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionInfoImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionInfoImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.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_ = "";
if (bodyBuilder_ == null) {
body_ = null;
} else {
body_ = null;
bodyBuilder_ = null;
}
signature_ = "";
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.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionInfoImpl_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl build() {
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl result = new com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl(this);
result.hash_ = hash_;
if (bodyBuilder_ == null) {
result.body_ = body_;
} else {
result.body_ = bodyBuilder_.build();
}
result.signature_ = signature_;
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.TransactionImpl.TransactionInfoImpl) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.getDefaultInstance()) return this;
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
if (other.hasBody()) {
mergeBody(other.getBody());
}
if (!other.getSignature().isEmpty()) {
signature_ = other.signature_;
onChanged();
}
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.TransactionImpl.TransactionInfoImpl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hash_ = "";
/**
* string hash = 1;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 1;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 1;
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* string hash = 1;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
* string hash = 1;
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
onChanged();
return this;
}
private com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl body_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder> bodyBuilder_;
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public boolean hasBody() {
return bodyBuilder_ != null || body_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl getBody() {
if (bodyBuilder_ == null) {
return body_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.getDefaultInstance() : body_;
} else {
return bodyBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public Builder setBody(com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl value) {
if (bodyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
body_ = value;
onChanged();
} else {
bodyBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public Builder setBody(
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder builderForValue) {
if (bodyBuilder_ == null) {
body_ = builderForValue.build();
onChanged();
} else {
bodyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public Builder mergeBody(com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl value) {
if (bodyBuilder_ == null) {
if (body_ != null) {
body_ =
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.newBuilder(body_).mergeFrom(value).buildPartial();
} else {
body_ = value;
}
onChanged();
} else {
bodyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public Builder clearBody() {
if (bodyBuilder_ == null) {
body_ = null;
onChanged();
} else {
body_ = null;
bodyBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder getBodyBuilder() {
onChanged();
return getBodyFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder getBodyOrBuilder() {
if (bodyBuilder_ != null) {
return bodyBuilder_.getMessageOrBuilder();
} else {
return body_ == null ?
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.getDefaultInstance() : body_;
}
}
/**
* .com.brewchain.sdk.model.TransactionBodyImpl body = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder>
getBodyFieldBuilder() {
if (bodyBuilder_ == null) {
bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder>(
getBody(),
getParentForChildren(),
isClean());
body_ = null;
}
return bodyBuilder_;
}
private java.lang.Object signature_ = "";
/**
* string signature = 3;
*/
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signature_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signature = 3;
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signature = 3;
*/
public Builder setSignature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* string signature = 3;
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
/**
* string signature = 3;
*/
public Builder setSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signature_ = value;
onChanged();
return this;
}
private com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl node_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder> nodeBuilder_;
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public Builder setNode(com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public Builder setNode(
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public Builder mergeNode(com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.getDefaultInstance() : node_;
}
}
/**
* .com.brewchain.sdk.model.TransactionNodeImpl node = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder>(
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.TransactionInfoImpl)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionInfoImpl)
private static final com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl();
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionInfoImpl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionInfoImpl(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.TransactionImpl.TransactionInfoImpl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionBodyImplOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionBodyImpl)
com.google.protobuf.MessageOrBuilder {
/**
* int32 nonce = 1;
*/
int getNonce();
/**
* string address = 2;
*/
java.lang.String getAddress();
/**
* string address = 2;
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
java.util.List
getOutputsList();
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl getOutputs(int index);
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
int getOutputsCount();
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
java.util.List extends com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder>
getOutputsOrBuilderList();
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder 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();
/**
*
*指令数据
*
*
* string code_data = 7;
*/
java.lang.String getCodeData();
/**
*
*指令数据
*
*
* string code_data = 7;
*/
com.google.protobuf.ByteString
getCodeDataBytes();
/**
* string ext_data = 8;
*/
java.lang.String getExtData();
/**
* string ext_data = 8;
*/
com.google.protobuf.ByteString
getExtDataBytes();
/**
* int64 timestamp = 9;
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionBodyImpl}
*/
public static final class TransactionBodyImpl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionBodyImpl)
TransactionBodyImplOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionBodyImpl.newBuilder() to construct.
private TransactionBodyImpl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionBodyImpl() {
nonce_ = 0;
address_ = "";
outputs_ = java.util.Collections.emptyList();
feeHi_ = 0L;
feeLow_ = 0L;
innerCodetype_ = 0;
codeData_ = "";
extData_ = "";
timestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionBodyImpl(
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: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
outputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
outputs_.add(
input.readMessage(com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.parser(), extensionRegistry));
break;
}
case 32: {
feeHi_ = input.readInt64();
break;
}
case 40: {
feeLow_ = input.readInt64();
break;
}
case 48: {
innerCodetype_ = input.readInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
codeData_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
extData_ = s;
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.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionBodyImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.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 volatile java.lang.Object address_;
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTPUTS_FIELD_NUMBER = 3;
private java.util.List outputs_;
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public java.util.List getOutputsList() {
return outputs_;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public java.util.List extends com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder>
getOutputsOrBuilderList() {
return outputs_;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder 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 volatile java.lang.Object codeData_;
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public java.lang.String getCodeData() {
java.lang.Object ref = codeData_;
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();
codeData_ = s;
return s;
}
}
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public com.google.protobuf.ByteString
getCodeDataBytes() {
java.lang.Object ref = codeData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXT_DATA_FIELD_NUMBER = 8;
private volatile java.lang.Object extData_;
/**
* string ext_data = 8;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extData_ = s;
return s;
}
}
/**
* string ext_data = 8;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int 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 (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 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 (!getCodeDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, codeData_);
}
if (!getExtDataBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 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 (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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 (!getCodeDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, codeData_);
}
if (!getExtDataBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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.TransactionImpl.TransactionBodyImpl)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl other = (com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl) 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.TransactionImpl.TransactionBodyImpl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl 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.TransactionImpl.TransactionBodyImpl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl 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.TransactionImpl.TransactionBodyImpl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl 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.TransactionImpl.TransactionBodyImpl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl 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.TransactionImpl.TransactionBodyImpl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl 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.TransactionImpl.TransactionBodyImpl 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.TransactionBodyImpl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionBodyImpl)
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImplOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionBodyImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.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_ = "";
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
outputsBuilder_.clear();
}
feeHi_ = 0L;
feeLow_ = 0L;
innerCodetype_ = 0;
codeData_ = "";
extData_ = "";
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl build() {
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl result = new com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl(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.TransactionImpl.TransactionBodyImpl) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl.getDefaultInstance()) return this;
if (other.getNonce() != 0) {
setNonce(other.getNonce());
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
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().isEmpty()) {
codeData_ = other.codeData_;
onChanged();
}
if (!other.getExtData().isEmpty()) {
extData_ = other.extData_;
onChanged();
}
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.TransactionImpl.TransactionBodyImpl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl) 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 java.lang.Object address_ = "";
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 2;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private 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.TransactionImpl.TransactionOutputImpl, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder> outputsBuilder_;
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl 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.TransactionOutputImpl outputs = 3;
*/
public int getOutputsCount() {
if (outputsBuilder_ == null) {
return outputs_.size();
} else {
return outputsBuilder_.getCount();
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl getOutputs(int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index);
} else {
return outputsBuilder_.getMessage(index);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public Builder setOutputs(
int index, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionOutputImpl outputs = 3;
*/
public Builder setOutputs(
int index, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.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.TransactionOutputImpl outputs = 3;
*/
public Builder addOutputs(com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionOutputImpl outputs = 3;
*/
public Builder addOutputs(
int index, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionOutputImpl outputs = 3;
*/
public Builder addOutputs(
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public Builder addOutputs(
int index, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.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.TransactionOutputImpl outputs = 3;
*/
public Builder addAllOutputs(
java.lang.Iterable extends com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl> 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.TransactionOutputImpl 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.TransactionOutputImpl 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.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder getOutputsBuilder(
int index) {
return getOutputsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder getOutputsOrBuilder(
int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index); } else {
return outputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public java.util.List extends com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder>
getOutputsOrBuilderList() {
if (outputsBuilder_ != null) {
return outputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputs_);
}
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder addOutputsBuilder() {
return getOutputsFieldBuilder().addBuilder(
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.getDefaultInstance());
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder addOutputsBuilder(
int index) {
return getOutputsFieldBuilder().addBuilder(
index, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.getDefaultInstance());
}
/**
* repeated .com.brewchain.sdk.model.TransactionOutputImpl outputs = 3;
*/
public java.util.List
getOutputsBuilderList() {
return getOutputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder>
getOutputsFieldBuilder() {
if (outputsBuilder_ == null) {
outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder>(
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 java.lang.Object codeData_ = "";
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public java.lang.String getCodeData() {
java.lang.Object ref = codeData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
codeData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public com.google.protobuf.ByteString
getCodeDataBytes() {
java.lang.Object ref = codeData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
codeData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public Builder setCodeData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
codeData_ = value;
onChanged();
return this;
}
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public Builder clearCodeData() {
codeData_ = getDefaultInstance().getCodeData();
onChanged();
return this;
}
/**
*
*指令数据
*
*
* string code_data = 7;
*/
public Builder setCodeDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
codeData_ = value;
onChanged();
return this;
}
private java.lang.Object extData_ = "";
/**
* string ext_data = 8;
*/
public java.lang.String getExtData() {
java.lang.Object ref = extData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
extData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ext_data = 8;
*/
public com.google.protobuf.ByteString
getExtDataBytes() {
java.lang.Object ref = extData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
extData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ext_data = 8;
*/
public Builder setExtData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
extData_ = value;
onChanged();
return this;
}
/**
* string ext_data = 8;
*/
public Builder clearExtData() {
extData_ = getDefaultInstance().getExtData();
onChanged();
return this;
}
/**
* string ext_data = 8;
*/
public Builder setExtDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
extData_ = value;
onChanged();
return this;
}
private 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.TransactionBodyImpl)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionBodyImpl)
private static final com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl();
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionBodyImpl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionBodyImpl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionBodyImpl(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.TransactionImpl.TransactionBodyImpl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionOutputImplOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionOutputImpl)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
*/
java.lang.String getAddress();
/**
* string address = 1;
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* string amount = 2;
*/
java.lang.String getAmount();
/**
* string amount = 2;
*/
com.google.protobuf.ByteString
getAmountBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionOutputImpl}
*/
public static final class TransactionOutputImpl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionOutputImpl)
TransactionOutputImplOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionOutputImpl.newBuilder() to construct.
private TransactionOutputImpl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionOutputImpl() {
address_ = "";
amount_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionOutputImpl(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
amount_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionOutputImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
* string address = 1;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 1;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AMOUNT_FIELD_NUMBER = 2;
private volatile java.lang.Object amount_;
/**
* string amount = 2;
*/
public java.lang.String getAmount() {
java.lang.Object ref = amount_;
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();
amount_ = s;
return s;
}
}
/**
* string amount = 2;
*/
public com.google.protobuf.ByteString
getAmountBytes() {
java.lang.Object ref = amount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!getAmountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, amount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!getAmountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, amount_);
}
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.TransactionImpl.TransactionOutputImpl)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl other = (com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl) obj;
boolean result = true;
result = result && getAddress()
.equals(other.getAddress());
result = result && getAmount()
.equals(other.getAmount());
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionImpl.TransactionOutputImpl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionImpl.TransactionOutputImpl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionImpl.TransactionOutputImpl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionImpl.TransactionOutputImpl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl 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.TransactionImpl.TransactionOutputImpl 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.TransactionOutputImpl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionOutputImpl)
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImplOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionOutputImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.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_ = "";
amount_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl build() {
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl result = new com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl(this);
result.address_ = address_;
result.amount_ = amount_;
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.TransactionImpl.TransactionOutputImpl) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getAmount().isEmpty()) {
amount_ = other.amount_;
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.TransactionImpl.TransactionOutputImpl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object address_ = "";
/**
* string address = 1;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 1;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 1;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 1;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 1;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
private java.lang.Object amount_ = "";
/**
* string amount = 2;
*/
public java.lang.String getAmount() {
java.lang.Object ref = amount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
amount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string amount = 2;
*/
public com.google.protobuf.ByteString
getAmountBytes() {
java.lang.Object ref = amount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string amount = 2;
*/
public Builder setAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
amount_ = value;
onChanged();
return this;
}
/**
* string amount = 2;
*/
public Builder clearAmount() {
amount_ = getDefaultInstance().getAmount();
onChanged();
return this;
}
/**
* string amount = 2;
*/
public Builder setAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
amount_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.brewchain.sdk.model.TransactionOutputImpl)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionOutputImpl)
private static final com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl();
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionOutputImpl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionOutputImpl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionOutputImpl(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.TransactionImpl.TransactionOutputImpl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionNodeImplOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionNodeImpl)
com.google.protobuf.MessageOrBuilder {
/**
* string nid = 1;
*/
java.lang.String getNid();
/**
* string nid = 1;
*/
com.google.protobuf.ByteString
getNidBytes();
/**
* string address = 2;
*/
java.lang.String getAddress();
/**
* string address = 2;
*/
com.google.protobuf.ByteString
getAddressBytes();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionNodeImpl}
*/
public static final class TransactionNodeImpl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionNodeImpl)
TransactionNodeImplOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionNodeImpl.newBuilder() to construct.
private TransactionNodeImpl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionNodeImpl() {
nid_ = "";
address_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionNodeImpl(
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: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionNodeImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.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 volatile java.lang.Object address_;
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 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 (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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.TransactionImpl.TransactionNodeImpl)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl other = (com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl) 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.TransactionImpl.TransactionNodeImpl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl 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.TransactionImpl.TransactionNodeImpl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl 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.TransactionImpl.TransactionNodeImpl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl 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.TransactionImpl.TransactionNodeImpl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl 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.TransactionImpl.TransactionNodeImpl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl 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.TransactionImpl.TransactionNodeImpl 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.TransactionNodeImpl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionNodeImpl)
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImplOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionNodeImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl build() {
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl result = new com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl(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.TransactionImpl.TransactionNodeImpl) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl.getDefaultInstance()) return this;
if (!other.getNid().isEmpty()) {
nid_ = other.nid_;
onChanged();
}
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
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.TransactionImpl.TransactionNodeImpl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl) 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 java.lang.Object address_ = "";
/**
* string address = 2;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string address = 2;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string address = 2;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* string address = 2;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
}
@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.TransactionNodeImpl)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionNodeImpl)
private static final com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl();
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionNodeImpl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionNodeImpl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionNodeImpl(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.TransactionImpl.TransactionNodeImpl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionStatusImplOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TransactionStatusImpl)
com.google.protobuf.MessageOrBuilder {
/**
* string status = 1;
*/
java.lang.String getStatus();
/**
* string status = 1;
*/
com.google.protobuf.ByteString
getStatusBytes();
/**
* string result = 2;
*/
java.lang.String getResult();
/**
* string result = 2;
*/
com.google.protobuf.ByteString
getResultBytes();
/**
* string hash = 3;
*/
java.lang.String getHash();
/**
* string hash = 3;
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* int64 height = 4;
*/
long getHeight();
/**
* int64 timestamp = 5;
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TransactionStatusImpl}
*/
public static final class TransactionStatusImpl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TransactionStatusImpl)
TransactionStatusImplOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionStatusImpl.newBuilder() to construct.
private TransactionStatusImpl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionStatusImpl() {
status_ = "";
result_ = "";
hash_ = "";
height_ = 0L;
timestamp_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionStatusImpl(
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();
status_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
result_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
hash_ = s;
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.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionStatusImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private volatile java.lang.Object status_;
/**
* string status = 1;
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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();
status_ = s;
return s;
}
}
/**
* string status = 1;
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULT_FIELD_NUMBER = 2;
private volatile java.lang.Object result_;
/**
* string result = 2;
*/
public java.lang.String getResult() {
java.lang.Object ref = result_;
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();
result_ = s;
return s;
}
}
/**
* string result = 2;
*/
public com.google.protobuf.ByteString
getResultBytes() {
java.lang.Object ref = result_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
result_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASH_FIELD_NUMBER = 3;
private volatile java.lang.Object hash_;
/**
* string hash = 3;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
}
}
/**
* string hash = 3;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int 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 (!getStatusBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, status_);
}
if (!getResultBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, result_);
}
if (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 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 (!getStatusBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, status_);
}
if (!getResultBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, result_);
}
if (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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.TransactionImpl.TransactionStatusImpl)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl other = (com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl) 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.TransactionImpl.TransactionStatusImpl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl 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.TransactionImpl.TransactionStatusImpl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl 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.TransactionImpl.TransactionStatusImpl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl 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.TransactionImpl.TransactionStatusImpl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl 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.TransactionImpl.TransactionStatusImpl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl 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.TransactionImpl.TransactionStatusImpl 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.TransactionStatusImpl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TransactionStatusImpl)
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionStatusImpl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.class, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.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_ = "";
result_ = "";
hash_ = "";
height_ = 0L;
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl build() {
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl result = new com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl(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.TransactionImpl.TransactionStatusImpl) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.getDefaultInstance()) return this;
if (!other.getStatus().isEmpty()) {
status_ = other.status_;
onChanged();
}
if (!other.getResult().isEmpty()) {
result_ = other.result_;
onChanged();
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
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.TransactionImpl.TransactionStatusImpl parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object status_ = "";
/**
* string status = 1;
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string status = 1;
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string status = 1;
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
return this;
}
/**
* string status = 1;
*/
public Builder clearStatus() {
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
/**
* string status = 1;
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
status_ = value;
onChanged();
return this;
}
private java.lang.Object result_ = "";
/**
* string result = 2;
*/
public java.lang.String getResult() {
java.lang.Object ref = result_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
result_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string result = 2;
*/
public com.google.protobuf.ByteString
getResultBytes() {
java.lang.Object ref = result_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
result_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string result = 2;
*/
public Builder setResult(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
return this;
}
/**
* string result = 2;
*/
public Builder clearResult() {
result_ = getDefaultInstance().getResult();
onChanged();
return this;
}
/**
* string result = 2;
*/
public Builder setResultBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
result_ = value;
onChanged();
return this;
}
private java.lang.Object hash_ = "";
/**
* string hash = 3;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 3;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 3;
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* string hash = 3;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
* string hash = 3;
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
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.TransactionStatusImpl)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TransactionStatusImpl)
private static final com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl();
}
public static com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionStatusImpl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransactionStatusImpl(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.TransactionImpl.TransactionStatusImpl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TxResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.brewchain.sdk.model.TxResult)
com.google.protobuf.MessageOrBuilder {
/**
* int32 retCode = 1;
*/
int getRetCode();
/**
* string retMsg = 2;
*/
java.lang.String getRetMsg();
/**
* string retMsg = 2;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
/**
* string hash = 4;
*/
java.lang.String getHash();
/**
* string hash = 4;
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
boolean hasTransaction();
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl getTransaction();
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder getTransactionOrBuilder();
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
boolean hasStatus();
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl getStatus();
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder getStatusOrBuilder();
}
/**
* Protobuf type {@code com.brewchain.sdk.model.TxResult}
*/
public static final class TxResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.brewchain.sdk.model.TxResult)
TxResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use TxResult.newBuilder() to construct.
private TxResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TxResult() {
retCode_ = 0;
retMsg_ = "";
hash_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TxResult(
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: {
retCode_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
retMsg_ = s;
break;
}
case 26: {
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
hash_ = s;
break;
}
case 42: {
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TxResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TxResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TxResult.class, com.brewchain.sdk.model.TransactionImpl.TxResult.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 1;
private int retCode_;
/**
* int32 retCode = 1;
*/
public int getRetCode() {
return retCode_;
}
public static final int RETMSG_FIELD_NUMBER = 2;
private volatile java.lang.Object retMsg_;
/**
* string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
retMsg_ = s;
return s;
}
}
/**
* string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASH_FIELD_NUMBER = 4;
private volatile java.lang.Object hash_;
/**
* string hash = 4;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
}
}
/**
* string hash = 4;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSACTION_FIELD_NUMBER = 3;
private com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl transaction_;
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl getTransaction() {
return transaction_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.getDefaultInstance() : transaction_;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
public static final int STATUS_FIELD_NUMBER = 5;
private com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl status_;
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public boolean hasStatus() {
return status_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl getStatus() {
return status_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.getDefaultInstance() : status_;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder getStatusOrBuilder() {
return getStatus();
}
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 (retCode_ != 0) {
output.writeInt32(1, retCode_);
}
if (!getRetMsgBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retMsg_);
}
if (transaction_ != null) {
output.writeMessage(3, getTransaction());
}
if (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hash_);
}
if (status_ != null) {
output.writeMessage(5, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (retCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, retCode_);
}
if (!getRetMsgBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retMsg_);
}
if (transaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTransaction());
}
if (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hash_);
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStatus());
}
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.TransactionImpl.TxResult)) {
return super.equals(obj);
}
com.brewchain.sdk.model.TransactionImpl.TxResult other = (com.brewchain.sdk.model.TransactionImpl.TxResult) obj;
boolean result = true;
result = result && (getRetCode()
== other.getRetCode());
result = result && getRetMsg()
.equals(other.getRetMsg());
result = result && getHash()
.equals(other.getHash());
result = result && (hasTransaction() == other.hasTransaction());
if (hasTransaction()) {
result = result && getTransaction()
.equals(other.getTransaction());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
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) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetCode();
hash = (37 * hash) + RETMSG_FIELD_NUMBER;
hash = (53 * hash) + getRetMsg().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult 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.TransactionImpl.TxResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult 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.TransactionImpl.TxResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult 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.TransactionImpl.TxResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult 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.TransactionImpl.TxResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult 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.TransactionImpl.TxResult 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.TxResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.brewchain.sdk.model.TxResult)
com.brewchain.sdk.model.TransactionImpl.TxResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TxResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TxResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.brewchain.sdk.model.TransactionImpl.TxResult.class, com.brewchain.sdk.model.TransactionImpl.TxResult.Builder.class);
}
// Construct using com.brewchain.sdk.model.TransactionImpl.TxResult.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();
retCode_ = 0;
retMsg_ = "";
hash_ = "";
if (transactionBuilder_ == null) {
transaction_ = null;
} else {
transaction_ = null;
transactionBuilder_ = null;
}
if (statusBuilder_ == null) {
status_ = null;
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.brewchain.sdk.model.TransactionImpl.internal_static_com_brewchain_sdk_model_TxResult_descriptor;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TxResult getDefaultInstanceForType() {
return com.brewchain.sdk.model.TransactionImpl.TxResult.getDefaultInstance();
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TxResult build() {
com.brewchain.sdk.model.TransactionImpl.TxResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.brewchain.sdk.model.TransactionImpl.TxResult buildPartial() {
com.brewchain.sdk.model.TransactionImpl.TxResult result = new com.brewchain.sdk.model.TransactionImpl.TxResult(this);
result.retCode_ = retCode_;
result.retMsg_ = retMsg_;
result.hash_ = hash_;
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.brewchain.sdk.model.TransactionImpl.TxResult) {
return mergeFrom((com.brewchain.sdk.model.TransactionImpl.TxResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.brewchain.sdk.model.TransactionImpl.TxResult other) {
if (other == com.brewchain.sdk.model.TransactionImpl.TxResult.getDefaultInstance()) return this;
if (other.getRetCode() != 0) {
setRetCode(other.getRetCode());
}
if (!other.getRetMsg().isEmpty()) {
retMsg_ = other.retMsg_;
onChanged();
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
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.TransactionImpl.TxResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.brewchain.sdk.model.TransactionImpl.TxResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int retCode_ ;
/**
* int32 retCode = 1;
*/
public int getRetCode() {
return retCode_;
}
/**
* int32 retCode = 1;
*/
public Builder setRetCode(int value) {
retCode_ = value;
onChanged();
return this;
}
/**
* int32 retCode = 1;
*/
public Builder clearRetCode() {
retCode_ = 0;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
retMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string retMsg = 2;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
retMsg_ = value;
onChanged();
return this;
}
/**
* string retMsg = 2;
*/
public Builder clearRetMsg() {
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* string retMsg = 2;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
retMsg_ = value;
onChanged();
return this;
}
private java.lang.Object hash_ = "";
/**
* string hash = 4;
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 4;
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 4;
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* string hash = 4;
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
* string hash = 4;
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
onChanged();
return this;
}
private com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl transaction_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder> transactionBuilder_;
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public Builder setTransaction(com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public Builder setTransaction(
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public Builder mergeTransaction(com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.getDefaultInstance() : transaction_;
}
}
/**
* .com.brewchain.sdk.model.TransactionInfoImpl transaction = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionInfoImplOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
private com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder> statusBuilder_;
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public boolean hasStatus() {
return statusBuilder_ != null || status_ != null;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public Builder setStatus(com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public Builder setStatus(
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public Builder mergeStatus(com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl value) {
if (statusBuilder_ == null) {
if (status_ != null) {
status_ =
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
status_ = null;
statusBuilder_ = null;
}
return this;
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
public com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.getDefaultInstance() : status_;
}
}
/**
* .com.brewchain.sdk.model.TransactionStatusImpl status = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImpl.Builder, com.brewchain.sdk.model.TransactionImpl.TransactionStatusImplOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@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.TxResult)
}
// @@protoc_insertion_point(class_scope:com.brewchain.sdk.model.TxResult)
private static final com.brewchain.sdk.model.TransactionImpl.TxResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.brewchain.sdk.model.TransactionImpl.TxResult();
}
public static com.brewchain.sdk.model.TransactionImpl.TxResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TxResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TxResult(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.TransactionImpl.TxResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionInfoImpl_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionInfoImpl_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionBodyImpl_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionOutputImpl_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionNodeImpl_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TransactionStatusImpl_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_brewchain_sdk_model_TxResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_brewchain_sdk_model_TxResult_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\026transaction_impl.proto\022\027com.brewchain." +
"sdk.model\"\307\001\n\023TransactionInfoImpl\022\014\n\004has" +
"h\030\001 \001(\t\022:\n\004body\030\002 \001(\0132,.com.brewchain.sd" +
"k.model.TransactionBodyImpl\022\021\n\tsignature" +
"\030\003 \001(\t\022:\n\004node\030\005 \001(\0132,.com.brewchain.sdk" +
".model.TransactionNodeImpl\022\027\n\017accepttime" +
"stamp\030\006 \001(\003\"\347\001\n\023TransactionBodyImpl\022\r\n\005n" +
"once\030\001 \001(\005\022\017\n\007address\030\002 \001(\t\022?\n\007outputs\030\003" +
" \003(\0132..com.brewchain.sdk.model.Transacti" +
"onOutputImpl\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_da" +
"ta\030\007 \001(\t\022\020\n\010ext_data\030\010 \001(\t\022\021\n\ttimestamp\030" +
"\t \001(\003\"8\n\025TransactionOutputImpl\022\017\n\007addres" +
"s\030\001 \001(\t\022\016\n\006amount\030\002 \001(\t\"3\n\023TransactionNo" +
"deImpl\022\013\n\003nid\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\"h\n\025" +
"TransactionStatusImpl\022\016\n\006status\030\001 \001(\t\022\016\n" +
"\006result\030\002 \001(\t\022\014\n\004hash\030\003 \001(\t\022\016\n\006height\030\004 " +
"\001(\003\022\021\n\ttimestamp\030\005 \001(\003\"\274\001\n\010TxResult\022\017\n\007r" +
"etCode\030\001 \001(\005\022\016\n\006retMsg\030\002 \001(\t\022\014\n\004hash\030\004 \001" +
"(\t\022A\n\013transaction\030\003 \001(\0132,.com.brewchain." +
"sdk.model.TransactionInfoImpl\022>\n\006status\030" +
"\005 \001(\0132..com.brewchain.sdk.model.Transact" +
"ionStatusImplb\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_TransactionInfoImpl_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_brewchain_sdk_model_TransactionInfoImpl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionInfoImpl_descriptor,
new java.lang.String[] { "Hash", "Body", "Signature", "Node", "Accepttimestamp", });
internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_brewchain_sdk_model_TransactionBodyImpl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionBodyImpl_descriptor,
new java.lang.String[] { "Nonce", "Address", "Outputs", "FeeHi", "FeeLow", "InnerCodetype", "CodeData", "ExtData", "Timestamp", });
internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_brewchain_sdk_model_TransactionOutputImpl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionOutputImpl_descriptor,
new java.lang.String[] { "Address", "Amount", });
internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_brewchain_sdk_model_TransactionNodeImpl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionNodeImpl_descriptor,
new java.lang.String[] { "Nid", "Address", });
internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_brewchain_sdk_model_TransactionStatusImpl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TransactionStatusImpl_descriptor,
new java.lang.String[] { "Status", "Result", "Hash", "Height", "Timestamp", });
internal_static_com_brewchain_sdk_model_TxResult_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_brewchain_sdk_model_TxResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_brewchain_sdk_model_TxResult_descriptor,
new java.lang.String[] { "RetCode", "RetMsg", "Hash", "Transaction", "Status", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy