org.vision.visionjsdk.proto.Response Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/response.proto
package org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getTransactionsList();
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtention
*/
org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index);
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return int
*/
int getTransactionsCount();
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList();
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtentionOrBuilder
*/
org.vision.visionjsdk.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.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader();
/**
* .protocol.BlockHeader block_header = 2;
* @return BlockHeaderOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockExtention(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transactions_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.TransactionExtention.parser(), extensionRegistry));
break;
}
case 18: {
org.vision.visionjsdk.proto.Chain.BlockHeader.Builder subBuilder = null;
if (blockHeader_ != null) {
subBuilder = blockHeader_.toBuilder();
}
blockHeader_ = input.readMessage(org.vision.visionjsdk.proto.Chain.BlockHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blockHeader_);
blockHeader_ = subBuilder.buildPartial();
}
break;
}
case 26: {
blockid_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockExtention.class, org.vision.visionjsdk.proto.Response.BlockExtention.Builder.class);
}
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
private java.util.List transactions_;
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
@java.lang.Override
public java.util.List getTransactionsList() {
return transactions_;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList() {
return transactions_;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return int
*/
@java.lang.Override
public int getTransactionsCount() {
return transactions_.size();
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtention
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index) {
return transactions_.get(index);
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtentionOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
int index) {
return transactions_.get(index);
}
public static final int BLOCK_HEADER_FIELD_NUMBER = 2;
private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_;
/**
* .protocol.BlockHeader block_header = 2;
* @return Whether the blockHeader field is set.
*/
@java.lang.Override
public boolean hasBlockHeader() {
return blockHeader_ != null;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return The blockHeader.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() {
return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return BlockHeaderOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
return getBlockHeader();
}
public static final int BLOCKID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString blockid_;
/**
* 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 (blockHeader_ != null) {
output.writeMessage(2, getBlockHeader());
}
if (!blockid_.isEmpty()) {
output.writeBytes(3, blockid_);
}
unknownFields.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 (blockHeader_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBlockHeader());
}
if (!blockid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, blockid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.BlockExtention)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.BlockExtention other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.BlockExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockExtention.class, org.vision.visionjsdk.proto.Response.BlockExtention.Builder.class);
}
// Construct using org.vision.visionjsdk.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionsBuilder_ == null) {
transactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionsBuilder_.clear();
}
if (blockHeaderBuilder_ == null) {
blockHeader_ = null;
} else {
blockHeader_ = null;
blockHeaderBuilder_ = null;
}
blockid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockExtention_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockExtention getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockExtention build() {
org.vision.visionjsdk.proto.Response.BlockExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockExtention buildPartial() {
org.vision.visionjsdk.proto.Response.BlockExtention result = new org.vision.visionjsdk.proto.Response.BlockExtention(this);
int from_bitField0_ = bitField0_;
if (transactionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transactions_ = java.util.Collections.unmodifiableList(transactions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transactions_ = transactions_;
} else {
result.transactions_ = transactionsBuilder_.build();
}
if (blockHeaderBuilder_ == null) {
result.blockHeader_ = blockHeader_;
} else {
result.blockHeader_ = blockHeaderBuilder_.build();
}
result.blockid_ = blockid_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.BlockExtention) {
return mergeFrom((org.vision.visionjsdk.proto.Response.BlockExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockExtention other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.BlockExtention parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.BlockExtention) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder> transactionsBuilder_;
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
public java.util.List getTransactionsList() {
if (transactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(transactions_);
} else {
return transactionsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return int
*/
public int getTransactionsCount() {
if (transactionsBuilder_ == null) {
return transactions_.size();
} else {
return transactionsBuilder_.getCount();
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtention
*/
public org.vision.visionjsdk.proto.Response.TransactionExtention getTransactions(int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index);
} else {
return transactionsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setTransactions(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setTransactions(
int index, org.vision.visionjsdk.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;
* @param value value
* @return Builder
*/
public Builder addTransactions(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addTransactions(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addTransactions(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addTransactions(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllTransactions(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeTransactions(int index) {
if (transactionsBuilder_ == null) {
ensureTransactionsIsMutable();
transactions_.remove(index);
onChanged();
} else {
transactionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder getTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return TransactionExtentionOrBuilder
*/
public org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder getTransactionsOrBuilder(
int index) {
if (transactionsBuilder_ == null) {
return transactions_.get(index); } else {
return transactionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>
getTransactionsOrBuilderList() {
if (transactionsBuilder_ != null) {
return transactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transactions_);
}
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder addTransactionsBuilder() {
return getTransactionsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance());
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.TransactionExtention.Builder addTransactionsBuilder(
int index) {
return getTransactionsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance());
}
/**
* repeated .protocol.TransactionExtention transactions = 1;
* @return list
*/
public java.util.List
getTransactionsBuilderList() {
return getTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>
getTransactionsFieldBuilder() {
if (transactionsBuilder_ == null) {
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionExtention, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder, org.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder>(
transactions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
transactions_ = null;
}
return transactionsBuilder_;
}
private org.vision.visionjsdk.proto.Chain.BlockHeader blockHeader_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder> blockHeaderBuilder_;
/**
* .protocol.BlockHeader block_header = 2;
* @return Whether the blockHeader field is set.
*/
public boolean hasBlockHeader() {
return blockHeaderBuilder_ != null || blockHeader_ != null;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return The blockHeader.
*/
public org.vision.visionjsdk.proto.Chain.BlockHeader getBlockHeader() {
if (blockHeaderBuilder_ == null) {
return blockHeader_ == null ? org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
} else {
return blockHeaderBuilder_.getMessage();
}
}
/**
* .protocol.BlockHeader block_header = 2;
* @param value value
* @return Builder
*/
public Builder setBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) {
if (blockHeaderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blockHeader_ = value;
onChanged();
} else {
blockHeaderBuilder_.setMessage(value);
}
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return Builder
*/
public Builder setBlockHeader(
org.vision.visionjsdk.proto.Chain.BlockHeader.Builder builderForValue) {
if (blockHeaderBuilder_ == null) {
blockHeader_ = builderForValue.build();
onChanged();
} else {
blockHeaderBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
* @param value value
* @return Builder
*/
public Builder mergeBlockHeader(org.vision.visionjsdk.proto.Chain.BlockHeader value) {
if (blockHeaderBuilder_ == null) {
if (blockHeader_ != null) {
blockHeader_ =
org.vision.visionjsdk.proto.Chain.BlockHeader.newBuilder(blockHeader_).mergeFrom(value).buildPartial();
} else {
blockHeader_ = value;
}
onChanged();
} else {
blockHeaderBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return Builder
*/
public Builder clearBlockHeader() {
if (blockHeaderBuilder_ == null) {
blockHeader_ = null;
onChanged();
} else {
blockHeader_ = null;
blockHeaderBuilder_ = null;
}
return this;
}
/**
* .protocol.BlockHeader block_header = 2;
* @return Builder
*/
public org.vision.visionjsdk.proto.Chain.BlockHeader.Builder getBlockHeaderBuilder() {
onChanged();
return getBlockHeaderFieldBuilder().getBuilder();
}
/**
* .protocol.BlockHeader block_header = 2;
* @return BlockHeaderOrBuilder
*/
public org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder getBlockHeaderOrBuilder() {
if (blockHeaderBuilder_ != null) {
return blockHeaderBuilder_.getMessageOrBuilder();
} else {
return blockHeader_ == null ?
org.vision.visionjsdk.proto.Chain.BlockHeader.getDefaultInstance() : blockHeader_;
}
}
/**
* .protocol.BlockHeader block_header = 2;
* @return SingleFieldBuilderV3
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.proto.Chain.BlockHeaderOrBuilder>
getBlockHeaderFieldBuilder() {
if (blockHeaderBuilder_ == null) {
blockHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.BlockHeader, org.vision.visionjsdk.proto.Chain.BlockHeader.Builder, org.vision.visionjsdk.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;
onChanged();
return this;
}
/**
* bytes blockid = 3;
* @return This builder for chaining.
*/
public Builder clearBlockid() {
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.vision.visionjsdk.proto.Response.BlockExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockExtention();
}
public static org.vision.visionjsdk.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 {
return new BlockExtention(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getBlockList();
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtention
*/
org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index);
/**
* repeated .protocol.BlockExtention block = 1;
* @return int
*/
int getBlockCount();
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList();
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtentionOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockListExtention(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
block_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
block_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.BlockExtention.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockListExtention.class, org.vision.visionjsdk.proto.Response.BlockListExtention.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private java.util.List block_;
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
@java.lang.Override
public java.util.List getBlockList() {
return block_;
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList() {
return block_;
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return int
*/
@java.lang.Override
public int getBlockCount() {
return block_.size();
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtention
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index) {
return block_.get(index);
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtentionOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.BlockListExtention)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.BlockListExtention other = (org.vision.visionjsdk.proto.Response.BlockListExtention) obj;
if (!getBlockList()
.equals(other.getBlockList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBlockCount() > 0) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlockList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockListExtention.class, org.vision.visionjsdk.proto.Response.BlockListExtention.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.BlockListExtention.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBlockFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
blockBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockListExtention_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockListExtention getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.BlockListExtention.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockListExtention build() {
org.vision.visionjsdk.proto.Response.BlockListExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockListExtention buildPartial() {
org.vision.visionjsdk.proto.Response.BlockListExtention result = new org.vision.visionjsdk.proto.Response.BlockListExtention(this);
int from_bitField0_ = bitField0_;
if (blockBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.BlockListExtention) {
return mergeFrom((org.vision.visionjsdk.proto.Response.BlockListExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockListExtention other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.BlockListExtention parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.BlockListExtention) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder> blockBuilder_;
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
public java.util.List getBlockList() {
if (blockBuilder_ == null) {
return java.util.Collections.unmodifiableList(block_);
} else {
return blockBuilder_.getMessageList();
}
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return int
*/
public int getBlockCount() {
if (blockBuilder_ == null) {
return block_.size();
} else {
return blockBuilder_.getCount();
}
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtention
*/
public org.vision.visionjsdk.proto.Response.BlockExtention getBlock(int index) {
if (blockBuilder_ == null) {
return block_.get(index);
} else {
return blockBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setBlock(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setBlock(
int index, org.vision.visionjsdk.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;
* @param value value
* @return Builder
*/
public Builder addBlock(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addBlock(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addBlock(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addBlock(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllBlock(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeBlock(int index) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.remove(index);
onChanged();
} else {
blockBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.BlockExtention.Builder getBlockBuilder(
int index) {
return getBlockFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return BlockExtentionOrBuilder
*/
public org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder getBlockOrBuilder(
int index) {
if (blockBuilder_ == null) {
return block_.get(index); } else {
return blockBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>
getBlockOrBuilderList() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(block_);
}
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.BlockExtention.Builder addBlockBuilder() {
return getBlockFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance());
}
/**
* repeated .protocol.BlockExtention block = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.BlockExtention.Builder addBlockBuilder(
int index) {
return getBlockFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.BlockExtention.getDefaultInstance());
}
/**
* repeated .protocol.BlockExtention block = 1;
* @return list
*/
public java.util.List
getBlockBuilderList() {
return getBlockFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.proto.Response.BlockExtentionOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.BlockExtention, org.vision.visionjsdk.proto.Response.BlockExtention.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockListExtention();
}
public static org.vision.visionjsdk.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 {
return new BlockListExtention(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionReturn(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
result_ = input.readBool();
break;
}
case 16: {
int rawValue = input.readEnum();
code_ = rawValue;
break;
}
case 26: {
message_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionReturn.class, org.vision.visionjsdk.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),
/**
* 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;
/**
* 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 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.vision.visionjsdk.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_;
/**
* 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_;
/**
* .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.vision.visionjsdk.proto.Response.TransactionReturn.response_code getCode() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Response.TransactionReturn.response_code result = org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.valueOf(code_);
return result == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString message_;
/**
* 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.vision.visionjsdk.proto.Response.TransactionReturn.response_code.SUCCESS.getNumber()) {
output.writeEnum(2, code_);
}
if (!message_.isEmpty()) {
output.writeBytes(3, message_);
}
unknownFields.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.vision.visionjsdk.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionReturn)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.TransactionReturn other = (org.vision.visionjsdk.proto.Response.TransactionReturn) obj;
if (getResult()
!= other.getResult()) return false;
if (code_ != other.code_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionReturn.class, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.TransactionReturn.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
result_ = false;
code_ = 0;
message_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionReturn_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn build() {
org.vision.visionjsdk.proto.Response.TransactionReturn result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn buildPartial() {
org.vision.visionjsdk.proto.Response.TransactionReturn result = new org.vision.visionjsdk.proto.Response.TransactionReturn(this);
result.result_ = result_;
result.code_ = code_;
result.message_ = message_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.TransactionReturn) {
return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionReturn)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionReturn other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.TransactionReturn parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionReturn) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* bool result = 1;
* @return This builder for chaining.
*/
public Builder clearResult() {
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;
onChanged();
return this;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return The code.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn.response_code getCode() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Response.TransactionReturn.response_code result = org.vision.visionjsdk.proto.Response.TransactionReturn.response_code.valueOf(code_);
return result == null ? org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn.response_code value) {
if (value == null) {
throw new NullPointerException();
}
code_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.TransactionReturn.response_code code = 2;
* @return This builder for chaining.
*/
public Builder clearCode() {
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;
onChanged();
return this;
}
/**
* bytes message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
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.vision.visionjsdk.proto.Response.TransactionReturn DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionReturn();
}
public static org.vision.visionjsdk.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 {
return new TransactionReturn(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionExtentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionExtention)
com.google.protobuf.MessageOrBuilder {
/**
*
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
*
* @return The transaction.
*/
org.vision.visionjsdk.proto.Chain.Transaction getTransaction();
/**
*
* @return TransactionOrBuilder
*/
org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionReturn getResult();
/**
* .protocol.TransactionReturn result = 4;
* @return TransactionReturnOrBuilder
*/
org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder();
}
/**
* 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_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionExtention();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionExtention(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.vision.visionjsdk.proto.Chain.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = subBuilder.buildPartial();
}
break;
}
case 18: {
txid_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
constantResult_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
constantResult_.add(input.readBytes());
break;
}
case 34: {
org.vision.visionjsdk.proto.Response.TransactionReturn.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionReturn.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
constantResult_ = java.util.Collections.unmodifiableList(constantResult_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionExtention.class, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Chain.Transaction transaction_;
/**
*
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
*
* @return The transaction.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() {
return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
/**
*
* @return TransactionOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
public static final int TXID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString txid_;
/**
*
* 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;
private java.util.List constantResult_;
/**
* 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.vision.visionjsdk.proto.Response.TransactionReturn result_;
/**
* .protocol.TransactionReturn result = 4;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
* .protocol.TransactionReturn result = 4;
* @return The result.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() {
return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
/**
* .protocol.TransactionReturn result = 4;
* @return TransactionReturnOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
return getResult();
}
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 (transaction_ != null) {
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 (result_ != null) {
output.writeMessage(4, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (transaction_ != null) {
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 (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResult());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionExtention)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.TransactionExtention other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionExtention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionExtention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionExtentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionExtention.class, org.vision.visionjsdk.proto.Response.TransactionExtention.Builder.class);
}
// Construct using org.vision.visionjsdk.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionBuilder_ == null) {
transaction_ = null;
} else {
transaction_ = null;
transactionBuilder_ = null;
}
txid_ = com.google.protobuf.ByteString.EMPTY;
constantResult_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionExtention_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionExtention getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.TransactionExtention.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionExtention build() {
org.vision.visionjsdk.proto.Response.TransactionExtention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionExtention buildPartial() {
org.vision.visionjsdk.proto.Response.TransactionExtention result = new org.vision.visionjsdk.proto.Response.TransactionExtention(this);
int from_bitField0_ = bitField0_;
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
result.txid_ = txid_;
if (((bitField0_ & 0x00000001) != 0)) {
constantResult_ = java.util.Collections.unmodifiableList(constantResult_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.constantResult_ = constantResult_;
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.TransactionExtention) {
return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionExtention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionExtention other) {
if (other == org.vision.visionjsdk.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_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConstantResultIsMutable();
constantResult_.addAll(other.constantResult_);
}
onChanged();
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.TransactionExtention parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionExtention) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.vision.visionjsdk.proto.Chain.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_;
/**
*
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
*
* @return The transaction.
*/
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
*
* @param value value
* @return Builder
*/
public Builder setTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
/**
*
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setTransaction(
org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* @param value value
* @return Builder
*/
public Builder mergeTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.vision.visionjsdk.proto.Chain.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* @return Builder
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
/**
*
* @return Builder
*/
public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
*
* @return TransactionOrBuilder
*/
public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
}
/**
*
* @return SingleFieldBuilderV3
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.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;
onChanged();
return this;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 2;
* @return This builder for chaining.
*/
public Builder clearTxid() {
txid_ = getDefaultInstance().getTxid();
onChanged();
return this;
}
private java.util.List constantResult_ = java.util.Collections.emptyList();
private void ensureConstantResultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
constantResult_ = new java.util.ArrayList(constantResult_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes constant_result = 3;
* @return A list containing the constantResult.
*/
public java.util.List
getConstantResultList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(constantResult_) : 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);
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);
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_);
onChanged();
return this;
}
/**
* repeated bytes constant_result = 3;
* @return This builder for chaining.
*/
public Builder clearConstantResult() {
constantResult_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private org.vision.visionjsdk.proto.Response.TransactionReturn result_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> resultBuilder_;
/**
* .protocol.TransactionReturn result = 4;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .protocol.TransactionReturn result = 4;
* @return The result.
*/
public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() {
if (resultBuilder_ == null) {
return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .protocol.TransactionReturn result = 4;
* @param value value
* @return Builder
*/
public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .protocol.TransactionReturn result = 4;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setResult(
org.vision.visionjsdk.proto.Response.TransactionReturn.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protocol.TransactionReturn result = 4;
* @param value value
* @return Builder
*/
public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
org.vision.visionjsdk.proto.Response.TransactionReturn.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protocol.TransactionReturn result = 4;
* @return Builder
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .protocol.TransactionReturn result = 4;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.TransactionReturn.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .protocol.TransactionReturn result = 4;
* @return TransactionReturnOrBuilder
*/
public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
}
/**
* .protocol.TransactionReturn result = 4;
* @return SingleFieldBuilderV3
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@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.vision.visionjsdk.proto.Response.TransactionExtention DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionExtention();
}
public static org.vision.visionjsdk.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 {
return new TransactionExtention(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getWitnessesList();
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return Witness
*/
org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index);
/**
* repeated .protocol.Witness witnesses = 1;
* @return int
*/
int getWitnessesCount();
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList();
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return WitnessOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WitnessList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
witnesses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
witnesses_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.Witness.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
witnesses_ = java.util.Collections.unmodifiableList(witnesses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.WitnessList.class, org.vision.visionjsdk.proto.Response.WitnessList.Builder.class);
}
public static final int WITNESSES_FIELD_NUMBER = 1;
private java.util.List witnesses_;
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
@java.lang.Override
public java.util.List getWitnessesList() {
return witnesses_;
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList() {
return witnesses_;
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return int
*/
@java.lang.Override
public int getWitnessesCount() {
return witnesses_.size();
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return Witness
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index) {
return witnesses_.get(index);
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return WitnessOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.WitnessList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.WitnessList other = (org.vision.visionjsdk.proto.Response.WitnessList) obj;
if (!getWitnessesList()
.equals(other.getWitnessesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getWitnessesCount() > 0) {
hash = (37 * hash) + WITNESSES_FIELD_NUMBER;
hash = (53 * hash) + getWitnessesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.WitnessList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.WitnessList.class, org.vision.visionjsdk.proto.Response.WitnessList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.WitnessList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getWitnessesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (witnessesBuilder_ == null) {
witnesses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
witnessesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_WitnessList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.WitnessList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.WitnessList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.WitnessList build() {
org.vision.visionjsdk.proto.Response.WitnessList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.WitnessList buildPartial() {
org.vision.visionjsdk.proto.Response.WitnessList result = new org.vision.visionjsdk.proto.Response.WitnessList(this);
int from_bitField0_ = bitField0_;
if (witnessesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
witnesses_ = java.util.Collections.unmodifiableList(witnesses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.witnesses_ = witnesses_;
} else {
result.witnesses_ = witnessesBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.WitnessList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.WitnessList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.WitnessList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.WitnessList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.WitnessList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.proto.Response.WitnessOrBuilder> witnessesBuilder_;
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
public java.util.List getWitnessesList() {
if (witnessesBuilder_ == null) {
return java.util.Collections.unmodifiableList(witnesses_);
} else {
return witnessesBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return int
*/
public int getWitnessesCount() {
if (witnessesBuilder_ == null) {
return witnesses_.size();
} else {
return witnessesBuilder_.getCount();
}
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return Witness
*/
public org.vision.visionjsdk.proto.Response.Witness getWitnesses(int index) {
if (witnessesBuilder_ == null) {
return witnesses_.get(index);
} else {
return witnessesBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setWitnesses(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setWitnesses(
int index, org.vision.visionjsdk.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;
* @param value value
* @return Builder
*/
public Builder addWitnesses(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addWitnesses(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addWitnesses(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addWitnesses(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllWitnesses(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeWitnesses(int index) {
if (witnessesBuilder_ == null) {
ensureWitnessesIsMutable();
witnesses_.remove(index);
onChanged();
} else {
witnessesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Witness.Builder getWitnessesBuilder(
int index) {
return getWitnessesFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return WitnessOrBuilder
*/
public org.vision.visionjsdk.proto.Response.WitnessOrBuilder getWitnessesOrBuilder(
int index) {
if (witnessesBuilder_ == null) {
return witnesses_.get(index); } else {
return witnessesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Response.WitnessOrBuilder>
getWitnessesOrBuilderList() {
if (witnessesBuilder_ != null) {
return witnessesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(witnesses_);
}
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Witness.Builder addWitnessesBuilder() {
return getWitnessesFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance());
}
/**
* repeated .protocol.Witness witnesses = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Witness.Builder addWitnessesBuilder(
int index) {
return getWitnessesFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance());
}
/**
* repeated .protocol.Witness witnesses = 1;
* @return list
*/
public java.util.List
getWitnessesBuilderList() {
return getWitnessesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.proto.Response.WitnessOrBuilder>
getWitnessesFieldBuilder() {
if (witnessesBuilder_ == null) {
witnessesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Witness, org.vision.visionjsdk.proto.Response.Witness.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.WitnessList();
}
public static org.vision.visionjsdk.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 {
return new WitnessList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getProposalsList();
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Proposal
*/
org.vision.visionjsdk.proto.Response.Proposal getProposals(int index);
/**
* repeated .protocol.Proposal proposals = 1;
* @return int
*/
int getProposalsCount();
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList();
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return ProposalOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProposalList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
proposals_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
proposals_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.Proposal.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
proposals_ = java.util.Collections.unmodifiableList(proposals_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ProposalList.class, org.vision.visionjsdk.proto.Response.ProposalList.Builder.class);
}
public static final int PROPOSALS_FIELD_NUMBER = 1;
private java.util.List proposals_;
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
@java.lang.Override
public java.util.List getProposalsList() {
return proposals_;
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList() {
return proposals_;
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return int
*/
@java.lang.Override
public int getProposalsCount() {
return proposals_.size();
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Proposal
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Proposal getProposals(int index) {
return proposals_.get(index);
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return ProposalOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.ProposalList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.ProposalList other = (org.vision.visionjsdk.proto.Response.ProposalList) obj;
if (!getProposalsList()
.equals(other.getProposalsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getProposalsCount() > 0) {
hash = (37 * hash) + PROPOSALS_FIELD_NUMBER;
hash = (53 * hash) + getProposalsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.ProposalList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ProposalList.class, org.vision.visionjsdk.proto.Response.ProposalList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.ProposalList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProposalsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (proposalsBuilder_ == null) {
proposals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
proposalsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ProposalList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ProposalList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.ProposalList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ProposalList build() {
org.vision.visionjsdk.proto.Response.ProposalList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ProposalList buildPartial() {
org.vision.visionjsdk.proto.Response.ProposalList result = new org.vision.visionjsdk.proto.Response.ProposalList(this);
int from_bitField0_ = bitField0_;
if (proposalsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
proposals_ = java.util.Collections.unmodifiableList(proposals_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.proposals_ = proposals_;
} else {
result.proposals_ = proposalsBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.ProposalList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.ProposalList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ProposalList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.ProposalList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.ProposalList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.proto.Response.ProposalOrBuilder> proposalsBuilder_;
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
public java.util.List getProposalsList() {
if (proposalsBuilder_ == null) {
return java.util.Collections.unmodifiableList(proposals_);
} else {
return proposalsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return int
*/
public int getProposalsCount() {
if (proposalsBuilder_ == null) {
return proposals_.size();
} else {
return proposalsBuilder_.getCount();
}
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Proposal
*/
public org.vision.visionjsdk.proto.Response.Proposal getProposals(int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index);
} else {
return proposalsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setProposals(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setProposals(
int index, org.vision.visionjsdk.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;
* @param value index
* @return Builder
*/
public Builder addProposals(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addProposals(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addProposals(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addProposals(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllProposals(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeProposals(int index) {
if (proposalsBuilder_ == null) {
ensureProposalsIsMutable();
proposals_.remove(index);
onChanged();
} else {
proposalsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Proposal.Builder getProposalsBuilder(
int index) {
return getProposalsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.ProposalOrBuilder getProposalsOrBuilder(
int index) {
if (proposalsBuilder_ == null) {
return proposals_.get(index); } else {
return proposalsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Response.ProposalOrBuilder>
getProposalsOrBuilderList() {
if (proposalsBuilder_ != null) {
return proposalsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(proposals_);
}
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Proposal.Builder addProposalsBuilder() {
return getProposalsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance());
}
/**
* repeated .protocol.Proposal proposals = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Proposal.Builder addProposalsBuilder(
int index) {
return getProposalsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.Proposal.getDefaultInstance());
}
/**
* repeated .protocol.Proposal proposals = 1;
* @return list
*/
public java.util.List
getProposalsBuilderList() {
return getProposalsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.proto.Response.ProposalOrBuilder>
getProposalsFieldBuilder() {
if (proposalsBuilder_ == null) {
proposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Proposal, org.vision.visionjsdk.proto.Response.Proposal.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ProposalList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ProposalList();
}
public static org.vision.visionjsdk.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 {
return new ProposalList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getExchangesList();
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return Exchange
*/
org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index);
/**
* repeated .protocol.Exchange exchanges = 1;
* @return int
*/
int getExchangesCount();
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList();
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return ExchangeOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExchangeList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
exchanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
exchanges_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.Exchange.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ExchangeList.class, org.vision.visionjsdk.proto.Response.ExchangeList.Builder.class);
}
public static final int EXCHANGES_FIELD_NUMBER = 1;
private java.util.List exchanges_;
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
@java.lang.Override
public java.util.List getExchangesList() {
return exchanges_;
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList() {
return exchanges_;
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return int
*/
@java.lang.Override
public int getExchangesCount() {
return exchanges_.size();
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return Exchange
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index) {
return exchanges_.get(index);
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return ExchangeOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.ExchangeList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.ExchangeList other = (org.vision.visionjsdk.proto.Response.ExchangeList) obj;
if (!getExchangesList()
.equals(other.getExchangesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getExchangesCount() > 0) {
hash = (37 * hash) + EXCHANGES_FIELD_NUMBER;
hash = (53 * hash) + getExchangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.ExchangeList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ExchangeList.class, org.vision.visionjsdk.proto.Response.ExchangeList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.ExchangeList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExchangesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (exchangesBuilder_ == null) {
exchanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
exchangesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ExchangeList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ExchangeList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.ExchangeList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ExchangeList build() {
org.vision.visionjsdk.proto.Response.ExchangeList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ExchangeList buildPartial() {
org.vision.visionjsdk.proto.Response.ExchangeList result = new org.vision.visionjsdk.proto.Response.ExchangeList(this);
int from_bitField0_ = bitField0_;
if (exchangesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
exchanges_ = java.util.Collections.unmodifiableList(exchanges_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.exchanges_ = exchanges_;
} else {
result.exchanges_ = exchangesBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.ExchangeList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.ExchangeList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ExchangeList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.ExchangeList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.ExchangeList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.proto.Response.ExchangeOrBuilder> exchangesBuilder_;
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
public java.util.List getExchangesList() {
if (exchangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(exchanges_);
} else {
return exchangesBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return int
*/
public int getExchangesCount() {
if (exchangesBuilder_ == null) {
return exchanges_.size();
} else {
return exchangesBuilder_.getCount();
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return Exchange
*/
public org.vision.visionjsdk.proto.Response.Exchange getExchanges(int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index);
} else {
return exchangesBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setExchanges(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setExchanges(
int index, org.vision.visionjsdk.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;
* @param value value
* @return Builder
*/
public Builder addExchanges(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addExchanges(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addExchanges(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addExchanges(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllExchanges(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeExchanges(int index) {
if (exchangesBuilder_ == null) {
ensureExchangesIsMutable();
exchanges_.remove(index);
onChanged();
} else {
exchangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Exchange.Builder getExchangesBuilder(
int index) {
return getExchangesFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return ExchangeOrBuilder
*/
public org.vision.visionjsdk.proto.Response.ExchangeOrBuilder getExchangesOrBuilder(
int index) {
if (exchangesBuilder_ == null) {
return exchanges_.get(index); } else {
return exchangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Response.ExchangeOrBuilder>
getExchangesOrBuilderList() {
if (exchangesBuilder_ != null) {
return exchangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(exchanges_);
}
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Exchange.Builder addExchangesBuilder() {
return getExchangesFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance());
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Response.Exchange.Builder addExchangesBuilder(
int index) {
return getExchangesFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.Exchange.getDefaultInstance());
}
/**
* repeated .protocol.Exchange exchanges = 1;
* @return list
*/
public java.util.List
getExchangesBuilderList() {
return getExchangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.proto.Response.ExchangeOrBuilder>
getExchangesFieldBuilder() {
if (exchangesBuilder_ == null) {
exchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.Exchange, org.vision.visionjsdk.proto.Response.Exchange.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ExchangeList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ExchangeList();
}
public static org.vision.visionjsdk.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 {
return new ExchangeList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getAssetsList();
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContract
*/
org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index);
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return int
*/
int getAssetsCount();
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList();
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContractOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetIssueList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
assets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
assets_.add(
input.readMessage(org.vision.visionjsdk.proto.Contract.AssetIssueContract.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
assets_ = java.util.Collections.unmodifiableList(assets_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.AssetIssueList.class, org.vision.visionjsdk.proto.Response.AssetIssueList.Builder.class);
}
public static final int ASSETS_FIELD_NUMBER = 1;
private java.util.List assets_;
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
@java.lang.Override
public java.util.List getAssetsList() {
return assets_;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList() {
return assets_;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return int
*/
@java.lang.Override
public int getAssetsCount() {
return assets_.size();
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContract
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index) {
return assets_.get(index);
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContractOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.AssetIssueList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.AssetIssueList other = (org.vision.visionjsdk.proto.Response.AssetIssueList) obj;
if (!getAssetsList()
.equals(other.getAssetsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAssetsCount() > 0) {
hash = (37 * hash) + ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getAssetsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.AssetIssueList.class, org.vision.visionjsdk.proto.Response.AssetIssueList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.AssetIssueList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAssetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (assetsBuilder_ == null) {
assets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
assetsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AssetIssueList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AssetIssueList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.AssetIssueList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AssetIssueList build() {
org.vision.visionjsdk.proto.Response.AssetIssueList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AssetIssueList buildPartial() {
org.vision.visionjsdk.proto.Response.AssetIssueList result = new org.vision.visionjsdk.proto.Response.AssetIssueList(this);
int from_bitField0_ = bitField0_;
if (assetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
assets_ = java.util.Collections.unmodifiableList(assets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.assets_ = assets_;
} else {
result.assets_ = assetsBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.AssetIssueList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.AssetIssueList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AssetIssueList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.AssetIssueList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.AssetIssueList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder> assetsBuilder_;
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
public java.util.List getAssetsList() {
if (assetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(assets_);
} else {
return assetsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return int
*/
public int getAssetsCount() {
if (assetsBuilder_ == null) {
return assets_.size();
} else {
return assetsBuilder_.getCount();
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContract
*/
public org.vision.visionjsdk.proto.Contract.AssetIssueContract getAssets(int index) {
if (assetsBuilder_ == null) {
return assets_.get(index);
} else {
return assetsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setAssets(
int index, org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setAssets(
int index, org.vision.visionjsdk.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;
* @param value value
* @return Builder
*/
public Builder addAssets(org.vision.visionjsdk.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;
* @param index index
* @param value value
* @return Builder
*/
public Builder addAssets(
int index, org.vision.visionjsdk.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;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addAssets(
org.vision.visionjsdk.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;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addAssets(
int index, org.vision.visionjsdk.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;
* @param values values
* @return Builder
*/
public Builder addAllAssets(
java.lang.Iterable extends org.vision.visionjsdk.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;
* @return Builder
*/
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;
* @param index index
* @return Builder
*/
public Builder removeAssets(int index) {
if (assetsBuilder_ == null) {
ensureAssetsIsMutable();
assets_.remove(index);
onChanged();
} else {
assetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder getAssetsBuilder(
int index) {
return getAssetsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return AssetIssueContractOrBuilder
*/
public org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder getAssetsOrBuilder(
int index) {
if (assetsBuilder_ == null) {
return assets_.get(index); } else {
return assetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder>
getAssetsOrBuilderList() {
if (assetsBuilder_ != null) {
return assetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(assets_);
}
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder addAssetsBuilder() {
return getAssetsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance());
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder addAssetsBuilder(
int index) {
return getAssetsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Contract.AssetIssueContract.getDefaultInstance());
}
/**
* repeated .protocol.AssetIssueContract assets = 1;
* @return list
*/
public java.util.List
getAssetsBuilderList() {
return getAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.proto.Contract.AssetIssueContractOrBuilder>
getAssetsFieldBuilder() {
if (assetsBuilder_ == null) {
assetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Contract.AssetIssueContract, org.vision.visionjsdk.proto.Contract.AssetIssueContract.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AssetIssueList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AssetIssueList();
}
public static org.vision.visionjsdk.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 {
return new AssetIssueList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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;
* @return list
*/
java.util.List
getBlockList();
/**
* repeated .protocol.Block block = 1;
* @param index index
* @return Block
*/
org.vision.visionjsdk.proto.Chain.Block getBlock(int index);
/**
* repeated .protocol.Block block = 1;
* @return int
*/
int getBlockCount();
/**
* repeated .protocol.Block block = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList();
/**
* repeated .protocol.Block block = 1;
* @param index index
* @return BlockOrBuilder
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
block_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
block_.add(
input.readMessage(org.vision.visionjsdk.proto.Chain.Block.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockList.class, org.vision.visionjsdk.proto.Response.BlockList.Builder.class);
}
public static final int BLOCK_FIELD_NUMBER = 1;
private java.util.List block_;
/**
* repeated .protocol.Block block = 1;
* @return list
*/
@java.lang.Override
public java.util.List getBlockList() {
return block_;
}
/**
* repeated .protocol.Block block = 1;
* @return list
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList() {
return block_;
}
/**
* repeated .protocol.Block block = 1;
* @return int
*/
@java.lang.Override
public int getBlockCount() {
return block_.size();
}
/**
* repeated .protocol.Block block = 1;
* @param index index
* @return Block
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.Block getBlock(int index) {
return block_.get(index);
}
/**
* repeated .protocol.Block block = 1;
* @param index index
* @return BlockOrBuilder
*/
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.BlockList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.BlockList other = (org.vision.visionjsdk.proto.Response.BlockList) obj;
if (!getBlockList()
.equals(other.getBlockList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBlockCount() > 0) {
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getBlockList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.BlockList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.BlockList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.BlockList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.BlockList.class, org.vision.visionjsdk.proto.Response.BlockList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.BlockList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBlockFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
blockBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_BlockList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.BlockList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockList build() {
org.vision.visionjsdk.proto.Response.BlockList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockList buildPartial() {
org.vision.visionjsdk.proto.Response.BlockList result = new org.vision.visionjsdk.proto.Response.BlockList(this);
int from_bitField0_ = bitField0_;
if (blockBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
block_ = java.util.Collections.unmodifiableList(block_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.block_ = block_;
} else {
result.block_ = blockBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.BlockList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.BlockList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.BlockList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.BlockList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.BlockList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.proto.Chain.BlockOrBuilder> blockBuilder_;
/**
* repeated .protocol.Block block = 1;
* @return list
*/
public java.util.List getBlockList() {
if (blockBuilder_ == null) {
return java.util.Collections.unmodifiableList(block_);
} else {
return blockBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Block block = 1;
* @return int
*/
public int getBlockCount() {
if (blockBuilder_ == null) {
return block_.size();
} else {
return blockBuilder_.getCount();
}
}
/**
* repeated .protocol.Block block = 1;
* @param index index
* @return Block
*/
public org.vision.visionjsdk.proto.Chain.Block getBlock(int index) {
if (blockBuilder_ == null) {
return block_.get(index);
} else {
return blockBuilder_.getMessage(index);
}
}
public Builder setBlock(
int index, org.vision.visionjsdk.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;
}
public Builder setBlock(
int index, org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.set(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addBlock(org.vision.visionjsdk.proto.Chain.Block value) {
if (blockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlockIsMutable();
block_.add(value);
onChanged();
} else {
blockBuilder_.addMessage(value);
}
return this;
}
public Builder addBlock(
int index, org.vision.visionjsdk.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;
}
public Builder addBlock(
org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addBlock(
int index, org.vision.visionjsdk.proto.Chain.Block.Builder builderForValue) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.add(index, builderForValue.build());
onChanged();
} else {
blockBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllBlock(
java.lang.Iterable extends org.vision.visionjsdk.proto.Chain.Block> values) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, block_);
onChanged();
} else {
blockBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearBlock() {
if (blockBuilder_ == null) {
block_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blockBuilder_.clear();
}
return this;
}
public Builder removeBlock(int index) {
if (blockBuilder_ == null) {
ensureBlockIsMutable();
block_.remove(index);
onChanged();
} else {
blockBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Chain.Block.Builder getBlockBuilder(
int index) {
return getBlockFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Chain.BlockOrBuilder getBlockOrBuilder(
int index) {
if (blockBuilder_ == null) {
return block_.get(index); } else {
return blockBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Chain.BlockOrBuilder>
getBlockOrBuilderList() {
if (blockBuilder_ != null) {
return blockBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(block_);
}
}
public org.vision.visionjsdk.proto.Chain.Block.Builder addBlockBuilder() {
return getBlockFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Chain.Block.Builder addBlockBuilder(
int index) {
return getBlockFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Chain.Block.getDefaultInstance());
}
public java.util.List
getBlockBuilderList() {
return getBlockFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.proto.Chain.BlockOrBuilder>
getBlockFieldBuilder() {
if (blockBuilder_ == null) {
blockBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Block, org.vision.visionjsdk.proto.Chain.Block.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.BlockList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.BlockList();
}
public static org.vision.visionjsdk.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 {
return new BlockList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.BlockList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.TransactionList)
com.google.protobuf.MessageOrBuilder {
java.util.List
getTransactionList();
org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index);
int getTransactionCount();
java.util.List extends org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList();
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
transaction_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
transaction_.add(
input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
transaction_ = java.util.Collections.unmodifiableList(transaction_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionList.class, org.vision.visionjsdk.proto.Response.TransactionList.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private java.util.List transaction_;
@java.lang.Override
public java.util.List getTransactionList() {
return transaction_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList() {
return transaction_;
}
@java.lang.Override
public int getTransactionCount() {
return transaction_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index) {
return transaction_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.TransactionList other = (org.vision.visionjsdk.proto.Response.TransactionList) obj;
if (!getTransactionList()
.equals(other.getTransactionList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTransactionCount() > 0) {
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getTransactionList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.TransactionList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionList.class, org.vision.visionjsdk.proto.Response.TransactionList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.TransactionList.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionBuilder_ == null) {
transaction_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
transactionBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.TransactionList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionList build() {
org.vision.visionjsdk.proto.Response.TransactionList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionList buildPartial() {
org.vision.visionjsdk.proto.Response.TransactionList result = new org.vision.visionjsdk.proto.Response.TransactionList(this);
int from_bitField0_ = bitField0_;
if (transactionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
transaction_ = java.util.Collections.unmodifiableList(transaction_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.TransactionList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.TransactionList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_;
public java.util.List getTransactionList() {
if (transactionBuilder_ == null) {
return java.util.Collections.unmodifiableList(transaction_);
} else {
return transactionBuilder_.getMessageList();
}
}
public int getTransactionCount() {
if (transactionBuilder_ == null) {
return transaction_.size();
} else {
return transactionBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction(int index) {
if (transactionBuilder_ == null) {
return transaction_.get(index);
} else {
return transactionBuilder_.getMessage(index);
}
}
public Builder setTransaction(
int index, org.vision.visionjsdk.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;
}
public Builder setTransaction(
int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.set(index, builderForValue.build());
onChanged();
} else {
transactionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTransactionIsMutable();
transaction_.add(value);
onChanged();
} else {
transactionBuilder_.addMessage(value);
}
return this;
}
public Builder addTransaction(
int index, org.vision.visionjsdk.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;
}
public Builder addTransaction(
org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.add(builderForValue.build());
onChanged();
} else {
transactionBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addTransaction(
int index, org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.add(index, builderForValue.build());
onChanged();
} else {
transactionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllTransaction(
java.lang.Iterable extends org.vision.visionjsdk.proto.Chain.Transaction> values) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, transaction_);
onChanged();
} else {
transactionBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
transactionBuilder_.clear();
}
return this;
}
public Builder removeTransaction(int index) {
if (transactionBuilder_ == null) {
ensureTransactionIsMutable();
transaction_.remove(index);
onChanged();
} else {
transactionBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder(
int index) {
return getTransactionFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder(
int index) {
if (transactionBuilder_ == null) {
return transaction_.get(index); } else {
return transactionBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionOrBuilderList() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(transaction_);
}
}
public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionBuilder() {
return getTransactionFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Chain.Transaction.Builder addTransactionBuilder(
int index) {
return getTransactionFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance());
}
public java.util.List
getTransactionBuilderList() {
return getTransactionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionList();
}
public static org.vision.visionjsdk.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 {
return new TransactionList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DelegatedResourceMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
fromAddress_ = input.readBytes();
break;
}
case 18: {
toAddress_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.class, org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.Builder.class);
}
public static final int FROM_ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString fromAddress_;
/**
* 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_;
/**
* 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_);
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.DelegatedResourceMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage other = (org.vision.visionjsdk.proto.Response.DelegatedResourceMessage) obj;
if (!getFromAddress()
.equals(other.getFromAddress())) return false;
if (!getToAddress()
.equals(other.getToAddress())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.class, org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.DelegatedResourceMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage build() {
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage buildPartial() {
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage result = new org.vision.visionjsdk.proto.Response.DelegatedResourceMessage(this);
result.fromAddress_ = fromAddress_;
result.toAddress_ = toAddress_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.DelegatedResourceMessage) {
return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResourceMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResourceMessage other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.DelegatedResourceMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResourceMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* bytes from_address = 1;
* @return This builder for chaining.
*/
public Builder clearFromAddress() {
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;
onChanged();
return this;
}
/**
* bytes to_address = 2;
* @return This builder for chaining.
*/
public Builder clearToAddress() {
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.vision.visionjsdk.proto.Response.DelegatedResourceMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResourceMessage();
}
public static org.vision.visionjsdk.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 {
return new DelegatedResourceMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelegatedResourceListOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.DelegatedResourceList)
com.google.protobuf.MessageOrBuilder {
java.util.List
getDelegatedResourceList();
org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index);
int getDelegatedResourceCount();
java.util.List extends org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList();
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DelegatedResourceList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
delegatedResource_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
delegatedResource_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.DelegatedResource.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.DelegatedResourceList.class, org.vision.visionjsdk.proto.Response.DelegatedResourceList.Builder.class);
}
public static final int DELEGATEDRESOURCE_FIELD_NUMBER = 1;
private java.util.List delegatedResource_;
@java.lang.Override
public java.util.List getDelegatedResourceList() {
return delegatedResource_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList() {
return delegatedResource_;
}
@java.lang.Override
public int getDelegatedResourceCount() {
return delegatedResource_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index) {
return delegatedResource_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.DelegatedResourceList)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.DelegatedResourceList other = (org.vision.visionjsdk.proto.Response.DelegatedResourceList) obj;
if (!getDelegatedResourceList()
.equals(other.getDelegatedResourceList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDelegatedResourceCount() > 0) {
hash = (37 * hash) + DELEGATEDRESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getDelegatedResourceList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.DelegatedResourceList.class, org.vision.visionjsdk.proto.Response.DelegatedResourceList.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.DelegatedResourceList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDelegatedResourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (delegatedResourceBuilder_ == null) {
delegatedResource_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
delegatedResourceBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_DelegatedResourceList_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceList getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.DelegatedResourceList.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceList build() {
org.vision.visionjsdk.proto.Response.DelegatedResourceList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.DelegatedResourceList buildPartial() {
org.vision.visionjsdk.proto.Response.DelegatedResourceList result = new org.vision.visionjsdk.proto.Response.DelegatedResourceList(this);
int from_bitField0_ = bitField0_;
if (delegatedResourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
delegatedResource_ = java.util.Collections.unmodifiableList(delegatedResource_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.delegatedResource_ = delegatedResource_;
} else {
result.delegatedResource_ = delegatedResourceBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.DelegatedResourceList) {
return mergeFrom((org.vision.visionjsdk.proto.Response.DelegatedResourceList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.DelegatedResourceList other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.DelegatedResourceList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.DelegatedResourceList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder> delegatedResourceBuilder_;
public java.util.List getDelegatedResourceList() {
if (delegatedResourceBuilder_ == null) {
return java.util.Collections.unmodifiableList(delegatedResource_);
} else {
return delegatedResourceBuilder_.getMessageList();
}
}
public int getDelegatedResourceCount() {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.size();
} else {
return delegatedResourceBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Response.DelegatedResource getDelegatedResource(int index) {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.get(index);
} else {
return delegatedResourceBuilder_.getMessage(index);
}
}
public Builder setDelegatedResource(
int index, org.vision.visionjsdk.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;
}
public Builder setDelegatedResource(
int index, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.set(index, builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addDelegatedResource(org.vision.visionjsdk.proto.Response.DelegatedResource value) {
if (delegatedResourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDelegatedResourceIsMutable();
delegatedResource_.add(value);
onChanged();
} else {
delegatedResourceBuilder_.addMessage(value);
}
return this;
}
public Builder addDelegatedResource(
int index, org.vision.visionjsdk.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;
}
public Builder addDelegatedResource(
org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.add(builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addDelegatedResource(
int index, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder builderForValue) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.add(index, builderForValue.build());
onChanged();
} else {
delegatedResourceBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllDelegatedResource(
java.lang.Iterable extends org.vision.visionjsdk.proto.Response.DelegatedResource> values) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delegatedResource_);
onChanged();
} else {
delegatedResourceBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearDelegatedResource() {
if (delegatedResourceBuilder_ == null) {
delegatedResource_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
delegatedResourceBuilder_.clear();
}
return this;
}
public Builder removeDelegatedResource(int index) {
if (delegatedResourceBuilder_ == null) {
ensureDelegatedResourceIsMutable();
delegatedResource_.remove(index);
onChanged();
} else {
delegatedResourceBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder getDelegatedResourceBuilder(
int index) {
return getDelegatedResourceFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
int index) {
if (delegatedResourceBuilder_ == null) {
return delegatedResource_.get(index); } else {
return delegatedResourceBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceOrBuilderList() {
if (delegatedResourceBuilder_ != null) {
return delegatedResourceBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(delegatedResource_);
}
}
public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder() {
return getDelegatedResourceFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Response.DelegatedResource.Builder addDelegatedResourceBuilder(
int index) {
return getDelegatedResourceFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.DelegatedResource.getDefaultInstance());
}
public java.util.List
getDelegatedResourceBuilderList() {
return getDelegatedResourceFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.proto.Response.DelegatedResourceOrBuilder>
getDelegatedResourceFieldBuilder() {
if (delegatedResourceBuilder_ == null) {
delegatedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.DelegatedResource, org.vision.visionjsdk.proto.Response.DelegatedResource.Builder, org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.DelegatedResourceList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.DelegatedResourceList();
}
public static org.vision.visionjsdk.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 {
return new DelegatedResourceList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddressPrKeyPairMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
address_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
privateKey_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.class, org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
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;
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 (!getAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (!getPrivateKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateKey_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (!getPrivateKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateKey_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage other = (org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getPrivateKey()
.equals(other.getPrivateKey())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.class, org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = "";
privateKey_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_AddressPrKeyPairMessage_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage build() {
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage buildPartial() {
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage result = new org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage(this);
result.address_ = address_;
result.privateKey_ = privateKey_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) {
return mergeFrom((org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage other) {
if (other == org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
onChanged();
}
if (!other.getPrivateKey().isEmpty()) {
privateKey_ = other.privateKey_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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;
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;
onChanged();
return this;
}
/**
* string privateKey = 2;
* @return This builder for chaining.
*/
public Builder clearPrivateKey() {
privateKey_ = getDefaultInstance().getPrivateKey();
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;
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.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage();
}
public static org.vision.visionjsdk.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 {
return new AddressPrKeyPairMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.AddressPrKeyPairMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EasyTransferResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.EasyTransferResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* @return Whether the transaction field is set.
*/
boolean hasTransaction();
/**
*
* @return The transaction.
*/
org.vision.visionjsdk.proto.Chain.Transaction getTransaction();
/**
*
*/
org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder();
/**
*
* @return Whether the result field is set.
*/
boolean hasResult();
/**
*
* @return The result.
*/
org.vision.visionjsdk.proto.Response.TransactionReturn getResult();
/**
*
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EasyTransferResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.vision.visionjsdk.proto.Chain.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(org.vision.visionjsdk.proto.Chain.Transaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.vision.visionjsdk.proto.Response.TransactionReturn.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(org.vision.visionjsdk.proto.Response.TransactionReturn.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
break;
}
case 26: {
txid_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.EasyTransferResponse.class, org.vision.visionjsdk.proto.Response.EasyTransferResponse.Builder.class);
}
public static final int TRANSACTION_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Chain.Transaction transaction_;
/**
*
* @return Whether the transaction field is set.
*/
@java.lang.Override
public boolean hasTransaction() {
return transaction_ != null;
}
/**
*
* @return The transaction.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() {
return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
/**
*
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
public static final int RESULT_FIELD_NUMBER = 2;
private org.vision.visionjsdk.proto.Response.TransactionReturn result_;
/**
*
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
*
* @return The result.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() {
return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
/**
*
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
return getResult();
}
public static final int TXID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString txid_;
/**
*
* 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 (transaction_ != null) {
output.writeMessage(1, getTransaction());
}
if (result_ != null) {
output.writeMessage(2, getResult());
}
if (!txid_.isEmpty()) {
output.writeBytes(3, txid_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (transaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTransaction());
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
if (!txid_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, txid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.EasyTransferResponse)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.EasyTransferResponse other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.EasyTransferResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.EasyTransferResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.EasyTransferResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.EasyTransferResponse.class, org.vision.visionjsdk.proto.Response.EasyTransferResponse.Builder.class);
}
// Construct using org.vision.visionjsdk.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (transactionBuilder_ == null) {
transaction_ = null;
} else {
transaction_ = null;
transactionBuilder_ = null;
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
txid_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_EasyTransferResponse_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.EasyTransferResponse getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.EasyTransferResponse.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.EasyTransferResponse build() {
org.vision.visionjsdk.proto.Response.EasyTransferResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.EasyTransferResponse buildPartial() {
org.vision.visionjsdk.proto.Response.EasyTransferResponse result = new org.vision.visionjsdk.proto.Response.EasyTransferResponse(this);
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
} else {
result.transaction_ = transactionBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
result.txid_ = txid_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.EasyTransferResponse) {
return mergeFrom((org.vision.visionjsdk.proto.Response.EasyTransferResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.EasyTransferResponse other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.EasyTransferResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.EasyTransferResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Chain.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder> transactionBuilder_;
/**
*
* @return Whether the transaction field is set.
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
*
* @return The transaction.
*/
public org.vision.visionjsdk.proto.Chain.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
public Builder setTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transaction_ = value;
onChanged();
} else {
transactionBuilder_.setMessage(value);
}
return this;
}
public Builder setTransaction(
org.vision.visionjsdk.proto.Chain.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
} else {
transactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeTransaction(org.vision.visionjsdk.proto.Chain.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
org.vision.visionjsdk.proto.Chain.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
onChanged();
} else {
transactionBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
transaction_ = null;
onChanged();
} else {
transaction_ = null;
transactionBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Chain.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Chain.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
org.vision.visionjsdk.proto.Chain.Transaction.getDefaultInstance() : transaction_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Chain.Transaction, org.vision.visionjsdk.proto.Chain.Transaction.Builder, org.vision.visionjsdk.proto.Chain.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
transaction_ = null;
}
return transactionBuilder_;
}
private org.vision.visionjsdk.proto.Response.TransactionReturn result_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder> resultBuilder_;
/**
*
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
*
* @return The result.
*/
public org.vision.visionjsdk.proto.Response.TransactionReturn getResult() {
if (resultBuilder_ == null) {
return result_ == null ? org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
public Builder setResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
public Builder setResult(
org.vision.visionjsdk.proto.Response.TransactionReturn.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeResult(org.vision.visionjsdk.proto.Response.TransactionReturn value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
org.vision.visionjsdk.proto.Response.TransactionReturn.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Response.TransactionReturn.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
org.vision.visionjsdk.proto.Response.TransactionReturn.getDefaultInstance() : result_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.proto.Response.TransactionReturnOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionReturn, org.vision.visionjsdk.proto.Response.TransactionReturn.Builder, org.vision.visionjsdk.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;
onChanged();
return this;
}
/**
*
* transaction id = sha256(transaction.raw_data)
*
*
* bytes txid = 3;
* @return This builder for chaining.
*/
public Builder clearTxid() {
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.vision.visionjsdk.proto.Response.EasyTransferResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.EasyTransferResponse();
}
public static org.vision.visionjsdk.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 {
return new EasyTransferResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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.vision.visionjsdk.proto.Common.SmartContract getSmartContract();
/**
* .protocol.SmartContract smart_contract = 1;
*/
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SmartContractDataWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.vision.visionjsdk.proto.Common.SmartContract.Builder subBuilder = null;
if (smartContract_ != null) {
subBuilder = smartContract_.toBuilder();
}
smartContract_ = input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(smartContract_);
smartContract_ = subBuilder.buildPartial();
}
break;
}
case 18: {
runtimeCode_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.class, org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.Builder.class);
}
public static final int SMART_CONTRACT_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Common.SmartContract smartContract_;
/**
* .protocol.SmartContract smart_contract = 1;
* @return Whether the smartContract field is set.
*/
@java.lang.Override
public boolean hasSmartContract() {
return smartContract_ != null;
}
/**
* .protocol.SmartContract smart_contract = 1;
* @return The smartContract.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract getSmartContract() {
return smartContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
}
/**
* .protocol.SmartContract smart_contract = 1;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() {
return getSmartContract();
}
public static final int RUNTIME_CODE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString runtimeCode_;
/**
* 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 (smartContract_ != null) {
output.writeMessage(1, getSmartContract());
}
if (!runtimeCode_.isEmpty()) {
output.writeBytes(2, runtimeCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (smartContract_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSmartContract());
}
if (!runtimeCode_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, runtimeCode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.SmartContractDataWrapper)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.SmartContractDataWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.SmartContractDataWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.class, org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.Builder.class);
}
// Construct using org.vision.visionjsdk.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (smartContractBuilder_ == null) {
smartContract_ = null;
} else {
smartContract_ = null;
smartContractBuilder_ = null;
}
runtimeCode_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_SmartContractDataWrapper_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.SmartContractDataWrapper.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper build() {
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.SmartContractDataWrapper buildPartial() {
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper result = new org.vision.visionjsdk.proto.Response.SmartContractDataWrapper(this);
if (smartContractBuilder_ == null) {
result.smartContract_ = smartContract_;
} else {
result.smartContract_ = smartContractBuilder_.build();
}
result.runtimeCode_ = runtimeCode_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.SmartContractDataWrapper) {
return mergeFrom((org.vision.visionjsdk.proto.Response.SmartContractDataWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.SmartContractDataWrapper other) {
if (other == org.vision.visionjsdk.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.SmartContractDataWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.SmartContractDataWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Common.SmartContract smartContract_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder> smartContractBuilder_;
/**
* .protocol.SmartContract smart_contract = 1;
* @return Whether the smartContract field is set.
*/
public boolean hasSmartContract() {
return smartContractBuilder_ != null || smartContract_ != null;
}
/**
* .protocol.SmartContract smart_contract = 1;
* @return The smartContract.
*/
public org.vision.visionjsdk.proto.Common.SmartContract getSmartContract() {
if (smartContractBuilder_ == null) {
return smartContract_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
} else {
return smartContractBuilder_.getMessage();
}
}
public Builder setSmartContract(org.vision.visionjsdk.proto.Common.SmartContract value) {
if (smartContractBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
smartContract_ = value;
onChanged();
} else {
smartContractBuilder_.setMessage(value);
}
return this;
}
public Builder setSmartContract(
org.vision.visionjsdk.proto.Common.SmartContract.Builder builderForValue) {
if (smartContractBuilder_ == null) {
smartContract_ = builderForValue.build();
onChanged();
} else {
smartContractBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeSmartContract(org.vision.visionjsdk.proto.Common.SmartContract value) {
if (smartContractBuilder_ == null) {
if (smartContract_ != null) {
smartContract_ =
org.vision.visionjsdk.proto.Common.SmartContract.newBuilder(smartContract_).mergeFrom(value).buildPartial();
} else {
smartContract_ = value;
}
onChanged();
} else {
smartContractBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearSmartContract() {
if (smartContractBuilder_ == null) {
smartContract_ = null;
onChanged();
} else {
smartContract_ = null;
smartContractBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Common.SmartContract.Builder getSmartContractBuilder() {
onChanged();
return getSmartContractFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Common.SmartContractOrBuilder getSmartContractOrBuilder() {
if (smartContractBuilder_ != null) {
return smartContractBuilder_.getMessageOrBuilder();
} else {
return smartContract_ == null ?
org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance() : smartContract_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.proto.Common.SmartContractOrBuilder>
getSmartContractFieldBuilder() {
if (smartContractBuilder_ == null) {
smartContractBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract, org.vision.visionjsdk.proto.Common.SmartContract.Builder, org.vision.visionjsdk.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;
onChanged();
return this;
}
/**
* bytes runtime_code = 2;
* @return This builder for chaining.
*/
public Builder clearRuntimeCode() {
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.vision.visionjsdk.proto.Response.SmartContractDataWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.SmartContractDataWrapper();
}
public static org.vision.visionjsdk.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 {
return new SmartContractDataWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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 vs (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return The callerAddress.
*/
com.google.protobuf.ByteString getCallerAddress();
/**
*
* the one recieve vs (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return The transferToAddress.
*/
com.google.protobuf.ByteString getTransferToAddress();
java.util.List
getCallValueInfoList();
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index);
int getCallValueInfoCount();
java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList();
org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InternalTransaction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
hash_ = input.readBytes();
break;
}
case 18: {
callerAddress_ = input.readBytes();
break;
}
case 26: {
transferToAddress_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
callValueInfo_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
callValueInfo_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.parser(), extensionRegistry));
break;
}
case 42: {
note_ = input.readBytes();
break;
}
case 48: {
rejected_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.InternalTransaction.class, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder.class);
}
public interface CallValueInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.InternalTransaction.CallValueInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* vs (TBD: or token) value
*
*
* int64 callValue = 1;
* @return The callValue.
*/
long getCallValue();
/**
*
* TBD: tokenName, vs should be empty
*
*
* string tokenId = 2;
* @return The tokenId.
*/
java.lang.String getTokenId();
/**
*
* TBD: tokenName, vs 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CallValueInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
callValue_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
tokenId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.class, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder.class);
}
public static final int CALLVALUE_FIELD_NUMBER = 1;
private long callValue_;
/**
*
* vs (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;
private volatile java.lang.Object tokenId_;
/**
*
* TBD: tokenName, vs 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, vs 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 (!getTokenIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tokenId_);
}
unknownFields.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 (!getTokenIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tokenId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo other = (org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) obj;
if (getCallValue()
!= other.getCallValue()) return false;
if (!getTokenId()
.equals(other.getTokenId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.class, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
callValue_ = 0L;
tokenId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_CallValueInfo_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo build() {
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo buildPartial() {
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo result = new org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo(this);
result.callValue_ = callValue_;
result.tokenId_ = tokenId_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) {
return mergeFrom((org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo other) {
if (other == org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance()) return this;
if (other.getCallValue() != 0L) {
setCallValue(other.getCallValue());
}
if (!other.getTokenId().isEmpty()) {
tokenId_ = other.tokenId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long callValue_ ;
/**
*
* vs (TBD: or token) value
*
*
* int64 callValue = 1;
* @return The callValue.
*/
@java.lang.Override
public long getCallValue() {
return callValue_;
}
/**
*
* vs (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;
onChanged();
return this;
}
/**
*
* vs (TBD: or token) value
*
*
* int64 callValue = 1;
* @return This builder for chaining.
*/
public Builder clearCallValue() {
callValue_ = 0L;
onChanged();
return this;
}
private java.lang.Object tokenId_ = "";
/**
*
* TBD: tokenName, vs 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, vs 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, vs 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;
onChanged();
return this;
}
/**
*
* TBD: tokenName, vs should be empty
*
*
* string tokenId = 2;
* @return This builder for chaining.
*/
public Builder clearTokenId() {
tokenId_ = getDefaultInstance().getTokenId();
onChanged();
return this;
}
/**
*
* TBD: tokenName, vs 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;
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.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo();
}
public static org.vision.visionjsdk.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 {
return new CallValueInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int HASH_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hash_;
/**
*
* 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_;
/**
*
* the one send vs (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_;
/**
*
* the one recieve vs (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;
private java.util.List callValueInfo_;
@java.lang.Override
public java.util.List getCallValueInfoList() {
return callValueInfo_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList() {
return callValueInfo_;
}
@java.lang.Override
public int getCallValueInfoCount() {
return callValueInfo_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) {
return callValueInfo_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.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_;
/**
* 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_;
/**
* 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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!hash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, hash_);
}
if (!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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.InternalTransaction)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.InternalTransaction other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.InternalTransaction.class, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.InternalTransaction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCallValueInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
callValueInfoBuilder_.clear();
}
note_ = com.google.protobuf.ByteString.EMPTY;
rejected_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_InternalTransaction_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction build() {
org.vision.visionjsdk.proto.Response.InternalTransaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction buildPartial() {
org.vision.visionjsdk.proto.Response.InternalTransaction result = new org.vision.visionjsdk.proto.Response.InternalTransaction(this);
int from_bitField0_ = bitField0_;
result.hash_ = hash_;
result.callerAddress_ = callerAddress_;
result.transferToAddress_ = transferToAddress_;
if (callValueInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
callValueInfo_ = java.util.Collections.unmodifiableList(callValueInfo_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.callValueInfo_ = callValueInfo_;
} else {
result.callValueInfo_ = callValueInfoBuilder_.build();
}
result.note_ = note_;
result.rejected_ = rejected_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.InternalTransaction) {
return mergeFrom((org.vision.visionjsdk.proto.Response.InternalTransaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.InternalTransaction other) {
if (other == org.vision.visionjsdk.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_ & ~0x00000001);
} else {
ensureCallValueInfoIsMutable();
callValueInfo_.addAll(other.callValueInfo_);
}
onChanged();
}
} else {
if (!other.callValueInfo_.isEmpty()) {
if (callValueInfoBuilder_.isEmpty()) {
callValueInfoBuilder_.dispose();
callValueInfoBuilder_ = null;
callValueInfo_ = other.callValueInfo_;
bitField0_ = (bitField0_ & ~0x00000001);
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.InternalTransaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.InternalTransaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
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() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString callerAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one send vs (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 vs (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;
onChanged();
return this;
}
/**
*
* the one send vs (TBD: or token) via function
*
*
* bytes caller_address = 2;
* @return This builder for chaining.
*/
public Builder clearCallerAddress() {
callerAddress_ = getDefaultInstance().getCallerAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString transferToAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* the one recieve vs (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 vs (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;
onChanged();
return this;
}
/**
*
* the one recieve vs (TBD: or token) via function
*
*
* bytes transferTo_address = 3;
* @return This builder for chaining.
*/
public Builder clearTransferToAddress() {
transferToAddress_ = getDefaultInstance().getTransferToAddress();
onChanged();
return this;
}
private java.util.List callValueInfo_ =
java.util.Collections.emptyList();
private void ensureCallValueInfoIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
callValueInfo_ = new java.util.ArrayList(callValueInfo_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder> callValueInfoBuilder_;
public java.util.List getCallValueInfoList() {
if (callValueInfoBuilder_ == null) {
return java.util.Collections.unmodifiableList(callValueInfo_);
} else {
return callValueInfoBuilder_.getMessageList();
}
}
public int getCallValueInfoCount() {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.size();
} else {
return callValueInfoBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo getCallValueInfo(int index) {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.get(index);
} else {
return callValueInfoBuilder_.getMessage(index);
}
}
public Builder setCallValueInfo(
int index, org.vision.visionjsdk.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;
}
public Builder setCallValueInfo(
int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.set(index, builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addCallValueInfo(org.vision.visionjsdk.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;
}
public Builder addCallValueInfo(
int index, org.vision.visionjsdk.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;
}
public Builder addCallValueInfo(
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.add(builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addCallValueInfo(
int index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder builderForValue) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.add(index, builderForValue.build());
onChanged();
} else {
callValueInfoBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllCallValueInfo(
java.lang.Iterable extends org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo> values) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, callValueInfo_);
onChanged();
} else {
callValueInfoBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearCallValueInfo() {
if (callValueInfoBuilder_ == null) {
callValueInfo_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
callValueInfoBuilder_.clear();
}
return this;
}
public Builder removeCallValueInfo(int index) {
if (callValueInfoBuilder_ == null) {
ensureCallValueInfoIsMutable();
callValueInfo_.remove(index);
onChanged();
} else {
callValueInfoBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder getCallValueInfoBuilder(
int index) {
return getCallValueInfoFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder getCallValueInfoOrBuilder(
int index) {
if (callValueInfoBuilder_ == null) {
return callValueInfo_.get(index); } else {
return callValueInfoBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoOrBuilderList() {
if (callValueInfoBuilder_ != null) {
return callValueInfoBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callValueInfo_);
}
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder() {
return getCallValueInfoFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder addCallValueInfoBuilder(
int index) {
return getCallValueInfoFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.getDefaultInstance());
}
public java.util.List
getCallValueInfoBuilderList() {
return getCallValueInfoFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>
getCallValueInfoFieldBuilder() {
if (callValueInfoBuilder_ == null) {
callValueInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfo.Builder, org.vision.visionjsdk.proto.Response.InternalTransaction.CallValueInfoOrBuilder>(
callValueInfo_,
((bitField0_ & 0x00000001) != 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;
onChanged();
return this;
}
/**
* bytes note = 5;
* @return This builder for chaining.
*/
public Builder clearNote() {
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;
onChanged();
return this;
}
/**
* bool rejected = 6;
* @return This builder for chaining.
*/
public Builder clearRejected() {
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.vision.visionjsdk.proto.Response.InternalTransaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.InternalTransaction();
}
public static org.vision.visionjsdk.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 {
return new InternalTransaction(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceReceiptOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.ResourceReceipt)
com.google.protobuf.MessageOrBuilder {
/**
* int64 entropy_usage = 1;
* @return The entropyUsage.
*/
long getEntropyUsage();
/**
* int64 entropy_fee = 2;
* @return The entropyFee.
*/
long getEntropyFee();
/**
* int64 origin_entropy_usage = 3;
* @return The originEntropyUsage.
*/
long getOriginEntropyUsage();
/**
* int64 entropy_usage_total = 4;
* @return The entropyUsageTotal.
*/
long getEntropyUsageTotal();
/**
* 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.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceReceipt(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
entropyUsage_ = input.readInt64();
break;
}
case 16: {
entropyFee_ = input.readInt64();
break;
}
case 24: {
originEntropyUsage_ = input.readInt64();
break;
}
case 32: {
entropyUsageTotal_ = input.readInt64();
break;
}
case 40: {
netUsage_ = input.readInt64();
break;
}
case 48: {
netFee_ = input.readInt64();
break;
}
case 56: {
int rawValue = input.readEnum();
result_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ResourceReceipt.class, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder.class);
}
public static final int ENTROPY_USAGE_FIELD_NUMBER = 1;
private long entropyUsage_;
/**
* int64 entropy_usage = 1;
* @return The entropyUsage.
*/
@java.lang.Override
public long getEntropyUsage() {
return entropyUsage_;
}
public static final int ENTROPY_FEE_FIELD_NUMBER = 2;
private long entropyFee_;
/**
* int64 entropy_fee = 2;
* @return The entropyFee.
*/
@java.lang.Override
public long getEntropyFee() {
return entropyFee_;
}
public static final int ORIGIN_ENTROPY_USAGE_FIELD_NUMBER = 3;
private long originEntropyUsage_;
/**
* int64 origin_entropy_usage = 3;
* @return The originEntropyUsage.
*/
@java.lang.Override
public long getOriginEntropyUsage() {
return originEntropyUsage_;
}
public static final int ENTROPY_USAGE_TOTAL_FIELD_NUMBER = 4;
private long entropyUsageTotal_;
/**
* int64 entropy_usage_total = 4;
* @return The entropyUsageTotal.
*/
@java.lang.Override
public long getEntropyUsageTotal() {
return entropyUsageTotal_;
}
public static final int NET_USAGE_FIELD_NUMBER = 5;
private long netUsage_;
/**
* 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_;
/**
* 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_;
/**
* .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.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getResult() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(result_);
return result == null ? org.vision.visionjsdk.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 (entropyUsage_ != 0L) {
output.writeInt64(1, entropyUsage_);
}
if (entropyFee_ != 0L) {
output.writeInt64(2, entropyFee_);
}
if (originEntropyUsage_ != 0L) {
output.writeInt64(3, originEntropyUsage_);
}
if (entropyUsageTotal_ != 0L) {
output.writeInt64(4, entropyUsageTotal_);
}
if (netUsage_ != 0L) {
output.writeInt64(5, netUsage_);
}
if (netFee_ != 0L) {
output.writeInt64(6, netFee_);
}
if (result_ != org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) {
output.writeEnum(7, result_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (entropyUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, entropyUsage_);
}
if (entropyFee_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, entropyFee_);
}
if (originEntropyUsage_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, originEntropyUsage_);
}
if (entropyUsageTotal_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, entropyUsageTotal_);
}
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.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, result_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.ResourceReceipt)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.ResourceReceipt other = (org.vision.visionjsdk.proto.Response.ResourceReceipt) obj;
if (getEntropyUsage()
!= other.getEntropyUsage()) return false;
if (getEntropyFee()
!= other.getEntropyFee()) return false;
if (getOriginEntropyUsage()
!= other.getOriginEntropyUsage()) return false;
if (getEntropyUsageTotal()
!= other.getEntropyUsageTotal()) return false;
if (getNetUsage()
!= other.getNetUsage()) return false;
if (getNetFee()
!= other.getNetFee()) return false;
if (result_ != other.result_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENTROPY_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEntropyUsage());
hash = (37 * hash) + ENTROPY_FEE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEntropyFee());
hash = (37 * hash) + ORIGIN_ENTROPY_USAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOriginEntropyUsage());
hash = (37 * hash) + ENTROPY_USAGE_TOTAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEntropyUsageTotal());
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceipt parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceipt parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.ResourceReceipt.class, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.ResourceReceipt.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
entropyUsage_ = 0L;
entropyFee_ = 0L;
originEntropyUsage_ = 0L;
entropyUsageTotal_ = 0L;
netUsage_ = 0L;
netFee_ = 0L;
result_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_ResourceReceipt_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ResourceReceipt getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ResourceReceipt build() {
org.vision.visionjsdk.proto.Response.ResourceReceipt result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ResourceReceipt buildPartial() {
org.vision.visionjsdk.proto.Response.ResourceReceipt result = new org.vision.visionjsdk.proto.Response.ResourceReceipt(this);
result.entropyUsage_ = entropyUsage_;
result.entropyFee_ = entropyFee_;
result.originEntropyUsage_ = originEntropyUsage_;
result.entropyUsageTotal_ = entropyUsageTotal_;
result.netUsage_ = netUsage_;
result.netFee_ = netFee_;
result.result_ = result_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.ResourceReceipt) {
return mergeFrom((org.vision.visionjsdk.proto.Response.ResourceReceipt)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.ResourceReceipt other) {
if (other == org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance()) return this;
if (other.getEntropyUsage() != 0L) {
setEntropyUsage(other.getEntropyUsage());
}
if (other.getEntropyFee() != 0L) {
setEntropyFee(other.getEntropyFee());
}
if (other.getOriginEntropyUsage() != 0L) {
setOriginEntropyUsage(other.getOriginEntropyUsage());
}
if (other.getEntropyUsageTotal() != 0L) {
setEntropyUsageTotal(other.getEntropyUsageTotal());
}
if (other.getNetUsage() != 0L) {
setNetUsage(other.getNetUsage());
}
if (other.getNetFee() != 0L) {
setNetFee(other.getNetFee());
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.ResourceReceipt parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.ResourceReceipt) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long entropyUsage_ ;
/**
* int64 entropy_usage = 1;
* @return The entropyUsage.
*/
@java.lang.Override
public long getEntropyUsage() {
return entropyUsage_;
}
/**
* int64 entropy_usage = 1;
* @param value The entropyUsage to set.
* @return This builder for chaining.
*/
public Builder setEntropyUsage(long value) {
entropyUsage_ = value;
onChanged();
return this;
}
/**
* int64 entropy_usage = 1;
* @return This builder for chaining.
*/
public Builder clearEntropyUsage() {
entropyUsage_ = 0L;
onChanged();
return this;
}
private long entropyFee_ ;
/**
* int64 entropy_fee = 2;
* @return The entropyFee.
*/
@java.lang.Override
public long getEntropyFee() {
return entropyFee_;
}
/**
* int64 entropy_fee = 2;
* @param value The entropyFee to set.
* @return This builder for chaining.
*/
public Builder setEntropyFee(long value) {
entropyFee_ = value;
onChanged();
return this;
}
/**
* int64 entropy_fee = 2;
* @return This builder for chaining.
*/
public Builder clearEntropyFee() {
entropyFee_ = 0L;
onChanged();
return this;
}
private long originEntropyUsage_ ;
/**
* int64 origin_entropy_usage = 3;
* @return The originEntropyUsage.
*/
@java.lang.Override
public long getOriginEntropyUsage() {
return originEntropyUsage_;
}
/**
* int64 origin_entropy_usage = 3;
* @param value The originEntropyUsage to set.
* @return This builder for chaining.
*/
public Builder setOriginEntropyUsage(long value) {
originEntropyUsage_ = value;
onChanged();
return this;
}
/**
* int64 origin_entropy_usage = 3;
* @return This builder for chaining.
*/
public Builder clearOriginEntropyUsage() {
originEntropyUsage_ = 0L;
onChanged();
return this;
}
private long entropyUsageTotal_ ;
/**
* int64 entropy_usage_total = 4;
* @return The entropyUsageTotal.
*/
@java.lang.Override
public long getEntropyUsageTotal() {
return entropyUsageTotal_;
}
/**
* int64 entropy_usage_total = 4;
* @param value The entropyUsageTotal to set.
* @return This builder for chaining.
*/
public Builder setEntropyUsageTotal(long value) {
entropyUsageTotal_ = value;
onChanged();
return this;
}
/**
* int64 entropy_usage_total = 4;
* @return This builder for chaining.
*/
public Builder clearEntropyUsageTotal() {
entropyUsageTotal_ = 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;
onChanged();
return this;
}
/**
* int64 net_usage = 5;
* @return This builder for chaining.
*/
public Builder clearNetUsage() {
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;
onChanged();
return this;
}
/**
* int64 net_fee = 6;
* @return This builder for chaining.
*/
public Builder clearNetFee() {
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;
onChanged();
return this;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return The result.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult getResult() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult result = org.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult.valueOf(result_);
return result == null ? org.vision.visionjsdk.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.vision.visionjsdk.proto.Chain.Transaction.Result.contractResult value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.Transaction.Result.contractResult result = 7;
* @return This builder for chaining.
*/
public Builder clearResult() {
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.vision.visionjsdk.proto.Response.ResourceReceipt DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.ResourceReceipt();
}
public static org.vision.visionjsdk.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 {
return new ResourceReceipt(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt();
org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder();
java.util.List
getLogList();
org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index);
int getLogCount();
java.util.List extends org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList();
org.vision.visionjsdk.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.vision.visionjsdk.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();
java.util.List
getInternalTransactionsList();
org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index);
int getInternalTransactionsCount();
java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList();
org.vision.visionjsdk.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();
java.util.List
getOrderDetailsList();
org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index);
int getOrderDetailsCount();
java.util.List extends org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList();
org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index);
}
/**
* 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_ = java.util.Collections.emptyList();
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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransactionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readBytes();
break;
}
case 16: {
fee_ = input.readInt64();
break;
}
case 24: {
blockNumber_ = input.readInt64();
break;
}
case 32: {
blockTimeStamp_ = input.readInt64();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
contractResult_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
contractResult_.add(input.readBytes());
break;
}
case 50: {
contractAddress_ = input.readBytes();
break;
}
case 58: {
org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder subBuilder = null;
if (receipt_ != null) {
subBuilder = receipt_.toBuilder();
}
receipt_ = input.readMessage(org.vision.visionjsdk.proto.Response.ResourceReceipt.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(receipt_);
receipt_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
log_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
log_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.TransactionInfo.Log.parser(), extensionRegistry));
break;
}
case 72: {
int rawValue = input.readEnum();
result_ = rawValue;
break;
}
case 82: {
resMessage_ = input.readBytes();
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
assetIssueID_ = s;
break;
}
case 120: {
withdrawAmount_ = input.readInt64();
break;
}
case 128: {
unfreezeAmount_ = input.readInt64();
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
internalTransactions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
internalTransactions_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.InternalTransaction.parser(), extensionRegistry));
break;
}
case 144: {
exchangeReceivedAmount_ = input.readInt64();
break;
}
case 152: {
exchangeInjectAnotherAmount_ = input.readInt64();
break;
}
case 160: {
exchangeWithdrawAnotherAmount_ = input.readInt64();
break;
}
case 168: {
exchangeId_ = input.readInt64();
break;
}
case 176: {
shieldedTransactionFee_ = input.readInt64();
break;
}
case 202: {
orderId_ = input.readBytes();
break;
}
case 210: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
orderDetails_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
orderDetails_.add(
input.readMessage(org.vision.visionjsdk.proto.Response.MarketOrderDetail.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
contractResult_ = java.util.Collections.unmodifiableList(contractResult_); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
log_ = java.util.Collections.unmodifiableList(log_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionInfo.class, org.vision.visionjsdk.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.vision.visionjsdk.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_ = java.util.Collections.emptyList();
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Log();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Log(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
topics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
topics_.add(input.readBytes());
break;
}
case 26: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
topics_ = java.util.Collections.unmodifiableList(topics_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionInfo.Log.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* 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;
private java.util.List topics_;
/**
* 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_;
/**
* 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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
{
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionInfo.Log)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.TransactionInfo.Log other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.Log parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionInfo.Log.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.TransactionInfo.Log.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.ByteString.EMPTY;
topics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_Log_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log build() {
org.vision.visionjsdk.proto.Response.TransactionInfo.Log result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log buildPartial() {
org.vision.visionjsdk.proto.Response.TransactionInfo.Log result = new org.vision.visionjsdk.proto.Response.TransactionInfo.Log(this);
int from_bitField0_ = bitField0_;
result.address_ = address_;
if (((bitField0_ & 0x00000001) != 0)) {
topics_ = java.util.Collections.unmodifiableList(topics_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.topics_ = topics_;
result.data_ = data_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.TransactionInfo.Log) {
return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionInfo.Log)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionInfo.Log other) {
if (other == org.vision.visionjsdk.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_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopicsIsMutable();
topics_.addAll(other.topics_);
}
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.TransactionInfo.Log parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionInfo.Log) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @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;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private java.util.List topics_ = java.util.Collections.emptyList();
private void ensureTopicsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
topics_ = new java.util.ArrayList(topics_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes topics = 2;
* @return A list containing the topics.
*/
public java.util.List
getTopicsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(topics_) : 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);
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);
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_);
onChanged();
return this;
}
/**
* repeated bytes topics = 2;
* @return This builder for chaining.
*/
public Builder clearTopics() {
topics_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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;
onChanged();
return this;
}
/**
* bytes data = 3;
* @return This builder for chaining.
*/
public Builder clearData() {
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.vision.visionjsdk.proto.Response.TransactionInfo.Log DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionInfo.Log();
}
public static org.vision.visionjsdk.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 {
return new Log(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString id_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* int64 blockTimeStamp = 4;
* @return The blockTimeStamp.
*/
@java.lang.Override
public long getBlockTimeStamp() {
return blockTimeStamp_;
}
public static final int CONTRACTRESULT_FIELD_NUMBER = 5;
private java.util.List contractResult_;
/**
* 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_;
/**
* 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.vision.visionjsdk.proto.Response.ResourceReceipt receipt_;
/**
* .protocol.ResourceReceipt receipt = 7;
* @return Whether the receipt field is set.
*/
@java.lang.Override
public boolean hasReceipt() {
return receipt_ != null;
}
/**
* .protocol.ResourceReceipt receipt = 7;
* @return The receipt.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt() {
return receipt_ == null ? org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() {
return getReceipt();
}
public static final int LOG_FIELD_NUMBER = 8;
private java.util.List log_;
@java.lang.Override
public java.util.List getLogList() {
return log_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList() {
return log_;
}
@java.lang.Override
public int getLogCount() {
return log_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index) {
return log_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder(
int index) {
return log_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 9;
private int result_;
/**
* .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.vision.visionjsdk.proto.Response.TransactionInfo.code getResult() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Response.TransactionInfo.code result = org.vision.visionjsdk.proto.Response.TransactionInfo.code.valueOf(result_);
return result == null ? org.vision.visionjsdk.proto.Response.TransactionInfo.code.UNRECOGNIZED : result;
}
public static final int RESMESSAGE_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString resMessage_;
/**
* 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;
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_;
/**
* 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_;
/**
* int64 unfreeze_amount = 16;
* @return The unfreezeAmount.
*/
@java.lang.Override
public long getUnfreezeAmount() {
return unfreezeAmount_;
}
public static final int INTERNAL_TRANSACTIONS_FIELD_NUMBER = 17;
private java.util.List internalTransactions_;
@java.lang.Override
public java.util.List getInternalTransactionsList() {
return internalTransactions_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList() {
return internalTransactions_;
}
@java.lang.Override
public int getInternalTransactionsCount() {
return internalTransactions_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index) {
return internalTransactions_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder(
int index) {
return internalTransactions_.get(index);
}
public static final int EXCHANGE_RECEIVED_AMOUNT_FIELD_NUMBER = 18;
private long exchangeReceivedAmount_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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;
private java.util.List orderDetails_;
@java.lang.Override
public java.util.List getOrderDetailsList() {
return orderDetails_;
}
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList() {
return orderDetails_;
}
@java.lang.Override
public int getOrderDetailsCount() {
return orderDetails_.size();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index) {
return orderDetails_.get(index);
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index) {
return orderDetails_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!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 (receipt_ != null) {
output.writeMessage(7, getReceipt());
}
for (int i = 0; i < log_.size(); i++) {
output.writeMessage(8, log_.get(i));
}
if (result_ != org.vision.visionjsdk.proto.Response.TransactionInfo.code.SUCESS.getNumber()) {
output.writeEnum(9, result_);
}
if (!resMessage_.isEmpty()) {
output.writeBytes(10, resMessage_);
}
if (!getAssetIssueIDBytes().isEmpty()) {
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));
}
unknownFields.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 (receipt_ != null) {
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.vision.visionjsdk.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 (!getAssetIssueIDBytes().isEmpty()) {
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));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.TransactionInfo)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.TransactionInfo other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.TransactionInfo.class, org.vision.visionjsdk.proto.Response.TransactionInfo.Builder.class);
}
// Construct using org.vision.visionjsdk.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) {
getLogFieldBuilder();
getInternalTransactionsFieldBuilder();
getOrderDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = com.google.protobuf.ByteString.EMPTY;
fee_ = 0L;
blockNumber_ = 0L;
blockTimeStamp_ = 0L;
contractResult_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
if (receiptBuilder_ == null) {
receipt_ = null;
} else {
receipt_ = null;
receiptBuilder_ = null;
}
if (logBuilder_ == null) {
log_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
logBuilder_.clear();
}
result_ = 0;
resMessage_ = com.google.protobuf.ByteString.EMPTY;
assetIssueID_ = "";
withdrawAmount_ = 0L;
unfreezeAmount_ = 0L;
if (internalTransactionsBuilder_ == null) {
internalTransactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
internalTransactionsBuilder_.clear();
}
exchangeReceivedAmount_ = 0L;
exchangeInjectAnotherAmount_ = 0L;
exchangeWithdrawAnotherAmount_ = 0L;
exchangeId_ = 0L;
shieldedTransactionFee_ = 0L;
orderId_ = com.google.protobuf.ByteString.EMPTY;
if (orderDetailsBuilder_ == null) {
orderDetails_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
orderDetailsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_TransactionInfo_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.TransactionInfo.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo build() {
org.vision.visionjsdk.proto.Response.TransactionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo buildPartial() {
org.vision.visionjsdk.proto.Response.TransactionInfo result = new org.vision.visionjsdk.proto.Response.TransactionInfo(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.fee_ = fee_;
result.blockNumber_ = blockNumber_;
result.blockTimeStamp_ = blockTimeStamp_;
if (((bitField0_ & 0x00000001) != 0)) {
contractResult_ = java.util.Collections.unmodifiableList(contractResult_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.contractResult_ = contractResult_;
result.contractAddress_ = contractAddress_;
if (receiptBuilder_ == null) {
result.receipt_ = receipt_;
} else {
result.receipt_ = receiptBuilder_.build();
}
if (logBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
log_ = java.util.Collections.unmodifiableList(log_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.log_ = log_;
} else {
result.log_ = logBuilder_.build();
}
result.result_ = result_;
result.resMessage_ = resMessage_;
result.assetIssueID_ = assetIssueID_;
result.withdrawAmount_ = withdrawAmount_;
result.unfreezeAmount_ = unfreezeAmount_;
if (internalTransactionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
internalTransactions_ = java.util.Collections.unmodifiableList(internalTransactions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.internalTransactions_ = internalTransactions_;
} else {
result.internalTransactions_ = internalTransactionsBuilder_.build();
}
result.exchangeReceivedAmount_ = exchangeReceivedAmount_;
result.exchangeInjectAnotherAmount_ = exchangeInjectAnotherAmount_;
result.exchangeWithdrawAnotherAmount_ = exchangeWithdrawAnotherAmount_;
result.exchangeId_ = exchangeId_;
result.shieldedTransactionFee_ = shieldedTransactionFee_;
result.orderId_ = orderId_;
if (orderDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
orderDetails_ = java.util.Collections.unmodifiableList(orderDetails_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.orderDetails_ = orderDetails_;
} else {
result.orderDetails_ = orderDetailsBuilder_.build();
}
onBuilt();
return 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.vision.visionjsdk.proto.Response.TransactionInfo) {
return mergeFrom((org.vision.visionjsdk.proto.Response.TransactionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.TransactionInfo other) {
if (other == org.vision.visionjsdk.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_;
bitField0_ = (bitField0_ & ~0x00000001);
} 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_ & ~0x00000002);
} else {
ensureLogIsMutable();
log_.addAll(other.log_);
}
onChanged();
}
} else {
if (!other.log_.isEmpty()) {
if (logBuilder_.isEmpty()) {
logBuilder_.dispose();
logBuilder_ = null;
log_ = other.log_;
bitField0_ = (bitField0_ & ~0x00000002);
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_;
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_ & ~0x00000004);
} else {
ensureInternalTransactionsIsMutable();
internalTransactions_.addAll(other.internalTransactions_);
}
onChanged();
}
} else {
if (!other.internalTransactions_.isEmpty()) {
if (internalTransactionsBuilder_.isEmpty()) {
internalTransactionsBuilder_.dispose();
internalTransactionsBuilder_ = null;
internalTransactions_ = other.internalTransactions_;
bitField0_ = (bitField0_ & ~0x00000004);
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_ & ~0x00000008);
} else {
ensureOrderDetailsIsMutable();
orderDetails_.addAll(other.orderDetails_);
}
onChanged();
}
} else {
if (!other.orderDetails_.isEmpty()) {
if (orderDetailsBuilder_.isEmpty()) {
orderDetailsBuilder_.dispose();
orderDetailsBuilder_ = null;
orderDetails_ = other.orderDetails_;
bitField0_ = (bitField0_ & ~0x00000008);
orderDetailsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderDetailsFieldBuilder() : null;
} else {
orderDetailsBuilder_.addAllMessages(other.orderDetails_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.TransactionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.TransactionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
* bytes id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
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;
onChanged();
return this;
}
/**
* int64 fee = 2;
* @return This builder for chaining.
*/
public Builder clearFee() {
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;
onChanged();
return this;
}
/**
* int64 blockNumber = 3;
* @return This builder for chaining.
*/
public Builder clearBlockNumber() {
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;
onChanged();
return this;
}
/**
* int64 blockTimeStamp = 4;
* @return This builder for chaining.
*/
public Builder clearBlockTimeStamp() {
blockTimeStamp_ = 0L;
onChanged();
return this;
}
private java.util.List contractResult_ = java.util.Collections.emptyList();
private void ensureContractResultIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
contractResult_ = new java.util.ArrayList(contractResult_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes contractResult = 5;
* @return A list containing the contractResult.
*/
public java.util.List
getContractResultList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(contractResult_) : 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);
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);
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_);
onChanged();
return this;
}
/**
* repeated bytes contractResult = 5;
* @return This builder for chaining.
*/
public Builder clearContractResult() {
contractResult_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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;
onChanged();
return this;
}
/**
* bytes contract_address = 6;
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
private org.vision.visionjsdk.proto.Response.ResourceReceipt receipt_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder> receiptBuilder_;
/**
* .protocol.ResourceReceipt receipt = 7;
* @return Whether the receipt field is set.
*/
public boolean hasReceipt() {
return receiptBuilder_ != null || receipt_ != null;
}
/**
* .protocol.ResourceReceipt receipt = 7;
* @return The receipt.
*/
public org.vision.visionjsdk.proto.Response.ResourceReceipt getReceipt() {
if (receiptBuilder_ == null) {
return receipt_ == null ? org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
} else {
return receiptBuilder_.getMessage();
}
}
public Builder setReceipt(org.vision.visionjsdk.proto.Response.ResourceReceipt value) {
if (receiptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receipt_ = value;
onChanged();
} else {
receiptBuilder_.setMessage(value);
}
return this;
}
public Builder setReceipt(
org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder builderForValue) {
if (receiptBuilder_ == null) {
receipt_ = builderForValue.build();
onChanged();
} else {
receiptBuilder_.setMessage(builderForValue.build());
}
return this;
}
public Builder mergeReceipt(org.vision.visionjsdk.proto.Response.ResourceReceipt value) {
if (receiptBuilder_ == null) {
if (receipt_ != null) {
receipt_ =
org.vision.visionjsdk.proto.Response.ResourceReceipt.newBuilder(receipt_).mergeFrom(value).buildPartial();
} else {
receipt_ = value;
}
onChanged();
} else {
receiptBuilder_.mergeFrom(value);
}
return this;
}
public Builder clearReceipt() {
if (receiptBuilder_ == null) {
receipt_ = null;
onChanged();
} else {
receipt_ = null;
receiptBuilder_ = null;
}
return this;
}
public org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder getReceiptBuilder() {
onChanged();
return getReceiptFieldBuilder().getBuilder();
}
public org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder getReceiptOrBuilder() {
if (receiptBuilder_ != null) {
return receiptBuilder_.getMessageOrBuilder();
} else {
return receipt_ == null ?
org.vision.visionjsdk.proto.Response.ResourceReceipt.getDefaultInstance() : receipt_;
}
}
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder>
getReceiptFieldBuilder() {
if (receiptBuilder_ == null) {
receiptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Response.ResourceReceipt, org.vision.visionjsdk.proto.Response.ResourceReceipt.Builder, org.vision.visionjsdk.proto.Response.ResourceReceiptOrBuilder>(
getReceipt(),
getParentForChildren(),
isClean());
receipt_ = null;
}
return receiptBuilder_;
}
private java.util.List log_ =
java.util.Collections.emptyList();
private void ensureLogIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
log_ = new java.util.ArrayList(log_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder> logBuilder_;
public java.util.List getLogList() {
if (logBuilder_ == null) {
return java.util.Collections.unmodifiableList(log_);
} else {
return logBuilder_.getMessageList();
}
}
public int getLogCount() {
if (logBuilder_ == null) {
return log_.size();
} else {
return logBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log getLog(int index) {
if (logBuilder_ == null) {
return log_.get(index);
} else {
return logBuilder_.getMessage(index);
}
}
public Builder setLog(
int index, org.vision.visionjsdk.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;
}
public Builder setLog(
int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.set(index, builderForValue.build());
onChanged();
} else {
logBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addLog(org.vision.visionjsdk.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;
}
public Builder addLog(
int index, org.vision.visionjsdk.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;
}
public Builder addLog(
org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.add(builderForValue.build());
onChanged();
} else {
logBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addLog(
int index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder builderForValue) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.add(index, builderForValue.build());
onChanged();
} else {
logBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllLog(
java.lang.Iterable extends org.vision.visionjsdk.proto.Response.TransactionInfo.Log> values) {
if (logBuilder_ == null) {
ensureLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, log_);
onChanged();
} else {
logBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearLog() {
if (logBuilder_ == null) {
log_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
logBuilder_.clear();
}
return this;
}
public Builder removeLog(int index) {
if (logBuilder_ == null) {
ensureLogIsMutable();
log_.remove(index);
onChanged();
} else {
logBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder getLogBuilder(
int index) {
return getLogFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder getLogOrBuilder(
int index) {
if (logBuilder_ == null) {
return log_.get(index); } else {
return logBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>
getLogOrBuilderList() {
if (logBuilder_ != null) {
return logBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(log_);
}
}
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder addLogBuilder() {
return getLogFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder addLogBuilder(
int index) {
return getLogFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.getDefaultInstance());
}
public java.util.List
getLogBuilderList() {
return getLogFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>
getLogFieldBuilder() {
if (logBuilder_ == null) {
logBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.TransactionInfo.Log, org.vision.visionjsdk.proto.Response.TransactionInfo.Log.Builder, org.vision.visionjsdk.proto.Response.TransactionInfo.LogOrBuilder>(
log_,
((bitField0_ & 0x00000002) != 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;
onChanged();
return this;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @return The result.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Response.TransactionInfo.code getResult() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Response.TransactionInfo.code result = org.vision.visionjsdk.proto.Response.TransactionInfo.code.valueOf(result_);
return result == null ? org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.TransactionInfo.code value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.TransactionInfo.code result = 9;
* @return This builder for chaining.
*/
public Builder clearResult() {
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;
onChanged();
return this;
}
/**
* bytes resMessage = 10;
* @return This builder for chaining.
*/
public Builder clearResMessage() {
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;
onChanged();
return this;
}
/**
* string assetIssueID = 14;
* @return This builder for chaining.
*/
public Builder clearAssetIssueID() {
assetIssueID_ = getDefaultInstance().getAssetIssueID();
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;
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;
onChanged();
return this;
}
/**
* int64 withdraw_amount = 15;
* @return This builder for chaining.
*/
public Builder clearWithdrawAmount() {
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;
onChanged();
return this;
}
/**
* int64 unfreeze_amount = 16;
* @return This builder for chaining.
*/
public Builder clearUnfreezeAmount() {
unfreezeAmount_ = 0L;
onChanged();
return this;
}
private java.util.List internalTransactions_ =
java.util.Collections.emptyList();
private void ensureInternalTransactionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
internalTransactions_ = new java.util.ArrayList(internalTransactions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder> internalTransactionsBuilder_;
public java.util.List getInternalTransactionsList() {
if (internalTransactionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(internalTransactions_);
} else {
return internalTransactionsBuilder_.getMessageList();
}
}
public int getInternalTransactionsCount() {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.size();
} else {
return internalTransactionsBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Response.InternalTransaction getInternalTransactions(int index) {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.get(index);
} else {
return internalTransactionsBuilder_.getMessage(index);
}
}
public Builder setInternalTransactions(
int index, org.vision.visionjsdk.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;
}
public Builder setInternalTransactions(
int index, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.set(index, builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addInternalTransactions(org.vision.visionjsdk.proto.Response.InternalTransaction value) {
if (internalTransactionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInternalTransactionsIsMutable();
internalTransactions_.add(value);
onChanged();
} else {
internalTransactionsBuilder_.addMessage(value);
}
return this;
}
public Builder addInternalTransactions(
int index, org.vision.visionjsdk.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;
}
public Builder addInternalTransactions(
org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.add(builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addInternalTransactions(
int index, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder builderForValue) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.add(index, builderForValue.build());
onChanged();
} else {
internalTransactionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllInternalTransactions(
java.lang.Iterable extends org.vision.visionjsdk.proto.Response.InternalTransaction> values) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, internalTransactions_);
onChanged();
} else {
internalTransactionsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearInternalTransactions() {
if (internalTransactionsBuilder_ == null) {
internalTransactions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
internalTransactionsBuilder_.clear();
}
return this;
}
public Builder removeInternalTransactions(int index) {
if (internalTransactionsBuilder_ == null) {
ensureInternalTransactionsIsMutable();
internalTransactions_.remove(index);
onChanged();
} else {
internalTransactionsBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder getInternalTransactionsBuilder(
int index) {
return getInternalTransactionsFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder getInternalTransactionsOrBuilder(
int index) {
if (internalTransactionsBuilder_ == null) {
return internalTransactions_.get(index); } else {
return internalTransactionsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsOrBuilderList() {
if (internalTransactionsBuilder_ != null) {
return internalTransactionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(internalTransactions_);
}
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder() {
return getInternalTransactionsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Response.InternalTransaction.Builder addInternalTransactionsBuilder(
int index) {
return getInternalTransactionsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.InternalTransaction.getDefaultInstance());
}
public java.util.List
getInternalTransactionsBuilderList() {
return getInternalTransactionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>
getInternalTransactionsFieldBuilder() {
if (internalTransactionsBuilder_ == null) {
internalTransactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.InternalTransaction, org.vision.visionjsdk.proto.Response.InternalTransaction.Builder, org.vision.visionjsdk.proto.Response.InternalTransactionOrBuilder>(
internalTransactions_,
((bitField0_ & 0x00000004) != 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;
onChanged();
return this;
}
/**
* int64 exchange_received_amount = 18;
* @return This builder for chaining.
*/
public Builder clearExchangeReceivedAmount() {
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;
onChanged();
return this;
}
/**
* int64 exchange_inject_another_amount = 19;
* @return This builder for chaining.
*/
public Builder clearExchangeInjectAnotherAmount() {
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;
onChanged();
return this;
}
/**
* int64 exchange_withdraw_another_amount = 20;
* @return This builder for chaining.
*/
public Builder clearExchangeWithdrawAnotherAmount() {
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;
onChanged();
return this;
}
/**
* int64 exchange_id = 21;
* @return This builder for chaining.
*/
public Builder clearExchangeId() {
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;
onChanged();
return this;
}
/**
* int64 shielded_transaction_fee = 22;
* @return This builder for chaining.
*/
public Builder clearShieldedTransactionFee() {
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;
onChanged();
return this;
}
/**
* bytes orderId = 25;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
onChanged();
return this;
}
private java.util.List orderDetails_ =
java.util.Collections.emptyList();
private void ensureOrderDetailsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
orderDetails_ = new java.util.ArrayList(orderDetails_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder> orderDetailsBuilder_;
public java.util.List getOrderDetailsList() {
if (orderDetailsBuilder_ == null) {
return java.util.Collections.unmodifiableList(orderDetails_);
} else {
return orderDetailsBuilder_.getMessageList();
}
}
public int getOrderDetailsCount() {
if (orderDetailsBuilder_ == null) {
return orderDetails_.size();
} else {
return orderDetailsBuilder_.getCount();
}
}
public org.vision.visionjsdk.proto.Response.MarketOrderDetail getOrderDetails(int index) {
if (orderDetailsBuilder_ == null) {
return orderDetails_.get(index);
} else {
return orderDetailsBuilder_.getMessage(index);
}
}
public Builder setOrderDetails(
int index, org.vision.visionjsdk.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;
}
public Builder setOrderDetails(
int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.set(index, builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
public Builder addOrderDetails(org.vision.visionjsdk.proto.Response.MarketOrderDetail value) {
if (orderDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderDetailsIsMutable();
orderDetails_.add(value);
onChanged();
} else {
orderDetailsBuilder_.addMessage(value);
}
return this;
}
public Builder addOrderDetails(
int index, org.vision.visionjsdk.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;
}
public Builder addOrderDetails(
org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.add(builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addOrderDetails(
int index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder builderForValue) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.add(index, builderForValue.build());
onChanged();
} else {
orderDetailsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
public Builder addAllOrderDetails(
java.lang.Iterable extends org.vision.visionjsdk.proto.Response.MarketOrderDetail> values) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orderDetails_);
onChanged();
} else {
orderDetailsBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearOrderDetails() {
if (orderDetailsBuilder_ == null) {
orderDetails_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
orderDetailsBuilder_.clear();
}
return this;
}
public Builder removeOrderDetails(int index) {
if (orderDetailsBuilder_ == null) {
ensureOrderDetailsIsMutable();
orderDetails_.remove(index);
onChanged();
} else {
orderDetailsBuilder_.remove(index);
}
return this;
}
public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder getOrderDetailsBuilder(
int index) {
return getOrderDetailsFieldBuilder().getBuilder(index);
}
public org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder getOrderDetailsOrBuilder(
int index) {
if (orderDetailsBuilder_ == null) {
return orderDetails_.get(index); } else {
return orderDetailsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List extends org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsOrBuilderList() {
if (orderDetailsBuilder_ != null) {
return orderDetailsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orderDetails_);
}
}
public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder() {
return getOrderDetailsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance());
}
public org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder addOrderDetailsBuilder(
int index) {
return getOrderDetailsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Response.MarketOrderDetail.getDefaultInstance());
}
public java.util.List
getOrderDetailsBuilderList() {
return getOrderDetailsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>
getOrderDetailsFieldBuilder() {
if (orderDetailsBuilder_ == null) {
orderDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Response.MarketOrderDetail, org.vision.visionjsdk.proto.Response.MarketOrderDetail.Builder, org.vision.visionjsdk.proto.Response.MarketOrderDetailOrBuilder>(
orderDetails_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
orderDetails_ = null;
}
return orderDetailsBuilder_;
}
@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.vision.visionjsdk.proto.Response.TransactionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.TransactionInfo();
}
public static org.vision.visionjsdk.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 {
return new TransactionInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Witness(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
break;
}
case 16: {
voteCount_ = input.readInt64();
break;
}
case 26: {
pubKey_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
url_ = s;
break;
}
case 40: {
totalProduced_ = input.readInt64();
break;
}
case 48: {
totalMissed_ = input.readInt64();
break;
}
case 56: {
latestBlockNum_ = input.readInt64();
break;
}
case 64: {
latestSlotNum_ = input.readInt64();
break;
}
case 72: {
isJobs_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.Witness.class, org.vision.visionjsdk.proto.Response.Witness.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* 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_;
/**
* 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_;
/**
* 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;
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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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 (!getUrlBytes().isEmpty()) {
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (voteCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, voteCount_);
}
if (!pubKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, pubKey_);
}
if (!getUrlBytes().isEmpty()) {
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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Response.Witness)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Response.Witness other = (org.vision.visionjsdk.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 46;
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Response.Witness parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.Witness parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.Witness parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Response.Witness parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Response.Witness parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.Witness parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.proto.Response.Witness parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.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.vision.visionjsdk.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.vision.visionjsdk.proto.Response.WitnessOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Response.Witness.class, org.vision.visionjsdk.proto.Response.Witness.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Response.Witness.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.ByteString.EMPTY;
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.vision.visionjsdk.proto.Response.internal_static_protocol_Witness_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Witness getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Response.Witness.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Witness build() {
org.vision.visionjsdk.proto.Response.Witness result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Response.Witness buildPartial() {
org.vision.visionjsdk.proto.Response.Witness result = new org.vision.visionjsdk.proto.Response.Witness(this);
result.address_ = address_;
result.voteCount_ = voteCount_;
result.pubKey_ = pubKey_;
result.url_ = url_;
result.totalProduced_ = totalProduced_;
result.totalMissed_ = totalMissed_;
result.latestBlockNum_ = latestBlockNum_;
result.latestSlotNum_ = latestSlotNum_;
result.isJobs_ = isJobs_;
onBuilt();
return 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.vision.visionjsdk.proto.Response.Witness) {
return mergeFrom((org.vision.visionjsdk.proto.Response.Witness)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Response.Witness other) {
if (other == org.vision.visionjsdk.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_;
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Response.Witness parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Response.Witness) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
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;
onChanged();
return this;
}
/**
* int64 voteCount = 2;
* @return This builder for chaining.
*/
public Builder clearVoteCount() {
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;
onChanged();
return this;
}
/**
* bytes pubKey = 3;
* @return This builder for chaining.
*/
public Builder clearPubKey() {
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;
onChanged();
return this;
}
/**
* string url = 4;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
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;
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;
onChanged();
return this;
}
/**
* int64 totalProduced = 5;
* @return This builder for chaining.
*/
public Builder clearTotalProduced() {
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;
onChanged();
return this;
}
/**
* int64 totalMissed = 6;
* @return This builder for chaining.
*/
public Builder clearTotalMissed() {
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;
onChanged();
return this;
}
/**
* int64 latestBlockNum = 7;
* @return This builder for chaining.
*/
public Builder clearLatestBlockNum() {
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;
onChanged();
return this;
}
/**
* int64 latestSlotNum = 8;
* @return This builder for chaining.
*/
public Builder clearLatestSlotNum() {
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;
onChanged();
return this;
}
/**
* bool isJobs = 9;
* @return This builder for chaining.
*/
public Builder clearIsJobs() {
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.vision.visionjsdk.proto.Response.Witness DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Response.Witness();
}
public static org.vision.visionjsdk.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 {
return new Witness(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.vision.visionjsdk.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.vision.visionjsdk.proto.Common.AccountType getType();
/**
*
* the create address
*
*
* bytes address = 3;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
*
* the vs balance
*
*
* int64 balance = 4;
* @return The balance.
*/
long getBalance();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
* @return list
*/
java.util.List
getVotesList();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
* @param index index
* @return Vote
*/
org.vision.visionjsdk.proto.Common.Vote getVotes(int index);
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
* @return int
*/
int getVotesCount();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.VoteOrBuilder>
getVotesOrBuilderList();
/**
*
* the votes
*
*
* repeated .protocol.Vote votes = 5;
* @param index index
* @return VoteOrBuilder
*/
org.vision.visionjsdk.proto.Common.VoteOrBuilder getVotesOrBuilder(
int index);
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
* @return int
*/
int getAssetCount();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
* @param key key
* @return boolean
*/
boolean containsAsset(
java.lang.String key);
/**
* Use {@link #getAssetMap()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getAsset();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
* @return map
*/
java.util.Map
getAssetMap();
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getAssetOrDefault(
java.lang.String key,
long defaultValue);
/**
*
* the other asset owned by this account
*
*
* map<string, int64> asset = 6;
* @param key key
* @return long
*/
long getAssetOrThrow(
java.lang.String key);
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
* @return int
*/
int getAssetV2Count();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
* @param key key
* @return boolean
*/
boolean containsAssetV2(
java.lang.String key);
/**
* Use {@link #getAssetV2Map()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getAssetV2();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
* @return map
*/
java.util.Map
getAssetV2Map();
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getAssetV2OrDefault(
java.lang.String key,
long defaultValue);
/**
*
* the other asset owned by this account,key is assetId
*
*
* map<string, int64> assetV2 = 56;
* @param key key
* @return long
*/
long getAssetV2OrThrow(
java.lang.String key);
/**
*
* the frozen balance for photon
*
*
* repeated .protocol.Account.Frozen frozen = 7;
* @return list
*/
java.util.List
getFrozenList();
/**
*
* the frozen balance for photon
*
*
* repeated .protocol.Account.Frozen frozen = 7;
* @param index index
* @return Frozen
*/
org.vision.visionjsdk.proto.Response.Account.Frozen getFrozen(int index);
/**
*
* the frozen balance for photon
*
*
* repeated .protocol.Account.Frozen frozen = 7;
* @return int
*/
int getFrozenCount();
/**
*
* the frozen balance for photon
*
*
* repeated .protocol.Account.Frozen frozen = 7;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder>
getFrozenOrBuilderList();
/**
*
* the frozen balance for photon
*
*
* repeated .protocol.Account.Frozen frozen = 7;
* @param index index
* @return FrozenOrBuilder
*/
org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder getFrozenOrBuilder(
int index);
/**
*
* photon, 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_photon = 41;
* @return The acquiredDelegatedFrozenBalanceForPhoton.
*/
long getAcquiredDelegatedFrozenBalanceForPhoton();
/**
*
* Freeze and provide balances to other accounts
*
*
* int64 delegated_frozen_balance_for_photon = 42;
* @return The delegatedFrozenBalanceForPhoton.
*/
long getDelegatedFrozenBalanceForPhoton();
/**
*
* 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;
* @return list
*/
java.util.List
getFrozenSupplyList();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
* @param index index
* @return Frozen
*/
org.vision.visionjsdk.proto.Response.Account.Frozen getFrozenSupply(int index);
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
* @return int
*/
int getFrozenSupplyCount();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Response.Account.FrozenOrBuilder>
getFrozenSupplyOrBuilderList();
/**
*
* frozen asset(for asset issuer)
*
*
* repeated .protocol.Account.Frozen frozen_supply = 16;
* @param index index
* @return FrozenOrBuilder
*/
org.vision.visionjsdk.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;
* @return int
*/
int getLatestAssetOperationTimeCount();
/**
* map<string, int64> latest_asset_operation_time = 18;
* @param key key
* @return boolean
*/
boolean containsLatestAssetOperationTime(
java.lang.String key);
/**
* Use {@link #getLatestAssetOperationTimeMap()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getLatestAssetOperationTime();
/**
* map<string, int64> latest_asset_operation_time = 18;
* @return map
*/
java.util.Map
getLatestAssetOperationTimeMap();
/**
* map<string, int64> latest_asset_operation_time = 18;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getLatestAssetOperationTimeOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> latest_asset_operation_time = 18;
* @param key key
* @return long
*/
long getLatestAssetOperationTimeOrThrow(
java.lang.String key);
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
* @return int
*/
int getLatestAssetOperationTimeV2Count();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
* @param key key
* @return boolean
*/
boolean containsLatestAssetOperationTimeV2(
java.lang.String key);
/**
* Use {@link #getLatestAssetOperationTimeV2Map()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getLatestAssetOperationTimeV2();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
* @return map
*/
java.util.Map
getLatestAssetOperationTimeV2Map();
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getLatestAssetOperationTimeV2OrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> latest_asset_operation_timeV2 = 58;
* @param key key
* @return long
*/
long getLatestAssetOperationTimeV2OrThrow(
java.lang.String key);
/**
* int64 free_net_usage = 19;
* @return The freeNetUsage.
*/
long getFreeNetUsage();
/**
* map<string, int64> free_asset_net_usage = 20;
* @return int
*/
int getFreeAssetNetUsageCount();
/**
* map<string, int64> free_asset_net_usage = 20;
* @param key key
* @return boolean
*/
boolean containsFreeAssetNetUsage(
java.lang.String key);
/**
* Use {@link #getFreeAssetNetUsageMap()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getFreeAssetNetUsage();
/**
* map<string, int64> free_asset_net_usage = 20;
* @return map
*/
java.util.Map
getFreeAssetNetUsageMap();
/**
* map<string, int64> free_asset_net_usage = 20;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getFreeAssetNetUsageOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> free_asset_net_usage = 20;
* @param key key
* @return long
*/
long getFreeAssetNetUsageOrThrow(
java.lang.String key);
/**
* map<string, int64> free_asset_net_usageV2 = 59;
* @return int
*/
int getFreeAssetNetUsageV2Count();
/**
* map<string, int64> free_asset_net_usageV2 = 59;
* @param key key
* @return boolean
*/
boolean containsFreeAssetNetUsageV2(
java.lang.String key);
/**
* Use {@link #getFreeAssetNetUsageV2Map()} instead.
* @return map
*/
@java.lang.Deprecated
java.util.Map
getFreeAssetNetUsageV2();
/**
* map<string, int64> free_asset_net_usageV2 = 59;
* @return map
*/
java.util.Map
getFreeAssetNetUsageV2Map();
/**
* map<string, int64> free_asset_net_usageV2 = 59;
* @param key key
* @param defaultValue defaultValue
* @return long
*/
long getFreeAssetNetUsageV2OrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, int64> free_asset_net_usageV2 = 59;
* @param key key
* @return long
*/
long getFreeAssetNetUsageV2OrThrow(
java.lang.String key);
/**
* int64 latest_consume_time = 21;
* @return The latestConsumeTime.
*/
long getLatestConsumeTime();
/**
* int64 latest_consume_free_time = 22;
* @return The latestConsumeFreeTime.
*/
long getLatestConsumeFreeTime();
/**
*
* the identity of this account, case insensitive
*
*
* bytes account_id = 23;
* @return The accountId.
*/
com.google.protobuf.ByteString getAccountId();
/**
* .protocol.Account.AccountResource account_resource = 26;
* @return Whether the accountResource field is set.
*/
boolean hasAccountResource();
/**
* .protocol.Account.AccountResource account_resource = 26;
* @return The accountResource.
*/
org.vision.visionjsdk.proto.Response.Account.AccountResource getAccountResource();
/**
* .protocol.Account.AccountResource account_resource = 26;
* @return AccountResourceOrBuilder
*/
org.vision.visionjsdk.proto.Response.Account.AccountResourceOrBuilder getAccountResourceOrBuilder();
/**
* bytes codeHash = 30;
* @return The codeHash.
*/
com.google.protobuf.ByteString getCodeHash();
/**
* .protocol.Permission owner_permission = 31;
* @return Whether the ownerPermission field is set.
*/
boolean hasOwnerPermission();
/**
* .protocol.Permission owner_permission = 31;
* @return The ownerPermission.
*/
org.vision.visionjsdk.proto.Common.Permission getOwnerPermission();
/**
* .protocol.Permission owner_permission = 31;
* @return PermissionOrBuilder
*/
org.vision.visionjsdk.proto.Common.PermissionOrBuilder getOwnerPermissionOrBuilder();
/**
* .protocol.Permission witness_permission = 32;
* @return Whether the witnessPermission field is set.
*/
boolean hasWitnessPermission();
/**
* .protocol.Permission witness_permission = 32;
* @return The witnessPermission.
*/
org.vision.visionjsdk.proto.Common.Permission getWitnessPermission();
/**
* .protocol.Permission witness_permission = 32;
* @return PermissionOrBuilder
*/
org.vision.visionjsdk.proto.Common.PermissionOrBuilder getWitnessPermissionOrBuilder();
/**
* repeated .protocol.Permission active_permission = 33;
* @return list
*/
java.util.List
getActivePermissionList();
/**
* repeated .protocol.Permission active_permission = 33;
* @param index index
* @return Permission
*/
org.vision.visionjsdk.proto.Common.Permission getActivePermission(int index);
/**
* repeated .protocol.Permission active_permission = 33;
* @return int
*/
int getActivePermissionCount();
/**
* repeated .protocol.Permission active_permission = 33;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.PermissionOrBuilder>
getActivePermissionOrBuilderList();
/**
* repeated .protocol.Permission active_permission = 33;
* @param index index
* @return PermissionOrBuilder
*/
org.vision.visionjsdk.proto.Common.PermissionOrBuilder getActivePermissionOrBuilder(
int index);
}
/**
*
* Account
*
*
* Protobuf type {@code protocol.Account}
*/
public static final class Account extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Account)
AccountOrBuilder {
private static final long serialVersionUID = 0L;
// Use Account.newBuilder() to construct.
private Account(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Account() {
accountName_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
votes_ = java.util.Collections.emptyList();
frozen_ = java.util.Collections.emptyList();
code_ = com.google.protobuf.ByteString.EMPTY;
frozenSupply_ = java.util.Collections.emptyList();
assetIssuedName_ = com.google.protobuf.ByteString.EMPTY;
assetIssuedID_ = com.google.protobuf.ByteString.EMPTY;
accountId_ = com.google.protobuf.ByteString.EMPTY;
codeHash_ = com.google.protobuf.ByteString.EMPTY;
activePermission_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Account();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Account(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
accountName_ = input.readBytes();
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 26: {
address_ = input.readBytes();
break;
}
case 32: {
balance_ = input.readInt64();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
votes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
votes_.add(
input.readMessage(org.vision.visionjsdk.proto.Common.Vote.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
asset_ = com.google.protobuf.MapField.newMapField(
AssetDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry