org.tron.trident.proto.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A concise description of my library
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/response.proto
// Protobuf Java Version: 3.25.0
package org.tron.trident.proto;
public final class Response {
private Response() {}
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 BlockExtentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.BlockExtention)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
java.util.List
getTransactionsList();
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
org.tron.trident.proto.Response.TransactionExtention getTransactions(int index);
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
int getTransactionsCount();
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
java.util.List extends org.tron.trident.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
int index);
/**
* .protocol.BlockHeader block_header = 2;
* @return Whether the blockHeader field is set.
*/
boolean hasBlockHeader();
/**
* .protocol.BlockHeader block_header = 2;
* @return The blockHeader.
*/
org.tron.trident.proto.Chain.BlockHeader getBlockHeader();
/**
* .protocol.BlockHeader block_header = 2;
*/
org.tron.trident.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder();
/**
* bytes blockid = 3;
* @return The blockid.
*/
com.google.protobuf.ByteString getBlockid();
}
/**
* Protobuf type {@code protocol.BlockExtention}
*/
public static final class BlockExtention extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.BlockExtention)
BlockExtentionOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockExtention.newBuilder() to construct.
private BlockExtention(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockExtention() {
transactions_ = java.util.Collections.emptyList();
blockid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockExtention();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockExtention.class, org.tron.trident.proto.Response.BlockExtention.Builder.class);
}
private int bitField0_;
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List transactions_;
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
@java.lang.Override
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
@java.lang.Override
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtention getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
int index) {
return transactions_.get(index);
}
public static final int BLOCK_HEADER_FIELD_NUMBER = 2;
private org.tron.trident.proto.Chain.BlockHeader blockHeader_;
/**
* .protocol.BlockHeader block_header = 2;
* @return Whether the blockHeader field is set.
*/
@java.lang.Override
public boolean hasBlockHeader() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.BlockHeader block_header = 2;
* @return The blockHeader.
*/
@java.lang.Override
public org.tron.trident.proto.Chain.BlockHeader getBlockHeader() {
return blockHeader_ == null ? org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
}
/**
* .protocol.BlockHeader block_header = 2;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
return blockHeader_ == null ? org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
}
public static final int BLOCKID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString blockid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes blockid = 3;
* @return The blockid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockid() {
return blockid_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < transactions_.size(); i++) {
output.writeMessage(1, transactions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getBlockHeader());
}
if (!blockid_.isEmpty()) {
output.writeBytes(3, blockid_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transactions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockHeader());
}
if (!blockid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, blockid_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.BlockExtention)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.BlockExtention other = (org.tron.trident.proto.Response.BlockExtention) obj;
if (!getTransactionsList()
.equals(other.getTransactionsList())) return false;
if (hasBlockHeader() != other.hasBlockHeader()) return false;
if (hasBlockHeader()) {
if (!getBlockHeader()
.equals(other.getBlockHeader())) return false;
}
if (!getBlockid()
.equals(other.getBlockid())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTransactionsCount() > 0) {
hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getTransactionsList().hashCode();
}
if (hasBlockHeader()) {
hash = (37 * hash) + BLOCK_HEADER_FIELD_NUMBER;
hash = (53 * hash) + getBlockHeader().hashCode();
}
hash = (37 * hash) + BLOCKID_FIELD_NUMBER;
hash = (53 * hash) + getBlockid().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockExtention 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 org.tron.trident.proto.Response.BlockExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockExtention 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 org.tron.trident.proto.Response.BlockExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockExtention 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(org.tron.trident.proto.Response.BlockExtention 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 protocol.BlockExtention}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.BlockExtention)
org.tron.trident.proto.Response.BlockExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockExtention.class, org.tron.trident.proto.Response.BlockExtention.Builder.class);
}
// Construct using org.tron.trident.proto.Response.BlockExtention.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionsFieldBuilder();
getBlockHeaderFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
} else {
transactions_ = null;
transactionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
blockHeader_ = null;
if (blockHeaderBuilder_ != null) {
blockHeaderBuilder_.dispose();
blockHeaderBuilder_ = null;
}
blockid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtention getDefaultInstanceForType() {
return org.tron.trident.proto.Response.BlockExtention.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtention build() {
org.tron.trident.proto.Response.BlockExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtention buildPartial() {
org.tron.trident.proto.Response.BlockExtention result = new org.tron.trident.proto.Response.BlockExtention(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockExtention result) {
if (transactionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactions_ = transactions_;
} else {
result.transactions_ = transactionsBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.BlockExtention result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.blockHeader_ = blockHeaderBuilder_ == null
? blockHeader_
: blockHeaderBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.blockid_ = blockid_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.BlockExtention) {
return mergeFrom((org.tron.trident.proto.Response.BlockExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.BlockExtention other) {
if (other == org.tron.trident.proto.Response.BlockExtention.getDefaultInstance()) return this;
if (transactionsBuilder_ == null) {
if (!other.transactions_.isEmpty()) {
if (transactions_.isEmpty()) {
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionsIsMutable();
transactions_.addAll(other.transactions_);
}
onChanged();
}
} else {
if (!other.transactions_.isEmpty()) {
if (transactionsBuilder_.isEmpty()) {
transactionsBuilder_.dispose();
transactionsBuilder_ = null;
transactions_ = other.transactions_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionsFieldBuilder() : null;
} else {
transactionsBuilder_.addAllMessages(other.transactions_);
}
}
}
if (other.hasBlockHeader()) {
mergeBlockHeader(other.getBlockHeader());
}
if (other.getBlockid() != com.google.protobuf.ByteString.EMPTY) {
setBlockid(other.getBlockid());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.TransactionExtention m =
input.readMessage(
org.tron.trident.proto.Response.TransactionExtention.parser(),
extensionRegistry);
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(m);
} else {
transactionsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getBlockHeaderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
blockid_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List transactions_ =
java.util.Collections.emptyList();
private void ensureTransactionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList(transactions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder> transactionsBuilder_;
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public org.tron.trident.proto.Response.TransactionExtention getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder setTransactions(
int index, org.tron.trident.proto.Response.TransactionExtention value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.set(index, value);
onChanged();
} else {
transactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder setTransactions(
int index, org.tron.trident.proto.Response.TransactionExtention.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.set(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder addTransactions(org.tron.trident.proto.Response.TransactionExtention value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(value);
onChanged();
} else {
transactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder addTransactions(
int index, org.tron.trident.proto.Response.TransactionExtention value) {
if (transactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionsIsMutable();
transactions_.add(index, value);
onChanged();
} else {
transactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder addTransactions(
org.tron.trident.proto.Response.TransactionExtention.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder addTransactions(
int index, org.tron.trident.proto.Response.TransactionExtention.Builder builderForValue) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.add(index, builderForValue.build());
onChanged();
} else {
transactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder addAllTransactions(
java.lang.Iterable extends org.tron.trident.proto.Response.TransactionExtention> values) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transactions_);
onChanged();
} else {
transactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder clearTransactions() {
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public org.tron.trident.proto.Response.TransactionExtention.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public org.tron.trident.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public org.tron.trident.proto.Response.TransactionExtention.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance());
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public org.tron.trident.proto.Response.TransactionExtention.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance());
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionExtention, org.tron.trident.proto.Response.TransactionExtention.Builder, org.tron.trident.proto.Response.TransactionExtentionOrBuilder>(
transactions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactions_ = null;
}
return transactionsBuilder_;
}
private org.tron.trident.proto.Chain.BlockHeader blockHeader_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.proto.Chain.BlockHeaderOrBuilder> blockHeaderBuilder_;
/**
* .protocol.BlockHeader block_header = 2;
* @return Whether the blockHeader field is set.
*/
public boolean hasBlockHeader() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .protocol.BlockHeader block_header = 2;
* @return The blockHeader.
*/
public org.tron.trident.proto.Chain.BlockHeader getBlockHeader() {
if (blockHeaderBuilder_ == null) {
return blockHeader_ == null ? org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
} else {
return blockHeaderBuilder_.getMessage();
}
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public Builder setBlockHeader(org.tron.trident.proto.Chain.BlockHeader value) {
if (blockHeaderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockHeader_ = value;
} else {
blockHeaderBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public Builder setBlockHeader(
org.tron.trident.proto.Chain.BlockHeader.Builder builderForValue) {
if (blockHeaderBuilder_ == null) {
blockHeader_ = builderForValue.build();
} else {
blockHeaderBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public Builder mergeBlockHeader(org.tron.trident.proto.Chain.BlockHeader value) {
if (blockHeaderBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
blockHeader_ != null &&
blockHeader_ != org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance()) {
getBlockHeaderBuilder().mergeFrom(value);
} else {
blockHeader_ = value;
}
} else {
blockHeaderBuilder_.mergeFrom(value);
}
if (blockHeader_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public Builder clearBlockHeader() {
bitField0_ = (bitField0_ & ~0x00000002);
blockHeader_ = null;
if (blockHeaderBuilder_ != null) {
blockHeaderBuilder_.dispose();
blockHeaderBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public org.tron.trident.proto.Chain.BlockHeader.Builder getBlockHeaderBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBlockHeaderFieldBuilder().getBuilder();
}
/**
* .protocol.BlockHeader block_header = 2;
*/
public org.tron.trident.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
if (blockHeaderBuilder_ != null) {
return blockHeaderBuilder_.getMessageOrBuilder();
} else {
return blockHeader_ == null ?
org.tron.trident.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
}
}
/**
* .protocol.BlockHeader block_header = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.proto.Chain.BlockHeaderOrBuilder>
getBlockHeaderFieldBuilder() {
if (blockHeaderBuilder_ == null) {
blockHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.BlockHeader, org.tron.trident.proto.Chain.BlockHeader.Builder, org.tron.trident.proto.Chain.BlockHeaderOrBuilder>(
getBlockHeader(),
getParentForChildren(),
isClean());
blockHeader_ = null;
}
return blockHeaderBuilder_;
}
private com.google.protobuf.ByteString blockid_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes blockid = 3;
* @return The blockid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockid() {
return blockid_;
}
/**
* bytes blockid = 3;
* @param value The blockid to set.
* @return This builder for chaining.
*/
public Builder setBlockid(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
blockid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes blockid = 3;
* @return This builder for chaining.
*/
public Builder clearBlockid() {
bitField0_ = (bitField0_ & ~0x00000004);
blockid_ = getDefaultInstance().getBlockid();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.BlockExtention)
}
// @@protoc_insertion_point(class_scope:protocol.BlockExtention)
private static final org.tron.trident.proto.Response.BlockExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockExtention();
}
public static org.tron.trident.proto.Response.BlockExtention getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockExtention parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtention getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockListExtentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.BlockListExtention)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.BlockExtention block = 1;
*/
java.util.List
getBlockList();
/**
* repeated .protocol.BlockExtention block = 1;
*/
org.tron.trident.proto.Response.BlockExtention getBlock(int index);
/**
* repeated .protocol.BlockExtention block = 1;
*/
int getBlockCount();
/**
* repeated .protocol.BlockExtention block = 1;
*/
java.util.List extends org.tron.trident.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList();
/**
* repeated .protocol.BlockExtention block = 1;
*/
org.tron.trident.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.BlockListExtention}
*/
public static final class BlockListExtention extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.BlockListExtention)
BlockListExtentionOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockListExtention.newBuilder() to construct.
private BlockListExtention(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockListExtention() {
block_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockListExtention();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockListExtention.class, org.tron.trident.proto.Response.BlockListExtention.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List block_;
/**
* repeated .protocol.BlockExtention block = 1;
*/
@java.lang.Override
public java.util.List getBlockList() {
return block_;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList() {
return block_;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
@java.lang.Override
public int getBlockCount() {
return block_.size();
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtention getBlock(int index) {
return block_.get(index);
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
int index) {
return block_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < block_.size(); i++) {
output.writeMessage(1, block_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < block_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, block_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.BlockListExtention)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.BlockListExtention other = (org.tron.trident.proto.Response.BlockListExtention) obj;
if (!getBlockList()
.equals(other.getBlockList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBlockCount() > 0) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlockList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockListExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockListExtention 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 org.tron.trident.proto.Response.BlockListExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockListExtention 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 org.tron.trident.proto.Response.BlockListExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockListExtention 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(org.tron.trident.proto.Response.BlockListExtention 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 protocol.BlockListExtention}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.BlockListExtention)
org.tron.trident.proto.Response.BlockListExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockListExtention.class, org.tron.trident.proto.Response.BlockListExtention.Builder.class);
}
// Construct using org.tron.trident.proto.Response.BlockListExtention.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
} else {
block_ = null;
blockBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockListExtention getDefaultInstanceForType() {
return org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockListExtention build() {
org.tron.trident.proto.Response.BlockListExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockListExtention buildPartial() {
org.tron.trident.proto.Response.BlockListExtention result = new org.tron.trident.proto.Response.BlockListExtention(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockListExtention result) {
if (blockBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.BlockListExtention result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.BlockListExtention) {
return mergeFrom((org.tron.trident.proto.Response.BlockListExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.BlockListExtention other) {
if (other == org.tron.trident.proto.Response.BlockListExtention.getDefaultInstance()) return this;
if (blockBuilder_ == null) {
if (!other.block_.isEmpty()) {
if (block_.isEmpty()) {
block_ = other.block_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockIsMutable();
block_.addAll(other.block_);
}
onChanged();
}
} else {
if (!other.block_.isEmpty()) {
if (blockBuilder_.isEmpty()) {
blockBuilder_.dispose();
blockBuilder_ = null;
block_ = other.block_;
bitField0_ = (bitField0_ & ~0x00000001);
blockBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockFieldBuilder() : null;
} else {
blockBuilder_.addAllMessages(other.block_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.BlockExtention m =
input.readMessage(
org.tron.trident.proto.Response.BlockExtention.parser(),
extensionRegistry);
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(m);
} else {
blockBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List block_ =
java.util.Collections.emptyList();
private void ensureBlockIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
block_ = new java.util.ArrayList(block_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.proto.Response.BlockExtentionOrBuilder> blockBuilder_;
/**
* repeated .protocol.BlockExtention block = 1;
*/
public java.util.List getBlockList() {
if (blockBuilder_ == null) {
return java.util.Collections.unmodifiableList(block_);
} else {
return blockBuilder_.getMessageList();
}
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public int getBlockCount() {
if (blockBuilder_ == null) {
return block_.size();
} else {
return blockBuilder_.getCount();
}
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public org.tron.trident.proto.Response.BlockExtention getBlock(int index) {
if (blockBuilder_ == null) {
return block_.get(index);
} else {
return blockBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder setBlock(
int index, org.tron.trident.proto.Response.BlockExtention value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.set(index, value);
onChanged();
} else {
blockBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder setBlock(
int index, org.tron.trident.proto.Response.BlockExtention.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.set(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder addBlock(org.tron.trident.proto.Response.BlockExtention value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.add(value);
onChanged();
} else {
blockBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder addBlock(
int index, org.tron.trident.proto.Response.BlockExtention value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.add(index, value);
onChanged();
} else {
blockBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder addBlock(
org.tron.trident.proto.Response.BlockExtention.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder addBlock(
int index, org.tron.trident.proto.Response.BlockExtention.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder addAllBlock(
java.lang.Iterable extends org.tron.trident.proto.Response.BlockExtention> values) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, block_);
onChanged();
} else {
blockBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public Builder removeBlock(int index) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.remove(index);
onChanged();
} else {
blockBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public org.tron.trident.proto.Response.BlockExtention.Builder getBlockBuilder(
int index) {
return getBlockFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public org.tron.trident.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
int index) {
if (blockBuilder_ == null) {
return block_.get(index); } else {
return blockBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(block_);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public org.tron.trident.proto.Response.BlockExtention.Builder addBlockBuilder() {
return getBlockFieldBuilder().addBuilder(
org.tron.trident.proto.Response.BlockExtention.getDefaultInstance());
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public org.tron.trident.proto.Response.BlockExtention.Builder addBlockBuilder(
int index) {
return getBlockFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.BlockExtention.getDefaultInstance());
}
/**
* repeated .protocol.BlockExtention block = 1;
*/
public java.util.List
getBlockBuilderList() {
return getBlockFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.proto.Response.BlockExtentionOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.BlockExtention, org.tron.trident.proto.Response.BlockExtention.Builder, org.tron.trident.proto.Response.BlockExtentionOrBuilder>(
block_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.BlockListExtention)
}
// @@protoc_insertion_point(class_scope:protocol.BlockListExtention)
private static final org.tron.trident.proto.Response.BlockListExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockListExtention();
}
public static org.tron.trident.proto.Response.BlockListExtention getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockListExtention parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockListExtention getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionReturnOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionReturn)
com.google.protobuf.MessageOrBuilder {
/**
* bool result = 1;
* @return The result.
*/
boolean getResult();
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The enum numeric value on the wire for code.
*/
int getCodeValue();
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The code.
*/
org.tron.trident.proto.Response.TransactionReturn.response_code getCode();
/**
* bytes message = 3;
* @return The message.
*/
com.google.protobuf.ByteString getMessage();
}
/**
* Protobuf type {@code protocol.TransactionReturn}
*/
public static final class TransactionReturn extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.TransactionReturn)
TransactionReturnOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionReturn.newBuilder() to construct.
private TransactionReturn(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionReturn() {
code_ = 0;
message_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionReturn();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionReturn.class, org.tron.trident.proto.Response.TransactionReturn.Builder.class);
}
/**
* Protobuf enum {@code protocol.TransactionReturn.response_code}
*/
public enum response_code
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
*
* error in signature
*
*
* SIGERROR = 1;
*/
SIGERROR(1),
/**
* CONTRACT_VALIDATE_ERROR = 2;
*/
CONTRACT_VALIDATE_ERROR(2),
/**
* CONTRACT_EXE_ERROR = 3;
*/
CONTRACT_EXE_ERROR(3),
/**
* BANDWITH_ERROR = 4;
*/
BANDWITH_ERROR(4),
/**
* DUP_TRANSACTION_ERROR = 5;
*/
DUP_TRANSACTION_ERROR(5),
/**
* TAPOS_ERROR = 6;
*/
TAPOS_ERROR(6),
/**
* TOO_BIG_TRANSACTION_ERROR = 7;
*/
TOO_BIG_TRANSACTION_ERROR(7),
/**
* TRANSACTION_EXPIRATION_ERROR = 8;
*/
TRANSACTION_EXPIRATION_ERROR(8),
/**
* SERVER_BUSY = 9;
*/
SERVER_BUSY(9),
/**
* NO_CONNECTION = 10;
*/
NO_CONNECTION(10),
/**
* NOT_ENOUGH_EFFECTIVE_CONNECTION = 11;
*/
NOT_ENOUGH_EFFECTIVE_CONNECTION(11),
/**
* BLOCK_UNSOLIDIFIED = 12;
*/
BLOCK_UNSOLIDIFIED(12),
/**
* OTHER_ERROR = 20;
*/
OTHER_ERROR(20),
UNRECOGNIZED(-1),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
*
* error in signature
*
*
* SIGERROR = 1;
*/
public static final int SIGERROR_VALUE = 1;
/**
* CONTRACT_VALIDATE_ERROR = 2;
*/
public static final int CONTRACT_VALIDATE_ERROR_VALUE = 2;
/**
* CONTRACT_EXE_ERROR = 3;
*/
public static final int CONTRACT_EXE_ERROR_VALUE = 3;
/**
* BANDWITH_ERROR = 4;
*/
public static final int BANDWITH_ERROR_VALUE = 4;
/**
* DUP_TRANSACTION_ERROR = 5;
*/
public static final int DUP_TRANSACTION_ERROR_VALUE = 5;
/**
* TAPOS_ERROR = 6;
*/
public static final int TAPOS_ERROR_VALUE = 6;
/**
* TOO_BIG_TRANSACTION_ERROR = 7;
*/
public static final int TOO_BIG_TRANSACTION_ERROR_VALUE = 7;
/**
* TRANSACTION_EXPIRATION_ERROR = 8;
*/
public static final int TRANSACTION_EXPIRATION_ERROR_VALUE = 8;
/**
* SERVER_BUSY = 9;
*/
public static final int SERVER_BUSY_VALUE = 9;
/**
* NO_CONNECTION = 10;
*/
public static final int NO_CONNECTION_VALUE = 10;
/**
* NOT_ENOUGH_EFFECTIVE_CONNECTION = 11;
*/
public static final int NOT_ENOUGH_EFFECTIVE_CONNECTION_VALUE = 11;
/**
* BLOCK_UNSOLIDIFIED = 12;
*/
public static final int BLOCK_UNSOLIDIFIED_VALUE = 12;
/**
* OTHER_ERROR = 20;
*/
public static final int OTHER_ERROR_VALUE = 20;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static response_code valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static response_code forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return SIGERROR;
case 2: return CONTRACT_VALIDATE_ERROR;
case 3: return CONTRACT_EXE_ERROR;
case 4: return BANDWITH_ERROR;
case 5: return DUP_TRANSACTION_ERROR;
case 6: return TAPOS_ERROR;
case 7: return TOO_BIG_TRANSACTION_ERROR;
case 8: return TRANSACTION_EXPIRATION_ERROR;
case 9: return SERVER_BUSY;
case 10: return NO_CONNECTION;
case 11: return NOT_ENOUGH_EFFECTIVE_CONNECTION;
case 12: return BLOCK_UNSOLIDIFIED;
case 20: return OTHER_ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
response_code> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public response_code findValueByNumber(int number) {
return response_code.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tron.trident.proto.Response.TransactionReturn.getDescriptor().getEnumTypes().get(0);
}
private static final response_code[] VALUES = values();
public static response_code valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private response_code(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.TransactionReturn.response_code)
}
public static final int RESULT_FIELD_NUMBER = 1;
private boolean result_ = false;
/**
* bool result = 1;
* @return The result.
*/
@java.lang.Override
public boolean getResult() {
return result_;
}
public static final int CODE_FIELD_NUMBER = 2;
private int code_ = 0;
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The enum numeric value on the wire for code.
*/
@java.lang.Override public int getCodeValue() {
return code_;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The code.
*/
@java.lang.Override public org.tron.trident.proto.Response.TransactionReturn.response_code getCode() {
org.tron.trident.proto.Response.TransactionReturn.response_code result = org.tron.trident.proto.Response.TransactionReturn.response_code.forNumber(code_);
return result == null ? org.tron.trident.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes message = 3;
* @return The message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessage() {
return message_;
}
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 (result_ != false) {
output.writeBool(1, result_);
}
if (code_ != org.tron.trident.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) {
output.writeEnum(2, code_);
}
if (!message_.isEmpty()) {
output.writeBytes(3, message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (result_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, result_);
}
if (code_ != org.tron.trident.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, code_);
}
if (!message_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, message_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.TransactionReturn)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.TransactionReturn other = (org.tron.trident.proto.Response.TransactionReturn) obj;
if (getResult()
!= other.getResult()) return false;
if (code_ != other.code_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getResult());
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + code_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionReturn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionReturn 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 org.tron.trident.proto.Response.TransactionReturn parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionReturn 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 org.tron.trident.proto.Response.TransactionReturn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionReturn 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(org.tron.trident.proto.Response.TransactionReturn 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 protocol.TransactionReturn}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.TransactionReturn)
org.tron.trident.proto.Response.TransactionReturnOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionReturn.class, org.tron.trident.proto.Response.TransactionReturn.Builder.class);
}
// Construct using org.tron.trident.proto.Response.TransactionReturn.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = false;
code_ = 0;
message_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn getDefaultInstanceForType() {
return org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn build() {
org.tron.trident.proto.Response.TransactionReturn result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn buildPartial() {
org.tron.trident.proto.Response.TransactionReturn result = new org.tron.trident.proto.Response.TransactionReturn(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.TransactionReturn result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = result_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.code_ = code_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.message_ = message_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.TransactionReturn) {
return mergeFrom((org.tron.trident.proto.Response.TransactionReturn)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.TransactionReturn other) {
if (other == org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) return this;
if (other.getResult() != false) {
setResult(other.getResult());
}
if (other.code_ != 0) {
setCodeValue(other.getCodeValue());
}
if (other.getMessage() != com.google.protobuf.ByteString.EMPTY) {
setMessage(other.getMessage());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
result_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
code_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
message_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean result_ ;
/**
* bool result = 1;
* @return The result.
*/
@java.lang.Override
public boolean getResult() {
return result_;
}
/**
* bool result = 1;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(boolean value) {
result_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bool result = 1;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = false;
onChanged();
return this;
}
private int code_ = 0;
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The enum numeric value on the wire for code.
*/
@java.lang.Override public int getCodeValue() {
return code_;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @param value The enum numeric value on the wire for code to set.
* @return This builder for chaining.
*/
public Builder setCodeValue(int value) {
code_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The code.
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn.response_code getCode() {
org.tron.trident.proto.Response.TransactionReturn.response_code result = org.tron.trident.proto.Response.TransactionReturn.response_code.forNumber(code_);
return result == null ? org.tron.trident.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(org.tron.trident.proto.Response.TransactionReturn.response_code value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
code_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return This builder for chaining.
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000002);
code_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes message = 3;
* @return The message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessage() {
return message_;
}
/**
* bytes message = 3;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.TransactionReturn)
}
// @@protoc_insertion_point(class_scope:protocol.TransactionReturn)
private static final org.tron.trident.proto.Response.TransactionReturn DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionReturn();
}
public static org.tron.trident.proto.Response.TransactionReturn getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionReturn parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EstimateEnergyMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EstimateEnergyMessage)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.TransactionReturn result = 1;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .protocol.TransactionReturn result = 1;
* @return The result.
*/
org.tron.trident.proto.Response.TransactionReturn getResult();
/**
* .protocol.TransactionReturn result = 1;
*/
org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder();
/**
* int64 energy_required = 2;
* @return The energyRequired.
*/
long getEnergyRequired();
}
/**
* Protobuf type {@code protocol.EstimateEnergyMessage}
*/
public static final class EstimateEnergyMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EstimateEnergyMessage)
EstimateEnergyMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EstimateEnergyMessage.newBuilder() to construct.
private EstimateEnergyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EstimateEnergyMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EstimateEnergyMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.EstimateEnergyMessage.class, org.tron.trident.proto.Response.EstimateEnergyMessage.Builder.class);
}
private int bitField0_;
public static final int RESULT_FIELD_NUMBER = 1;
private org.tron.trident.proto.Response.TransactionReturn result_;
/**
* .protocol.TransactionReturn result = 1;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.TransactionReturn result = 1;
* @return The result.
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn getResult() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
/**
* .protocol.TransactionReturn result = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
public static final int ENERGY_REQUIRED_FIELD_NUMBER = 2;
private long energyRequired_ = 0L;
/**
* int64 energy_required = 2;
* @return The energyRequired.
*/
@java.lang.Override
public long getEnergyRequired() {
return energyRequired_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResult());
}
if (energyRequired_ != 0L) {
output.writeInt64(2, energyRequired_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResult());
}
if (energyRequired_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, energyRequired_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.EstimateEnergyMessage)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.EstimateEnergyMessage other = (org.tron.trident.proto.Response.EstimateEnergyMessage) obj;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (getEnergyRequired()
!= other.getEnergyRequired()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (37 * hash) + ENERGY_REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnergyRequired());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage 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 org.tron.trident.proto.Response.EstimateEnergyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage 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 org.tron.trident.proto.Response.EstimateEnergyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage 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(org.tron.trident.proto.Response.EstimateEnergyMessage 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 protocol.EstimateEnergyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EstimateEnergyMessage)
org.tron.trident.proto.Response.EstimateEnergyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.EstimateEnergyMessage.class, org.tron.trident.proto.Response.EstimateEnergyMessage.Builder.class);
}
// Construct using org.tron.trident.proto.Response.EstimateEnergyMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
energyRequired_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_EstimateEnergyMessage_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstanceForType() {
return org.tron.trident.proto.Response.EstimateEnergyMessage.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.EstimateEnergyMessage build() {
org.tron.trident.proto.Response.EstimateEnergyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.EstimateEnergyMessage buildPartial() {
org.tron.trident.proto.Response.EstimateEnergyMessage result = new org.tron.trident.proto.Response.EstimateEnergyMessage(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.EstimateEnergyMessage result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.result_ = resultBuilder_ == null
? result_
: resultBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.energyRequired_ = energyRequired_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.EstimateEnergyMessage) {
return mergeFrom((org.tron.trident.proto.Response.EstimateEnergyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.EstimateEnergyMessage other) {
if (other == org.tron.trident.proto.Response.EstimateEnergyMessage.getDefaultInstance()) return this;
if (other.hasResult()) {
mergeResult(other.getResult());
}
if (other.getEnergyRequired() != 0L) {
setEnergyRequired(other.getEnergyRequired());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
energyRequired_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.tron.trident.proto.Response.TransactionReturn result_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_;
/**
* .protocol.TransactionReturn result = 1;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.TransactionReturn result = 1;
* @return The result.
*/
public org.tron.trident.proto.Response.TransactionReturn getResult() {
if (resultBuilder_ == null) {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .protocol.TransactionReturn result = 1;
*/
public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 1;
*/
public Builder setResult(
org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 1;
*/
public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
result_ != null &&
result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) {
getResultBuilder().mergeFrom(value);
} else {
result_ = value;
}
} else {
resultBuilder_.mergeFrom(value);
}
if (result_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .protocol.TransactionReturn result = 1;
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000001);
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 1;
*/
public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .protocol.TransactionReturn result = 1;
*/
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
}
/**
* .protocol.TransactionReturn result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
private long energyRequired_ ;
/**
* int64 energy_required = 2;
* @return The energyRequired.
*/
@java.lang.Override
public long getEnergyRequired() {
return energyRequired_;
}
/**
* int64 energy_required = 2;
* @param value The energyRequired to set.
* @return This builder for chaining.
*/
public Builder setEnergyRequired(long value) {
energyRequired_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 energy_required = 2;
* @return This builder for chaining.
*/
public Builder clearEnergyRequired() {
bitField0_ = (bitField0_ & ~0x00000002);
energyRequired_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.EstimateEnergyMessage)
}
// @@protoc_insertion_point(class_scope:protocol.EstimateEnergyMessage)
private static final org.tron.trident.proto.Response.EstimateEnergyMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.EstimateEnergyMessage();
}
public static org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EstimateEnergyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.EstimateEnergyMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionExtentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionExtention)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
org.tron.trident.proto.Chain.Transaction getTransaction();
/**
* .protocol.Transaction transaction = 1;
*/
org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder();
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @return The txid.
*/
com.google.protobuf.ByteString getTxid();
/**
* repeated bytes constant_result = 3;
* @return A list containing the constantResult.
*/
java.util.List getConstantResultList();
/**
* repeated bytes constant_result = 3;
* @return The count of constantResult.
*/
int getConstantResultCount();
/**
* repeated bytes constant_result = 3;
* @param index The index of the element to return.
* @return The constantResult at the given index.
*/
com.google.protobuf.ByteString getConstantResult(int index);
/**
* .protocol.TransactionReturn result = 4;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .protocol.TransactionReturn result = 4;
* @return The result.
*/
org.tron.trident.proto.Response.TransactionReturn getResult();
/**
* .protocol.TransactionReturn result = 4;
*/
org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder();
/**
* int64 energy_used = 5;
* @return The energyUsed.
*/
long getEnergyUsed();
}
/**
* Protobuf type {@code protocol.TransactionExtention}
*/
public static final class TransactionExtention extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.TransactionExtention)
TransactionExtentionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionExtention.newBuilder() to construct.
private TransactionExtention(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionExtention() {
txid_ = com.google.protobuf.ByteString.EMPTY;
constantResult_ = emptyList(com.google.protobuf.ByteString.class);
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionExtention();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionExtention.class, org.tron.trident.proto.Response.TransactionExtention.Builder.class);
}
private int bitField0_;
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.tron.trident.proto.Chain.Transaction transaction_;
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.tron.trident.proto.Chain.Transaction getTransaction() {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
/**
* .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
public static final int TXID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @return The txid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxid() {
return txid_;
}
public static final int CONSTANT_RESULT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList constantResult_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes constant_result = 3;
* @return A list containing the constantResult.
*/
@java.lang.Override
public java.util.List
getConstantResultList() {
return constantResult_;
}
/**
* repeated bytes constant_result = 3;
* @return The count of constantResult.
*/
public int getConstantResultCount() {
return constantResult_.size();
}
/**
* repeated bytes constant_result = 3;
* @param index The index of the element to return.
* @return The constantResult at the given index.
*/
public com.google.protobuf.ByteString getConstantResult(int index) {
return constantResult_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 4;
private org.tron.trident.proto.Response.TransactionReturn result_;
/**
* .protocol.TransactionReturn result = 4;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .protocol.TransactionReturn result = 4;
* @return The result.
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn getResult() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
/**
* .protocol.TransactionReturn result = 4;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
public static final int ENERGY_USED_FIELD_NUMBER = 5;
private long energyUsed_ = 0L;
/**
* int64 energy_used = 5;
* @return The energyUsed.
*/
@java.lang.Override
public long getEnergyUsed() {
return energyUsed_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTransaction());
}
if (!txid_.isEmpty()) {
output.writeBytes(2, txid_);
}
for (int i = 0; i < constantResult_.size(); i++) {
output.writeBytes(3, constantResult_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getResult());
}
if (energyUsed_ != 0L) {
output.writeInt64(5, energyUsed_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransaction());
}
if (!txid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, txid_);
}
{
int dataSize = 0;
for (int i = 0; i < constantResult_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(constantResult_.get(i));
}
size += dataSize;
size += 1 * getConstantResultList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResult());
}
if (energyUsed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, energyUsed_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.TransactionExtention)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.TransactionExtention other = (org.tron.trident.proto.Response.TransactionExtention) obj;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (!getTxid()
.equals(other.getTxid())) return false;
if (!getConstantResultList()
.equals(other.getConstantResultList())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (getEnergyUsed()
!= other.getEnergyUsed()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
hash = (37 * hash) + TXID_FIELD_NUMBER;
hash = (53 * hash) + getTxid().hashCode();
if (getConstantResultCount() > 0) {
hash = (37 * hash) + CONSTANT_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getConstantResultList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (37 * hash) + ENERGY_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnergyUsed());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionExtention 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 org.tron.trident.proto.Response.TransactionExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionExtention 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 org.tron.trident.proto.Response.TransactionExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionExtention 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(org.tron.trident.proto.Response.TransactionExtention 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 protocol.TransactionExtention}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.TransactionExtention)
org.tron.trident.proto.Response.TransactionExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionExtention.class, org.tron.trident.proto.Response.TransactionExtention.Builder.class);
}
// Construct using org.tron.trident.proto.Response.TransactionExtention.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionFieldBuilder();
getResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
txid_ = com.google.protobuf.ByteString.EMPTY;
constantResult_ = emptyList(com.google.protobuf.ByteString.class);
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
energyUsed_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtention getDefaultInstanceForType() {
return org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtention build() {
org.tron.trident.proto.Response.TransactionExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtention buildPartial() {
org.tron.trident.proto.Response.TransactionExtention result = new org.tron.trident.proto.Response.TransactionExtention(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.TransactionExtention result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.txid_ = txid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
constantResult_.makeImmutable();
result.constantResult_ = constantResult_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.result_ = resultBuilder_ == null
? result_
: resultBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.energyUsed_ = energyUsed_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.TransactionExtention) {
return mergeFrom((org.tron.trident.proto.Response.TransactionExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.TransactionExtention other) {
if (other == org.tron.trident.proto.Response.TransactionExtention.getDefaultInstance()) return this;
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.getTxid() != com.google.protobuf.ByteString.EMPTY) {
setTxid(other.getTxid());
}
if (!other.constantResult_.isEmpty()) {
if (constantResult_.isEmpty()) {
constantResult_ = other.constantResult_;
constantResult_.makeImmutable();
bitField0_ |= 0x00000004;
} else {
ensureConstantResultIsMutable();
constantResult_.addAll(other.constantResult_);
}
onChanged();
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
if (other.getEnergyUsed() != 0L) {
setEnergyUsed(other.getEnergyUsed());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
txid_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.google.protobuf.ByteString v = input.readBytes();
ensureConstantResultIsMutable();
constantResult_.add(v);
break;
} // case 26
case 34: {
input.readMessage(
getResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
energyUsed_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.tron.trident.proto.Chain.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_;
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
public org.tron.trident.proto.Chain.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
} else {
transactionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(
org.tron.trident.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
transaction_ != null &&
transaction_ != org.tron.trident.proto.Chain.Transaction.getDefaultInstance()) {
getTransactionBuilder().mergeFrom(value);
} else {
transaction_ = value;
}
} else {
transactionBuilder_.mergeFrom(value);
}
if (transaction_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder clearTransaction() {
bitField0_ = (bitField0_ & ~0x00000001);
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .protocol.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @return The txid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxid() {
return txid_;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @param value The txid to set.
* @return This builder for chaining.
*/
public Builder setTxid(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
txid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @return This builder for chaining.
*/
public Builder clearTxid() {
bitField0_ = (bitField0_ & ~0x00000002);
txid_ = getDefaultInstance().getTxid();
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList constantResult_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureConstantResultIsMutable() {
if (!constantResult_.isModifiable()) {
constantResult_ = makeMutableCopy(constantResult_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated bytes constant_result = 3;
* @return A list containing the constantResult.
*/
public java.util.List
getConstantResultList() {
constantResult_.makeImmutable();
return constantResult_;
}
/**
* repeated bytes constant_result = 3;
* @return The count of constantResult.
*/
public int getConstantResultCount() {
return constantResult_.size();
}
/**
* repeated bytes constant_result = 3;
* @param index The index of the element to return.
* @return The constantResult at the given index.
*/
public com.google.protobuf.ByteString getConstantResult(int index) {
return constantResult_.get(index);
}
/**
* repeated bytes constant_result = 3;
* @param index The index to set the value at.
* @param value The constantResult to set.
* @return This builder for chaining.
*/
public Builder setConstantResult(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureConstantResultIsMutable();
constantResult_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes constant_result = 3;
* @param value The constantResult to add.
* @return This builder for chaining.
*/
public Builder addConstantResult(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureConstantResultIsMutable();
constantResult_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes constant_result = 3;
* @param values The constantResult to add.
* @return This builder for chaining.
*/
public Builder addAllConstantResult(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureConstantResultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, constantResult_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes constant_result = 3;
* @return This builder for chaining.
*/
public Builder clearConstantResult() {
constantResult_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private org.tron.trident.proto.Response.TransactionReturn result_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_;
/**
* .protocol.TransactionReturn result = 4;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .protocol.TransactionReturn result = 4;
* @return The result.
*/
public org.tron.trident.proto.Response.TransactionReturn getResult() {
if (resultBuilder_ == null) {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .protocol.TransactionReturn result = 4;
*/
public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 4;
*/
public Builder setResult(
org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 4;
*/
public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
result_ != null &&
result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) {
getResultBuilder().mergeFrom(value);
} else {
result_ = value;
}
} else {
resultBuilder_.mergeFrom(value);
}
if (result_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .protocol.TransactionReturn result = 4;
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000008);
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 4;
*/
public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .protocol.TransactionReturn result = 4;
*/
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
}
/**
* .protocol.TransactionReturn result = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
private long energyUsed_ ;
/**
* int64 energy_used = 5;
* @return The energyUsed.
*/
@java.lang.Override
public long getEnergyUsed() {
return energyUsed_;
}
/**
* int64 energy_used = 5;
* @param value The energyUsed to set.
* @return This builder for chaining.
*/
public Builder setEnergyUsed(long value) {
energyUsed_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 energy_used = 5;
* @return This builder for chaining.
*/
public Builder clearEnergyUsed() {
bitField0_ = (bitField0_ & ~0x00000010);
energyUsed_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.TransactionExtention)
}
// @@protoc_insertion_point(class_scope:protocol.TransactionExtention)
private static final org.tron.trident.proto.Response.TransactionExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionExtention();
}
public static org.tron.trident.proto.Response.TransactionExtention getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionExtention parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionExtention getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WitnessListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.WitnessList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.Witness witnesses = 1;
*/
java.util.List
getWitnessesList();
/**
* repeated .protocol.Witness witnesses = 1;
*/
org.tron.trident.proto.Response.Witness getWitnesses(int index);
/**
* repeated .protocol.Witness witnesses = 1;
*/
int getWitnessesCount();
/**
* repeated .protocol.Witness witnesses = 1;
*/
java.util.List extends org.tron.trident.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList();
/**
* repeated .protocol.Witness witnesses = 1;
*/
org.tron.trident.proto.Response.WitnessOrBuilder getWitnessesOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.WitnessList}
*/
public static final class WitnessList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.WitnessList)
WitnessListOrBuilder {
private static final long serialVersionUID = 0L;
// Use WitnessList.newBuilder() to construct.
private WitnessList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WitnessList() {
witnesses_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WitnessList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.WitnessList.class, org.tron.trident.proto.Response.WitnessList.Builder.class);
}
public static final int WITNESSES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List witnesses_;
/**
* repeated .protocol.Witness witnesses = 1;
*/
@java.lang.Override
public java.util.List getWitnessesList() {
return witnesses_;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList() {
return witnesses_;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
@java.lang.Override
public int getWitnessesCount() {
return witnesses_.size();
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.Witness getWitnesses(int index) {
return witnesses_.get(index);
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.WitnessOrBuilder getWitnessesOrBuilder(
int index) {
return witnesses_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < witnesses_.size(); i++) {
output.writeMessage(1, witnesses_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < witnesses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, witnesses_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.WitnessList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.WitnessList other = (org.tron.trident.proto.Response.WitnessList) obj;
if (!getWitnessesList()
.equals(other.getWitnessesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getWitnessesCount() > 0) {
hash = (37 * hash) + WITNESSES_FIELD_NUMBER;
hash = (53 * hash) + getWitnessesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.WitnessList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.WitnessList 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 org.tron.trident.proto.Response.WitnessList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.WitnessList 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 org.tron.trident.proto.Response.WitnessList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.WitnessList 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(org.tron.trident.proto.Response.WitnessList 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 protocol.WitnessList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.WitnessList)
org.tron.trident.proto.Response.WitnessListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.WitnessList.class, org.tron.trident.proto.Response.WitnessList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.WitnessList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (witnessesBuilder_ == null) {
witnesses_ = java.util.Collections.emptyList();
} else {
witnesses_ = null;
witnessesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.WitnessList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.WitnessList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.WitnessList build() {
org.tron.trident.proto.Response.WitnessList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.WitnessList buildPartial() {
org.tron.trident.proto.Response.WitnessList result = new org.tron.trident.proto.Response.WitnessList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.WitnessList result) {
if (witnessesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
witnesses_ = java.util.Collections.unmodifiableList(witnesses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.witnesses_ = witnesses_;
} else {
result.witnesses_ = witnessesBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.WitnessList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.WitnessList) {
return mergeFrom((org.tron.trident.proto.Response.WitnessList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.WitnessList other) {
if (other == org.tron.trident.proto.Response.WitnessList.getDefaultInstance()) return this;
if (witnessesBuilder_ == null) {
if (!other.witnesses_.isEmpty()) {
if (witnesses_.isEmpty()) {
witnesses_ = other.witnesses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWitnessesIsMutable();
witnesses_.addAll(other.witnesses_);
}
onChanged();
}
} else {
if (!other.witnesses_.isEmpty()) {
if (witnessesBuilder_.isEmpty()) {
witnessesBuilder_.dispose();
witnessesBuilder_ = null;
witnesses_ = other.witnesses_;
bitField0_ = (bitField0_ & ~0x00000001);
witnessesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWitnessesFieldBuilder() : null;
} else {
witnessesBuilder_.addAllMessages(other.witnesses_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.Witness m =
input.readMessage(
org.tron.trident.proto.Response.Witness.parser(),
extensionRegistry);
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.add(m);
} else {
witnessesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List witnesses_ =
java.util.Collections.emptyList();
private void ensureWitnessesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
witnesses_ = new java.util.ArrayList(witnesses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.proto.Response.WitnessOrBuilder> witnessesBuilder_;
/**
* repeated .protocol.Witness witnesses = 1;
*/
public java.util.List getWitnessesList() {
if (witnessesBuilder_ == null) {
return java.util.Collections.unmodifiableList(witnesses_);
} else {
return witnessesBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public int getWitnessesCount() {
if (witnessesBuilder_ == null) {
return witnesses_.size();
} else {
return witnessesBuilder_.getCount();
}
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public org.tron.trident.proto.Response.Witness getWitnesses(int index) {
if (witnessesBuilder_ == null) {
return witnesses_.get(index);
} else {
return witnessesBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder setWitnesses(
int index, org.tron.trident.proto.Response.Witness value) {
if (witnessesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessesIsMutable();
witnesses_.set(index, value);
onChanged();
} else {
witnessesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder setWitnesses(
int index, org.tron.trident.proto.Response.Witness.Builder builderForValue) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.set(index, builderForValue.build());
onChanged();
} else {
witnessesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder addWitnesses(org.tron.trident.proto.Response.Witness value) {
if (witnessesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessesIsMutable();
witnesses_.add(value);
onChanged();
} else {
witnessesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder addWitnesses(
int index, org.tron.trident.proto.Response.Witness value) {
if (witnessesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWitnessesIsMutable();
witnesses_.add(index, value);
onChanged();
} else {
witnessesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder addWitnesses(
org.tron.trident.proto.Response.Witness.Builder builderForValue) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.add(builderForValue.build());
onChanged();
} else {
witnessesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder addWitnesses(
int index, org.tron.trident.proto.Response.Witness.Builder builderForValue) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.add(index, builderForValue.build());
onChanged();
} else {
witnessesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder addAllWitnesses(
java.lang.Iterable extends org.tron.trident.proto.Response.Witness> values) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, witnesses_);
onChanged();
} else {
witnessesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder clearWitnesses() {
if (witnessesBuilder_ == null) {
witnesses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
witnessesBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public Builder removeWitnesses(int index) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.remove(index);
onChanged();
} else {
witnessesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public org.tron.trident.proto.Response.Witness.Builder getWitnessesBuilder(
int index) {
return getWitnessesFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public org.tron.trident.proto.Response.WitnessOrBuilder getWitnessesOrBuilder(
int index) {
if (witnessesBuilder_ == null) {
return witnesses_.get(index); } else {
return witnessesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList() {
if (witnessesBuilder_ != null) {
return witnessesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(witnesses_);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public org.tron.trident.proto.Response.Witness.Builder addWitnessesBuilder() {
return getWitnessesFieldBuilder().addBuilder(
org.tron.trident.proto.Response.Witness.getDefaultInstance());
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public org.tron.trident.proto.Response.Witness.Builder addWitnessesBuilder(
int index) {
return getWitnessesFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.Witness.getDefaultInstance());
}
/**
* repeated .protocol.Witness witnesses = 1;
*/
public java.util.List
getWitnessesBuilderList() {
return getWitnessesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.proto.Response.WitnessOrBuilder>
getWitnessesFieldBuilder() {
if (witnessesBuilder_ == null) {
witnessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Witness, org.tron.trident.proto.Response.Witness.Builder, org.tron.trident.proto.Response.WitnessOrBuilder>(
witnesses_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
witnesses_ = null;
}
return witnessesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.WitnessList)
}
// @@protoc_insertion_point(class_scope:protocol.WitnessList)
private static final org.tron.trident.proto.Response.WitnessList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.WitnessList();
}
public static org.tron.trident.proto.Response.WitnessList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WitnessList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.WitnessList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProposalListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ProposalList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.Proposal proposals = 1;
*/
java.util.List
getProposalsList();
/**
* repeated .protocol.Proposal proposals = 1;
*/
org.tron.trident.proto.Response.Proposal getProposals(int index);
/**
* repeated .protocol.Proposal proposals = 1;
*/
int getProposalsCount();
/**
* repeated .protocol.Proposal proposals = 1;
*/
java.util.List extends org.tron.trident.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList();
/**
* repeated .protocol.Proposal proposals = 1;
*/
org.tron.trident.proto.Response.ProposalOrBuilder getProposalsOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.ProposalList}
*/
public static final class ProposalList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ProposalList)
ProposalListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProposalList.newBuilder() to construct.
private ProposalList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProposalList() {
proposals_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProposalList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ProposalList.class, org.tron.trident.proto.Response.ProposalList.Builder.class);
}
public static final int PROPOSALS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List proposals_;
/**
* repeated .protocol.Proposal proposals = 1;
*/
@java.lang.Override
public java.util.List getProposalsList() {
return proposals_;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList() {
return proposals_;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
@java.lang.Override
public int getProposalsCount() {
return proposals_.size();
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.Proposal getProposals(int index) {
return proposals_.get(index);
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.ProposalOrBuilder getProposalsOrBuilder(
int index) {
return proposals_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < proposals_.size(); i++) {
output.writeMessage(1, proposals_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < proposals_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, proposals_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.ProposalList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.ProposalList other = (org.tron.trident.proto.Response.ProposalList) obj;
if (!getProposalsList()
.equals(other.getProposalsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getProposalsCount() > 0) {
hash = (37 * hash) + PROPOSALS_FIELD_NUMBER;
hash = (53 * hash) + getProposalsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ProposalList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ProposalList 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 org.tron.trident.proto.Response.ProposalList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ProposalList 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 org.tron.trident.proto.Response.ProposalList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ProposalList 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(org.tron.trident.proto.Response.ProposalList 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 protocol.ProposalList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ProposalList)
org.tron.trident.proto.Response.ProposalListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ProposalList.class, org.tron.trident.proto.Response.ProposalList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.ProposalList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (proposalsBuilder_ == null) {
proposals_ = java.util.Collections.emptyList();
} else {
proposals_ = null;
proposalsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.ProposalList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.ProposalList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.ProposalList build() {
org.tron.trident.proto.Response.ProposalList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.ProposalList buildPartial() {
org.tron.trident.proto.Response.ProposalList result = new org.tron.trident.proto.Response.ProposalList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.ProposalList result) {
if (proposalsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
proposals_ = java.util.Collections.unmodifiableList(proposals_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.proposals_ = proposals_;
} else {
result.proposals_ = proposalsBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.ProposalList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.ProposalList) {
return mergeFrom((org.tron.trident.proto.Response.ProposalList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.ProposalList other) {
if (other == org.tron.trident.proto.Response.ProposalList.getDefaultInstance()) return this;
if (proposalsBuilder_ == null) {
if (!other.proposals_.isEmpty()) {
if (proposals_.isEmpty()) {
proposals_ = other.proposals_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProposalsIsMutable();
proposals_.addAll(other.proposals_);
}
onChanged();
}
} else {
if (!other.proposals_.isEmpty()) {
if (proposalsBuilder_.isEmpty()) {
proposalsBuilder_.dispose();
proposalsBuilder_ = null;
proposals_ = other.proposals_;
bitField0_ = (bitField0_ & ~0x00000001);
proposalsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProposalsFieldBuilder() : null;
} else {
proposalsBuilder_.addAllMessages(other.proposals_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.Proposal m =
input.readMessage(
org.tron.trident.proto.Response.Proposal.parser(),
extensionRegistry);
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.add(m);
} else {
proposalsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List proposals_ =
java.util.Collections.emptyList();
private void ensureProposalsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
proposals_ = new java.util.ArrayList(proposals_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.proto.Response.ProposalOrBuilder> proposalsBuilder_;
/**
* repeated .protocol.Proposal proposals = 1;
*/
public java.util.List getProposalsList() {
if (proposalsBuilder_ == null) {
return java.util.Collections.unmodifiableList(proposals_);
} else {
return proposalsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public int getProposalsCount() {
if (proposalsBuilder_ == null) {
return proposals_.size();
} else {
return proposalsBuilder_.getCount();
}
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public org.tron.trident.proto.Response.Proposal getProposals(int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index);
} else {
return proposalsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder setProposals(
int index, org.tron.trident.proto.Response.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.set(index, value);
onChanged();
} else {
proposalsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder setProposals(
int index, org.tron.trident.proto.Response.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.set(index, builderForValue.build());
onChanged();
} else {
proposalsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder addProposals(org.tron.trident.proto.Response.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.add(value);
onChanged();
} else {
proposalsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder addProposals(
int index, org.tron.trident.proto.Response.Proposal value) {
if (proposalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProposalsIsMutable();
proposals_.add(index, value);
onChanged();
} else {
proposalsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder addProposals(
org.tron.trident.proto.Response.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.add(builderForValue.build());
onChanged();
} else {
proposalsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder addProposals(
int index, org.tron.trident.proto.Response.Proposal.Builder builderForValue) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.add(index, builderForValue.build());
onChanged();
} else {
proposalsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder addAllProposals(
java.lang.Iterable extends org.tron.trident.proto.Response.Proposal> values) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proposals_);
onChanged();
} else {
proposalsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder clearProposals() {
if (proposalsBuilder_ == null) {
proposals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
proposalsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public Builder removeProposals(int index) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.remove(index);
onChanged();
} else {
proposalsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public org.tron.trident.proto.Response.Proposal.Builder getProposalsBuilder(
int index) {
return getProposalsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public org.tron.trident.proto.Response.ProposalOrBuilder getProposalsOrBuilder(
int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index); } else {
return proposalsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList() {
if (proposalsBuilder_ != null) {
return proposalsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(proposals_);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public org.tron.trident.proto.Response.Proposal.Builder addProposalsBuilder() {
return getProposalsFieldBuilder().addBuilder(
org.tron.trident.proto.Response.Proposal.getDefaultInstance());
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public org.tron.trident.proto.Response.Proposal.Builder addProposalsBuilder(
int index) {
return getProposalsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.Proposal.getDefaultInstance());
}
/**
* repeated .protocol.Proposal proposals = 1;
*/
public java.util.List
getProposalsBuilderList() {
return getProposalsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.proto.Response.ProposalOrBuilder>
getProposalsFieldBuilder() {
if (proposalsBuilder_ == null) {
proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Proposal, org.tron.trident.proto.Response.Proposal.Builder, org.tron.trident.proto.Response.ProposalOrBuilder>(
proposals_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
proposals_ = null;
}
return proposalsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.ProposalList)
}
// @@protoc_insertion_point(class_scope:protocol.ProposalList)
private static final org.tron.trident.proto.Response.ProposalList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ProposalList();
}
public static org.tron.trident.proto.Response.ProposalList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProposalList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.ProposalList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExchangeListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ExchangeList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.Exchange exchanges = 1;
*/
java.util.List
getExchangesList();
/**
* repeated .protocol.Exchange exchanges = 1;
*/
org.tron.trident.proto.Response.Exchange getExchanges(int index);
/**
* repeated .protocol.Exchange exchanges = 1;
*/
int getExchangesCount();
/**
* repeated .protocol.Exchange exchanges = 1;
*/
java.util.List extends org.tron.trident.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList();
/**
* repeated .protocol.Exchange exchanges = 1;
*/
org.tron.trident.proto.Response.ExchangeOrBuilder getExchangesOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.ExchangeList}
*/
public static final class ExchangeList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ExchangeList)
ExchangeListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeList.newBuilder() to construct.
private ExchangeList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeList() {
exchanges_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExchangeList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ExchangeList.class, org.tron.trident.proto.Response.ExchangeList.Builder.class);
}
public static final int EXCHANGES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List exchanges_;
/**
* repeated .protocol.Exchange exchanges = 1;
*/
@java.lang.Override
public java.util.List getExchangesList() {
return exchanges_;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList() {
return exchanges_;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
@java.lang.Override
public int getExchangesCount() {
return exchanges_.size();
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.Exchange getExchanges(int index) {
return exchanges_.get(index);
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.ExchangeOrBuilder getExchangesOrBuilder(
int index) {
return exchanges_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < exchanges_.size(); i++) {
output.writeMessage(1, exchanges_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < exchanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, exchanges_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.ExchangeList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.ExchangeList other = (org.tron.trident.proto.Response.ExchangeList) obj;
if (!getExchangesList()
.equals(other.getExchangesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getExchangesCount() > 0) {
hash = (37 * hash) + EXCHANGES_FIELD_NUMBER;
hash = (53 * hash) + getExchangesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ExchangeList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ExchangeList 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 org.tron.trident.proto.Response.ExchangeList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ExchangeList 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 org.tron.trident.proto.Response.ExchangeList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ExchangeList 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(org.tron.trident.proto.Response.ExchangeList 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 protocol.ExchangeList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ExchangeList)
org.tron.trident.proto.Response.ExchangeListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ExchangeList.class, org.tron.trident.proto.Response.ExchangeList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.ExchangeList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
} else {
exchanges_ = null;
exchangesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.ExchangeList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.ExchangeList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.ExchangeList build() {
org.tron.trident.proto.Response.ExchangeList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.ExchangeList buildPartial() {
org.tron.trident.proto.Response.ExchangeList result = new org.tron.trident.proto.Response.ExchangeList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.ExchangeList result) {
if (exchangesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.exchanges_ = exchanges_;
} else {
result.exchanges_ = exchangesBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.ExchangeList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.ExchangeList) {
return mergeFrom((org.tron.trident.proto.Response.ExchangeList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.ExchangeList other) {
if (other == org.tron.trident.proto.Response.ExchangeList.getDefaultInstance()) return this;
if (exchangesBuilder_ == null) {
if (!other.exchanges_.isEmpty()) {
if (exchanges_.isEmpty()) {
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExchangesIsMutable();
exchanges_.addAll(other.exchanges_);
}
onChanged();
}
} else {
if (!other.exchanges_.isEmpty()) {
if (exchangesBuilder_.isEmpty()) {
exchangesBuilder_.dispose();
exchangesBuilder_ = null;
exchanges_ = other.exchanges_;
bitField0_ = (bitField0_ & ~0x00000001);
exchangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExchangesFieldBuilder() : null;
} else {
exchangesBuilder_.addAllMessages(other.exchanges_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.Exchange m =
input.readMessage(
org.tron.trident.proto.Response.Exchange.parser(),
extensionRegistry);
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(m);
} else {
exchangesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List exchanges_ =
java.util.Collections.emptyList();
private void ensureExchangesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
exchanges_ = new java.util.ArrayList(exchanges_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.proto.Response.ExchangeOrBuilder> exchangesBuilder_;
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public java.util.List getExchangesList() {
if (exchangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(exchanges_);
} else {
return exchangesBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public int getExchangesCount() {
if (exchangesBuilder_ == null) {
return exchanges_.size();
} else {
return exchangesBuilder_.getCount();
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public org.tron.trident.proto.Response.Exchange getExchanges(int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index);
} else {
return exchangesBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder setExchanges(
int index, org.tron.trident.proto.Response.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.set(index, value);
onChanged();
} else {
exchangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder setExchanges(
int index, org.tron.trident.proto.Response.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.set(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder addExchanges(org.tron.trident.proto.Response.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(value);
onChanged();
} else {
exchangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder addExchanges(
int index, org.tron.trident.proto.Response.Exchange value) {
if (exchangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExchangesIsMutable();
exchanges_.add(index, value);
onChanged();
} else {
exchangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder addExchanges(
org.tron.trident.proto.Response.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder addExchanges(
int index, org.tron.trident.proto.Response.Exchange.Builder builderForValue) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.add(index, builderForValue.build());
onChanged();
} else {
exchangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder addAllExchanges(
java.lang.Iterable extends org.tron.trident.proto.Response.Exchange> values) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, exchanges_);
onChanged();
} else {
exchangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder clearExchanges() {
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
exchangesBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public Builder removeExchanges(int index) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.remove(index);
onChanged();
} else {
exchangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public org.tron.trident.proto.Response.Exchange.Builder getExchangesBuilder(
int index) {
return getExchangesFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public org.tron.trident.proto.Response.ExchangeOrBuilder getExchangesOrBuilder(
int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index); } else {
return exchangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList() {
if (exchangesBuilder_ != null) {
return exchangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(exchanges_);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public org.tron.trident.proto.Response.Exchange.Builder addExchangesBuilder() {
return getExchangesFieldBuilder().addBuilder(
org.tron.trident.proto.Response.Exchange.getDefaultInstance());
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public org.tron.trident.proto.Response.Exchange.Builder addExchangesBuilder(
int index) {
return getExchangesFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.Exchange.getDefaultInstance());
}
/**
* repeated .protocol.Exchange exchanges = 1;
*/
public java.util.List
getExchangesBuilderList() {
return getExchangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.proto.Response.ExchangeOrBuilder>
getExchangesFieldBuilder() {
if (exchangesBuilder_ == null) {
exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.Exchange, org.tron.trident.proto.Response.Exchange.Builder, org.tron.trident.proto.Response.ExchangeOrBuilder>(
exchanges_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
exchanges_ = null;
}
return exchangesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.ExchangeList)
}
// @@protoc_insertion_point(class_scope:protocol.ExchangeList)
private static final org.tron.trident.proto.Response.ExchangeList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ExchangeList();
}
public static org.tron.trident.proto.Response.ExchangeList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExchangeList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.ExchangeList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssetIssueListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.AssetIssueList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
java.util.List
getAssetsList();
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index);
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
int getAssetsCount();
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
java.util.List extends org.tron.trident.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList();
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
org.tron.trident.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.AssetIssueList}
*/
public static final class AssetIssueList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.AssetIssueList)
AssetIssueListOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetIssueList.newBuilder() to construct.
private AssetIssueList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetIssueList() {
assets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetIssueList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.AssetIssueList.class, org.tron.trident.proto.Response.AssetIssueList.Builder.class);
}
public static final int ASSETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List assets_;
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
@java.lang.Override
public java.util.List getAssetsList() {
return assets_;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList() {
return assets_;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
@java.lang.Override
public int getAssetsCount() {
return assets_.size();
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index) {
return assets_.get(index);
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder(
int index) {
return assets_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < assets_.size(); i++) {
output.writeMessage(1, assets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < assets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, assets_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.AssetIssueList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.AssetIssueList other = (org.tron.trident.proto.Response.AssetIssueList) obj;
if (!getAssetsList()
.equals(other.getAssetsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAssetsCount() > 0) {
hash = (37 * hash) + ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getAssetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AssetIssueList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AssetIssueList 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 org.tron.trident.proto.Response.AssetIssueList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AssetIssueList 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 org.tron.trident.proto.Response.AssetIssueList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AssetIssueList 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(org.tron.trident.proto.Response.AssetIssueList 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 protocol.AssetIssueList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.AssetIssueList)
org.tron.trident.proto.Response.AssetIssueListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.AssetIssueList.class, org.tron.trident.proto.Response.AssetIssueList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.AssetIssueList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (assetsBuilder_ == null) {
assets_ = java.util.Collections.emptyList();
} else {
assets_ = null;
assetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.AssetIssueList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.AssetIssueList build() {
org.tron.trident.proto.Response.AssetIssueList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.AssetIssueList buildPartial() {
org.tron.trident.proto.Response.AssetIssueList result = new org.tron.trident.proto.Response.AssetIssueList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.AssetIssueList result) {
if (assetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
assets_ = java.util.Collections.unmodifiableList(assets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.assets_ = assets_;
} else {
result.assets_ = assetsBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.AssetIssueList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.AssetIssueList) {
return mergeFrom((org.tron.trident.proto.Response.AssetIssueList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.AssetIssueList other) {
if (other == org.tron.trident.proto.Response.AssetIssueList.getDefaultInstance()) return this;
if (assetsBuilder_ == null) {
if (!other.assets_.isEmpty()) {
if (assets_.isEmpty()) {
assets_ = other.assets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAssetsIsMutable();
assets_.addAll(other.assets_);
}
onChanged();
}
} else {
if (!other.assets_.isEmpty()) {
if (assetsBuilder_.isEmpty()) {
assetsBuilder_.dispose();
assetsBuilder_ = null;
assets_ = other.assets_;
bitField0_ = (bitField0_ & ~0x00000001);
assetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAssetsFieldBuilder() : null;
} else {
assetsBuilder_.addAllMessages(other.assets_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Contract.AssetIssueContract m =
input.readMessage(
org.tron.trident.proto.Contract.AssetIssueContract.parser(),
extensionRegistry);
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.add(m);
} else {
assetsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List assets_ =
java.util.Collections.emptyList();
private void ensureAssetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
assets_ = new java.util.ArrayList(assets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.proto.Contract.AssetIssueContractOrBuilder> assetsBuilder_;
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public java.util.List getAssetsList() {
if (assetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(assets_);
} else {
return assetsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public int getAssetsCount() {
if (assetsBuilder_ == null) {
return assets_.size();
} else {
return assetsBuilder_.getCount();
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public org.tron.trident.proto.Contract.AssetIssueContract getAssets(int index) {
if (assetsBuilder_ == null) {
return assets_.get(index);
} else {
return assetsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder setAssets(
int index, org.tron.trident.proto.Contract.AssetIssueContract value) {
if (assetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssetsIsMutable();
assets_.set(index, value);
onChanged();
} else {
assetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder setAssets(
int index, org.tron.trident.proto.Contract.AssetIssueContract.Builder builderForValue) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.set(index, builderForValue.build());
onChanged();
} else {
assetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder addAssets(org.tron.trident.proto.Contract.AssetIssueContract value) {
if (assetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssetsIsMutable();
assets_.add(value);
onChanged();
} else {
assetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder addAssets(
int index, org.tron.trident.proto.Contract.AssetIssueContract value) {
if (assetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssetsIsMutable();
assets_.add(index, value);
onChanged();
} else {
assetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder addAssets(
org.tron.trident.proto.Contract.AssetIssueContract.Builder builderForValue) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.add(builderForValue.build());
onChanged();
} else {
assetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder addAssets(
int index, org.tron.trident.proto.Contract.AssetIssueContract.Builder builderForValue) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.add(index, builderForValue.build());
onChanged();
} else {
assetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder addAllAssets(
java.lang.Iterable extends org.tron.trident.proto.Contract.AssetIssueContract> values) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assets_);
onChanged();
} else {
assetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder clearAssets() {
if (assetsBuilder_ == null) {
assets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
assetsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public Builder removeAssets(int index) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.remove(index);
onChanged();
} else {
assetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public org.tron.trident.proto.Contract.AssetIssueContract.Builder getAssetsBuilder(
int index) {
return getAssetsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public org.tron.trident.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder(
int index) {
if (assetsBuilder_ == null) {
return assets_.get(index); } else {
return assetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public java.util.List extends org.tron.trident.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList() {
if (assetsBuilder_ != null) {
return assetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(assets_);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public org.tron.trident.proto.Contract.AssetIssueContract.Builder addAssetsBuilder() {
return getAssetsFieldBuilder().addBuilder(
org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance());
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public org.tron.trident.proto.Contract.AssetIssueContract.Builder addAssetsBuilder(
int index) {
return getAssetsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Contract.AssetIssueContract.getDefaultInstance());
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
*/
public java.util.List
getAssetsBuilderList() {
return getAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.proto.Contract.AssetIssueContractOrBuilder>
getAssetsFieldBuilder() {
if (assetsBuilder_ == null) {
assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Contract.AssetIssueContract, org.tron.trident.proto.Contract.AssetIssueContract.Builder, org.tron.trident.proto.Contract.AssetIssueContractOrBuilder>(
assets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
assets_ = null;
}
return assetsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.AssetIssueList)
}
// @@protoc_insertion_point(class_scope:protocol.AssetIssueList)
private static final org.tron.trident.proto.Response.AssetIssueList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AssetIssueList();
}
public static org.tron.trident.proto.Response.AssetIssueList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetIssueList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.AssetIssueList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BlockListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.BlockList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.Block block = 1;
*/
java.util.List
getBlockList();
/**
* repeated .protocol.Block block = 1;
*/
org.tron.trident.proto.Chain.Block getBlock(int index);
/**
* repeated .protocol.Block block = 1;
*/
int getBlockCount();
/**
* repeated .protocol.Block block = 1;
*/
java.util.List extends org.tron.trident.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList();
/**
* repeated .protocol.Block block = 1;
*/
org.tron.trident.proto.Chain.BlockOrBuilder getBlockOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.BlockList}
*/
public static final class BlockList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.BlockList)
BlockListOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockList.newBuilder() to construct.
private BlockList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockList() {
block_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockList.class, org.tron.trident.proto.Response.BlockList.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List block_;
/**
* repeated .protocol.Block block = 1;
*/
@java.lang.Override
public java.util.List getBlockList() {
return block_;
}
/**
* repeated .protocol.Block block = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList() {
return block_;
}
/**
* repeated .protocol.Block block = 1;
*/
@java.lang.Override
public int getBlockCount() {
return block_.size();
}
/**
* repeated .protocol.Block block = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.Block getBlock(int index) {
return block_.get(index);
}
/**
* repeated .protocol.Block block = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.BlockOrBuilder getBlockOrBuilder(
int index) {
return block_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < block_.size(); i++) {
output.writeMessage(1, block_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < block_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, block_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.BlockList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.BlockList other = (org.tron.trident.proto.Response.BlockList) obj;
if (!getBlockList()
.equals(other.getBlockList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBlockCount() > 0) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlockList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.BlockList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.BlockList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockList 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 org.tron.trident.proto.Response.BlockList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockList 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 org.tron.trident.proto.Response.BlockList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.BlockList 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(org.tron.trident.proto.Response.BlockList 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 protocol.BlockList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.BlockList)
org.tron.trident.proto.Response.BlockListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.BlockList.class, org.tron.trident.proto.Response.BlockList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.BlockList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
} else {
block_ = null;
blockBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.BlockList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockList build() {
org.tron.trident.proto.Response.BlockList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockList buildPartial() {
org.tron.trident.proto.Response.BlockList result = new org.tron.trident.proto.Response.BlockList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.BlockList result) {
if (blockBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.BlockList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.BlockList) {
return mergeFrom((org.tron.trident.proto.Response.BlockList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.BlockList other) {
if (other == org.tron.trident.proto.Response.BlockList.getDefaultInstance()) return this;
if (blockBuilder_ == null) {
if (!other.block_.isEmpty()) {
if (block_.isEmpty()) {
block_ = other.block_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlockIsMutable();
block_.addAll(other.block_);
}
onChanged();
}
} else {
if (!other.block_.isEmpty()) {
if (blockBuilder_.isEmpty()) {
blockBuilder_.dispose();
blockBuilder_ = null;
block_ = other.block_;
bitField0_ = (bitField0_ & ~0x00000001);
blockBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlockFieldBuilder() : null;
} else {
blockBuilder_.addAllMessages(other.block_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Chain.Block m =
input.readMessage(
org.tron.trident.proto.Chain.Block.parser(),
extensionRegistry);
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(m);
} else {
blockBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List block_ =
java.util.Collections.emptyList();
private void ensureBlockIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
block_ = new java.util.ArrayList(block_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.proto.Chain.BlockOrBuilder> blockBuilder_;
/**
* repeated .protocol.Block block = 1;
*/
public java.util.List getBlockList() {
if (blockBuilder_ == null) {
return java.util.Collections.unmodifiableList(block_);
} else {
return blockBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Block block = 1;
*/
public int getBlockCount() {
if (blockBuilder_ == null) {
return block_.size();
} else {
return blockBuilder_.getCount();
}
}
/**
* repeated .protocol.Block block = 1;
*/
public org.tron.trident.proto.Chain.Block getBlock(int index) {
if (blockBuilder_ == null) {
return block_.get(index);
} else {
return blockBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder setBlock(
int index, org.tron.trident.proto.Chain.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.set(index, value);
onChanged();
} else {
blockBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder setBlock(
int index, org.tron.trident.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.set(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder addBlock(org.tron.trident.proto.Chain.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.add(value);
onChanged();
} else {
blockBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder addBlock(
int index, org.tron.trident.proto.Chain.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.add(index, value);
onChanged();
} else {
blockBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder addBlock(
org.tron.trident.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder addBlock(
int index, org.tron.trident.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder addAllBlock(
java.lang.Iterable extends org.tron.trident.proto.Chain.Block> values) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, block_);
onChanged();
} else {
blockBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public Builder removeBlock(int index) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.remove(index);
onChanged();
} else {
blockBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Block block = 1;
*/
public org.tron.trident.proto.Chain.Block.Builder getBlockBuilder(
int index) {
return getBlockFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Block block = 1;
*/
public org.tron.trident.proto.Chain.BlockOrBuilder getBlockOrBuilder(
int index) {
if (blockBuilder_ == null) {
return block_.get(index); } else {
return blockBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Block block = 1;
*/
public java.util.List extends org.tron.trident.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(block_);
}
}
/**
* repeated .protocol.Block block = 1;
*/
public org.tron.trident.proto.Chain.Block.Builder addBlockBuilder() {
return getBlockFieldBuilder().addBuilder(
org.tron.trident.proto.Chain.Block.getDefaultInstance());
}
/**
* repeated .protocol.Block block = 1;
*/
public org.tron.trident.proto.Chain.Block.Builder addBlockBuilder(
int index) {
return getBlockFieldBuilder().addBuilder(
index, org.tron.trident.proto.Chain.Block.getDefaultInstance());
}
/**
* repeated .protocol.Block block = 1;
*/
public java.util.List
getBlockBuilderList() {
return getBlockFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.proto.Chain.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Block, org.tron.trident.proto.Chain.Block.Builder, org.tron.trident.proto.Chain.BlockOrBuilder>(
block_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
block_ = null;
}
return blockBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.BlockList)
}
// @@protoc_insertion_point(class_scope:protocol.BlockList)
private static final org.tron.trident.proto.Response.BlockList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.BlockList();
}
public static org.tron.trident.proto.Response.BlockList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.BlockList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.Transaction transaction = 1;
*/
java.util.List
getTransactionList();
/**
* repeated .protocol.Transaction transaction = 1;
*/
org.tron.trident.proto.Chain.Transaction getTransaction(int index);
/**
* repeated .protocol.Transaction transaction = 1;
*/
int getTransactionCount();
/**
* repeated .protocol.Transaction transaction = 1;
*/
java.util.List extends org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList();
/**
* repeated .protocol.Transaction transaction = 1;
*/
org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.TransactionList}
*/
public static final class TransactionList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.TransactionList)
TransactionListOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionList.newBuilder() to construct.
private TransactionList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionList() {
transaction_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionList.class, org.tron.trident.proto.Response.TransactionList.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List transaction_;
/**
* repeated .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public java.util.List getTransactionList() {
return transaction_;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList() {
return transaction_;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public int getTransactionCount() {
return transaction_.size();
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.Transaction getTransaction(int index) {
return transaction_.get(index);
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(
int index) {
return transaction_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < transaction_.size(); i++) {
output.writeMessage(1, transaction_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < transaction_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, transaction_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.TransactionList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.TransactionList other = (org.tron.trident.proto.Response.TransactionList) obj;
if (!getTransactionList()
.equals(other.getTransactionList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTransactionCount() > 0) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransactionList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionList 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 org.tron.trident.proto.Response.TransactionList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionList 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 org.tron.trident.proto.Response.TransactionList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionList 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(org.tron.trident.proto.Response.TransactionList 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 protocol.TransactionList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.TransactionList)
org.tron.trident.proto.Response.TransactionListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionList.class, org.tron.trident.proto.Response.TransactionList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.TransactionList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (transactionBuilder_ == null) {
transaction_ = java.util.Collections.emptyList();
} else {
transaction_ = null;
transactionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.TransactionList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionList build() {
org.tron.trident.proto.Response.TransactionList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionList buildPartial() {
org.tron.trident.proto.Response.TransactionList result = new org.tron.trident.proto.Response.TransactionList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionList result) {
if (transactionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transaction_ = java.util.Collections.unmodifiableList(transaction_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.TransactionList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.TransactionList) {
return mergeFrom((org.tron.trident.proto.Response.TransactionList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.TransactionList other) {
if (other == org.tron.trident.proto.Response.TransactionList.getDefaultInstance()) return this;
if (transactionBuilder_ == null) {
if (!other.transaction_.isEmpty()) {
if (transaction_.isEmpty()) {
transaction_ = other.transaction_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTransactionIsMutable();
transaction_.addAll(other.transaction_);
}
onChanged();
}
} else {
if (!other.transaction_.isEmpty()) {
if (transactionBuilder_.isEmpty()) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
transaction_ = other.transaction_;
bitField0_ = (bitField0_ & ~0x00000001);
transactionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTransactionFieldBuilder() : null;
} else {
transactionBuilder_.addAllMessages(other.transaction_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Chain.Transaction m =
input.readMessage(
org.tron.trident.proto.Chain.Transaction.parser(),
extensionRegistry);
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.add(m);
} else {
transactionBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List transaction_ =
java.util.Collections.emptyList();
private void ensureTransactionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
transaction_ = new java.util.ArrayList(transaction_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_;
/**
* repeated .protocol.Transaction transaction = 1;
*/
public java.util.List getTransactionList() {
if (transactionBuilder_ == null) {
return java.util.Collections.unmodifiableList(transaction_);
} else {
return transactionBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public int getTransactionCount() {
if (transactionBuilder_ == null) {
return transaction_.size();
} else {
return transactionBuilder_.getCount();
}
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction getTransaction(int index) {
if (transactionBuilder_ == null) {
return transaction_.get(index);
} else {
return transactionBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(
int index, org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionIsMutable();
transaction_.set(index, value);
onChanged();
} else {
transactionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(
int index, org.tron.trident.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.set(index, builderForValue.build());
onChanged();
} else {
transactionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder addTransaction(org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionIsMutable();
transaction_.add(value);
onChanged();
} else {
transactionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder addTransaction(
int index, org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionIsMutable();
transaction_.add(index, value);
onChanged();
} else {
transactionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder addTransaction(
org.tron.trident.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.add(builderForValue.build());
onChanged();
} else {
transactionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder addTransaction(
int index, org.tron.trident.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.add(index, builderForValue.build());
onChanged();
} else {
transactionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder addAllTransaction(
java.lang.Iterable extends org.tron.trident.proto.Chain.Transaction> values) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transaction_);
onChanged();
} else {
transactionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public Builder removeTransaction(int index) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.remove(index);
onChanged();
} else {
transactionBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder(
int index) {
return getTransactionFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(
int index) {
if (transactionBuilder_ == null) {
return transaction_.get(index); } else {
return transactionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public java.util.List extends org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transaction_);
}
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction.Builder addTransactionBuilder() {
return getTransactionFieldBuilder().addBuilder(
org.tron.trident.proto.Chain.Transaction.getDefaultInstance());
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction.Builder addTransactionBuilder(
int index) {
return getTransactionFieldBuilder().addBuilder(
index, org.tron.trident.proto.Chain.Transaction.getDefaultInstance());
}
/**
* repeated .protocol.Transaction transaction = 1;
*/
public java.util.List
getTransactionBuilderList() {
return getTransactionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>(
transaction_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.TransactionList)
}
// @@protoc_insertion_point(class_scope:protocol.TransactionList)
private static final org.tron.trident.proto.Response.TransactionList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionList();
}
public static org.tron.trident.proto.Response.TransactionList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelegatedResourceMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceMessage)
com.google.protobuf.MessageOrBuilder {
/**
* bytes from_address = 1;
* @return The fromAddress.
*/
com.google.protobuf.ByteString getFromAddress();
/**
* bytes to_address = 2;
* @return The toAddress.
*/
com.google.protobuf.ByteString getToAddress();
}
/**
* Protobuf type {@code protocol.DelegatedResourceMessage}
*/
public static final class DelegatedResourceMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.DelegatedResourceMessage)
DelegatedResourceMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelegatedResourceMessage.newBuilder() to construct.
private DelegatedResourceMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelegatedResourceMessage() {
fromAddress_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DelegatedResourceMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.DelegatedResourceMessage.class, org.tron.trident.proto.Response.DelegatedResourceMessage.Builder.class);
}
public static final int FROM_ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString fromAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes from_address = 1;
* @return The fromAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFromAddress() {
return fromAddress_;
}
public static final int TO_ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes to_address = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
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 (!fromAddress_.isEmpty()) {
output.writeBytes(1, fromAddress_);
}
if (!toAddress_.isEmpty()) {
output.writeBytes(2, toAddress_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!fromAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, fromAddress_);
}
if (!toAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, toAddress_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResourceMessage)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.DelegatedResourceMessage other = (org.tron.trident.proto.Response.DelegatedResourceMessage) obj;
if (!getFromAddress()
.equals(other.getFromAddress())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FROM_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getFromAddress().hashCode();
hash = (37 * hash) + TO_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getToAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage 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 org.tron.trident.proto.Response.DelegatedResourceMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage 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 org.tron.trident.proto.Response.DelegatedResourceMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage 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(org.tron.trident.proto.Response.DelegatedResourceMessage 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 protocol.DelegatedResourceMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.DelegatedResourceMessage)
org.tron.trident.proto.Response.DelegatedResourceMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.DelegatedResourceMessage.class, org.tron.trident.proto.Response.DelegatedResourceMessage.Builder.class);
}
// Construct using org.tron.trident.proto.Response.DelegatedResourceMessage.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fromAddress_ = com.google.protobuf.ByteString.EMPTY;
toAddress_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() {
return org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceMessage build() {
org.tron.trident.proto.Response.DelegatedResourceMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceMessage buildPartial() {
org.tron.trident.proto.Response.DelegatedResourceMessage result = new org.tron.trident.proto.Response.DelegatedResourceMessage(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.DelegatedResourceMessage result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fromAddress_ = fromAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.toAddress_ = toAddress_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.DelegatedResourceMessage) {
return mergeFrom((org.tron.trident.proto.Response.DelegatedResourceMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceMessage other) {
if (other == org.tron.trident.proto.Response.DelegatedResourceMessage.getDefaultInstance()) return this;
if (other.getFromAddress() != com.google.protobuf.ByteString.EMPTY) {
setFromAddress(other.getFromAddress());
}
if (other.getToAddress() != com.google.protobuf.ByteString.EMPTY) {
setToAddress(other.getToAddress());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
fromAddress_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
toAddress_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString fromAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes from_address = 1;
* @return The fromAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFromAddress() {
return fromAddress_;
}
/**
* bytes from_address = 1;
* @param value The fromAddress to set.
* @return This builder for chaining.
*/
public Builder setFromAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
fromAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes from_address = 1;
* @return This builder for chaining.
*/
public Builder clearFromAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
fromAddress_ = getDefaultInstance().getFromAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes to_address = 2;
* @return The toAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getToAddress() {
return toAddress_;
}
/**
* bytes to_address = 2;
* @param value The toAddress to set.
* @return This builder for chaining.
*/
public Builder setToAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
toAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes to_address = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
bitField0_ = (bitField0_ & ~0x00000002);
toAddress_ = getDefaultInstance().getToAddress();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.DelegatedResourceMessage)
}
// @@protoc_insertion_point(class_scope:protocol.DelegatedResourceMessage)
private static final org.tron.trident.proto.Response.DelegatedResourceMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResourceMessage();
}
public static org.tron.trident.proto.Response.DelegatedResourceMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelegatedResourceMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelegatedResourceListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
java.util.List
getDelegatedResourceList();
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index);
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
int getDelegatedResourceCount();
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
java.util.List extends org.tron.trident.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList();
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
org.tron.trident.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.DelegatedResourceList}
*/
public static final class DelegatedResourceList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.DelegatedResourceList)
DelegatedResourceListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelegatedResourceList.newBuilder() to construct.
private DelegatedResourceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelegatedResourceList() {
delegatedResource_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DelegatedResourceList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.DelegatedResourceList.class, org.tron.trident.proto.Response.DelegatedResourceList.Builder.class);
}
public static final int DELEGATEDRESOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List delegatedResource_;
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
@java.lang.Override
public java.util.List getDelegatedResourceList() {
return delegatedResource_;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList() {
return delegatedResource_;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
@java.lang.Override
public int getDelegatedResourceCount() {
return delegatedResource_.size();
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index) {
return delegatedResource_.get(index);
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
int index) {
return delegatedResource_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < delegatedResource_.size(); i++) {
output.writeMessage(1, delegatedResource_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < delegatedResource_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, delegatedResource_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.DelegatedResourceList)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.DelegatedResourceList other = (org.tron.trident.proto.Response.DelegatedResourceList) obj;
if (!getDelegatedResourceList()
.equals(other.getDelegatedResourceList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDelegatedResourceCount() > 0) {
hash = (37 * hash) + DELEGATEDRESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getDelegatedResourceList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.DelegatedResourceList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceList 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 org.tron.trident.proto.Response.DelegatedResourceList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceList 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 org.tron.trident.proto.Response.DelegatedResourceList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.DelegatedResourceList 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(org.tron.trident.proto.Response.DelegatedResourceList 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 protocol.DelegatedResourceList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.DelegatedResourceList)
org.tron.trident.proto.Response.DelegatedResourceListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.DelegatedResourceList.class, org.tron.trident.proto.Response.DelegatedResourceList.Builder.class);
}
// Construct using org.tron.trident.proto.Response.DelegatedResourceList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (delegatedResourceBuilder_ == null) {
delegatedResource_ = java.util.Collections.emptyList();
} else {
delegatedResource_ = null;
delegatedResourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceList getDefaultInstanceForType() {
return org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceList build() {
org.tron.trident.proto.Response.DelegatedResourceList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceList buildPartial() {
org.tron.trident.proto.Response.DelegatedResourceList result = new org.tron.trident.proto.Response.DelegatedResourceList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.DelegatedResourceList result) {
if (delegatedResourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.delegatedResource_ = delegatedResource_;
} else {
result.delegatedResource_ = delegatedResourceBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.DelegatedResourceList result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.DelegatedResourceList) {
return mergeFrom((org.tron.trident.proto.Response.DelegatedResourceList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.DelegatedResourceList other) {
if (other == org.tron.trident.proto.Response.DelegatedResourceList.getDefaultInstance()) return this;
if (delegatedResourceBuilder_ == null) {
if (!other.delegatedResource_.isEmpty()) {
if (delegatedResource_.isEmpty()) {
delegatedResource_ = other.delegatedResource_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDelegatedResourceIsMutable();
delegatedResource_.addAll(other.delegatedResource_);
}
onChanged();
}
} else {
if (!other.delegatedResource_.isEmpty()) {
if (delegatedResourceBuilder_.isEmpty()) {
delegatedResourceBuilder_.dispose();
delegatedResourceBuilder_ = null;
delegatedResource_ = other.delegatedResource_;
bitField0_ = (bitField0_ & ~0x00000001);
delegatedResourceBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDelegatedResourceFieldBuilder() : null;
} else {
delegatedResourceBuilder_.addAllMessages(other.delegatedResource_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Response.DelegatedResource m =
input.readMessage(
org.tron.trident.proto.Response.DelegatedResource.parser(),
extensionRegistry);
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.add(m);
} else {
delegatedResourceBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List delegatedResource_ =
java.util.Collections.emptyList();
private void ensureDelegatedResourceIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
delegatedResource_ = new java.util.ArrayList(delegatedResource_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.proto.Response.DelegatedResourceOrBuilder> delegatedResourceBuilder_;
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public java.util.List getDelegatedResourceList() {
if (delegatedResourceBuilder_ == null) {
return java.util.Collections.unmodifiableList(delegatedResource_);
} else {
return delegatedResourceBuilder_.getMessageList();
}
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public int getDelegatedResourceCount() {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.size();
} else {
return delegatedResourceBuilder_.getCount();
}
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public org.tron.trident.proto.Response.DelegatedResource getDelegatedResource(int index) {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.get(index);
} else {
return delegatedResourceBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder setDelegatedResource(
int index, org.tron.trident.proto.Response.DelegatedResource value) {
if (delegatedResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatedResourceIsMutable();
delegatedResource_.set(index, value);
onChanged();
} else {
delegatedResourceBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder setDelegatedResource(
int index, org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.set(index, builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder addDelegatedResource(org.tron.trident.proto.Response.DelegatedResource value) {
if (delegatedResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatedResourceIsMutable();
delegatedResource_.add(value);
onChanged();
} else {
delegatedResourceBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder addDelegatedResource(
int index, org.tron.trident.proto.Response.DelegatedResource value) {
if (delegatedResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatedResourceIsMutable();
delegatedResource_.add(index, value);
onChanged();
} else {
delegatedResourceBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder addDelegatedResource(
org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.add(builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder addDelegatedResource(
int index, org.tron.trident.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.add(index, builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder addAllDelegatedResource(
java.lang.Iterable extends org.tron.trident.proto.Response.DelegatedResource> values) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delegatedResource_);
onChanged();
} else {
delegatedResourceBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder clearDelegatedResource() {
if (delegatedResourceBuilder_ == null) {
delegatedResource_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
delegatedResourceBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public Builder removeDelegatedResource(int index) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.remove(index);
onChanged();
} else {
delegatedResourceBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public org.tron.trident.proto.Response.DelegatedResource.Builder getDelegatedResourceBuilder(
int index) {
return getDelegatedResourceFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public org.tron.trident.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
int index) {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.get(index); } else {
return delegatedResourceBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public java.util.List extends org.tron.trident.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList() {
if (delegatedResourceBuilder_ != null) {
return delegatedResourceBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(delegatedResource_);
}
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public org.tron.trident.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder() {
return getDelegatedResourceFieldBuilder().addBuilder(
org.tron.trident.proto.Response.DelegatedResource.getDefaultInstance());
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public org.tron.trident.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder(
int index) {
return getDelegatedResourceFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.DelegatedResource.getDefaultInstance());
}
/**
* repeated .protocol.DelegatedResource delegatedResource = 1;
*/
public java.util.List
getDelegatedResourceBuilderList() {
return getDelegatedResourceFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceFieldBuilder() {
if (delegatedResourceBuilder_ == null) {
delegatedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.DelegatedResource, org.tron.trident.proto.Response.DelegatedResource.Builder, org.tron.trident.proto.Response.DelegatedResourceOrBuilder>(
delegatedResource_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
delegatedResource_ = null;
}
return delegatedResourceBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.DelegatedResourceList)
}
// @@protoc_insertion_point(class_scope:protocol.DelegatedResourceList)
private static final org.tron.trident.proto.Response.DelegatedResourceList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.DelegatedResourceList();
}
public static org.tron.trident.proto.Response.DelegatedResourceList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelegatedResourceList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.DelegatedResourceList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddressPrKeyPairMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.AddressPrKeyPairMessage)
com.google.protobuf.MessageOrBuilder {
/**
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* string privateKey = 2;
* @return The privateKey.
*/
java.lang.String getPrivateKey();
/**
* string privateKey = 2;
* @return The bytes for privateKey.
*/
com.google.protobuf.ByteString
getPrivateKeyBytes();
}
/**
* Protobuf type {@code protocol.AddressPrKeyPairMessage}
*/
public static final class AddressPrKeyPairMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.AddressPrKeyPairMessage)
AddressPrKeyPairMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddressPrKeyPairMessage.newBuilder() to construct.
private AddressPrKeyPairMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddressPrKeyPairMessage() {
address_ = "";
privateKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddressPrKeyPairMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, org.tron.trident.proto.Response.AddressPrKeyPairMessage.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
@java.lang.Override
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;
* @return The bytes for address.
*/
@java.lang.Override
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 PRIVATEKEY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object privateKey_ = "";
/**
* string privateKey = 2;
* @return The privateKey.
*/
@java.lang.Override
public java.lang.String getPrivateKey() {
java.lang.Object ref = privateKey_;
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();
privateKey_ = s;
return s;
}
}
/**
* string privateKey = 2;
* @return The bytes for privateKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPrivateKeyBytes() {
java.lang.Object ref = privateKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
privateKey_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateKey_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateKey_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.AddressPrKeyPairMessage)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.AddressPrKeyPairMessage other = (org.tron.trident.proto.Response.AddressPrKeyPairMessage) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getPrivateKey()
.equals(other.getPrivateKey())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + PRIVATEKEY_FIELD_NUMBER;
hash = (53 * hash) + getPrivateKey().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage 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 org.tron.trident.proto.Response.AddressPrKeyPairMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage 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 org.tron.trident.proto.Response.AddressPrKeyPairMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage 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(org.tron.trident.proto.Response.AddressPrKeyPairMessage 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 protocol.AddressPrKeyPairMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.AddressPrKeyPairMessage)
org.tron.trident.proto.Response.AddressPrKeyPairMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.AddressPrKeyPairMessage.class, org.tron.trident.proto.Response.AddressPrKeyPairMessage.Builder.class);
}
// Construct using org.tron.trident.proto.Response.AddressPrKeyPairMessage.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = "";
privateKey_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() {
return org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.AddressPrKeyPairMessage build() {
org.tron.trident.proto.Response.AddressPrKeyPairMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.AddressPrKeyPairMessage buildPartial() {
org.tron.trident.proto.Response.AddressPrKeyPairMessage result = new org.tron.trident.proto.Response.AddressPrKeyPairMessage(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.AddressPrKeyPairMessage result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.privateKey_ = privateKey_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.AddressPrKeyPairMessage) {
return mergeFrom((org.tron.trident.proto.Response.AddressPrKeyPairMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.AddressPrKeyPairMessage other) {
if (other == org.tron.trident.proto.Response.AddressPrKeyPairMessage.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPrivateKey().isEmpty()) {
privateKey_ = other.privateKey_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
privateKey_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
* string address = 1;
* @return The address.
*/
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;
* @return The bytes for address.
*/
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;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object privateKey_ = "";
/**
* string privateKey = 2;
* @return The privateKey.
*/
public java.lang.String getPrivateKey() {
java.lang.Object ref = privateKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
privateKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string privateKey = 2;
* @return The bytes for privateKey.
*/
public com.google.protobuf.ByteString
getPrivateKeyBytes() {
java.lang.Object ref = privateKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
privateKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string privateKey = 2;
* @param value The privateKey to set.
* @return This builder for chaining.
*/
public Builder setPrivateKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
privateKey_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string privateKey = 2;
* @return This builder for chaining.
*/
public Builder clearPrivateKey() {
privateKey_ = getDefaultInstance().getPrivateKey();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string privateKey = 2;
* @param value The bytes for privateKey to set.
* @return This builder for chaining.
*/
public Builder setPrivateKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
privateKey_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.AddressPrKeyPairMessage)
}
// @@protoc_insertion_point(class_scope:protocol.AddressPrKeyPairMessage)
private static final org.tron.trident.proto.Response.AddressPrKeyPairMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.AddressPrKeyPairMessage();
}
public static org.tron.trident.proto.Response.AddressPrKeyPairMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddressPrKeyPairMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
org.tron.trident.proto.Chain.Transaction getTransaction();
/**
* .protocol.Transaction transaction = 1;
*/
org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder();
/**
* .protocol.TransactionReturn result = 2;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .protocol.TransactionReturn result = 2;
* @return The result.
*/
org.tron.trident.proto.Response.TransactionReturn getResult();
/**
* .protocol.TransactionReturn result = 2;
*/
org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder();
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @return The txid.
*/
com.google.protobuf.ByteString getTxid();
}
/**
* Protobuf type {@code protocol.EasyTransferResponse}
*/
public static final class EasyTransferResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.EasyTransferResponse)
EasyTransferResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use EasyTransferResponse.newBuilder() to construct.
private EasyTransferResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EasyTransferResponse() {
txid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EasyTransferResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.EasyTransferResponse.class, org.tron.trident.proto.Response.EasyTransferResponse.Builder.class);
}
private int bitField0_;
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.tron.trident.proto.Chain.Transaction transaction_;
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
@java.lang.Override
public org.tron.trident.proto.Chain.Transaction getTransaction() {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
/**
* .protocol.Transaction transaction = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
public static final int RESULT_FIELD_NUMBER = 2;
private org.tron.trident.proto.Response.TransactionReturn result_;
/**
* .protocol.TransactionReturn result = 2;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .protocol.TransactionReturn result = 2;
* @return The result.
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturn getResult() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
/**
* .protocol.TransactionReturn result = 2;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
public static final int TXID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @return The txid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxid() {
return txid_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTransaction());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getResult());
}
if (!txid_.isEmpty()) {
output.writeBytes(3, txid_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransaction());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
if (!txid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, txid_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.EasyTransferResponse)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.EasyTransferResponse other = (org.tron.trident.proto.Response.EasyTransferResponse) obj;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (!getTxid()
.equals(other.getTxid())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTransaction()) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransaction().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (37 * hash) + TXID_FIELD_NUMBER;
hash = (53 * hash) + getTxid().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.EasyTransferResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EasyTransferResponse 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 org.tron.trident.proto.Response.EasyTransferResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EasyTransferResponse 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 org.tron.trident.proto.Response.EasyTransferResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.EasyTransferResponse 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(org.tron.trident.proto.Response.EasyTransferResponse 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 protocol.EasyTransferResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.EasyTransferResponse)
org.tron.trident.proto.Response.EasyTransferResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.EasyTransferResponse.class, org.tron.trident.proto.Response.EasyTransferResponse.Builder.class);
}
// Construct using org.tron.trident.proto.Response.EasyTransferResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTransactionFieldBuilder();
getResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
txid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.EasyTransferResponse getDefaultInstanceForType() {
return org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.EasyTransferResponse build() {
org.tron.trident.proto.Response.EasyTransferResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.EasyTransferResponse buildPartial() {
org.tron.trident.proto.Response.EasyTransferResponse result = new org.tron.trident.proto.Response.EasyTransferResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.EasyTransferResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transaction_ = transactionBuilder_ == null
? transaction_
: transactionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.result_ = resultBuilder_ == null
? result_
: resultBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.txid_ = txid_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.EasyTransferResponse) {
return mergeFrom((org.tron.trident.proto.Response.EasyTransferResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.EasyTransferResponse other) {
if (other == org.tron.trident.proto.Response.EasyTransferResponse.getDefaultInstance()) return this;
if (other.hasTransaction()) {
mergeTransaction(other.getTransaction());
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
if (other.getTxid() != com.google.protobuf.ByteString.EMPTY) {
setTxid(other.getTxid());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTransactionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
txid_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.tron.trident.proto.Chain.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder> transactionBuilder_;
/**
* .protocol.Transaction transaction = 1;
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.Transaction transaction = 1;
* @return The transaction.
*/
public org.tron.trident.proto.Chain.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
} else {
transactionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder setTransaction(
org.tron.trident.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder mergeTransaction(org.tron.trident.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
transaction_ != null &&
transaction_ != org.tron.trident.proto.Chain.Transaction.getDefaultInstance()) {
getTransactionBuilder().mergeFrom(value);
} else {
transaction_ = value;
}
} else {
transactionBuilder_.mergeFrom(value);
}
if (transaction_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public Builder clearTransaction() {
bitField0_ = (bitField0_ & ~0x00000001);
transaction_ = null;
if (transactionBuilder_ != null) {
transactionBuilder_.dispose();
transactionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.Transaction.Builder getTransactionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* .protocol.Transaction transaction = 1;
*/
public org.tron.trident.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.tron.trident.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* .protocol.Transaction transaction = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Chain.Transaction, org.tron.trident.proto.Chain.Transaction.Builder, org.tron.trident.proto.Chain.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
private org.tron.trident.proto.Response.TransactionReturn result_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder> resultBuilder_;
/**
* .protocol.TransactionReturn result = 2;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .protocol.TransactionReturn result = 2;
* @return The result.
*/
public org.tron.trident.proto.Response.TransactionReturn getResult() {
if (resultBuilder_ == null) {
return result_ == null ? org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .protocol.TransactionReturn result = 2;
*/
public Builder setResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 2;
*/
public Builder setResult(
org.tron.trident.proto.Response.TransactionReturn.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 2;
*/
public Builder mergeResult(org.tron.trident.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
result_ != null &&
result_ != org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance()) {
getResultBuilder().mergeFrom(value);
} else {
result_ = value;
}
} else {
resultBuilder_.mergeFrom(value);
}
if (result_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .protocol.TransactionReturn result = 2;
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000002);
result_ = null;
if (resultBuilder_ != null) {
resultBuilder_.dispose();
resultBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.TransactionReturn result = 2;
*/
public org.tron.trident.proto.Response.TransactionReturn.Builder getResultBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .protocol.TransactionReturn result = 2;
*/
public org.tron.trident.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
org.tron.trident.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
}
/**
* .protocol.TransactionReturn result = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.TransactionReturn, org.tron.trident.proto.Response.TransactionReturn.Builder, org.tron.trident.proto.Response.TransactionReturnOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
private com.google.protobuf.ByteString txid_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @return The txid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTxid() {
return txid_;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @param value The txid to set.
* @return This builder for chaining.
*/
public Builder setTxid(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
txid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @return This builder for chaining.
*/
public Builder clearTxid() {
bitField0_ = (bitField0_ & ~0x00000004);
txid_ = getDefaultInstance().getTxid();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.EasyTransferResponse)
}
// @@protoc_insertion_point(class_scope:protocol.EasyTransferResponse)
private static final org.tron.trident.proto.Response.EasyTransferResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.EasyTransferResponse();
}
public static org.tron.trident.proto.Response.EasyTransferResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EasyTransferResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.EasyTransferResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SmartContractDataWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SmartContractDataWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.SmartContract smart_contract = 1;
* @return Whether the smartContract field is set.
*/
boolean hasSmartContract();
/**
* .protocol.SmartContract smart_contract = 1;
* @return The smartContract.
*/
org.tron.trident.proto.Common.SmartContract getSmartContract();
/**
* .protocol.SmartContract smart_contract = 1;
*/
org.tron.trident.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder();
/**
* bytes runtime_code = 2;
* @return The runtimeCode.
*/
com.google.protobuf.ByteString getRuntimeCode();
}
/**
* Protobuf type {@code protocol.SmartContractDataWrapper}
*/
public static final class SmartContractDataWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SmartContractDataWrapper)
SmartContractDataWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use SmartContractDataWrapper.newBuilder() to construct.
private SmartContractDataWrapper(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SmartContractDataWrapper() {
runtimeCode_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SmartContractDataWrapper();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.SmartContractDataWrapper.class, org.tron.trident.proto.Response.SmartContractDataWrapper.Builder.class);
}
private int bitField0_;
public static final int SMART_CONTRACT_FIELD_NUMBER = 1;
private org.tron.trident.proto.Common.SmartContract smartContract_;
/**
* .protocol.SmartContract smart_contract = 1;
* @return Whether the smartContract field is set.
*/
@java.lang.Override
public boolean hasSmartContract() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.SmartContract smart_contract = 1;
* @return The smartContract.
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract getSmartContract() {
return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() {
return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
}
public static final int RUNTIME_CODE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString runtimeCode_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes runtime_code = 2;
* @return The runtimeCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRuntimeCode() {
return runtimeCode_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSmartContract());
}
if (!runtimeCode_.isEmpty()) {
output.writeBytes(2, runtimeCode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSmartContract());
}
if (!runtimeCode_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, runtimeCode_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.SmartContractDataWrapper)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.SmartContractDataWrapper other = (org.tron.trident.proto.Response.SmartContractDataWrapper) obj;
if (hasSmartContract() != other.hasSmartContract()) return false;
if (hasSmartContract()) {
if (!getSmartContract()
.equals(other.getSmartContract())) return false;
}
if (!getRuntimeCode()
.equals(other.getRuntimeCode())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSmartContract()) {
hash = (37 * hash) + SMART_CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + getSmartContract().hashCode();
}
hash = (37 * hash) + RUNTIME_CODE_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeCode().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper 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 org.tron.trident.proto.Response.SmartContractDataWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper 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 org.tron.trident.proto.Response.SmartContractDataWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper 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(org.tron.trident.proto.Response.SmartContractDataWrapper 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 protocol.SmartContractDataWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SmartContractDataWrapper)
org.tron.trident.proto.Response.SmartContractDataWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.SmartContractDataWrapper.class, org.tron.trident.proto.Response.SmartContractDataWrapper.Builder.class);
}
// Construct using org.tron.trident.proto.Response.SmartContractDataWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSmartContractFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
smartContract_ = null;
if (smartContractBuilder_ != null) {
smartContractBuilder_.dispose();
smartContractBuilder_ = null;
}
runtimeCode_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() {
return org.tron.trident.proto.Response.SmartContractDataWrapper.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.SmartContractDataWrapper build() {
org.tron.trident.proto.Response.SmartContractDataWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.SmartContractDataWrapper buildPartial() {
org.tron.trident.proto.Response.SmartContractDataWrapper result = new org.tron.trident.proto.Response.SmartContractDataWrapper(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.SmartContractDataWrapper result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.smartContract_ = smartContractBuilder_ == null
? smartContract_
: smartContractBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.runtimeCode_ = runtimeCode_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.SmartContractDataWrapper) {
return mergeFrom((org.tron.trident.proto.Response.SmartContractDataWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.SmartContractDataWrapper other) {
if (other == org.tron.trident.proto.Response.SmartContractDataWrapper.getDefaultInstance()) return this;
if (other.hasSmartContract()) {
mergeSmartContract(other.getSmartContract());
}
if (other.getRuntimeCode() != com.google.protobuf.ByteString.EMPTY) {
setRuntimeCode(other.getRuntimeCode());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSmartContractFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
runtimeCode_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.tron.trident.proto.Common.SmartContract smartContract_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder> smartContractBuilder_;
/**
* .protocol.SmartContract smart_contract = 1;
* @return Whether the smartContract field is set.
*/
public boolean hasSmartContract() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.SmartContract smart_contract = 1;
* @return The smartContract.
*/
public org.tron.trident.proto.Common.SmartContract getSmartContract() {
if (smartContractBuilder_ == null) {
return smartContract_ == null ? org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
} else {
return smartContractBuilder_.getMessage();
}
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public Builder setSmartContract(org.tron.trident.proto.Common.SmartContract value) {
if (smartContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
smartContract_ = value;
} else {
smartContractBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public Builder setSmartContract(
org.tron.trident.proto.Common.SmartContract.Builder builderForValue) {
if (smartContractBuilder_ == null) {
smartContract_ = builderForValue.build();
} else {
smartContractBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public Builder mergeSmartContract(org.tron.trident.proto.Common.SmartContract value) {
if (smartContractBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
smartContract_ != null &&
smartContract_ != org.tron.trident.proto.Common.SmartContract.getDefaultInstance()) {
getSmartContractBuilder().mergeFrom(value);
} else {
smartContract_ = value;
}
} else {
smartContractBuilder_.mergeFrom(value);
}
if (smartContract_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public Builder clearSmartContract() {
bitField0_ = (bitField0_ & ~0x00000001);
smartContract_ = null;
if (smartContractBuilder_ != null) {
smartContractBuilder_.dispose();
smartContractBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public org.tron.trident.proto.Common.SmartContract.Builder getSmartContractBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSmartContractFieldBuilder().getBuilder();
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
public org.tron.trident.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() {
if (smartContractBuilder_ != null) {
return smartContractBuilder_.getMessageOrBuilder();
} else {
return smartContract_ == null ?
org.tron.trident.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
}
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder>
getSmartContractFieldBuilder() {
if (smartContractBuilder_ == null) {
smartContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract, org.tron.trident.proto.Common.SmartContract.Builder, org.tron.trident.proto.Common.SmartContractOrBuilder>(
getSmartContract(),
getParentForChildren(),
isClean());
smartContract_ = null;
}
return smartContractBuilder_;
}
private com.google.protobuf.ByteString runtimeCode_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes runtime_code = 2;
* @return The runtimeCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRuntimeCode() {
return runtimeCode_;
}
/**
* bytes runtime_code = 2;
* @param value The runtimeCode to set.
* @return This builder for chaining.
*/
public Builder setRuntimeCode(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
runtimeCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes runtime_code = 2;
* @return This builder for chaining.
*/
public Builder clearRuntimeCode() {
bitField0_ = (bitField0_ & ~0x00000002);
runtimeCode_ = getDefaultInstance().getRuntimeCode();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.SmartContractDataWrapper)
}
// @@protoc_insertion_point(class_scope:protocol.SmartContractDataWrapper)
private static final org.tron.trident.proto.Response.SmartContractDataWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.SmartContractDataWrapper();
}
public static org.tron.trident.proto.Response.SmartContractDataWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SmartContractDataWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InternalTransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.InternalTransaction)
com.google.protobuf.MessageOrBuilder {
/**
*
* internalTransaction identity, the root InternalTransaction hash
* should equals to root transaction id.
*
*
* bytes hash = 1;
* @return The hash.
*/
com.google.protobuf.ByteString getHash();
/**
*
* the one send trx (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return The callerAddress.
*/
com.google.protobuf.ByteString getCallerAddress();
/**
*
* the one recieve trx (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return The transferToAddress.
*/
com.google.protobuf.ByteString getTransferToAddress();
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
java.util.List
getCallValueInfoList();
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index);
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
int getCallValueInfoCount();
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
java.util.List extends org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList();
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder(
int index);
/**
* bytes note = 5;
* @return The note.
*/
com.google.protobuf.ByteString getNote();
/**
* bool rejected = 6;
* @return The rejected.
*/
boolean getRejected();
}
/**
* Protobuf type {@code protocol.InternalTransaction}
*/
public static final class InternalTransaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.InternalTransaction)
InternalTransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use InternalTransaction.newBuilder() to construct.
private InternalTransaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InternalTransaction() {
hash_ = com.google.protobuf.ByteString.EMPTY;
callerAddress_ = com.google.protobuf.ByteString.EMPTY;
transferToAddress_ = com.google.protobuf.ByteString.EMPTY;
callValueInfo_ = java.util.Collections.emptyList();
note_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InternalTransaction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.InternalTransaction.class, org.tron.trident.proto.Response.InternalTransaction.Builder.class);
}
public interface CallValueInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.InternalTransaction.CallValueInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* trx (TBD: or token) value
*
*
* int64 callValue = 1;
* @return The callValue.
*/
long getCallValue();
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The tokenId.
*/
java.lang.String getTokenId();
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The bytes for tokenId.
*/
com.google.protobuf.ByteString
getTokenIdBytes();
}
/**
* Protobuf type {@code protocol.InternalTransaction.CallValueInfo}
*/
public static final class CallValueInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.InternalTransaction.CallValueInfo)
CallValueInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CallValueInfo.newBuilder() to construct.
private CallValueInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CallValueInfo() {
tokenId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CallValueInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.class, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder.class);
}
public static final int CALLVALUE_FIELD_NUMBER = 1;
private long callValue_ = 0L;
/**
*
* trx (TBD: or token) value
*
*
* int64 callValue = 1;
* @return The callValue.
*/
@java.lang.Override
public long getCallValue() {
return callValue_;
}
public static final int TOKENID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object tokenId_ = "";
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The tokenId.
*/
@java.lang.Override
public java.lang.String getTokenId() {
java.lang.Object ref = tokenId_;
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();
tokenId_ = s;
return s;
}
}
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The bytes for tokenId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTokenIdBytes() {
java.lang.Object ref = tokenId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tokenId_ = 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 (callValue_ != 0L) {
output.writeInt64(1, callValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tokenId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (callValue_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, callValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tokenId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tokenId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.InternalTransaction.CallValueInfo)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo other = (org.tron.trident.proto.Response.InternalTransaction.CallValueInfo) obj;
if (getCallValue()
!= other.getCallValue()) return false;
if (!getTokenId()
.equals(other.getTokenId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CALLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCallValue());
hash = (37 * hash) + TOKENID_FIELD_NUMBER;
hash = (53 * hash) + getTokenId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo 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 org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo 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 org.tron.trident.proto.Response.InternalTransaction.CallValueInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo 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(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo 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 protocol.InternalTransaction.CallValueInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.InternalTransaction.CallValueInfo)
org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.class, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder.class);
}
// Construct using org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
callValue_ = 0L;
tokenId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() {
return org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo build() {
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo buildPartial() {
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result = new org.tron.trident.proto.Response.InternalTransaction.CallValueInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.callValue_ = callValue_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tokenId_ = tokenId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.InternalTransaction.CallValueInfo) {
return mergeFrom((org.tron.trident.proto.Response.InternalTransaction.CallValueInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo other) {
if (other == org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()) return this;
if (other.getCallValue() != 0L) {
setCallValue(other.getCallValue());
}
if (!other.getTokenId().isEmpty()) {
tokenId_ = other.tokenId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
callValue_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tokenId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long callValue_ ;
/**
*
* trx (TBD: or token) value
*
*
* int64 callValue = 1;
* @return The callValue.
*/
@java.lang.Override
public long getCallValue() {
return callValue_;
}
/**
*
* trx (TBD: or token) value
*
*
* int64 callValue = 1;
* @param value The callValue to set.
* @return This builder for chaining.
*/
public Builder setCallValue(long value) {
callValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* trx (TBD: or token) value
*
*
* int64 callValue = 1;
* @return This builder for chaining.
*/
public Builder clearCallValue() {
bitField0_ = (bitField0_ & ~0x00000001);
callValue_ = 0L;
onChanged();
return this;
}
private java.lang.Object tokenId_ = "";
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The tokenId.
*/
public java.lang.String getTokenId() {
java.lang.Object ref = tokenId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tokenId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return The bytes for tokenId.
*/
public com.google.protobuf.ByteString
getTokenIdBytes() {
java.lang.Object ref = tokenId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tokenId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @param value The tokenId to set.
* @return This builder for chaining.
*/
public Builder setTokenId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
tokenId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @return This builder for chaining.
*/
public Builder clearTokenId() {
tokenId_ = getDefaultInstance().getTokenId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* TBD: tokenName, trx should be empty
*
*
* string tokenId = 2;
* @param value The bytes for tokenId to set.
* @return This builder for chaining.
*/
public Builder setTokenIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
tokenId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.InternalTransaction.CallValueInfo)
}
// @@protoc_insertion_point(class_scope:protocol.InternalTransaction.CallValueInfo)
private static final org.tron.trident.proto.Response.InternalTransaction.CallValueInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.InternalTransaction.CallValueInfo();
}
public static org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CallValueInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* internalTransaction identity, the root InternalTransaction hash
* should equals to root transaction id.
*
*
* bytes hash = 1;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
public static final int CALLER_ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one send trx (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return The callerAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCallerAddress() {
return callerAddress_;
}
public static final int TRANSFERTO_ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString transferToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one recieve trx (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return The transferToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransferToAddress() {
return transferToAddress_;
}
public static final int CALLVALUEINFO_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List callValueInfo_;
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
@java.lang.Override
public java.util.List getCallValueInfoList() {
return callValueInfo_;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList() {
return callValueInfo_;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
@java.lang.Override
public int getCallValueInfoCount() {
return callValueInfo_.size();
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) {
return callValueInfo_.get(index);
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder(
int index) {
return callValueInfo_.get(index);
}
public static final int NOTE_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes note = 5;
* @return The note.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNote() {
return note_;
}
public static final int REJECTED_FIELD_NUMBER = 6;
private boolean rejected_ = false;
/**
* bool rejected = 6;
* @return The rejected.
*/
@java.lang.Override
public boolean getRejected() {
return rejected_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!hash_.isEmpty()) {
output.writeBytes(1, hash_);
}
if (!callerAddress_.isEmpty()) {
output.writeBytes(2, callerAddress_);
}
if (!transferToAddress_.isEmpty()) {
output.writeBytes(3, transferToAddress_);
}
for (int i = 0; i < callValueInfo_.size(); i++) {
output.writeMessage(4, callValueInfo_.get(i));
}
if (!note_.isEmpty()) {
output.writeBytes(5, note_);
}
if (rejected_ != false) {
output.writeBool(6, rejected_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
if (!callerAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, callerAddress_);
}
if (!transferToAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, transferToAddress_);
}
for (int i = 0; i < callValueInfo_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, callValueInfo_.get(i));
}
if (!note_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, note_);
}
if (rejected_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, rejected_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.InternalTransaction)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.InternalTransaction other = (org.tron.trident.proto.Response.InternalTransaction) obj;
if (!getHash()
.equals(other.getHash())) return false;
if (!getCallerAddress()
.equals(other.getCallerAddress())) return false;
if (!getTransferToAddress()
.equals(other.getTransferToAddress())) return false;
if (!getCallValueInfoList()
.equals(other.getCallValueInfoList())) return false;
if (!getNote()
.equals(other.getNote())) return false;
if (getRejected()
!= other.getRejected()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + CALLER_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getCallerAddress().hashCode();
hash = (37 * hash) + TRANSFERTO_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTransferToAddress().hashCode();
if (getCallValueInfoCount() > 0) {
hash = (37 * hash) + CALLVALUEINFO_FIELD_NUMBER;
hash = (53 * hash) + getCallValueInfoList().hashCode();
}
hash = (37 * hash) + NOTE_FIELD_NUMBER;
hash = (53 * hash) + getNote().hashCode();
hash = (37 * hash) + REJECTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRejected());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.InternalTransaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction 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 org.tron.trident.proto.Response.InternalTransaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction 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 org.tron.trident.proto.Response.InternalTransaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.InternalTransaction 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(org.tron.trident.proto.Response.InternalTransaction 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 protocol.InternalTransaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.InternalTransaction)
org.tron.trident.proto.Response.InternalTransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.InternalTransaction.class, org.tron.trident.proto.Response.InternalTransaction.Builder.class);
}
// Construct using org.tron.trident.proto.Response.InternalTransaction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hash_ = com.google.protobuf.ByteString.EMPTY;
callerAddress_ = com.google.protobuf.ByteString.EMPTY;
transferToAddress_ = com.google.protobuf.ByteString.EMPTY;
if (callValueInfoBuilder_ == null) {
callValueInfo_ = java.util.Collections.emptyList();
} else {
callValueInfo_ = null;
callValueInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
note_ = com.google.protobuf.ByteString.EMPTY;
rejected_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction getDefaultInstanceForType() {
return org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction build() {
org.tron.trident.proto.Response.InternalTransaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction buildPartial() {
org.tron.trident.proto.Response.InternalTransaction result = new org.tron.trident.proto.Response.InternalTransaction(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.InternalTransaction result) {
if (callValueInfoBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.callValueInfo_ = callValueInfo_;
} else {
result.callValueInfo_ = callValueInfoBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.InternalTransaction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hash_ = hash_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.callerAddress_ = callerAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transferToAddress_ = transferToAddress_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.note_ = note_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.rejected_ = rejected_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.InternalTransaction) {
return mergeFrom((org.tron.trident.proto.Response.InternalTransaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.InternalTransaction other) {
if (other == org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
if (other.getCallerAddress() != com.google.protobuf.ByteString.EMPTY) {
setCallerAddress(other.getCallerAddress());
}
if (other.getTransferToAddress() != com.google.protobuf.ByteString.EMPTY) {
setTransferToAddress(other.getTransferToAddress());
}
if (callValueInfoBuilder_ == null) {
if (!other.callValueInfo_.isEmpty()) {
if (callValueInfo_.isEmpty()) {
callValueInfo_ = other.callValueInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCallValueInfoIsMutable();
callValueInfo_.addAll(other.callValueInfo_);
}
onChanged();
}
} else {
if (!other.callValueInfo_.isEmpty()) {
if (callValueInfoBuilder_.isEmpty()) {
callValueInfoBuilder_.dispose();
callValueInfoBuilder_ = null;
callValueInfo_ = other.callValueInfo_;
bitField0_ = (bitField0_ & ~0x00000008);
callValueInfoBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCallValueInfoFieldBuilder() : null;
} else {
callValueInfoBuilder_.addAllMessages(other.callValueInfo_);
}
}
}
if (other.getNote() != com.google.protobuf.ByteString.EMPTY) {
setNote(other.getNote());
}
if (other.getRejected() != false) {
setRejected(other.getRejected());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
hash_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
callerAddress_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
transferToAddress_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo m =
input.readMessage(
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.parser(),
extensionRegistry);
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.add(m);
} else {
callValueInfoBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
note_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
rejected_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* internalTransaction identity, the root InternalTransaction hash
* should equals to root transaction id.
*
*
* bytes hash = 1;
* @return The hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHash() {
return hash_;
}
/**
*
* internalTransaction identity, the root InternalTransaction hash
* should equals to root transaction id.
*
*
* bytes hash = 1;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
hash_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* internalTransaction identity, the root InternalTransaction hash
* should equals to root transaction id.
*
*
* bytes hash = 1;
* @return This builder for chaining.
*/
public Builder clearHash() {
bitField0_ = (bitField0_ & ~0x00000001);
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one send trx (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return The callerAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCallerAddress() {
return callerAddress_;
}
/**
*
* the one send trx (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @param value The callerAddress to set.
* @return This builder for chaining.
*/
public Builder setCallerAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
callerAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the one send trx (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return This builder for chaining.
*/
public Builder clearCallerAddress() {
bitField0_ = (bitField0_ & ~0x00000002);
callerAddress_ = getDefaultInstance().getCallerAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString transferToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one recieve trx (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return The transferToAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTransferToAddress() {
return transferToAddress_;
}
/**
*
* the one recieve trx (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @param value The transferToAddress to set.
* @return This builder for chaining.
*/
public Builder setTransferToAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
transferToAddress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the one recieve trx (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return This builder for chaining.
*/
public Builder clearTransferToAddress() {
bitField0_ = (bitField0_ & ~0x00000004);
transferToAddress_ = getDefaultInstance().getTransferToAddress();
onChanged();
return this;
}
private java.util.List callValueInfo_ =
java.util.Collections.emptyList();
private void ensureCallValueInfoIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
callValueInfo_ = new java.util.ArrayList(callValueInfo_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder> callValueInfoBuilder_;
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public java.util.List getCallValueInfoList() {
if (callValueInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(callValueInfo_);
} else {
return callValueInfoBuilder_.getMessageList();
}
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public int getCallValueInfoCount() {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.size();
} else {
return callValueInfoBuilder_.getCount();
}
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.get(index);
} else {
return callValueInfoBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder setCallValueInfo(
int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo value) {
if (callValueInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallValueInfoIsMutable();
callValueInfo_.set(index, value);
onChanged();
} else {
callValueInfoBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder setCallValueInfo(
int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.set(index, builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder addCallValueInfo(org.tron.trident.proto.Response.InternalTransaction.CallValueInfo value) {
if (callValueInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallValueInfoIsMutable();
callValueInfo_.add(value);
onChanged();
} else {
callValueInfoBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder addCallValueInfo(
int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo value) {
if (callValueInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallValueInfoIsMutable();
callValueInfo_.add(index, value);
onChanged();
} else {
callValueInfoBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder addCallValueInfo(
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.add(builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder addCallValueInfo(
int index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.add(index, builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder addAllCallValueInfo(
java.lang.Iterable extends org.tron.trident.proto.Response.InternalTransaction.CallValueInfo> values) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, callValueInfo_);
onChanged();
} else {
callValueInfoBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder clearCallValueInfo() {
if (callValueInfoBuilder_ == null) {
callValueInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
callValueInfoBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public Builder removeCallValueInfo(int index) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.remove(index);
onChanged();
} else {
callValueInfoBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder getCallValueInfoBuilder(
int index) {
return getCallValueInfoFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder(
int index) {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.get(index); } else {
return callValueInfoBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public java.util.List extends org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList() {
if (callValueInfoBuilder_ != null) {
return callValueInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callValueInfo_);
}
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder() {
return getCallValueInfoFieldBuilder().addBuilder(
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance());
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder(
int index) {
return getCallValueInfoFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance());
}
/**
* repeated .protocol.InternalTransaction.CallValueInfo callValueInfo = 4;
*/
public java.util.List
getCallValueInfoBuilderList() {
return getCallValueInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoFieldBuilder() {
if (callValueInfoBuilder_ == null) {
callValueInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction.CallValueInfo, org.tron.trident.proto.Response.InternalTransaction.CallValueInfo.Builder, org.tron.trident.proto.Response.InternalTransaction.CallValueInfoOrBuilder>(
callValueInfo_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
callValueInfo_ = null;
}
return callValueInfoBuilder_;
}
private com.google.protobuf.ByteString note_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes note = 5;
* @return The note.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNote() {
return note_;
}
/**
* bytes note = 5;
* @param value The note to set.
* @return This builder for chaining.
*/
public Builder setNote(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
note_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bytes note = 5;
* @return This builder for chaining.
*/
public Builder clearNote() {
bitField0_ = (bitField0_ & ~0x00000010);
note_ = getDefaultInstance().getNote();
onChanged();
return this;
}
private boolean rejected_ ;
/**
* bool rejected = 6;
* @return The rejected.
*/
@java.lang.Override
public boolean getRejected() {
return rejected_;
}
/**
* bool rejected = 6;
* @param value The rejected to set.
* @return This builder for chaining.
*/
public Builder setRejected(boolean value) {
rejected_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool rejected = 6;
* @return This builder for chaining.
*/
public Builder clearRejected() {
bitField0_ = (bitField0_ & ~0x00000020);
rejected_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.InternalTransaction)
}
// @@protoc_insertion_point(class_scope:protocol.InternalTransaction)
private static final org.tron.trident.proto.Response.InternalTransaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.InternalTransaction();
}
public static org.tron.trident.proto.Response.InternalTransaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InternalTransaction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceReceiptOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ResourceReceipt)
com.google.protobuf.MessageOrBuilder {
/**
* int64 energy_usage = 1;
* @return The energyUsage.
*/
long getEnergyUsage();
/**
* int64 energy_fee = 2;
* @return The energyFee.
*/
long getEnergyFee();
/**
* int64 origin_energy_usage = 3;
* @return The originEnergyUsage.
*/
long getOriginEnergyUsage();
/**
* int64 energy_usage_total = 4;
* @return The energyUsageTotal.
*/
long getEnergyUsageTotal();
/**
* int64 net_usage = 5;
* @return The netUsage.
*/
long getNetUsage();
/**
* int64 net_fee = 6;
* @return The netFee.
*/
long getNetFee();
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The result.
*/
org.tron.trident.proto.Chain.Transaction.Result.contractResult getResult();
}
/**
* Protobuf type {@code protocol.ResourceReceipt}
*/
public static final class ResourceReceipt extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.ResourceReceipt)
ResourceReceiptOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceReceipt.newBuilder() to construct.
private ResourceReceipt(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceReceipt() {
result_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResourceReceipt();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ResourceReceipt.class, org.tron.trident.proto.Response.ResourceReceipt.Builder.class);
}
public static final int ENERGY_USAGE_FIELD_NUMBER = 1;
private long energyUsage_ = 0L;
/**
* int64 energy_usage = 1;
* @return The energyUsage.
*/
@java.lang.Override
public long getEnergyUsage() {
return energyUsage_;
}
public static final int ENERGY_FEE_FIELD_NUMBER = 2;
private long energyFee_ = 0L;
/**
* int64 energy_fee = 2;
* @return The energyFee.
*/
@java.lang.Override
public long getEnergyFee() {
return energyFee_;
}
public static final int ORIGIN_ENERGY_USAGE_FIELD_NUMBER = 3;
private long originEnergyUsage_ = 0L;
/**
* int64 origin_energy_usage = 3;
* @return The originEnergyUsage.
*/
@java.lang.Override
public long getOriginEnergyUsage() {
return originEnergyUsage_;
}
public static final int ENERGY_USAGE_TOTAL_FIELD_NUMBER = 4;
private long energyUsageTotal_ = 0L;
/**
* int64 energy_usage_total = 4;
* @return The energyUsageTotal.
*/
@java.lang.Override
public long getEnergyUsageTotal() {
return energyUsageTotal_;
}
public static final int NET_USAGE_FIELD_NUMBER = 5;
private long netUsage_ = 0L;
/**
* int64 net_usage = 5;
* @return The netUsage.
*/
@java.lang.Override
public long getNetUsage() {
return netUsage_;
}
public static final int NET_FEE_FIELD_NUMBER = 6;
private long netFee_ = 0L;
/**
* int64 net_fee = 6;
* @return The netFee.
*/
@java.lang.Override
public long getNetFee() {
return netFee_;
}
public static final int RESULT_FIELD_NUMBER = 7;
private int result_ = 0;
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The result.
*/
@java.lang.Override public org.tron.trident.proto.Chain.Transaction.Result.contractResult getResult() {
org.tron.trident.proto.Chain.Transaction.Result.contractResult result = org.tron.trident.proto.Chain.Transaction.Result.contractResult.forNumber(result_);
return result == null ? org.tron.trident.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (energyUsage_ != 0L) {
output.writeInt64(1, energyUsage_);
}
if (energyFee_ != 0L) {
output.writeInt64(2, energyFee_);
}
if (originEnergyUsage_ != 0L) {
output.writeInt64(3, originEnergyUsage_);
}
if (energyUsageTotal_ != 0L) {
output.writeInt64(4, energyUsageTotal_);
}
if (netUsage_ != 0L) {
output.writeInt64(5, netUsage_);
}
if (netFee_ != 0L) {
output.writeInt64(6, netFee_);
}
if (result_ != org.tron.trident.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) {
output.writeEnum(7, result_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (energyUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, energyUsage_);
}
if (energyFee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, energyFee_);
}
if (originEnergyUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, originEnergyUsage_);
}
if (energyUsageTotal_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, energyUsageTotal_);
}
if (netUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, netUsage_);
}
if (netFee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, netFee_);
}
if (result_ != org.tron.trident.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, result_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.ResourceReceipt)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.ResourceReceipt other = (org.tron.trident.proto.Response.ResourceReceipt) obj;
if (getEnergyUsage()
!= other.getEnergyUsage()) return false;
if (getEnergyFee()
!= other.getEnergyFee()) return false;
if (getOriginEnergyUsage()
!= other.getOriginEnergyUsage()) return false;
if (getEnergyUsageTotal()
!= other.getEnergyUsageTotal()) return false;
if (getNetUsage()
!= other.getNetUsage()) return false;
if (getNetFee()
!= other.getNetFee()) return false;
if (result_ != other.result_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENERGY_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnergyUsage());
hash = (37 * hash) + ENERGY_FEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnergyFee());
hash = (37 * hash) + ORIGIN_ENERGY_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOriginEnergyUsage());
hash = (37 * hash) + ENERGY_USAGE_TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEnergyUsageTotal());
hash = (37 * hash) + NET_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNetUsage());
hash = (37 * hash) + NET_FEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNetFee());
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.ResourceReceipt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ResourceReceipt 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 org.tron.trident.proto.Response.ResourceReceipt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ResourceReceipt 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 org.tron.trident.proto.Response.ResourceReceipt parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.ResourceReceipt 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(org.tron.trident.proto.Response.ResourceReceipt 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 protocol.ResourceReceipt}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.ResourceReceipt)
org.tron.trident.proto.Response.ResourceReceiptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.ResourceReceipt.class, org.tron.trident.proto.Response.ResourceReceipt.Builder.class);
}
// Construct using org.tron.trident.proto.Response.ResourceReceipt.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
energyUsage_ = 0L;
energyFee_ = 0L;
originEnergyUsage_ = 0L;
energyUsageTotal_ = 0L;
netUsage_ = 0L;
netFee_ = 0L;
result_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceipt getDefaultInstanceForType() {
return org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceipt build() {
org.tron.trident.proto.Response.ResourceReceipt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceipt buildPartial() {
org.tron.trident.proto.Response.ResourceReceipt result = new org.tron.trident.proto.Response.ResourceReceipt(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.ResourceReceipt result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.energyUsage_ = energyUsage_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.energyFee_ = energyFee_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.originEnergyUsage_ = originEnergyUsage_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.energyUsageTotal_ = energyUsageTotal_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.netUsage_ = netUsage_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.netFee_ = netFee_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.result_ = result_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.ResourceReceipt) {
return mergeFrom((org.tron.trident.proto.Response.ResourceReceipt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.ResourceReceipt other) {
if (other == org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance()) return this;
if (other.getEnergyUsage() != 0L) {
setEnergyUsage(other.getEnergyUsage());
}
if (other.getEnergyFee() != 0L) {
setEnergyFee(other.getEnergyFee());
}
if (other.getOriginEnergyUsage() != 0L) {
setOriginEnergyUsage(other.getOriginEnergyUsage());
}
if (other.getEnergyUsageTotal() != 0L) {
setEnergyUsageTotal(other.getEnergyUsageTotal());
}
if (other.getNetUsage() != 0L) {
setNetUsage(other.getNetUsage());
}
if (other.getNetFee() != 0L) {
setNetFee(other.getNetFee());
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
energyUsage_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
energyFee_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
originEnergyUsage_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
energyUsageTotal_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
netUsage_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
netFee_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
result_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long energyUsage_ ;
/**
* int64 energy_usage = 1;
* @return The energyUsage.
*/
@java.lang.Override
public long getEnergyUsage() {
return energyUsage_;
}
/**
* int64 energy_usage = 1;
* @param value The energyUsage to set.
* @return This builder for chaining.
*/
public Builder setEnergyUsage(long value) {
energyUsage_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 energy_usage = 1;
* @return This builder for chaining.
*/
public Builder clearEnergyUsage() {
bitField0_ = (bitField0_ & ~0x00000001);
energyUsage_ = 0L;
onChanged();
return this;
}
private long energyFee_ ;
/**
* int64 energy_fee = 2;
* @return The energyFee.
*/
@java.lang.Override
public long getEnergyFee() {
return energyFee_;
}
/**
* int64 energy_fee = 2;
* @param value The energyFee to set.
* @return This builder for chaining.
*/
public Builder setEnergyFee(long value) {
energyFee_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 energy_fee = 2;
* @return This builder for chaining.
*/
public Builder clearEnergyFee() {
bitField0_ = (bitField0_ & ~0x00000002);
energyFee_ = 0L;
onChanged();
return this;
}
private long originEnergyUsage_ ;
/**
* int64 origin_energy_usage = 3;
* @return The originEnergyUsage.
*/
@java.lang.Override
public long getOriginEnergyUsage() {
return originEnergyUsage_;
}
/**
* int64 origin_energy_usage = 3;
* @param value The originEnergyUsage to set.
* @return This builder for chaining.
*/
public Builder setOriginEnergyUsage(long value) {
originEnergyUsage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 origin_energy_usage = 3;
* @return This builder for chaining.
*/
public Builder clearOriginEnergyUsage() {
bitField0_ = (bitField0_ & ~0x00000004);
originEnergyUsage_ = 0L;
onChanged();
return this;
}
private long energyUsageTotal_ ;
/**
* int64 energy_usage_total = 4;
* @return The energyUsageTotal.
*/
@java.lang.Override
public long getEnergyUsageTotal() {
return energyUsageTotal_;
}
/**
* int64 energy_usage_total = 4;
* @param value The energyUsageTotal to set.
* @return This builder for chaining.
*/
public Builder setEnergyUsageTotal(long value) {
energyUsageTotal_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 energy_usage_total = 4;
* @return This builder for chaining.
*/
public Builder clearEnergyUsageTotal() {
bitField0_ = (bitField0_ & ~0x00000008);
energyUsageTotal_ = 0L;
onChanged();
return this;
}
private long netUsage_ ;
/**
* int64 net_usage = 5;
* @return The netUsage.
*/
@java.lang.Override
public long getNetUsage() {
return netUsage_;
}
/**
* int64 net_usage = 5;
* @param value The netUsage to set.
* @return This builder for chaining.
*/
public Builder setNetUsage(long value) {
netUsage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 net_usage = 5;
* @return This builder for chaining.
*/
public Builder clearNetUsage() {
bitField0_ = (bitField0_ & ~0x00000010);
netUsage_ = 0L;
onChanged();
return this;
}
private long netFee_ ;
/**
* int64 net_fee = 6;
* @return The netFee.
*/
@java.lang.Override
public long getNetFee() {
return netFee_;
}
/**
* int64 net_fee = 6;
* @param value The netFee to set.
* @return This builder for chaining.
*/
public Builder setNetFee(long value) {
netFee_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 net_fee = 6;
* @return This builder for chaining.
*/
public Builder clearNetFee() {
bitField0_ = (bitField0_ & ~0x00000020);
netFee_ = 0L;
onChanged();
return this;
}
private int result_ = 0;
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The result.
*/
@java.lang.Override
public org.tron.trident.proto.Chain.Transaction.Result.contractResult getResult() {
org.tron.trident.proto.Chain.Transaction.Result.contractResult result = org.tron.trident.proto.Chain.Transaction.Result.contractResult.forNumber(result_);
return result == null ? org.tron.trident.proto.Chain.Transaction.Result.contractResult.UNRECOGNIZED : result;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(org.tron.trident.proto.Chain.Transaction.Result.contractResult value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000040);
result_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.ResourceReceipt)
}
// @@protoc_insertion_point(class_scope:protocol.ResourceReceipt)
private static final org.tron.trident.proto.Response.ResourceReceipt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.ResourceReceipt();
}
public static org.tron.trident.proto.Response.ResourceReceipt getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResourceReceipt parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceipt getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes id = 1;
* @return The id.
*/
com.google.protobuf.ByteString getId();
/**
* int64 fee = 2;
* @return The fee.
*/
long getFee();
/**
* int64 blockNumber = 3;
* @return The blockNumber.
*/
long getBlockNumber();
/**
* int64 blockTimeStamp = 4;
* @return The blockTimeStamp.
*/
long getBlockTimeStamp();
/**
* repeated bytes contractResult = 5;
* @return A list containing the contractResult.
*/
java.util.List getContractResultList();
/**
* repeated bytes contractResult = 5;
* @return The count of contractResult.
*/
int getContractResultCount();
/**
* repeated bytes contractResult = 5;
* @param index The index of the element to return.
* @return The contractResult at the given index.
*/
com.google.protobuf.ByteString getContractResult(int index);
/**
* bytes contract_address = 6;
* @return The contractAddress.
*/
com.google.protobuf.ByteString getContractAddress();
/**
* .protocol.ResourceReceipt receipt = 7;
* @return Whether the receipt field is set.
*/
boolean hasReceipt();
/**
* .protocol.ResourceReceipt receipt = 7;
* @return The receipt.
*/
org.tron.trident.proto.Response.ResourceReceipt getReceipt();
/**
* .protocol.ResourceReceipt receipt = 7;
*/
org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder();
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
java.util.List
getLogList();
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index);
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
int getLogCount();
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
java.util.List extends org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList();
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder(
int index);
/**
* .protocol.TransactionInfo.code result = 9;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .protocol.TransactionInfo.code result = 9;
* @return The result.
*/
org.tron.trident.proto.Response.TransactionInfo.code getResult();
/**
* bytes resMessage = 10;
* @return The resMessage.
*/
com.google.protobuf.ByteString getResMessage();
/**
* string assetIssueID = 14;
* @return The assetIssueID.
*/
java.lang.String getAssetIssueID();
/**
* string assetIssueID = 14;
* @return The bytes for assetIssueID.
*/
com.google.protobuf.ByteString
getAssetIssueIDBytes();
/**
* int64 withdraw_amount = 15;
* @return The withdrawAmount.
*/
long getWithdrawAmount();
/**
* int64 unfreeze_amount = 16;
* @return The unfreezeAmount.
*/
long getUnfreezeAmount();
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
java.util.List
getInternalTransactionsList();
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index);
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
int getInternalTransactionsCount();
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
java.util.List extends org.tron.trident.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList();
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
org.tron.trident.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder(
int index);
/**
* int64 exchange_received_amount = 18;
* @return The exchangeReceivedAmount.
*/
long getExchangeReceivedAmount();
/**
* int64 exchange_inject_another_amount = 19;
* @return The exchangeInjectAnotherAmount.
*/
long getExchangeInjectAnotherAmount();
/**
* int64 exchange_withdraw_another_amount = 20;
* @return The exchangeWithdrawAnotherAmount.
*/
long getExchangeWithdrawAnotherAmount();
/**
* int64 exchange_id = 21;
* @return The exchangeId.
*/
long getExchangeId();
/**
* int64 shielded_transaction_fee = 22;
* @return The shieldedTransactionFee.
*/
long getShieldedTransactionFee();
/**
* bytes orderId = 25;
* @return The orderId.
*/
com.google.protobuf.ByteString getOrderId();
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
java.util.List
getOrderDetailsList();
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index);
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
int getOrderDetailsCount();
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
java.util.List extends org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList();
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index);
/**
* int64 withdraw_expire_amount = 28;
* @return The withdrawExpireAmount.
*/
long getWithdrawExpireAmount();
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
int getCancelUnfreezeV2AmountCount();
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
boolean containsCancelUnfreezeV2Amount(
java.lang.String key);
/**
* Use {@link #getCancelUnfreezeV2AmountMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getCancelUnfreezeV2Amount();
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
java.util.Map
getCancelUnfreezeV2AmountMap();
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
long getCancelUnfreezeV2AmountOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
long getCancelUnfreezeV2AmountOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code protocol.TransactionInfo}
*/
public static final class TransactionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.TransactionInfo)
TransactionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionInfo.newBuilder() to construct.
private TransactionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionInfo() {
id_ = com.google.protobuf.ByteString.EMPTY;
contractResult_ = emptyList(com.google.protobuf.ByteString.class);
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
log_ = java.util.Collections.emptyList();
result_ = 0;
resMessage_ = com.google.protobuf.ByteString.EMPTY;
assetIssueID_ = "";
internalTransactions_ = java.util.Collections.emptyList();
orderId_ = com.google.protobuf.ByteString.EMPTY;
orderDetails_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 29:
return internalGetCancelUnfreezeV2Amount();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionInfo.class, org.tron.trident.proto.Response.TransactionInfo.Builder.class);
}
/**
* Protobuf enum {@code protocol.TransactionInfo.code}
*/
public enum code
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCESS = 0;
*/
SUCESS(0),
/**
* FAILED = 1;
*/
FAILED(1),
UNRECOGNIZED(-1),
;
/**
* SUCESS = 0;
*/
public static final int SUCESS_VALUE = 0;
/**
* FAILED = 1;
*/
public static final int FAILED_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static code valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static code forNumber(int value) {
switch (value) {
case 0: return SUCESS;
case 1: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
code> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public code findValueByNumber(int number) {
return code.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.tron.trident.proto.Response.TransactionInfo.getDescriptor().getEnumTypes().get(0);
}
private static final code[] VALUES = values();
public static code valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private code(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.TransactionInfo.code)
}
public interface LogOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionInfo.Log)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* repeated bytes topics = 2;
* @return A list containing the topics.
*/
java.util.List getTopicsList();
/**
* repeated bytes topics = 2;
* @return The count of topics.
*/
int getTopicsCount();
/**
* repeated bytes topics = 2;
* @param index The index of the element to return.
* @return The topics at the given index.
*/
com.google.protobuf.ByteString getTopics(int index);
/**
* bytes data = 3;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code protocol.TransactionInfo.Log}
*/
public static final class Log extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.TransactionInfo.Log)
LogOrBuilder {
private static final long serialVersionUID = 0L;
// Use Log.newBuilder() to construct.
private Log(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Log() {
address_ = com.google.protobuf.ByteString.EMPTY;
topics_ = emptyList(com.google.protobuf.ByteString.class);
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Log();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionInfo.Log.class, org.tron.trident.proto.Response.TransactionInfo.Log.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int TOPICS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList topics_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes topics = 2;
* @return A list containing the topics.
*/
@java.lang.Override
public java.util.List
getTopicsList() {
return topics_;
}
/**
* repeated bytes topics = 2;
* @return The count of topics.
*/
public int getTopicsCount() {
return topics_.size();
}
/**
* repeated bytes topics = 2;
* @param index The index of the element to return.
* @return The topics at the given index.
*/
public com.google.protobuf.ByteString getTopics(int index) {
return topics_.get(index);
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
for (int i = 0; i < topics_.size(); i++) {
output.writeBytes(2, topics_.get(i));
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
{
int dataSize = 0;
for (int i = 0; i < topics_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(topics_.get(i));
}
size += dataSize;
size += 1 * getTopicsList().size();
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.TransactionInfo.Log)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.TransactionInfo.Log other = (org.tron.trident.proto.Response.TransactionInfo.Log) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getTopicsList()
.equals(other.getTopicsList())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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();
if (getTopicsCount() > 0) {
hash = (37 * hash) + TOPICS_FIELD_NUMBER;
hash = (53 * hash) + getTopicsList().hashCode();
}
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log 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 org.tron.trident.proto.Response.TransactionInfo.Log parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log 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 org.tron.trident.proto.Response.TransactionInfo.Log parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo.Log 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(org.tron.trident.proto.Response.TransactionInfo.Log 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 protocol.TransactionInfo.Log}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.TransactionInfo.Log)
org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionInfo.Log.class, org.tron.trident.proto.Response.TransactionInfo.Log.Builder.class);
}
// Construct using org.tron.trident.proto.Response.TransactionInfo.Log.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
topics_ = emptyList(com.google.protobuf.ByteString.class);
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.Log getDefaultInstanceForType() {
return org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.Log build() {
org.tron.trident.proto.Response.TransactionInfo.Log result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.Log buildPartial() {
org.tron.trident.proto.Response.TransactionInfo.Log result = new org.tron.trident.proto.Response.TransactionInfo.Log(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.TransactionInfo.Log result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
topics_.makeImmutable();
result.topics_ = topics_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.data_ = data_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.TransactionInfo.Log) {
return mergeFrom((org.tron.trident.proto.Response.TransactionInfo.Log)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.TransactionInfo.Log other) {
if (other == org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (!other.topics_.isEmpty()) {
if (topics_.isEmpty()) {
topics_ = other.topics_;
topics_.makeImmutable();
bitField0_ |= 0x00000002;
} else {
ensureTopicsIsMutable();
topics_.addAll(other.topics_);
}
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.protobuf.ByteString v = input.readBytes();
ensureTopicsIsMutable();
topics_.add(v);
break;
} // case 18
case 26: {
data_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList topics_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureTopicsIsMutable() {
if (!topics_.isModifiable()) {
topics_ = makeMutableCopy(topics_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated bytes topics = 2;
* @return A list containing the topics.
*/
public java.util.List
getTopicsList() {
topics_.makeImmutable();
return topics_;
}
/**
* repeated bytes topics = 2;
* @return The count of topics.
*/
public int getTopicsCount() {
return topics_.size();
}
/**
* repeated bytes topics = 2;
* @param index The index of the element to return.
* @return The topics at the given index.
*/
public com.google.protobuf.ByteString getTopics(int index) {
return topics_.get(index);
}
/**
* repeated bytes topics = 2;
* @param index The index to set the value at.
* @param value The topics to set.
* @return This builder for chaining.
*/
public Builder setTopics(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTopicsIsMutable();
topics_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated bytes topics = 2;
* @param value The topics to add.
* @return This builder for chaining.
*/
public Builder addTopics(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureTopicsIsMutable();
topics_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated bytes topics = 2;
* @param values The topics to add.
* @return This builder for chaining.
*/
public Builder addAllTopics(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureTopicsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topics_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated bytes topics = 2;
* @return This builder for chaining.
*/
public Builder clearTopics() {
topics_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* bytes data = 3;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
data_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes data = 3;
* @return This builder for chaining.
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.TransactionInfo.Log)
}
// @@protoc_insertion_point(class_scope:protocol.TransactionInfo.Log)
private static final org.tron.trident.proto.Response.TransactionInfo.Log DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionInfo.Log();
}
public static org.tron.trident.proto.Response.TransactionInfo.Log getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Log parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.Log getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
public static final int FEE_FIELD_NUMBER = 2;
private long fee_ = 0L;
/**
* int64 fee = 2;
* @return The fee.
*/
@java.lang.Override
public long getFee() {
return fee_;
}
public static final int BLOCKNUMBER_FIELD_NUMBER = 3;
private long blockNumber_ = 0L;
/**
* int64 blockNumber = 3;
* @return The blockNumber.
*/
@java.lang.Override
public long getBlockNumber() {
return blockNumber_;
}
public static final int BLOCKTIMESTAMP_FIELD_NUMBER = 4;
private long blockTimeStamp_ = 0L;
/**
* int64 blockTimeStamp = 4;
* @return The blockTimeStamp.
*/
@java.lang.Override
public long getBlockTimeStamp() {
return blockTimeStamp_;
}
public static final int CONTRACTRESULT_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList contractResult_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes contractResult = 5;
* @return A list containing the contractResult.
*/
@java.lang.Override
public java.util.List
getContractResultList() {
return contractResult_;
}
/**
* repeated bytes contractResult = 5;
* @return The count of contractResult.
*/
public int getContractResultCount() {
return contractResult_.size();
}
/**
* repeated bytes contractResult = 5;
* @param index The index of the element to return.
* @return The contractResult at the given index.
*/
public com.google.protobuf.ByteString getContractResult(int index) {
return contractResult_.get(index);
}
public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_address = 6;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
public static final int RECEIPT_FIELD_NUMBER = 7;
private org.tron.trident.proto.Response.ResourceReceipt receipt_;
/**
* .protocol.ResourceReceipt receipt = 7;
* @return Whether the receipt field is set.
*/
@java.lang.Override
public boolean hasReceipt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.ResourceReceipt receipt = 7;
* @return The receipt.
*/
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceipt getReceipt() {
return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
@java.lang.Override
public org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() {
return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
}
public static final int LOG_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private java.util.List log_;
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
@java.lang.Override
public java.util.List getLogList() {
return log_;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList() {
return log_;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
@java.lang.Override
public int getLogCount() {
return log_.size();
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index) {
return log_.get(index);
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder(
int index) {
return log_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 9;
private int result_ = 0;
/**
* .protocol.TransactionInfo.code result = 9;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @return The result.
*/
@java.lang.Override public org.tron.trident.proto.Response.TransactionInfo.code getResult() {
org.tron.trident.proto.Response.TransactionInfo.code result = org.tron.trident.proto.Response.TransactionInfo.code.forNumber(result_);
return result == null ? org.tron.trident.proto.Response.TransactionInfo.code.UNRECOGNIZED : result;
}
public static final int RESMESSAGE_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString resMessage_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes resMessage = 10;
* @return The resMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResMessage() {
return resMessage_;
}
public static final int ASSETISSUEID_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object assetIssueID_ = "";
/**
* string assetIssueID = 14;
* @return The assetIssueID.
*/
@java.lang.Override
public java.lang.String getAssetIssueID() {
java.lang.Object ref = assetIssueID_;
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();
assetIssueID_ = s;
return s;
}
}
/**
* string assetIssueID = 14;
* @return The bytes for assetIssueID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAssetIssueIDBytes() {
java.lang.Object ref = assetIssueID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetIssueID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WITHDRAW_AMOUNT_FIELD_NUMBER = 15;
private long withdrawAmount_ = 0L;
/**
* int64 withdraw_amount = 15;
* @return The withdrawAmount.
*/
@java.lang.Override
public long getWithdrawAmount() {
return withdrawAmount_;
}
public static final int UNFREEZE_AMOUNT_FIELD_NUMBER = 16;
private long unfreezeAmount_ = 0L;
/**
* int64 unfreeze_amount = 16;
* @return The unfreezeAmount.
*/
@java.lang.Override
public long getUnfreezeAmount() {
return unfreezeAmount_;
}
public static final int INTERNAL_TRANSACTIONS_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private java.util.List internalTransactions_;
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
@java.lang.Override
public java.util.List getInternalTransactionsList() {
return internalTransactions_;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList() {
return internalTransactions_;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
@java.lang.Override
public int getInternalTransactionsCount() {
return internalTransactions_.size();
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index) {
return internalTransactions_.get(index);
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
@java.lang.Override
public org.tron.trident.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder(
int index) {
return internalTransactions_.get(index);
}
public static final int EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER = 18;
private long exchangeReceivedAmount_ = 0L;
/**
* int64 exchange_received_amount = 18;
* @return The exchangeReceivedAmount.
*/
@java.lang.Override
public long getExchangeReceivedAmount() {
return exchangeReceivedAmount_;
}
public static final int EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER = 19;
private long exchangeInjectAnotherAmount_ = 0L;
/**
* int64 exchange_inject_another_amount = 19;
* @return The exchangeInjectAnotherAmount.
*/
@java.lang.Override
public long getExchangeInjectAnotherAmount() {
return exchangeInjectAnotherAmount_;
}
public static final int EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER = 20;
private long exchangeWithdrawAnotherAmount_ = 0L;
/**
* int64 exchange_withdraw_another_amount = 20;
* @return The exchangeWithdrawAnotherAmount.
*/
@java.lang.Override
public long getExchangeWithdrawAnotherAmount() {
return exchangeWithdrawAnotherAmount_;
}
public static final int EXCHANGE_ID_FIELD_NUMBER = 21;
private long exchangeId_ = 0L;
/**
* int64 exchange_id = 21;
* @return The exchangeId.
*/
@java.lang.Override
public long getExchangeId() {
return exchangeId_;
}
public static final int SHIELDED_TRANSACTION_FEE_FIELD_NUMBER = 22;
private long shieldedTransactionFee_ = 0L;
/**
* int64 shielded_transaction_fee = 22;
* @return The shieldedTransactionFee.
*/
@java.lang.Override
public long getShieldedTransactionFee() {
return shieldedTransactionFee_;
}
public static final int ORDERID_FIELD_NUMBER = 25;
private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes orderId = 25;
* @return The orderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOrderId() {
return orderId_;
}
public static final int ORDERDETAILS_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private java.util.List orderDetails_;
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
@java.lang.Override
public java.util.List getOrderDetailsList() {
return orderDetails_;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
@java.lang.Override
public java.util.List extends org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList() {
return orderDetails_;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
@java.lang.Override
public int getOrderDetailsCount() {
return orderDetails_.size();
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
@java.lang.Override
public org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index) {
return orderDetails_.get(index);
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
@java.lang.Override
public org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index) {
return orderDetails_.get(index);
}
public static final int WITHDRAW_EXPIRE_AMOUNT_FIELD_NUMBER = 28;
private long withdrawExpireAmount_ = 0L;
/**
* int64 withdraw_expire_amount = 28;
* @return The withdrawExpireAmount.
*/
@java.lang.Override
public long getWithdrawExpireAmount() {
return withdrawExpireAmount_;
}
public static final int CANCEL_UNFREEZEV2_AMOUNT_FIELD_NUMBER = 29;
private static final class CancelUnfreezeV2AmountDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Long> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_CancelUnfreezeV2AmountEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.INT64,
0L);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.Long> cancelUnfreezeV2Amount_;
private com.google.protobuf.MapField
internalGetCancelUnfreezeV2Amount() {
if (cancelUnfreezeV2Amount_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry);
}
return cancelUnfreezeV2Amount_;
}
public int getCancelUnfreezeV2AmountCount() {
return internalGetCancelUnfreezeV2Amount().getMap().size();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public boolean containsCancelUnfreezeV2Amount(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetCancelUnfreezeV2Amount().getMap().containsKey(key);
}
/**
* Use {@link #getCancelUnfreezeV2AmountMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCancelUnfreezeV2Amount() {
return getCancelUnfreezeV2AmountMap();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public java.util.Map getCancelUnfreezeV2AmountMap() {
return internalGetCancelUnfreezeV2Amount().getMap();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public long getCancelUnfreezeV2AmountOrDefault(
java.lang.String key,
long defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCancelUnfreezeV2Amount().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public long getCancelUnfreezeV2AmountOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCancelUnfreezeV2Amount().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (!id_.isEmpty()) {
output.writeBytes(1, id_);
}
if (fee_ != 0L) {
output.writeInt64(2, fee_);
}
if (blockNumber_ != 0L) {
output.writeInt64(3, blockNumber_);
}
if (blockTimeStamp_ != 0L) {
output.writeInt64(4, blockTimeStamp_);
}
for (int i = 0; i < contractResult_.size(); i++) {
output.writeBytes(5, contractResult_.get(i));
}
if (!contractAddress_.isEmpty()) {
output.writeBytes(6, contractAddress_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getReceipt());
}
for (int i = 0; i < log_.size(); i++) {
output.writeMessage(8, log_.get(i));
}
if (result_ != org.tron.trident.proto.Response.TransactionInfo.code.SUCESS.getNumber()) {
output.writeEnum(9, result_);
}
if (!resMessage_.isEmpty()) {
output.writeBytes(10, resMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetIssueID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, assetIssueID_);
}
if (withdrawAmount_ != 0L) {
output.writeInt64(15, withdrawAmount_);
}
if (unfreezeAmount_ != 0L) {
output.writeInt64(16, unfreezeAmount_);
}
for (int i = 0; i < internalTransactions_.size(); i++) {
output.writeMessage(17, internalTransactions_.get(i));
}
if (exchangeReceivedAmount_ != 0L) {
output.writeInt64(18, exchangeReceivedAmount_);
}
if (exchangeInjectAnotherAmount_ != 0L) {
output.writeInt64(19, exchangeInjectAnotherAmount_);
}
if (exchangeWithdrawAnotherAmount_ != 0L) {
output.writeInt64(20, exchangeWithdrawAnotherAmount_);
}
if (exchangeId_ != 0L) {
output.writeInt64(21, exchangeId_);
}
if (shieldedTransactionFee_ != 0L) {
output.writeInt64(22, shieldedTransactionFee_);
}
if (!orderId_.isEmpty()) {
output.writeBytes(25, orderId_);
}
for (int i = 0; i < orderDetails_.size(); i++) {
output.writeMessage(26, orderDetails_.get(i));
}
if (withdrawExpireAmount_ != 0L) {
output.writeInt64(28, withdrawExpireAmount_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetCancelUnfreezeV2Amount(),
CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry,
29);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!id_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, id_);
}
if (fee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, fee_);
}
if (blockNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, blockNumber_);
}
if (blockTimeStamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, blockTimeStamp_);
}
{
int dataSize = 0;
for (int i = 0; i < contractResult_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(contractResult_.get(i));
}
size += dataSize;
size += 1 * getContractResultList().size();
}
if (!contractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, contractAddress_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getReceipt());
}
for (int i = 0; i < log_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, log_.get(i));
}
if (result_ != org.tron.trident.proto.Response.TransactionInfo.code.SUCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, result_);
}
if (!resMessage_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, resMessage_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetIssueID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, assetIssueID_);
}
if (withdrawAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, withdrawAmount_);
}
if (unfreezeAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(16, unfreezeAmount_);
}
for (int i = 0; i < internalTransactions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, internalTransactions_.get(i));
}
if (exchangeReceivedAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(18, exchangeReceivedAmount_);
}
if (exchangeInjectAnotherAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(19, exchangeInjectAnotherAmount_);
}
if (exchangeWithdrawAnotherAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(20, exchangeWithdrawAnotherAmount_);
}
if (exchangeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, exchangeId_);
}
if (shieldedTransactionFee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(22, shieldedTransactionFee_);
}
if (!orderId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(25, orderId_);
}
for (int i = 0; i < orderDetails_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, orderDetails_.get(i));
}
if (withdrawExpireAmount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(28, withdrawExpireAmount_);
}
for (java.util.Map.Entry entry
: internalGetCancelUnfreezeV2Amount().getMap().entrySet()) {
com.google.protobuf.MapEntry
cancelUnfreezeV2Amount__ = CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, cancelUnfreezeV2Amount__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.TransactionInfo)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.TransactionInfo other = (org.tron.trident.proto.Response.TransactionInfo) obj;
if (!getId()
.equals(other.getId())) return false;
if (getFee()
!= other.getFee()) return false;
if (getBlockNumber()
!= other.getBlockNumber()) return false;
if (getBlockTimeStamp()
!= other.getBlockTimeStamp()) return false;
if (!getContractResultList()
.equals(other.getContractResultList())) return false;
if (!getContractAddress()
.equals(other.getContractAddress())) return false;
if (hasReceipt() != other.hasReceipt()) return false;
if (hasReceipt()) {
if (!getReceipt()
.equals(other.getReceipt())) return false;
}
if (!getLogList()
.equals(other.getLogList())) return false;
if (result_ != other.result_) return false;
if (!getResMessage()
.equals(other.getResMessage())) return false;
if (!getAssetIssueID()
.equals(other.getAssetIssueID())) return false;
if (getWithdrawAmount()
!= other.getWithdrawAmount()) return false;
if (getUnfreezeAmount()
!= other.getUnfreezeAmount()) return false;
if (!getInternalTransactionsList()
.equals(other.getInternalTransactionsList())) return false;
if (getExchangeReceivedAmount()
!= other.getExchangeReceivedAmount()) return false;
if (getExchangeInjectAnotherAmount()
!= other.getExchangeInjectAnotherAmount()) return false;
if (getExchangeWithdrawAnotherAmount()
!= other.getExchangeWithdrawAnotherAmount()) return false;
if (getExchangeId()
!= other.getExchangeId()) return false;
if (getShieldedTransactionFee()
!= other.getShieldedTransactionFee()) return false;
if (!getOrderId()
.equals(other.getOrderId())) return false;
if (!getOrderDetailsList()
.equals(other.getOrderDetailsList())) return false;
if (getWithdrawExpireAmount()
!= other.getWithdrawExpireAmount()) return false;
if (!internalGetCancelUnfreezeV2Amount().equals(
other.internalGetCancelUnfreezeV2Amount())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFee());
hash = (37 * hash) + BLOCKNUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockNumber());
hash = (37 * hash) + BLOCKTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockTimeStamp());
if (getContractResultCount() > 0) {
hash = (37 * hash) + CONTRACTRESULT_FIELD_NUMBER;
hash = (53 * hash) + getContractResultList().hashCode();
}
hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getContractAddress().hashCode();
if (hasReceipt()) {
hash = (37 * hash) + RECEIPT_FIELD_NUMBER;
hash = (53 * hash) + getReceipt().hashCode();
}
if (getLogCount() > 0) {
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLogList().hashCode();
}
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
hash = (37 * hash) + RESMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getResMessage().hashCode();
hash = (37 * hash) + ASSETISSUEID_FIELD_NUMBER;
hash = (53 * hash) + getAssetIssueID().hashCode();
hash = (37 * hash) + WITHDRAW_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWithdrawAmount());
hash = (37 * hash) + UNFREEZE_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUnfreezeAmount());
if (getInternalTransactionsCount() > 0) {
hash = (37 * hash) + INTERNAL_TRANSACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getInternalTransactionsList().hashCode();
}
hash = (37 * hash) + EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExchangeReceivedAmount());
hash = (37 * hash) + EXCHANGE_INJECT_ANOTHER_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExchangeInjectAnotherAmount());
hash = (37 * hash) + EXCHANGE_WITHDRAW_ANOTHER_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExchangeWithdrawAnotherAmount());
hash = (37 * hash) + EXCHANGE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExchangeId());
hash = (37 * hash) + SHIELDED_TRANSACTION_FEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getShieldedTransactionFee());
hash = (37 * hash) + ORDERID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
if (getOrderDetailsCount() > 0) {
hash = (37 * hash) + ORDERDETAILS_FIELD_NUMBER;
hash = (53 * hash) + getOrderDetailsList().hashCode();
}
hash = (37 * hash) + WITHDRAW_EXPIRE_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWithdrawExpireAmount());
if (!internalGetCancelUnfreezeV2Amount().getMap().isEmpty()) {
hash = (37 * hash) + CANCEL_UNFREEZEV2_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + internalGetCancelUnfreezeV2Amount().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tron.trident.proto.Response.TransactionInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protocol.TransactionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.TransactionInfo)
org.tron.trident.proto.Response.TransactionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 29:
return internalGetCancelUnfreezeV2Amount();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 29:
return internalGetMutableCancelUnfreezeV2Amount();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.TransactionInfo.class, org.tron.trident.proto.Response.TransactionInfo.Builder.class);
}
// Construct using org.tron.trident.proto.Response.TransactionInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getReceiptFieldBuilder();
getLogFieldBuilder();
getInternalTransactionsFieldBuilder();
getOrderDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = com.google.protobuf.ByteString.EMPTY;
fee_ = 0L;
blockNumber_ = 0L;
blockTimeStamp_ = 0L;
contractResult_ = emptyList(com.google.protobuf.ByteString.class);
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
if (logBuilder_ == null) {
log_ = java.util.Collections.emptyList();
} else {
log_ = null;
logBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
result_ = 0;
resMessage_ = com.google.protobuf.ByteString.EMPTY;
assetIssueID_ = "";
withdrawAmount_ = 0L;
unfreezeAmount_ = 0L;
if (internalTransactionsBuilder_ == null) {
internalTransactions_ = java.util.Collections.emptyList();
} else {
internalTransactions_ = null;
internalTransactionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
exchangeReceivedAmount_ = 0L;
exchangeInjectAnotherAmount_ = 0L;
exchangeWithdrawAnotherAmount_ = 0L;
exchangeId_ = 0L;
shieldedTransactionFee_ = 0L;
orderId_ = com.google.protobuf.ByteString.EMPTY;
if (orderDetailsBuilder_ == null) {
orderDetails_ = java.util.Collections.emptyList();
} else {
orderDetails_ = null;
orderDetailsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00100000);
withdrawExpireAmount_ = 0L;
internalGetMutableCancelUnfreezeV2Amount().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo getDefaultInstanceForType() {
return org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo build() {
org.tron.trident.proto.Response.TransactionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo buildPartial() {
org.tron.trident.proto.Response.TransactionInfo result = new org.tron.trident.proto.Response.TransactionInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Response.TransactionInfo result) {
if (logBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
log_ = java.util.Collections.unmodifiableList(log_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.log_ = log_;
} else {
result.log_ = logBuilder_.build();
}
if (internalTransactionsBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.internalTransactions_ = internalTransactions_;
} else {
result.internalTransactions_ = internalTransactionsBuilder_.build();
}
if (orderDetailsBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)) {
orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.orderDetails_ = orderDetails_;
} else {
result.orderDetails_ = orderDetailsBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Response.TransactionInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fee_ = fee_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.blockNumber_ = blockNumber_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.blockTimeStamp_ = blockTimeStamp_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
contractResult_.makeImmutable();
result.contractResult_ = contractResult_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.contractAddress_ = contractAddress_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.receipt_ = receiptBuilder_ == null
? receipt_
: receiptBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.result_ = result_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.resMessage_ = resMessage_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.assetIssueID_ = assetIssueID_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.withdrawAmount_ = withdrawAmount_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.unfreezeAmount_ = unfreezeAmount_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.exchangeReceivedAmount_ = exchangeReceivedAmount_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.exchangeInjectAnotherAmount_ = exchangeInjectAnotherAmount_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.exchangeWithdrawAnotherAmount_ = exchangeWithdrawAnotherAmount_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.exchangeId_ = exchangeId_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.shieldedTransactionFee_ = shieldedTransactionFee_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.orderId_ = orderId_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.withdrawExpireAmount_ = withdrawExpireAmount_;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.cancelUnfreezeV2Amount_ = internalGetCancelUnfreezeV2Amount();
result.cancelUnfreezeV2Amount_.makeImmutable();
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.TransactionInfo) {
return mergeFrom((org.tron.trident.proto.Response.TransactionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.TransactionInfo other) {
if (other == org.tron.trident.proto.Response.TransactionInfo.getDefaultInstance()) return this;
if (other.getId() != com.google.protobuf.ByteString.EMPTY) {
setId(other.getId());
}
if (other.getFee() != 0L) {
setFee(other.getFee());
}
if (other.getBlockNumber() != 0L) {
setBlockNumber(other.getBlockNumber());
}
if (other.getBlockTimeStamp() != 0L) {
setBlockTimeStamp(other.getBlockTimeStamp());
}
if (!other.contractResult_.isEmpty()) {
if (contractResult_.isEmpty()) {
contractResult_ = other.contractResult_;
contractResult_.makeImmutable();
bitField0_ |= 0x00000010;
} else {
ensureContractResultIsMutable();
contractResult_.addAll(other.contractResult_);
}
onChanged();
}
if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setContractAddress(other.getContractAddress());
}
if (other.hasReceipt()) {
mergeReceipt(other.getReceipt());
}
if (logBuilder_ == null) {
if (!other.log_.isEmpty()) {
if (log_.isEmpty()) {
log_ = other.log_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureLogIsMutable();
log_.addAll(other.log_);
}
onChanged();
}
} else {
if (!other.log_.isEmpty()) {
if (logBuilder_.isEmpty()) {
logBuilder_.dispose();
logBuilder_ = null;
log_ = other.log_;
bitField0_ = (bitField0_ & ~0x00000080);
logBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLogFieldBuilder() : null;
} else {
logBuilder_.addAllMessages(other.log_);
}
}
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.getResMessage() != com.google.protobuf.ByteString.EMPTY) {
setResMessage(other.getResMessage());
}
if (!other.getAssetIssueID().isEmpty()) {
assetIssueID_ = other.assetIssueID_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.getWithdrawAmount() != 0L) {
setWithdrawAmount(other.getWithdrawAmount());
}
if (other.getUnfreezeAmount() != 0L) {
setUnfreezeAmount(other.getUnfreezeAmount());
}
if (internalTransactionsBuilder_ == null) {
if (!other.internalTransactions_.isEmpty()) {
if (internalTransactions_.isEmpty()) {
internalTransactions_ = other.internalTransactions_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureInternalTransactionsIsMutable();
internalTransactions_.addAll(other.internalTransactions_);
}
onChanged();
}
} else {
if (!other.internalTransactions_.isEmpty()) {
if (internalTransactionsBuilder_.isEmpty()) {
internalTransactionsBuilder_.dispose();
internalTransactionsBuilder_ = null;
internalTransactions_ = other.internalTransactions_;
bitField0_ = (bitField0_ & ~0x00002000);
internalTransactionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInternalTransactionsFieldBuilder() : null;
} else {
internalTransactionsBuilder_.addAllMessages(other.internalTransactions_);
}
}
}
if (other.getExchangeReceivedAmount() != 0L) {
setExchangeReceivedAmount(other.getExchangeReceivedAmount());
}
if (other.getExchangeInjectAnotherAmount() != 0L) {
setExchangeInjectAnotherAmount(other.getExchangeInjectAnotherAmount());
}
if (other.getExchangeWithdrawAnotherAmount() != 0L) {
setExchangeWithdrawAnotherAmount(other.getExchangeWithdrawAnotherAmount());
}
if (other.getExchangeId() != 0L) {
setExchangeId(other.getExchangeId());
}
if (other.getShieldedTransactionFee() != 0L) {
setShieldedTransactionFee(other.getShieldedTransactionFee());
}
if (other.getOrderId() != com.google.protobuf.ByteString.EMPTY) {
setOrderId(other.getOrderId());
}
if (orderDetailsBuilder_ == null) {
if (!other.orderDetails_.isEmpty()) {
if (orderDetails_.isEmpty()) {
orderDetails_ = other.orderDetails_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureOrderDetailsIsMutable();
orderDetails_.addAll(other.orderDetails_);
}
onChanged();
}
} else {
if (!other.orderDetails_.isEmpty()) {
if (orderDetailsBuilder_.isEmpty()) {
orderDetailsBuilder_.dispose();
orderDetailsBuilder_ = null;
orderDetails_ = other.orderDetails_;
bitField0_ = (bitField0_ & ~0x00100000);
orderDetailsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderDetailsFieldBuilder() : null;
} else {
orderDetailsBuilder_.addAllMessages(other.orderDetails_);
}
}
}
if (other.getWithdrawExpireAmount() != 0L) {
setWithdrawExpireAmount(other.getWithdrawExpireAmount());
}
internalGetMutableCancelUnfreezeV2Amount().mergeFrom(
other.internalGetCancelUnfreezeV2Amount());
bitField0_ |= 0x00400000;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
fee_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
blockNumber_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
blockTimeStamp_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
com.google.protobuf.ByteString v = input.readBytes();
ensureContractResultIsMutable();
contractResult_.add(v);
break;
} // case 42
case 50: {
contractAddress_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getReceiptFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
org.tron.trident.proto.Response.TransactionInfo.Log m =
input.readMessage(
org.tron.trident.proto.Response.TransactionInfo.Log.parser(),
extensionRegistry);
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.add(m);
} else {
logBuilder_.addMessage(m);
}
break;
} // case 66
case 72: {
result_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
resMessage_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 82
case 114: {
assetIssueID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 114
case 120: {
withdrawAmount_ = input.readInt64();
bitField0_ |= 0x00000800;
break;
} // case 120
case 128: {
unfreezeAmount_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 128
case 138: {
org.tron.trident.proto.Response.InternalTransaction m =
input.readMessage(
org.tron.trident.proto.Response.InternalTransaction.parser(),
extensionRegistry);
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.add(m);
} else {
internalTransactionsBuilder_.addMessage(m);
}
break;
} // case 138
case 144: {
exchangeReceivedAmount_ = input.readInt64();
bitField0_ |= 0x00004000;
break;
} // case 144
case 152: {
exchangeInjectAnotherAmount_ = input.readInt64();
bitField0_ |= 0x00008000;
break;
} // case 152
case 160: {
exchangeWithdrawAnotherAmount_ = input.readInt64();
bitField0_ |= 0x00010000;
break;
} // case 160
case 168: {
exchangeId_ = input.readInt64();
bitField0_ |= 0x00020000;
break;
} // case 168
case 176: {
shieldedTransactionFee_ = input.readInt64();
bitField0_ |= 0x00040000;
break;
} // case 176
case 202: {
orderId_ = input.readBytes();
bitField0_ |= 0x00080000;
break;
} // case 202
case 210: {
org.tron.trident.proto.Response.MarketOrderDetail m =
input.readMessage(
org.tron.trident.proto.Response.MarketOrderDetail.parser(),
extensionRegistry);
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.add(m);
} else {
orderDetailsBuilder_.addMessage(m);
}
break;
} // case 210
case 224: {
withdrawExpireAmount_ = input.readInt64();
bitField0_ |= 0x00200000;
break;
} // case 224
case 234: {
com.google.protobuf.MapEntry
cancelUnfreezeV2Amount__ = input.readMessage(
CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableCancelUnfreezeV2Amount().getMutableMap().put(
cancelUnfreezeV2Amount__.getKey(), cancelUnfreezeV2Amount__.getValue());
bitField0_ |= 0x00400000;
break;
} // case 234
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes id = 1;
* @return The id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getId() {
return id_;
}
/**
* bytes id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
private long fee_ ;
/**
* int64 fee = 2;
* @return The fee.
*/
@java.lang.Override
public long getFee() {
return fee_;
}
/**
* int64 fee = 2;
* @param value The fee to set.
* @return This builder for chaining.
*/
public Builder setFee(long value) {
fee_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 fee = 2;
* @return This builder for chaining.
*/
public Builder clearFee() {
bitField0_ = (bitField0_ & ~0x00000002);
fee_ = 0L;
onChanged();
return this;
}
private long blockNumber_ ;
/**
* int64 blockNumber = 3;
* @return The blockNumber.
*/
@java.lang.Override
public long getBlockNumber() {
return blockNumber_;
}
/**
* int64 blockNumber = 3;
* @param value The blockNumber to set.
* @return This builder for chaining.
*/
public Builder setBlockNumber(long value) {
blockNumber_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 blockNumber = 3;
* @return This builder for chaining.
*/
public Builder clearBlockNumber() {
bitField0_ = (bitField0_ & ~0x00000004);
blockNumber_ = 0L;
onChanged();
return this;
}
private long blockTimeStamp_ ;
/**
* int64 blockTimeStamp = 4;
* @return The blockTimeStamp.
*/
@java.lang.Override
public long getBlockTimeStamp() {
return blockTimeStamp_;
}
/**
* int64 blockTimeStamp = 4;
* @param value The blockTimeStamp to set.
* @return This builder for chaining.
*/
public Builder setBlockTimeStamp(long value) {
blockTimeStamp_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 blockTimeStamp = 4;
* @return This builder for chaining.
*/
public Builder clearBlockTimeStamp() {
bitField0_ = (bitField0_ & ~0x00000008);
blockTimeStamp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList contractResult_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureContractResultIsMutable() {
if (!contractResult_.isModifiable()) {
contractResult_ = makeMutableCopy(contractResult_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated bytes contractResult = 5;
* @return A list containing the contractResult.
*/
public java.util.List
getContractResultList() {
contractResult_.makeImmutable();
return contractResult_;
}
/**
* repeated bytes contractResult = 5;
* @return The count of contractResult.
*/
public int getContractResultCount() {
return contractResult_.size();
}
/**
* repeated bytes contractResult = 5;
* @param index The index of the element to return.
* @return The contractResult at the given index.
*/
public com.google.protobuf.ByteString getContractResult(int index) {
return contractResult_.get(index);
}
/**
* repeated bytes contractResult = 5;
* @param index The index to set the value at.
* @param value The contractResult to set.
* @return This builder for chaining.
*/
public Builder setContractResult(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureContractResultIsMutable();
contractResult_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes contractResult = 5;
* @param value The contractResult to add.
* @return This builder for chaining.
*/
public Builder addContractResult(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureContractResultIsMutable();
contractResult_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes contractResult = 5;
* @param values The contractResult to add.
* @return This builder for chaining.
*/
public Builder addAllContractResult(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureContractResultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contractResult_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated bytes contractResult = 5;
* @return This builder for chaining.
*/
public Builder clearContractResult() {
contractResult_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_address = 6;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
/**
* bytes contract_address = 6;
* @param value The contractAddress to set.
* @return This builder for chaining.
*/
public Builder setContractAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
contractAddress_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bytes contract_address = 6;
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
bitField0_ = (bitField0_ & ~0x00000020);
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
private org.tron.trident.proto.Response.ResourceReceipt receipt_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder> receiptBuilder_;
/**
* .protocol.ResourceReceipt receipt = 7;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .protocol.ResourceReceipt receipt = 7;
* @return The receipt.
*/
public org.tron.trident.proto.Response.ResourceReceipt getReceipt() {
if (receiptBuilder_ == null) {
return receipt_ == null ? org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
} else {
return receiptBuilder_.getMessage();
}
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public Builder setReceipt(org.tron.trident.proto.Response.ResourceReceipt value) {
if (receiptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receipt_ = value;
} else {
receiptBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public Builder setReceipt(
org.tron.trident.proto.Response.ResourceReceipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public Builder mergeReceipt(org.tron.trident.proto.Response.ResourceReceipt value) {
if (receiptBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
receipt_ != null &&
receipt_ != org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance()) {
getReceiptBuilder().mergeFrom(value);
} else {
receipt_ = value;
}
} else {
receiptBuilder_.mergeFrom(value);
}
if (receipt_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public Builder clearReceipt() {
bitField0_ = (bitField0_ & ~0x00000040);
receipt_ = null;
if (receiptBuilder_ != null) {
receiptBuilder_.dispose();
receiptBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public org.tron.trident.proto.Response.ResourceReceipt.Builder getReceiptBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
public org.tron.trident.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() {
if (receiptBuilder_ != null) {
return receiptBuilder_.getMessageOrBuilder();
} else {
return receipt_ == null ?
org.tron.trident.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
}
}
/**
* .protocol.ResourceReceipt receipt = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Response.ResourceReceipt, org.tron.trident.proto.Response.ResourceReceipt.Builder, org.tron.trident.proto.Response.ResourceReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
isClean());
receipt_ = null;
}
return receiptBuilder_;
}
private java.util.List log_ =
java.util.Collections.emptyList();
private void ensureLogIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
log_ = new java.util.ArrayList(log_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder> logBuilder_;
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public java.util.List getLogList() {
if (logBuilder_ == null) {
return java.util.Collections.unmodifiableList(log_);
} else {
return logBuilder_.getMessageList();
}
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public int getLogCount() {
if (logBuilder_ == null) {
return log_.size();
} else {
return logBuilder_.getCount();
}
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public org.tron.trident.proto.Response.TransactionInfo.Log getLog(int index) {
if (logBuilder_ == null) {
return log_.get(index);
} else {
return logBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder setLog(
int index, org.tron.trident.proto.Response.TransactionInfo.Log value) {
if (logBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogIsMutable();
log_.set(index, value);
onChanged();
} else {
logBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder setLog(
int index, org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.set(index, builderForValue.build());
onChanged();
} else {
logBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder addLog(org.tron.trident.proto.Response.TransactionInfo.Log value) {
if (logBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogIsMutable();
log_.add(value);
onChanged();
} else {
logBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder addLog(
int index, org.tron.trident.proto.Response.TransactionInfo.Log value) {
if (logBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLogIsMutable();
log_.add(index, value);
onChanged();
} else {
logBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder addLog(
org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.add(builderForValue.build());
onChanged();
} else {
logBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder addLog(
int index, org.tron.trident.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.add(index, builderForValue.build());
onChanged();
} else {
logBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder addAllLog(
java.lang.Iterable extends org.tron.trident.proto.Response.TransactionInfo.Log> values) {
if (logBuilder_ == null) {
ensureLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, log_);
onChanged();
} else {
logBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder clearLog() {
if (logBuilder_ == null) {
log_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
logBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public Builder removeLog(int index) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.remove(index);
onChanged();
} else {
logBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public org.tron.trident.proto.Response.TransactionInfo.Log.Builder getLogBuilder(
int index) {
return getLogFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder(
int index) {
if (logBuilder_ == null) {
return log_.get(index); } else {
return logBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public java.util.List extends org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList() {
if (logBuilder_ != null) {
return logBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(log_);
}
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public org.tron.trident.proto.Response.TransactionInfo.Log.Builder addLogBuilder() {
return getLogFieldBuilder().addBuilder(
org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance());
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public org.tron.trident.proto.Response.TransactionInfo.Log.Builder addLogBuilder(
int index) {
return getLogFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.TransactionInfo.Log.getDefaultInstance());
}
/**
* repeated .protocol.TransactionInfo.Log log = 8;
*/
public java.util.List
getLogBuilderList() {
return getLogFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>
getLogFieldBuilder() {
if (logBuilder_ == null) {
logBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.TransactionInfo.Log, org.tron.trident.proto.Response.TransactionInfo.Log.Builder, org.tron.trident.proto.Response.TransactionInfo.LogOrBuilder>(
log_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
log_ = null;
}
return logBuilder_;
}
private int result_ = 0;
/**
* .protocol.TransactionInfo.code result = 9;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @return The result.
*/
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo.code getResult() {
org.tron.trident.proto.Response.TransactionInfo.code result = org.tron.trident.proto.Response.TransactionInfo.code.forNumber(result_);
return result == null ? org.tron.trident.proto.Response.TransactionInfo.code.UNRECOGNIZED : result;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(org.tron.trident.proto.Response.TransactionInfo.code value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @return This builder for chaining.
*/
public Builder clearResult() {
bitField0_ = (bitField0_ & ~0x00000100);
result_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString resMessage_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes resMessage = 10;
* @return The resMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResMessage() {
return resMessage_;
}
/**
* bytes resMessage = 10;
* @param value The resMessage to set.
* @return This builder for chaining.
*/
public Builder setResMessage(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
resMessage_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* bytes resMessage = 10;
* @return This builder for chaining.
*/
public Builder clearResMessage() {
bitField0_ = (bitField0_ & ~0x00000200);
resMessage_ = getDefaultInstance().getResMessage();
onChanged();
return this;
}
private java.lang.Object assetIssueID_ = "";
/**
* string assetIssueID = 14;
* @return The assetIssueID.
*/
public java.lang.String getAssetIssueID() {
java.lang.Object ref = assetIssueID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
assetIssueID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string assetIssueID = 14;
* @return The bytes for assetIssueID.
*/
public com.google.protobuf.ByteString
getAssetIssueIDBytes() {
java.lang.Object ref = assetIssueID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
assetIssueID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string assetIssueID = 14;
* @param value The assetIssueID to set.
* @return This builder for chaining.
*/
public Builder setAssetIssueID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
assetIssueID_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* string assetIssueID = 14;
* @return This builder for chaining.
*/
public Builder clearAssetIssueID() {
assetIssueID_ = getDefaultInstance().getAssetIssueID();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* string assetIssueID = 14;
* @param value The bytes for assetIssueID to set.
* @return This builder for chaining.
*/
public Builder setAssetIssueIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
assetIssueID_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private long withdrawAmount_ ;
/**
* int64 withdraw_amount = 15;
* @return The withdrawAmount.
*/
@java.lang.Override
public long getWithdrawAmount() {
return withdrawAmount_;
}
/**
* int64 withdraw_amount = 15;
* @param value The withdrawAmount to set.
* @return This builder for chaining.
*/
public Builder setWithdrawAmount(long value) {
withdrawAmount_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* int64 withdraw_amount = 15;
* @return This builder for chaining.
*/
public Builder clearWithdrawAmount() {
bitField0_ = (bitField0_ & ~0x00000800);
withdrawAmount_ = 0L;
onChanged();
return this;
}
private long unfreezeAmount_ ;
/**
* int64 unfreeze_amount = 16;
* @return The unfreezeAmount.
*/
@java.lang.Override
public long getUnfreezeAmount() {
return unfreezeAmount_;
}
/**
* int64 unfreeze_amount = 16;
* @param value The unfreezeAmount to set.
* @return This builder for chaining.
*/
public Builder setUnfreezeAmount(long value) {
unfreezeAmount_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* int64 unfreeze_amount = 16;
* @return This builder for chaining.
*/
public Builder clearUnfreezeAmount() {
bitField0_ = (bitField0_ & ~0x00001000);
unfreezeAmount_ = 0L;
onChanged();
return this;
}
private java.util.List internalTransactions_ =
java.util.Collections.emptyList();
private void ensureInternalTransactionsIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
internalTransactions_ = new java.util.ArrayList(internalTransactions_);
bitField0_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder> internalTransactionsBuilder_;
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public java.util.List getInternalTransactionsList() {
if (internalTransactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(internalTransactions_);
} else {
return internalTransactionsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public int getInternalTransactionsCount() {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.size();
} else {
return internalTransactionsBuilder_.getCount();
}
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public org.tron.trident.proto.Response.InternalTransaction getInternalTransactions(int index) {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.get(index);
} else {
return internalTransactionsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder setInternalTransactions(
int index, org.tron.trident.proto.Response.InternalTransaction value) {
if (internalTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInternalTransactionsIsMutable();
internalTransactions_.set(index, value);
onChanged();
} else {
internalTransactionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder setInternalTransactions(
int index, org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.set(index, builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder addInternalTransactions(org.tron.trident.proto.Response.InternalTransaction value) {
if (internalTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInternalTransactionsIsMutable();
internalTransactions_.add(value);
onChanged();
} else {
internalTransactionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder addInternalTransactions(
int index, org.tron.trident.proto.Response.InternalTransaction value) {
if (internalTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInternalTransactionsIsMutable();
internalTransactions_.add(index, value);
onChanged();
} else {
internalTransactionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder addInternalTransactions(
org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.add(builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder addInternalTransactions(
int index, org.tron.trident.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.add(index, builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder addAllInternalTransactions(
java.lang.Iterable extends org.tron.trident.proto.Response.InternalTransaction> values) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, internalTransactions_);
onChanged();
} else {
internalTransactionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder clearInternalTransactions() {
if (internalTransactionsBuilder_ == null) {
internalTransactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
internalTransactionsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public Builder removeInternalTransactions(int index) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.remove(index);
onChanged();
} else {
internalTransactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public org.tron.trident.proto.Response.InternalTransaction.Builder getInternalTransactionsBuilder(
int index) {
return getInternalTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public org.tron.trident.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder(
int index) {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.get(index); } else {
return internalTransactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public java.util.List extends org.tron.trident.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList() {
if (internalTransactionsBuilder_ != null) {
return internalTransactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(internalTransactions_);
}
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public org.tron.trident.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder() {
return getInternalTransactionsFieldBuilder().addBuilder(
org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance());
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public org.tron.trident.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder(
int index) {
return getInternalTransactionsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.InternalTransaction.getDefaultInstance());
}
/**
* repeated .protocol.InternalTransaction internal_transactions = 17;
*/
public java.util.List
getInternalTransactionsBuilderList() {
return getInternalTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsFieldBuilder() {
if (internalTransactionsBuilder_ == null) {
internalTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.InternalTransaction, org.tron.trident.proto.Response.InternalTransaction.Builder, org.tron.trident.proto.Response.InternalTransactionOrBuilder>(
internalTransactions_,
((bitField0_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
internalTransactions_ = null;
}
return internalTransactionsBuilder_;
}
private long exchangeReceivedAmount_ ;
/**
* int64 exchange_received_amount = 18;
* @return The exchangeReceivedAmount.
*/
@java.lang.Override
public long getExchangeReceivedAmount() {
return exchangeReceivedAmount_;
}
/**
* int64 exchange_received_amount = 18;
* @param value The exchangeReceivedAmount to set.
* @return This builder for chaining.
*/
public Builder setExchangeReceivedAmount(long value) {
exchangeReceivedAmount_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* int64 exchange_received_amount = 18;
* @return This builder for chaining.
*/
public Builder clearExchangeReceivedAmount() {
bitField0_ = (bitField0_ & ~0x00004000);
exchangeReceivedAmount_ = 0L;
onChanged();
return this;
}
private long exchangeInjectAnotherAmount_ ;
/**
* int64 exchange_inject_another_amount = 19;
* @return The exchangeInjectAnotherAmount.
*/
@java.lang.Override
public long getExchangeInjectAnotherAmount() {
return exchangeInjectAnotherAmount_;
}
/**
* int64 exchange_inject_another_amount = 19;
* @param value The exchangeInjectAnotherAmount to set.
* @return This builder for chaining.
*/
public Builder setExchangeInjectAnotherAmount(long value) {
exchangeInjectAnotherAmount_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* int64 exchange_inject_another_amount = 19;
* @return This builder for chaining.
*/
public Builder clearExchangeInjectAnotherAmount() {
bitField0_ = (bitField0_ & ~0x00008000);
exchangeInjectAnotherAmount_ = 0L;
onChanged();
return this;
}
private long exchangeWithdrawAnotherAmount_ ;
/**
* int64 exchange_withdraw_another_amount = 20;
* @return The exchangeWithdrawAnotherAmount.
*/
@java.lang.Override
public long getExchangeWithdrawAnotherAmount() {
return exchangeWithdrawAnotherAmount_;
}
/**
* int64 exchange_withdraw_another_amount = 20;
* @param value The exchangeWithdrawAnotherAmount to set.
* @return This builder for chaining.
*/
public Builder setExchangeWithdrawAnotherAmount(long value) {
exchangeWithdrawAnotherAmount_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* int64 exchange_withdraw_another_amount = 20;
* @return This builder for chaining.
*/
public Builder clearExchangeWithdrawAnotherAmount() {
bitField0_ = (bitField0_ & ~0x00010000);
exchangeWithdrawAnotherAmount_ = 0L;
onChanged();
return this;
}
private long exchangeId_ ;
/**
* int64 exchange_id = 21;
* @return The exchangeId.
*/
@java.lang.Override
public long getExchangeId() {
return exchangeId_;
}
/**
* int64 exchange_id = 21;
* @param value The exchangeId to set.
* @return This builder for chaining.
*/
public Builder setExchangeId(long value) {
exchangeId_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
* int64 exchange_id = 21;
* @return This builder for chaining.
*/
public Builder clearExchangeId() {
bitField0_ = (bitField0_ & ~0x00020000);
exchangeId_ = 0L;
onChanged();
return this;
}
private long shieldedTransactionFee_ ;
/**
* int64 shielded_transaction_fee = 22;
* @return The shieldedTransactionFee.
*/
@java.lang.Override
public long getShieldedTransactionFee() {
return shieldedTransactionFee_;
}
/**
* int64 shielded_transaction_fee = 22;
* @param value The shieldedTransactionFee to set.
* @return This builder for chaining.
*/
public Builder setShieldedTransactionFee(long value) {
shieldedTransactionFee_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
* int64 shielded_transaction_fee = 22;
* @return This builder for chaining.
*/
public Builder clearShieldedTransactionFee() {
bitField0_ = (bitField0_ & ~0x00040000);
shieldedTransactionFee_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString orderId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes orderId = 25;
* @return The orderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOrderId() {
return orderId_;
}
/**
* bytes orderId = 25;
* @param value The orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
orderId_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
* bytes orderId = 25;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
bitField0_ = (bitField0_ & ~0x00080000);
orderId_ = getDefaultInstance().getOrderId();
onChanged();
return this;
}
private java.util.List orderDetails_ =
java.util.Collections.emptyList();
private void ensureOrderDetailsIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
orderDetails_ = new java.util.ArrayList(orderDetails_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder> orderDetailsBuilder_;
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public java.util.List getOrderDetailsList() {
if (orderDetailsBuilder_ == null) {
return java.util.Collections.unmodifiableList(orderDetails_);
} else {
return orderDetailsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public int getOrderDetailsCount() {
if (orderDetailsBuilder_ == null) {
return orderDetails_.size();
} else {
return orderDetailsBuilder_.getCount();
}
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public org.tron.trident.proto.Response.MarketOrderDetail getOrderDetails(int index) {
if (orderDetailsBuilder_ == null) {
return orderDetails_.get(index);
} else {
return orderDetailsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder setOrderDetails(
int index, org.tron.trident.proto.Response.MarketOrderDetail value) {
if (orderDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderDetailsIsMutable();
orderDetails_.set(index, value);
onChanged();
} else {
orderDetailsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder setOrderDetails(
int index, org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.set(index, builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder addOrderDetails(org.tron.trident.proto.Response.MarketOrderDetail value) {
if (orderDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderDetailsIsMutable();
orderDetails_.add(value);
onChanged();
} else {
orderDetailsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder addOrderDetails(
int index, org.tron.trident.proto.Response.MarketOrderDetail value) {
if (orderDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderDetailsIsMutable();
orderDetails_.add(index, value);
onChanged();
} else {
orderDetailsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder addOrderDetails(
org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.add(builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder addOrderDetails(
int index, org.tron.trident.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.add(index, builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder addAllOrderDetails(
java.lang.Iterable extends org.tron.trident.proto.Response.MarketOrderDetail> values) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orderDetails_);
onChanged();
} else {
orderDetailsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder clearOrderDetails() {
if (orderDetailsBuilder_ == null) {
orderDetails_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
orderDetailsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public Builder removeOrderDetails(int index) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.remove(index);
onChanged();
} else {
orderDetailsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public org.tron.trident.proto.Response.MarketOrderDetail.Builder getOrderDetailsBuilder(
int index) {
return getOrderDetailsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public org.tron.trident.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index) {
if (orderDetailsBuilder_ == null) {
return orderDetails_.get(index); } else {
return orderDetailsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public java.util.List extends org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList() {
if (orderDetailsBuilder_ != null) {
return orderDetailsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orderDetails_);
}
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public org.tron.trident.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder() {
return getOrderDetailsFieldBuilder().addBuilder(
org.tron.trident.proto.Response.MarketOrderDetail.getDefaultInstance());
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public org.tron.trident.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder(
int index) {
return getOrderDetailsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Response.MarketOrderDetail.getDefaultInstance());
}
/**
* repeated .protocol.MarketOrderDetail orderDetails = 26;
*/
public java.util.List
getOrderDetailsBuilderList() {
return getOrderDetailsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsFieldBuilder() {
if (orderDetailsBuilder_ == null) {
orderDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Response.MarketOrderDetail, org.tron.trident.proto.Response.MarketOrderDetail.Builder, org.tron.trident.proto.Response.MarketOrderDetailOrBuilder>(
orderDetails_,
((bitField0_ & 0x00100000) != 0),
getParentForChildren(),
isClean());
orderDetails_ = null;
}
return orderDetailsBuilder_;
}
private long withdrawExpireAmount_ ;
/**
* int64 withdraw_expire_amount = 28;
* @return The withdrawExpireAmount.
*/
@java.lang.Override
public long getWithdrawExpireAmount() {
return withdrawExpireAmount_;
}
/**
* int64 withdraw_expire_amount = 28;
* @param value The withdrawExpireAmount to set.
* @return This builder for chaining.
*/
public Builder setWithdrawExpireAmount(long value) {
withdrawExpireAmount_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
* int64 withdraw_expire_amount = 28;
* @return This builder for chaining.
*/
public Builder clearWithdrawExpireAmount() {
bitField0_ = (bitField0_ & ~0x00200000);
withdrawExpireAmount_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Long> cancelUnfreezeV2Amount_;
private com.google.protobuf.MapField
internalGetCancelUnfreezeV2Amount() {
if (cancelUnfreezeV2Amount_ == null) {
return com.google.protobuf.MapField.emptyMapField(
CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry);
}
return cancelUnfreezeV2Amount_;
}
private com.google.protobuf.MapField
internalGetMutableCancelUnfreezeV2Amount() {
if (cancelUnfreezeV2Amount_ == null) {
cancelUnfreezeV2Amount_ = com.google.protobuf.MapField.newMapField(
CancelUnfreezeV2AmountDefaultEntryHolder.defaultEntry);
}
if (!cancelUnfreezeV2Amount_.isMutable()) {
cancelUnfreezeV2Amount_ = cancelUnfreezeV2Amount_.copy();
}
bitField0_ |= 0x00400000;
onChanged();
return cancelUnfreezeV2Amount_;
}
public int getCancelUnfreezeV2AmountCount() {
return internalGetCancelUnfreezeV2Amount().getMap().size();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public boolean containsCancelUnfreezeV2Amount(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetCancelUnfreezeV2Amount().getMap().containsKey(key);
}
/**
* Use {@link #getCancelUnfreezeV2AmountMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getCancelUnfreezeV2Amount() {
return getCancelUnfreezeV2AmountMap();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public java.util.Map getCancelUnfreezeV2AmountMap() {
return internalGetCancelUnfreezeV2Amount().getMap();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public long getCancelUnfreezeV2AmountOrDefault(
java.lang.String key,
long defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCancelUnfreezeV2Amount().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
@java.lang.Override
public long getCancelUnfreezeV2AmountOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetCancelUnfreezeV2Amount().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearCancelUnfreezeV2Amount() {
bitField0_ = (bitField0_ & ~0x00400000);
internalGetMutableCancelUnfreezeV2Amount().getMutableMap()
.clear();
return this;
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
public Builder removeCancelUnfreezeV2Amount(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableCancelUnfreezeV2Amount().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableCancelUnfreezeV2Amount() {
bitField0_ |= 0x00400000;
return internalGetMutableCancelUnfreezeV2Amount().getMutableMap();
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
public Builder putCancelUnfreezeV2Amount(
java.lang.String key,
long value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableCancelUnfreezeV2Amount().getMutableMap()
.put(key, value);
bitField0_ |= 0x00400000;
return this;
}
/**
* map<string, int64> cancel_unfreezeV2_amount = 29;
*/
public Builder putAllCancelUnfreezeV2Amount(
java.util.Map values) {
internalGetMutableCancelUnfreezeV2Amount().getMutableMap()
.putAll(values);
bitField0_ |= 0x00400000;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.TransactionInfo)
}
// @@protoc_insertion_point(class_scope:protocol.TransactionInfo)
private static final org.tron.trident.proto.Response.TransactionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.TransactionInfo();
}
public static org.tron.trident.proto.Response.TransactionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.TransactionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WitnessOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Witness)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* int64 voteCount = 2;
* @return The voteCount.
*/
long getVoteCount();
/**
* bytes pubKey = 3;
* @return The pubKey.
*/
com.google.protobuf.ByteString getPubKey();
/**
* string url = 4;
* @return The url.
*/
java.lang.String getUrl();
/**
* string url = 4;
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
/**
* int64 totalProduced = 5;
* @return The totalProduced.
*/
long getTotalProduced();
/**
* int64 totalMissed = 6;
* @return The totalMissed.
*/
long getTotalMissed();
/**
* int64 latestBlockNum = 7;
* @return The latestBlockNum.
*/
long getLatestBlockNum();
/**
* int64 latestSlotNum = 8;
* @return The latestSlotNum.
*/
long getLatestSlotNum();
/**
* bool isJobs = 9;
* @return The isJobs.
*/
boolean getIsJobs();
}
/**
*
* Witness
*
*
* Protobuf type {@code protocol.Witness}
*/
public static final class Witness extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Witness)
WitnessOrBuilder {
private static final long serialVersionUID = 0L;
// Use Witness.newBuilder() to construct.
private Witness(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Witness() {
address_ = com.google.protobuf.ByteString.EMPTY;
pubKey_ = com.google.protobuf.ByteString.EMPTY;
url_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Witness();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_Witness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.Witness.class, org.tron.trident.proto.Response.Witness.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int VOTECOUNT_FIELD_NUMBER = 2;
private long voteCount_ = 0L;
/**
* int64 voteCount = 2;
* @return The voteCount.
*/
@java.lang.Override
public long getVoteCount() {
return voteCount_;
}
public static final int PUBKEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes pubKey = 3;
* @return The pubKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPubKey() {
return pubKey_;
}
public static final int URL_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object url_ = "";
/**
* string url = 4;
* @return The url.
*/
@java.lang.Override
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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();
url_ = s;
return s;
}
}
/**
* string url = 4;
* @return The bytes for url.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTALPRODUCED_FIELD_NUMBER = 5;
private long totalProduced_ = 0L;
/**
* int64 totalProduced = 5;
* @return The totalProduced.
*/
@java.lang.Override
public long getTotalProduced() {
return totalProduced_;
}
public static final int TOTALMISSED_FIELD_NUMBER = 6;
private long totalMissed_ = 0L;
/**
* int64 totalMissed = 6;
* @return The totalMissed.
*/
@java.lang.Override
public long getTotalMissed() {
return totalMissed_;
}
public static final int LATESTBLOCKNUM_FIELD_NUMBER = 7;
private long latestBlockNum_ = 0L;
/**
* int64 latestBlockNum = 7;
* @return The latestBlockNum.
*/
@java.lang.Override
public long getLatestBlockNum() {
return latestBlockNum_;
}
public static final int LATESTSLOTNUM_FIELD_NUMBER = 8;
private long latestSlotNum_ = 0L;
/**
* int64 latestSlotNum = 8;
* @return The latestSlotNum.
*/
@java.lang.Override
public long getLatestSlotNum() {
return latestSlotNum_;
}
public static final int ISJOBS_FIELD_NUMBER = 9;
private boolean isJobs_ = false;
/**
* bool isJobs = 9;
* @return The isJobs.
*/
@java.lang.Override
public boolean getIsJobs() {
return isJobs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (voteCount_ != 0L) {
output.writeInt64(2, voteCount_);
}
if (!pubKey_.isEmpty()) {
output.writeBytes(3, pubKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, url_);
}
if (totalProduced_ != 0L) {
output.writeInt64(5, totalProduced_);
}
if (totalMissed_ != 0L) {
output.writeInt64(6, totalMissed_);
}
if (latestBlockNum_ != 0L) {
output.writeInt64(7, latestBlockNum_);
}
if (latestSlotNum_ != 0L) {
output.writeInt64(8, latestSlotNum_);
}
if (isJobs_ != false) {
output.writeBool(9, isJobs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (voteCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, voteCount_);
}
if (!pubKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, pubKey_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, url_);
}
if (totalProduced_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, totalProduced_);
}
if (totalMissed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalMissed_);
}
if (latestBlockNum_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, latestBlockNum_);
}
if (latestSlotNum_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, latestSlotNum_);
}
if (isJobs_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isJobs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Response.Witness)) {
return super.equals(obj);
}
org.tron.trident.proto.Response.Witness other = (org.tron.trident.proto.Response.Witness) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getVoteCount()
!= other.getVoteCount()) return false;
if (!getPubKey()
.equals(other.getPubKey())) return false;
if (!getUrl()
.equals(other.getUrl())) return false;
if (getTotalProduced()
!= other.getTotalProduced()) return false;
if (getTotalMissed()
!= other.getTotalMissed()) return false;
if (getLatestBlockNum()
!= other.getLatestBlockNum()) return false;
if (getLatestSlotNum()
!= other.getLatestSlotNum()) return false;
if (getIsJobs()
!= other.getIsJobs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@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) + VOTECOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVoteCount());
hash = (37 * hash) + PUBKEY_FIELD_NUMBER;
hash = (53 * hash) + getPubKey().hashCode();
hash = (37 * hash) + URL_FIELD_NUMBER;
hash = (53 * hash) + getUrl().hashCode();
hash = (37 * hash) + TOTALPRODUCED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalProduced());
hash = (37 * hash) + TOTALMISSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalMissed());
hash = (37 * hash) + LATESTBLOCKNUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLatestBlockNum());
hash = (37 * hash) + LATESTSLOTNUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLatestSlotNum());
hash = (37 * hash) + ISJOBS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsJobs());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Response.Witness parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.Witness parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.Witness parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.Witness parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.Witness parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Response.Witness parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Response.Witness parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.Witness 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 org.tron.trident.proto.Response.Witness parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.Witness 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 org.tron.trident.proto.Response.Witness parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.proto.Response.Witness 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(org.tron.trident.proto.Response.Witness 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;
}
/**
*
* Witness
*
*
* Protobuf type {@code protocol.Witness}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.Witness)
org.tron.trident.proto.Response.WitnessOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Response.internal_static_protocol_Witness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Response.Witness.class, org.tron.trident.proto.Response.Witness.Builder.class);
}
// Construct using org.tron.trident.proto.Response.Witness.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
voteCount_ = 0L;
pubKey_ = com.google.protobuf.ByteString.EMPTY;
url_ = "";
totalProduced_ = 0L;
totalMissed_ = 0L;
latestBlockNum_ = 0L;
latestSlotNum_ = 0L;
isJobs_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Response.Witness getDefaultInstanceForType() {
return org.tron.trident.proto.Response.Witness.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Response.Witness build() {
org.tron.trident.proto.Response.Witness result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Response.Witness buildPartial() {
org.tron.trident.proto.Response.Witness result = new org.tron.trident.proto.Response.Witness(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Response.Witness result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.voteCount_ = voteCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.pubKey_ = pubKey_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.url_ = url_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.totalProduced_ = totalProduced_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.totalMissed_ = totalMissed_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.latestBlockNum_ = latestBlockNum_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.latestSlotNum_ = latestSlotNum_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.isJobs_ = isJobs_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Response.Witness) {
return mergeFrom((org.tron.trident.proto.Response.Witness)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Response.Witness other) {
if (other == org.tron.trident.proto.Response.Witness.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getVoteCount() != 0L) {
setVoteCount(other.getVoteCount());
}
if (other.getPubKey() != com.google.protobuf.ByteString.EMPTY) {
setPubKey(other.getPubKey());
}
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getTotalProduced() != 0L) {
setTotalProduced(other.getTotalProduced());
}
if (other.getTotalMissed() != 0L) {
setTotalMissed(other.getTotalMissed());
}
if (other.getLatestBlockNum() != 0L) {
setLatestBlockNum(other.getLatestBlockNum());
}
if (other.getLatestSlotNum() != 0L) {
setLatestSlotNum(other.getLatestSlotNum());
}
if (other.getIsJobs() != false) {
setIsJobs(other.getIsJobs());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
voteCount_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
pubKey_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
url_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
totalProduced_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
totalMissed_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
latestBlockNum_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
latestSlotNum_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
isJobs_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private long voteCount_ ;
/**
* int64 voteCount = 2;
* @return The voteCount.
*/
@java.lang.Override
public long getVoteCount() {
return voteCount_;
}
/**
* int64 voteCount = 2;
* @param value The voteCount to set.
* @return This builder for chaining.
*/
public Builder setVoteCount(long value) {
voteCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 voteCount = 2;
* @return This builder for chaining.
*/
public Builder clearVoteCount() {
bitField0_ = (bitField0_ & ~0x00000002);
voteCount_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString pubKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes pubKey = 3;
* @return The pubKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPubKey() {
return pubKey_;
}
/**
* bytes pubKey = 3;
* @param value The pubKey to set.
* @return This builder for chaining.
*/
public Builder setPubKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
pubKey_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes pubKey = 3;
* @return This builder for chaining.
*/
public Builder clearPubKey() {
bitField0_ = (bitField0_ & ~0x00000004);
pubKey_ = getDefaultInstance().getPubKey();
onChanged();
return this;
}
private java.lang.Object url_ = "";
/**
* string url = 4;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string url = 4;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string url = 4;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
url_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string url = 4;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string url = 4;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
url_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long totalProduced_ ;
/**
* int64 totalProduced = 5;
* @return The totalProduced.
*/
@java.lang.Override
public long getTotalProduced() {
return totalProduced_;
}
/**
* int64 totalProduced = 5;
* @param value The totalProduced to set.
* @return This builder for chaining.
*/
public Builder setTotalProduced(long value) {
totalProduced_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 totalProduced = 5;
* @return This builder for chaining.
*/
public Builder clearTotalProduced() {
bitField0_ = (bitField0_ & ~0x00000010);
totalProduced_ = 0L;
onChanged();
return this;
}
private long totalMissed_ ;
/**
* int64 totalMissed = 6;
* @return The totalMissed.
*/
@java.lang.Override
public long getTotalMissed() {
return totalMissed_;
}
/**
* int64 totalMissed = 6;
* @param value The totalMissed to set.
* @return This builder for chaining.
*/
public Builder setTotalMissed(long value) {
totalMissed_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 totalMissed = 6;
* @return This builder for chaining.
*/
public Builder clearTotalMissed() {
bitField0_ = (bitField0_ & ~0x00000020);
totalMissed_ = 0L;
onChanged();
return this;
}
private long latestBlockNum_ ;
/**
* int64 latestBlockNum = 7;
* @return The latestBlockNum.
*/
@java.lang.Override
public long getLatestBlockNum() {
return latestBlockNum_;
}
/**
* int64 latestBlockNum = 7;
* @param value The latestBlockNum to set.
* @return This builder for chaining.
*/
public Builder setLatestBlockNum(long value) {
latestBlockNum_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int64 latestBlockNum = 7;
* @return This builder for chaining.
*/
public Builder clearLatestBlockNum() {
bitField0_ = (bitField0_ & ~0x00000040);
latestBlockNum_ = 0L;
onChanged();
return this;
}
private long latestSlotNum_ ;
/**
* int64 latestSlotNum = 8;
* @return The latestSlotNum.
*/
@java.lang.Override
public long getLatestSlotNum() {
return latestSlotNum_;
}
/**
* int64 latestSlotNum = 8;
* @param value The latestSlotNum to set.
* @return This builder for chaining.
*/
public Builder setLatestSlotNum(long value) {
latestSlotNum_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int64 latestSlotNum = 8;
* @return This builder for chaining.
*/
public Builder clearLatestSlotNum() {
bitField0_ = (bitField0_ & ~0x00000080);
latestSlotNum_ = 0L;
onChanged();
return this;
}
private boolean isJobs_ ;
/**
* bool isJobs = 9;
* @return The isJobs.
*/
@java.lang.Override
public boolean getIsJobs() {
return isJobs_;
}
/**
* bool isJobs = 9;
* @param value The isJobs to set.
* @return This builder for chaining.
*/
public Builder setIsJobs(boolean value) {
isJobs_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* bool isJobs = 9;
* @return This builder for chaining.
*/
public Builder clearIsJobs() {
bitField0_ = (bitField0_ & ~0x00000100);
isJobs_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.Witness)
}
// @@protoc_insertion_point(class_scope:protocol.Witness)
private static final org.tron.trident.proto.Response.Witness DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Response.Witness();
}
public static org.tron.trident.proto.Response.Witness getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Witness parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Response.Witness getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccountOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Account)
com.google.protobuf.MessageOrBuilder {
/**
*
* account nick name
*
*
* bytes account_name = 1;
* @return The accountName.
*/
com.google.protobuf.ByteString getAccountName();
/**
* .protocol.AccountType type = 2;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .protocol.AccountType type = 2;
* @return The type.
*/
org.tron.trident.proto.Common.AccountType getType();
/**
*
* the create address
*
*
* bytes address = 3;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
*
* the trx balance
*
*
* int64 balance = 4;
* @return The balance.
*/
long getBalance();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
*/
java.util.List
getVotesList();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
*/
org.tron.trident.proto.Common.Vote getVotes(int index);
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
*/
int getVotesCount();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
*/
java.util.List extends org.tron.trident.proto.Common.VoteOrBuilder>
getVotesOrBuilderList();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
*/
org.tron.trident.proto.Common.VoteOrBuilder getVotesOrBuilder(
int index);
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
*/
int getAssetCount();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
*/
boolean containsAsset(
java.lang.String key);
/**
* Use {@link #getAssetMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAsset();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
*/
java.util.Map
getAssetMap();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
*/
long getAssetOrDefault(
java.lang.String key,
long defaultValue);
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
*/
long getAssetOrThrow(
java.lang.String key);
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
*/
int getAssetV2Count();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
*/
boolean containsAssetV2(
java.lang.String key);
/**
* Use {@link #getAssetV2Map()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAssetV2();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
*/
java.util.Map
getAssetV2Map();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
*/
long getAssetV2OrDefault(
java.lang.String key,
long defaultValue);
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
*/
long getAssetV2OrThrow(
java.lang.String key);
/**
*
* the frozen balance for bandwidth
*
*
* repeated .protocol.Account.Frozen frozen = 7;
*/
java.util.List
getFrozenList();
/**
*
* the frozen balance for bandwidth
*
*
* repeated .protocol.Account.Frozen frozen = 7;
*/
org.tron.trident.proto.Response.Account.Frozen getFrozen(int index);
/**
*
* the frozen balance for bandwidth
*
*
* repeated .protocol.Account.Frozen frozen = 7;
*/
int getFrozenCount();
/**
*
* the frozen balance for bandwidth
*
*
* repeated .protocol.Account.Frozen frozen = 7;
*/
java.util.List extends org.tron.trident.proto.Response.Account.FrozenOrBuilder>
getFrozenOrBuilderList();
/**
*
* the frozen balance for bandwidth
*
*
* repeated .protocol.Account.Frozen frozen = 7;
*/
org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder(
int index);
/**
*
* bandwidth, get from frozen
*
*
* int64 net_usage = 8;
* @return The netUsage.
*/
long getNetUsage();
/**
*
* Frozen balance provided by other accounts to this account
*
*
* int64 acquired_delegated_frozen_balance_for_bandwidth = 41;
* @return The acquiredDelegatedFrozenBalanceForBandwidth.
*/
long getAcquiredDelegatedFrozenBalanceForBandwidth();
/**
*
* Freeze and provide balances to other accounts
*
*
* int64 delegated_frozen_balance_for_bandwidth = 42;
* @return The delegatedFrozenBalanceForBandwidth.
*/
long getDelegatedFrozenBalanceForBandwidth();
/**
* int64 old_tron_power = 46;
* @return The oldTronPower.
*/
long getOldTronPower();
/**
* .protocol.Account.Frozen tron_power = 47;
* @return Whether the tronPower field is set.
*/
boolean hasTronPower();
/**
* .protocol.Account.Frozen tron_power = 47;
* @return The tronPower.
*/
org.tron.trident.proto.Response.Account.Frozen getTronPower();
/**
* .protocol.Account.Frozen tron_power = 47;
*/
org.tron.trident.proto.Response.Account.FrozenOrBuilder getTronPowerOrBuilder();
/**
* bool asset_optimized = 60;
* @return The assetOptimized.
*/
boolean getAssetOptimized();
/**
*
* this account create time
*
*
* int64 create_time = 9;
* @return The createTime.
*/
long getCreateTime();
/**
*
* this last operation time, including transfer, voting and so on. //FIXME fix
* grammar
*
*
* int64 latest_opration_time = 10;
* @return The latestOprationTime.
*/
long getLatestOprationTime();
/**
*
* witness block producing allowance
*
*
* int64 allowance = 11;
* @return The allowance.
*/
long getAllowance();
/**
*
* last withdraw time
*
*
* int64 latest_withdraw_time = 12;
* @return The latestWithdrawTime.
*/
long getLatestWithdrawTime();
/**
*
* not used so far
*
*
* bytes code = 13;
* @return The code.
*/
com.google.protobuf.ByteString getCode();
/**
* bool is_witness = 14;
* @return The isWitness.
*/
boolean getIsWitness();
/**
* bool is_committee = 15;
* @return The isCommittee.
*/
boolean getIsCommittee();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
*/
java.util.List
getFrozenSupplyList();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
*/
org.tron.trident.proto.Response.Account.Frozen getFrozenSupply(int index);
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
*/
int getFrozenSupplyCount();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
*/
java.util.List extends org.tron.trident.proto.Response.Account.FrozenOrBuilder>
getFrozenSupplyOrBuilderList();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
*/
org.tron.trident.proto.Response.Account.FrozenOrBuilder getFrozenSupplyOrBuilder(
int index);
/**
*
* asset_issued_name
*
*
* bytes asset_issued_name = 17;
* @return The assetIssuedName.
*/
com.google.protobuf.ByteString getAssetIssuedName();
/**
* bytes asset_issued_ID = 57;
* @return The assetIssuedID.
*/
com.google.protobuf.ByteString getAssetIssuedID();
/**
* map<string, int64> latest_asset_operation_time = 18;
*/
int getLatestAssetOperationTimeCount();
/**
* map<string, int64> latest_asset_operation_time = 18;
*/
boolean containsLatestAssetOperationTime(
java.lang.String key);
/**
* Use {@link #getLatestAssetOperationTimeMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLatestAssetOperationTime();
/**
* map<string, int64> latest_asset_operation_time = 18;
*/
java.util.Map
getLatestAssetOperationTimeMap();
/**
* map<string, int64> latest_asset_operation_time = 18;
*/
long getLatestAssetOperationTimeOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> latest_asset_operation_time = 18;
*/
long getLatestAssetOperationTimeOrThrow(
java.lang.String key);
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
*/
int getLatestAssetOperationTimeV2Count();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
*/
boolean containsLatestAssetOperationTimeV2(
java.lang.String key);
/**
* Use {@link #getLatestAssetOperationTimeV2Map()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLatestAssetOperationTimeV2();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
*/
java.util.Map
getLatestAssetOperationTimeV2Map();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
*/
long getLatestAssetOperationTimeV2OrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
*/
long getLatestAssetOperationTimeV2OrThrow(
java.lang.String key);
/**
* int64 free_net_usage = 19;
* @return The freeNetUsage.
*/
long getFreeNetUsage();
/**
* map<string, int64> free_asset_net_usage = 20;
*/
int getFreeAssetNetUsageCount();
/**
* map<string, int64> free_asset_net_usage = 20;
*/
boolean containsFreeAssetNetUsage(
java.lang.String key);
/**
* Use {@link #getFreeAssetNetUsageMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getFreeAssetNetUsage();
/**
*