org.vision.visionjsdk.proto.Common Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/common.proto
package org.vision.visionjsdk.proto;
public final class Common {
private Common() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code protocol.ResourceCode}
*/
public enum ResourceCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PHOTON = 0;
*/
PHOTON(0),
/**
* ENTROPY = 1;
*/
ENTROPY(1),
UNRECOGNIZED(-1),
;
/**
* PHOTON = 0;
*/
public static final int PHOTON_VALUE = 0;
/**
* ENTROPY = 1;
*/
public static final int ENTROPY_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 ResourceCode 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 ResourceCode forNumber(int value) {
switch (value) {
case 0: return PHOTON;
case 1: return ENTROPY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ResourceCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ResourceCode findValueByNumber(int number) {
return ResourceCode.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.Common.getDescriptor().getEnumTypes().get(0);
}
private static final ResourceCode[] VALUES = values();
public static ResourceCode 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 ResourceCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.ResourceCode)
}
/**
* Protobuf enum {@code protocol.AccountType}
*/
public enum AccountType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Normal = 0;
*/
Normal(0),
/**
* AssetIssue = 1;
*/
AssetIssue(1),
/**
* Contract = 2;
*/
Contract(2),
UNRECOGNIZED(-1),
;
/**
* Normal = 0;
*/
public static final int Normal_VALUE = 0;
/**
* AssetIssue = 1;
*/
public static final int AssetIssue_VALUE = 1;
/**
* Contract = 2;
*/
public static final int Contract_VALUE = 2;
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 AccountType 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 AccountType forNumber(int value) {
switch (value) {
case 0: return Normal;
case 1: return AssetIssue;
case 2: return Contract;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AccountType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AccountType findValueByNumber(int number) {
return AccountType.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.Common.getDescriptor().getEnumTypes().get(1);
}
private static final AccountType[] VALUES = values();
public static AccountType 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 AccountType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.AccountType)
}
public interface AccountIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.AccountId)
com.google.protobuf.MessageOrBuilder {
/**
* bytes name = 1;
* @return The name.
*/
com.google.protobuf.ByteString getName();
/**
* bytes address = 2;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code protocol.AccountId}
*/
public static final class AccountId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.AccountId)
AccountIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountId.newBuilder() to construct.
private AccountId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountId() {
name_ = com.google.protobuf.ByteString.EMPTY;
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AccountId(
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: {
name_ = input.readBytes();
break;
}
case 18: {
address_ = 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.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_AccountId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.AccountId.class, org.vision.visionjsdk.proto.Common.AccountId.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString name_;
/**
* bytes name = 1;
* @return The name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getName() {
return name_;
}
public static final int ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 2;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!name_.isEmpty()) {
output.writeBytes(1, name_);
}
if (!address_.isEmpty()) {
output.writeBytes(2, address_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!name_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, name_);
}
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, address_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.vision.visionjsdk.proto.Common.AccountId)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.AccountId other = (org.vision.visionjsdk.proto.Common.AccountId) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getAddress()
.equals(other.getAddress())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.AccountId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.AccountId 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.Common.AccountId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.AccountId 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.Common.AccountId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.AccountId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.AccountId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.AccountId 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.Common.AccountId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.AccountId 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.Common.AccountId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.AccountId 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.Common.AccountId 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.AccountId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.AccountId)
org.vision.visionjsdk.proto.Common.AccountIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_AccountId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.AccountId.class, org.vision.visionjsdk.proto.Common.AccountId.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.AccountId.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();
name_ = com.google.protobuf.ByteString.EMPTY;
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.AccountId getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.AccountId.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.AccountId build() {
org.vision.visionjsdk.proto.Common.AccountId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.AccountId buildPartial() {
org.vision.visionjsdk.proto.Common.AccountId result = new org.vision.visionjsdk.proto.Common.AccountId(this);
result.name_ = name_;
result.address_ = address_;
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.Common.AccountId) {
return mergeFrom((org.vision.visionjsdk.proto.Common.AccountId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.AccountId other) {
if (other == org.vision.visionjsdk.proto.Common.AccountId.getDefaultInstance()) return this;
if (other.getName() != com.google.protobuf.ByteString.EMPTY) {
setName(other.getName());
}
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.vision.visionjsdk.proto.Common.AccountId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.AccountId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes name = 1;
* @return The name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getName() {
return name_;
}
/**
* bytes name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* bytes name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 2;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 2;
* @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 = 2;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
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.AccountId)
}
// @@protoc_insertion_point(class_scope:protocol.AccountId)
private static final org.vision.visionjsdk.proto.Common.AccountId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.AccountId();
}
public static org.vision.visionjsdk.proto.Common.AccountId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AccountId(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.Common.AccountId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface authorityOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.authority)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.AccountId account = 1;
* @return Whether the account field is set.
*/
boolean hasAccount();
/**
* .protocol.AccountId account = 1;
* @return The account.
*/
org.vision.visionjsdk.proto.Common.AccountId getAccount();
/**
* .protocol.AccountId account = 1;
* @return org.vision.visionjsdk.proto.Common.AccountIdOrBuilder
*/
org.vision.visionjsdk.proto.Common.AccountIdOrBuilder getAccountOrBuilder();
/**
* bytes permission_name = 2;
* @return The permissionName.
*/
com.google.protobuf.ByteString getPermissionName();
}
/**
* Protobuf type {@code protocol.authority}
*/
public static final class authority extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.authority)
authorityOrBuilder {
private static final long serialVersionUID = 0L;
// Use authority.newBuilder() to construct.
private authority(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private authority() {
permissionName_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new authority();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private authority(
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.AccountId.Builder subBuilder = null;
if (account_ != null) {
subBuilder = account_.toBuilder();
}
account_ = input.readMessage(org.vision.visionjsdk.proto.Common.AccountId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(account_);
account_ = subBuilder.buildPartial();
}
break;
}
case 18: {
permissionName_ = 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.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_authority_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.authority.class, org.vision.visionjsdk.proto.Common.authority.Builder.class);
}
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.vision.visionjsdk.proto.Common.AccountId account_;
/**
* .protocol.AccountId account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return account_ != null;
}
/**
* .protocol.AccountId account = 1;
* @return The account.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.AccountId getAccount() {
return account_ == null ? org.vision.visionjsdk.proto.Common.AccountId.getDefaultInstance() : account_;
}
/**
* .protocol.AccountId account = 1;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.AccountIdOrBuilder getAccountOrBuilder() {
return getAccount();
}
public static final int PERMISSION_NAME_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString permissionName_;
/**
* bytes permission_name = 2;
* @return The permissionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPermissionName() {
return permissionName_;
}
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 (account_ != null) {
output.writeMessage(1, getAccount());
}
if (!permissionName_.isEmpty()) {
output.writeBytes(2, permissionName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (account_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
if (!permissionName_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, permissionName_);
}
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.Common.authority)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.authority other = (org.vision.visionjsdk.proto.Common.authority) obj;
if (hasAccount() != other.hasAccount()) return false;
if (hasAccount()) {
if (!getAccount()
.equals(other.getAccount())) return false;
}
if (!getPermissionName()
.equals(other.getPermissionName())) 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 (hasAccount()) {
hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAccount().hashCode();
}
hash = (37 * hash) + PERMISSION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPermissionName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.authority parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.authority 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.Common.authority parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.authority 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.Common.authority parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.authority parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.authority parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.authority 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.Common.authority parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.authority 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.Common.authority parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.authority 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.Common.authority 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.authority}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.authority)
org.vision.visionjsdk.proto.Common.authorityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_authority_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.authority.class, org.vision.visionjsdk.proto.Common.authority.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.authority.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 (accountBuilder_ == null) {
account_ = null;
} else {
account_ = null;
accountBuilder_ = null;
}
permissionName_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.authority getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.authority.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.authority build() {
org.vision.visionjsdk.proto.Common.authority result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.authority buildPartial() {
org.vision.visionjsdk.proto.Common.authority result = new org.vision.visionjsdk.proto.Common.authority(this);
if (accountBuilder_ == null) {
result.account_ = account_;
} else {
result.account_ = accountBuilder_.build();
}
result.permissionName_ = permissionName_;
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.Common.authority) {
return mergeFrom((org.vision.visionjsdk.proto.Common.authority)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.authority other) {
if (other == org.vision.visionjsdk.proto.Common.authority.getDefaultInstance()) return this;
if (other.hasAccount()) {
mergeAccount(other.getAccount());
}
if (other.getPermissionName() != com.google.protobuf.ByteString.EMPTY) {
setPermissionName(other.getPermissionName());
}
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.Common.authority parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.authority) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.vision.visionjsdk.proto.Common.AccountId account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.AccountId, org.vision.visionjsdk.proto.Common.AccountId.Builder, org.vision.visionjsdk.proto.Common.AccountIdOrBuilder> accountBuilder_;
/**
* .protocol.AccountId account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return accountBuilder_ != null || account_ != null;
}
/**
* .protocol.AccountId account = 1;
* @return The account.
*/
public org.vision.visionjsdk.proto.Common.AccountId getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.vision.visionjsdk.proto.Common.AccountId.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .protocol.AccountId account = 1;
* @param value value
* @return Builder
*/
public Builder setAccount(org.vision.visionjsdk.proto.Common.AccountId value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
onChanged();
} else {
accountBuilder_.setMessage(value);
}
return this;
}
/**
* .protocol.AccountId account = 1;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setAccount(
org.vision.visionjsdk.proto.Common.AccountId.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
onChanged();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protocol.AccountId account = 1;
* @param value value
* @return Builder
*/
public Builder mergeAccount(org.vision.visionjsdk.proto.Common.AccountId value) {
if (accountBuilder_ == null) {
if (account_ != null) {
account_ =
org.vision.visionjsdk.proto.Common.AccountId.newBuilder(account_).mergeFrom(value).buildPartial();
} else {
account_ = value;
}
onChanged();
} else {
accountBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protocol.AccountId account = 1;
* @return Builder
*/
public Builder clearAccount() {
if (accountBuilder_ == null) {
account_ = null;
onChanged();
} else {
account_ = null;
accountBuilder_ = null;
}
return this;
}
/**
* .protocol.AccountId account = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.AccountId.Builder getAccountBuilder() {
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .protocol.AccountId account = 1;
* @return AccountIdOrBuilder
*/
public org.vision.visionjsdk.proto.Common.AccountIdOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.vision.visionjsdk.proto.Common.AccountId.getDefaultInstance() : account_;
}
}
/**
* .protocol.AccountId account = 1;
* @return SingleFieldBuilderV3
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.AccountId, org.vision.visionjsdk.proto.Common.AccountId.Builder, org.vision.visionjsdk.proto.Common.AccountIdOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.AccountId, org.vision.visionjsdk.proto.Common.AccountId.Builder, org.vision.visionjsdk.proto.Common.AccountIdOrBuilder>(
getAccount(),
getParentForChildren(),
isClean());
account_ = null;
}
return accountBuilder_;
}
private com.google.protobuf.ByteString permissionName_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes permission_name = 2;
* @return The permissionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPermissionName() {
return permissionName_;
}
/**
* bytes permission_name = 2;
* @param value The permissionName to set.
* @return This builder for chaining.
*/
public Builder setPermissionName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
permissionName_ = value;
onChanged();
return this;
}
/**
* bytes permission_name = 2;
* @return This builder for chaining.
*/
public Builder clearPermissionName() {
permissionName_ = getDefaultInstance().getPermissionName();
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.authority)
}
// @@protoc_insertion_point(class_scope:protocol.authority)
private static final org.vision.visionjsdk.proto.Common.authority DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.authority();
}
public static org.vision.visionjsdk.proto.Common.authority getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public authority parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new authority(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.Common.authority getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Key)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* int64 weight = 2;
* @return The weight.
*/
long getWeight();
}
/**
* Protobuf type {@code protocol.Key}
*/
public static final class Key extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Key)
KeyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Key.newBuilder() to construct.
private Key(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Key() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Key();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Key(
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: {
weight_ = input.readInt64();
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.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Key.class, org.vision.visionjsdk.proto.Common.Key.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 WEIGHT_FIELD_NUMBER = 2;
private long weight_;
/**
* int64 weight = 2;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
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 (weight_ != 0L) {
output.writeInt64(2, weight_);
}
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 (weight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, weight_);
}
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.Common.Key)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.Key other = (org.vision.visionjsdk.proto.Common.Key) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getWeight()
!= other.getWeight()) 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) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWeight());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.Key parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Key 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.Common.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Key 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.Common.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Key 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.Common.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Key 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.Common.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Key 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.Common.Key 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.Key}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.Key)
org.vision.visionjsdk.proto.Common.KeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Key.class, org.vision.visionjsdk.proto.Common.Key.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.Key.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;
weight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Key getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.Key.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Key build() {
org.vision.visionjsdk.proto.Common.Key result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Key buildPartial() {
org.vision.visionjsdk.proto.Common.Key result = new org.vision.visionjsdk.proto.Common.Key(this);
result.address_ = address_;
result.weight_ = weight_;
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.Common.Key) {
return mergeFrom((org.vision.visionjsdk.proto.Common.Key)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.Key other) {
if (other == org.vision.visionjsdk.proto.Common.Key.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getWeight() != 0L) {
setWeight(other.getWeight());
}
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.Common.Key parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.Key) 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 weight_ ;
/**
* int64 weight = 2;
* @return The weight.
*/
@java.lang.Override
public long getWeight() {
return weight_;
}
/**
* int64 weight = 2;
* @param value The weight to set.
* @return This builder for chaining.
*/
public Builder setWeight(long value) {
weight_ = value;
onChanged();
return this;
}
/**
* int64 weight = 2;
* @return This builder for chaining.
*/
public Builder clearWeight() {
weight_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.Key)
}
// @@protoc_insertion_point(class_scope:protocol.Key)
private static final org.vision.visionjsdk.proto.Common.Key DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.Key();
}
public static org.vision.visionjsdk.proto.Common.Key getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Key parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Key(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.Common.Key getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PermissionOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Permission)
com.google.protobuf.MessageOrBuilder {
/**
* .protocol.Permission.PermissionType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .protocol.Permission.PermissionType type = 1;
* @return The type.
*/
org.vision.visionjsdk.proto.Common.Permission.PermissionType getType();
/**
*
* Owner id=0, Witness id=1, Active id start by 2
*
*
* int32 id = 2;
* @return The id.
*/
int getId();
/**
* string permission_name = 3;
* @return The permissionName.
*/
java.lang.String getPermissionName();
/**
* string permission_name = 3;
* @return The bytes for permissionName.
*/
com.google.protobuf.ByteString
getPermissionNameBytes();
/**
* int64 threshold = 4;
* @return The threshold.
*/
long getThreshold();
/**
* int32 parent_id = 5;
* @return The parentId.
*/
int getParentId();
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @return The operations.
*/
com.google.protobuf.ByteString getOperations();
/**
* repeated .protocol.Key keys = 7;
* @return list
*/
java.util.List
getKeysList();
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return org.vision.visionjsdk.proto.Common.key
*/
org.vision.visionjsdk.proto.Common.Key getKeys(int index);
/**
* repeated .protocol.Key keys = 7;
* @return int
*/
int getKeysCount();
/**
* repeated .protocol.Key keys = 7;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.KeyOrBuilder>
getKeysOrBuilderList();
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return KeyOrBuilder
*/
org.vision.visionjsdk.proto.Common.KeyOrBuilder getKeysOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.Permission}
*/
public static final class Permission extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Permission)
PermissionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Permission.newBuilder() to construct.
private Permission(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Permission() {
type_ = 0;
permissionName_ = "";
operations_ = com.google.protobuf.ByteString.EMPTY;
keys_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Permission();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Permission(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
id_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
permissionName_ = s;
break;
}
case 32: {
threshold_ = input.readInt64();
break;
}
case 40: {
parentId_ = input.readInt32();
break;
}
case 50: {
operations_ = input.readBytes();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
keys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
keys_.add(
input.readMessage(org.vision.visionjsdk.proto.Common.Key.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)) {
keys_ = java.util.Collections.unmodifiableList(keys_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Permission.class, org.vision.visionjsdk.proto.Common.Permission.Builder.class);
}
/**
* Protobuf enum {@code protocol.Permission.PermissionType}
*/
public enum PermissionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Owner = 0;
*/
Owner(0),
/**
* Witness = 1;
*/
Witness(1),
/**
* Active = 2;
*/
Active(2),
UNRECOGNIZED(-1),
;
/**
* Owner = 0;
*/
public static final int Owner_VALUE = 0;
/**
* Witness = 1;
*/
public static final int Witness_VALUE = 1;
/**
* Active = 2;
*/
public static final int Active_VALUE = 2;
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 PermissionType 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 PermissionType forNumber(int value) {
switch (value) {
case 0: return Owner;
case 1: return Witness;
case 2: return Active;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PermissionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PermissionType findValueByNumber(int number) {
return PermissionType.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.Common.Permission.getDescriptor().getEnumTypes().get(0);
}
private static final PermissionType[] VALUES = values();
public static PermissionType 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 PermissionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.Permission.PermissionType)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .protocol.Permission.PermissionType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @return The type.
*/
@java.lang.Override public org.vision.visionjsdk.proto.Common.Permission.PermissionType getType() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.Permission.PermissionType result = org.vision.visionjsdk.proto.Common.Permission.PermissionType.valueOf(type_);
return result == null ? org.vision.visionjsdk.proto.Common.Permission.PermissionType.UNRECOGNIZED : result;
}
public static final int ID_FIELD_NUMBER = 2;
private int id_;
/**
*
* Owner id=0, Witness id=1, Active id start by 2
*
*
* int32 id = 2;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int PERMISSION_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object permissionName_;
/**
* string permission_name = 3;
* @return The permissionName.
*/
@java.lang.Override
public java.lang.String getPermissionName() {
java.lang.Object ref = permissionName_;
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();
permissionName_ = s;
return s;
}
}
/**
* string permission_name = 3;
* @return The bytes for permissionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPermissionNameBytes() {
java.lang.Object ref = permissionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
permissionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int THRESHOLD_FIELD_NUMBER = 4;
private long threshold_;
/**
* int64 threshold = 4;
* @return The threshold.
*/
@java.lang.Override
public long getThreshold() {
return threshold_;
}
public static final int PARENT_ID_FIELD_NUMBER = 5;
private int parentId_;
/**
* int32 parent_id = 5;
* @return The parentId.
*/
@java.lang.Override
public int getParentId() {
return parentId_;
}
public static final int OPERATIONS_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString operations_;
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @return The operations.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOperations() {
return operations_;
}
public static final int KEYS_FIELD_NUMBER = 7;
private java.util.List keys_;
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public java.util.List getKeysList() {
return keys_;
}
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Common.KeyOrBuilder>
getKeysOrBuilderList() {
return keys_;
}
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public int getKeysCount() {
return keys_.size();
}
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Key getKeys(int index) {
return keys_.get(index);
}
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.KeyOrBuilder getKeysOrBuilder(
int index) {
return keys_.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 (type_ != org.vision.visionjsdk.proto.Common.Permission.PermissionType.Owner.getNumber()) {
output.writeEnum(1, type_);
}
if (id_ != 0) {
output.writeInt32(2, id_);
}
if (!getPermissionNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, permissionName_);
}
if (threshold_ != 0L) {
output.writeInt64(4, threshold_);
}
if (parentId_ != 0) {
output.writeInt32(5, parentId_);
}
if (!operations_.isEmpty()) {
output.writeBytes(6, operations_);
}
for (int i = 0; i < keys_.size(); i++) {
output.writeMessage(7, keys_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != org.vision.visionjsdk.proto.Common.Permission.PermissionType.Owner.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, id_);
}
if (!getPermissionNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, permissionName_);
}
if (threshold_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, threshold_);
}
if (parentId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, parentId_);
}
if (!operations_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, operations_);
}
for (int i = 0; i < keys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, keys_.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.Common.Permission)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.Permission other = (org.vision.visionjsdk.proto.Common.Permission) obj;
if (type_ != other.type_) return false;
if (getId()
!= other.getId()) return false;
if (!getPermissionName()
.equals(other.getPermissionName())) return false;
if (getThreshold()
!= other.getThreshold()) return false;
if (getParentId()
!= other.getParentId()) return false;
if (!getOperations()
.equals(other.getOperations())) return false;
if (!getKeysList()
.equals(other.getKeysList())) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + PERMISSION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPermissionName().hashCode();
hash = (37 * hash) + THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getThreshold());
hash = (37 * hash) + PARENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getParentId();
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperations().hashCode();
if (getKeysCount() > 0) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeysList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.Permission parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Permission 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.Common.Permission parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Permission 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.Common.Permission parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Permission parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.Permission parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Permission 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.Common.Permission parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Permission 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.Common.Permission parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Permission 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.Common.Permission 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.Permission}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.Permission)
org.vision.visionjsdk.proto.Common.PermissionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Permission.class, org.vision.visionjsdk.proto.Common.Permission.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.Permission.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeysFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
id_ = 0;
permissionName_ = "";
threshold_ = 0L;
parentId_ = 0;
operations_ = com.google.protobuf.ByteString.EMPTY;
if (keysBuilder_ == null) {
keys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
keysBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Permission getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Permission build() {
org.vision.visionjsdk.proto.Common.Permission result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Permission buildPartial() {
org.vision.visionjsdk.proto.Common.Permission result = new org.vision.visionjsdk.proto.Common.Permission(this);
int from_bitField0_ = bitField0_;
result.type_ = type_;
result.id_ = id_;
result.permissionName_ = permissionName_;
result.threshold_ = threshold_;
result.parentId_ = parentId_;
result.operations_ = operations_;
if (keysBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keys_ = java.util.Collections.unmodifiableList(keys_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keys_ = keys_;
} else {
result.keys_ = keysBuilder_.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.Common.Permission) {
return mergeFrom((org.vision.visionjsdk.proto.Common.Permission)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.Permission other) {
if (other == org.vision.visionjsdk.proto.Common.Permission.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getPermissionName().isEmpty()) {
permissionName_ = other.permissionName_;
onChanged();
}
if (other.getThreshold() != 0L) {
setThreshold(other.getThreshold());
}
if (other.getParentId() != 0) {
setParentId(other.getParentId());
}
if (other.getOperations() != com.google.protobuf.ByteString.EMPTY) {
setOperations(other.getOperations());
}
if (keysBuilder_ == null) {
if (!other.keys_.isEmpty()) {
if (keys_.isEmpty()) {
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
onChanged();
}
} else {
if (!other.keys_.isEmpty()) {
if (keysBuilder_.isEmpty()) {
keysBuilder_.dispose();
keysBuilder_ = null;
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000001);
keysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeysFieldBuilder() : null;
} else {
keysBuilder_.addAllMessages(other.keys_);
}
}
}
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.Common.Permission parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.Permission) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 0;
/**
* .protocol.Permission.PermissionType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @return The type.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Permission.PermissionType getType() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.Permission.PermissionType result = org.vision.visionjsdk.proto.Common.Permission.PermissionType.valueOf(type_);
return result == null ? org.vision.visionjsdk.proto.Common.Permission.PermissionType.UNRECOGNIZED : result;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.vision.visionjsdk.proto.Common.Permission.PermissionType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int id_ ;
/**
*
* Owner id=0, Witness id=1, Active id start by 2
*
*
* int32 id = 2;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
*
* Owner id=0, Witness id=1, Active id start by 2
*
*
* int32 id = 2;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
*
* Owner id=0, Witness id=1, Active id start by 2
*
*
* int32 id = 2;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object permissionName_ = "";
/**
* string permission_name = 3;
* @return The permissionName.
*/
public java.lang.String getPermissionName() {
java.lang.Object ref = permissionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
permissionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string permission_name = 3;
* @return The bytes for permissionName.
*/
public com.google.protobuf.ByteString
getPermissionNameBytes() {
java.lang.Object ref = permissionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
permissionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string permission_name = 3;
* @param value The permissionName to set.
* @return This builder for chaining.
*/
public Builder setPermissionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
permissionName_ = value;
onChanged();
return this;
}
/**
* string permission_name = 3;
* @return This builder for chaining.
*/
public Builder clearPermissionName() {
permissionName_ = getDefaultInstance().getPermissionName();
onChanged();
return this;
}
/**
* string permission_name = 3;
* @param value The bytes for permissionName to set.
* @return This builder for chaining.
*/
public Builder setPermissionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
permissionName_ = value;
onChanged();
return this;
}
private long threshold_ ;
/**
* int64 threshold = 4;
* @return The threshold.
*/
@java.lang.Override
public long getThreshold() {
return threshold_;
}
/**
* int64 threshold = 4;
* @param value The threshold to set.
* @return This builder for chaining.
*/
public Builder setThreshold(long value) {
threshold_ = value;
onChanged();
return this;
}
/**
* int64 threshold = 4;
* @return This builder for chaining.
*/
public Builder clearThreshold() {
threshold_ = 0L;
onChanged();
return this;
}
private int parentId_ ;
/**
* int32 parent_id = 5;
* @return The parentId.
*/
@java.lang.Override
public int getParentId() {
return parentId_;
}
/**
* int32 parent_id = 5;
* @param value The parentId to set.
* @return This builder for chaining.
*/
public Builder setParentId(int value) {
parentId_ = value;
onChanged();
return this;
}
/**
* int32 parent_id = 5;
* @return This builder for chaining.
*/
public Builder clearParentId() {
parentId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString operations_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @return The operations.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOperations() {
return operations_;
}
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @param value The operations to set.
* @return This builder for chaining.
*/
public Builder setOperations(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
operations_ = value;
onChanged();
return this;
}
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @return This builder for chaining.
*/
public Builder clearOperations() {
operations_ = getDefaultInstance().getOperations();
onChanged();
return this;
}
private java.util.List keys_ =
java.util.Collections.emptyList();
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keys_ = new java.util.ArrayList(keys_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Key, org.vision.visionjsdk.proto.Common.Key.Builder, org.vision.visionjsdk.proto.Common.KeyOrBuilder> keysBuilder_;
/**
* repeated .protocol.Key keys = 7;
*/
public java.util.List getKeysList() {
if (keysBuilder_ == null) {
return java.util.Collections.unmodifiableList(keys_);
} else {
return keysBuilder_.getMessageList();
}
}
/**
* repeated .protocol.Key keys = 7;
*/
public int getKeysCount() {
if (keysBuilder_ == null) {
return keys_.size();
} else {
return keysBuilder_.getCount();
}
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return org.vision.visionjsdk.proto.Common.Key
*/
public org.vision.visionjsdk.proto.Common.Key getKeys(int index) {
if (keysBuilder_ == null) {
return keys_.get(index);
} else {
return keysBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @param value value
* @return Builder
*/
public Builder setKeys(
int index, org.vision.visionjsdk.proto.Common.Key value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.set(index, value);
onChanged();
} else {
keysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setKeys(
int index, org.vision.visionjsdk.proto.Common.Key.Builder builderForValue) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.set(index, builderForValue.build());
onChanged();
} else {
keysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param value value
* @return Builder
*/
public Builder addKeys(org.vision.visionjsdk.proto.Common.Key value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(value);
onChanged();
} else {
keysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @param value value
* @return Builder
*/
public Builder addKeys(
int index, org.vision.visionjsdk.proto.Common.Key value) {
if (keysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(index, value);
onChanged();
} else {
keysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addKeys(
org.vision.visionjsdk.proto.Common.Key.Builder builderForValue) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.add(builderForValue.build());
onChanged();
} else {
keysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addKeys(
int index, org.vision.visionjsdk.proto.Common.Key.Builder builderForValue) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.add(index, builderForValue.build());
onChanged();
} else {
keysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param values values
* @return Builder
*/
public Builder addAllKeys(
java.lang.Iterable extends org.vision.visionjsdk.proto.Common.Key> values) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keys_);
onChanged();
} else {
keysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @return Builder
*/
public Builder clearKeys() {
if (keysBuilder_ == null) {
keys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keysBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return Builder
*/
public Builder removeKeys(int index) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.remove(index);
onChanged();
} else {
keysBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.Key.Builder getKeysBuilder(
int index) {
return getKeysFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return KeyOrBuilder
*/
public org.vision.visionjsdk.proto.Common.KeyOrBuilder getKeysOrBuilder(
int index) {
if (keysBuilder_ == null) {
return keys_.get(index); } else {
return keysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Key keys = 7;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Common.KeyOrBuilder>
getKeysOrBuilderList() {
if (keysBuilder_ != null) {
return keysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keys_);
}
}
/**
* repeated .protocol.Key keys = 7;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.Key.Builder addKeysBuilder() {
return getKeysFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Common.Key.getDefaultInstance());
}
/**
* repeated .protocol.Key keys = 7;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.Key.Builder addKeysBuilder(
int index) {
return getKeysFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Common.Key.getDefaultInstance());
}
/**
* repeated .protocol.Key keys = 7;
* @return list
*/
public java.util.List
getKeysBuilderList() {
return getKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Key, org.vision.visionjsdk.proto.Common.Key.Builder, org.vision.visionjsdk.proto.Common.KeyOrBuilder>
getKeysFieldBuilder() {
if (keysBuilder_ == null) {
keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.Key, org.vision.visionjsdk.proto.Common.Key.Builder, org.vision.visionjsdk.proto.Common.KeyOrBuilder>(
keys_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keys_ = null;
}
return keysBuilder_;
}
@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.Permission)
}
// @@protoc_insertion_point(class_scope:protocol.Permission)
private static final org.vision.visionjsdk.proto.Common.Permission DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.Permission();
}
public static org.vision.visionjsdk.proto.Common.Permission getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Permission parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Permission(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.Common.Permission getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SmartContractOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SmartContract)
com.google.protobuf.MessageOrBuilder {
/**
* bytes origin_address = 1;
* @return The originAddress.
*/
com.google.protobuf.ByteString getOriginAddress();
/**
* bytes contract_address = 2;
* @return The contractAddress.
*/
com.google.protobuf.ByteString getContractAddress();
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Whether the abi field is set.
*/
boolean hasAbi();
/**
* .protocol.SmartContract.ABI abi = 3;
* @return The abi.
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI getAbi();
/**
* .protocol.SmartContract.ABI abi = 3;
* @return ABIOrBuilder
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder getAbiOrBuilder();
/**
* bytes bytecode = 4;
* @return The bytecode.
*/
com.google.protobuf.ByteString getBytecode();
/**
* int64 call_value = 5;
* @return The callValue.
*/
long getCallValue();
/**
* int64 consume_user_resource_percent = 6;
* @return The consumeUserResourcePercent.
*/
long getConsumeUserResourcePercent();
/**
* string name = 7;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 7;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* int64 origin_entropy_limit = 8;
* @return The originEntropyLimit.
*/
long getOriginEntropyLimit();
/**
* bytes code_hash = 9;
* @return The codeHash.
*/
com.google.protobuf.ByteString getCodeHash();
/**
* bytes vs_hash = 10;
* @return The vsHash.
*/
com.google.protobuf.ByteString getVsHash();
}
/**
* Protobuf type {@code protocol.SmartContract}
*/
public static final class SmartContract extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SmartContract)
SmartContractOrBuilder {
private static final long serialVersionUID = 0L;
// Use SmartContract.newBuilder() to construct.
private SmartContract(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SmartContract() {
originAddress_ = com.google.protobuf.ByteString.EMPTY;
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
bytecode_ = com.google.protobuf.ByteString.EMPTY;
name_ = "";
codeHash_ = com.google.protobuf.ByteString.EMPTY;
vsHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SmartContract();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SmartContract(
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: {
originAddress_ = input.readBytes();
break;
}
case 18: {
contractAddress_ = input.readBytes();
break;
}
case 26: {
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder subBuilder = null;
if (abi_ != null) {
subBuilder = abi_.toBuilder();
}
abi_ = input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.ABI.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(abi_);
abi_ = subBuilder.buildPartial();
}
break;
}
case 34: {
bytecode_ = input.readBytes();
break;
}
case 40: {
callValue_ = input.readInt64();
break;
}
case 48: {
consumeUserResourcePercent_ = input.readInt64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 64: {
originEntropyLimit_ = input.readInt64();
break;
}
case 74: {
codeHash_ = input.readBytes();
break;
}
case 82: {
vsHash_ = 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.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.class, org.vision.visionjsdk.proto.Common.SmartContract.Builder.class);
}
public interface ABIOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SmartContract.ABI)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return list
*/
java.util.List
getEntrysList();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return Entry
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry getEntrys(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return index
*/
int getEntrysCount();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return EntryOrBuilder
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder getEntrysOrBuilder(
int index);
}
/**
* Protobuf type {@code protocol.SmartContract.ABI}
*/
public static final class ABI extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SmartContract.ABI)
ABIOrBuilder {
private static final long serialVersionUID = 0L;
// Use ABI.newBuilder() to construct.
private ABI(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ABI() {
entrys_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ABI();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ABI(
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)) {
entrys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entrys_.add(
input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.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)) {
entrys_ = java.util.Collections.unmodifiableList(entrys_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder.class);
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SmartContract.ABI.Entry)
com.google.protobuf.MessageOrBuilder {
/**
* bool anonymous = 1;
* @return The anonymous.
*/
boolean getAnonymous();
/**
* bool constant = 2;
* @return The constant.
*/
boolean getConstant();
/**
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return list
*/
java.util.List
getInputsList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return Param
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getInputs(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return int
*/
int getInputsCount();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return ParamOrBuilder
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getInputsOrBuilder(
int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return list
*/
java.util.List
getOutputsList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return Param
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getOutputs(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return int
*/
int getOutputsCount();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return list
*/
java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return ParamOrBuilder
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getOutputsOrBuilder(
int index);
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The type.
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType getType();
/**
* bool payable = 7;
* @return The payable.
*/
boolean getPayable();
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The enum numeric value on the wire for stateMutability.
*/
int getStateMutabilityValue();
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The stateMutability.
*/
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType getStateMutability();
}
/**
* Protobuf type {@code protocol.SmartContract.ABI.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SmartContract.ABI.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entry() {
name_ = "";
inputs_ = java.util.Collections.emptyList();
outputs_ = java.util.Collections.emptyList();
type_ = 0;
stateMutability_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Entry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
anonymous_ = input.readBool();
break;
}
case 16: {
constant_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inputs_.add(
input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
outputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
outputs_.add(
input.readMessage(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.parser(), extensionRegistry));
break;
}
case 48: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 56: {
payable_ = input.readBool();
break;
}
case 64: {
int rawValue = input.readEnum();
stateMutability_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder.class);
}
/**
* Protobuf enum {@code protocol.SmartContract.ABI.Entry.EntryType}
*/
public enum EntryType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UnknownEntryType = 0;
*/
UnknownEntryType(0),
/**
* Constructor = 1;
*/
Constructor(1),
/**
* Function = 2;
*/
Function(2),
/**
* Event = 3;
*/
Event(3),
/**
* Fallback = 4;
*/
Fallback(4),
UNRECOGNIZED(-1),
;
/**
* UnknownEntryType = 0;
*/
public static final int UnknownEntryType_VALUE = 0;
/**
* Constructor = 1;
*/
public static final int Constructor_VALUE = 1;
/**
* Function = 2;
*/
public static final int Function_VALUE = 2;
/**
* Event = 3;
*/
public static final int Event_VALUE = 3;
/**
* Fallback = 4;
*/
public static final int Fallback_VALUE = 4;
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 EntryType 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 EntryType forNumber(int value) {
switch (value) {
case 0: return UnknownEntryType;
case 1: return Constructor;
case 2: return Function;
case 3: return Event;
case 4: return Fallback;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EntryType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EntryType findValueByNumber(int number) {
return EntryType.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.Common.SmartContract.ABI.Entry.getDescriptor().getEnumTypes().get(0);
}
private static final EntryType[] VALUES = values();
public static EntryType 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 EntryType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.SmartContract.ABI.Entry.EntryType)
}
/**
* Protobuf enum {@code protocol.SmartContract.ABI.Entry.StateMutabilityType}
*/
public enum StateMutabilityType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UnknownMutabilityType = 0;
*/
UnknownMutabilityType(0),
/**
* Pure = 1;
*/
Pure(1),
/**
* View = 2;
*/
View(2),
/**
* Nonpayable = 3;
*/
Nonpayable(3),
/**
* Payable = 4;
*/
Payable(4),
UNRECOGNIZED(-1),
;
/**
* UnknownMutabilityType = 0;
*/
public static final int UnknownMutabilityType_VALUE = 0;
/**
* Pure = 1;
*/
public static final int Pure_VALUE = 1;
/**
* View = 2;
*/
public static final int View_VALUE = 2;
/**
* Nonpayable = 3;
*/
public static final int Nonpayable_VALUE = 3;
/**
* Payable = 4;
*/
public static final int Payable_VALUE = 4;
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 StateMutabilityType 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 StateMutabilityType forNumber(int value) {
switch (value) {
case 0: return UnknownMutabilityType;
case 1: return Pure;
case 2: return View;
case 3: return Nonpayable;
case 4: return Payable;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StateMutabilityType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StateMutabilityType findValueByNumber(int number) {
return StateMutabilityType.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.Common.SmartContract.ABI.Entry.getDescriptor().getEnumTypes().get(1);
}
private static final StateMutabilityType[] VALUES = values();
public static StateMutabilityType 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 StateMutabilityType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:protocol.SmartContract.ABI.Entry.StateMutabilityType)
}
public interface ParamOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.SmartContract.ABI.Entry.Param)
com.google.protobuf.MessageOrBuilder {
/**
* bool indexed = 1;
* @return The indexed.
*/
boolean getIndexed();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The type.
*/
java.lang.String getType();
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
* Protobuf type {@code protocol.SmartContract.ABI.Entry.Param}
*/
public static final class Param extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.SmartContract.ABI.Entry.Param)
ParamOrBuilder {
private static final long serialVersionUID = 0L;
// Use Param.newBuilder() to construct.
private Param(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Param() {
name_ = "";
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Param();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Param(
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: {
indexed_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
type_ = 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.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder.class);
}
public static final int INDEXED_FIELD_NUMBER = 1;
private boolean indexed_;
/**
* bool indexed = 1;
* @return The indexed.
*/
@java.lang.Override
public boolean getIndexed() {
return indexed_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object type_;
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = 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 (indexed_ != false) {
output.writeBool(1, indexed_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (indexed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, indexed_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
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.Common.SmartContract.ABI.Entry.Param)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param other = (org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param) obj;
if (getIndexed()
!= other.getIndexed()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getType()
.equals(other.getType())) 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) + INDEXED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIndexed());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param 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.Common.SmartContract.ABI.Entry.Param parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param 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.Common.SmartContract.ABI.Entry.Param parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param 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.Common.SmartContract.ABI.Entry.Param parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param 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.Common.SmartContract.ABI.Entry.Param parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param 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.Common.SmartContract.ABI.Entry.Param 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.SmartContract.ABI.Entry.Param}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SmartContract.ABI.Entry.Param)
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.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();
indexed_ = false;
name_ = "";
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param build() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param buildPartial() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param result = new org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param(this);
result.indexed_ = indexed_;
result.name_ = name_;
result.type_ = type_;
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.Common.SmartContract.ABI.Entry.Param) {
return mergeFrom((org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param other) {
if (other == org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance()) return this;
if (other.getIndexed() != false) {
setIndexed(other.getIndexed());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
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.Common.SmartContract.ABI.Entry.Param parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean indexed_ ;
/**
* bool indexed = 1;
* @return The indexed.
*/
@java.lang.Override
public boolean getIndexed() {
return indexed_;
}
/**
* bool indexed = 1;
* @param value The indexed to set.
* @return This builder for chaining.
*/
public Builder setIndexed(boolean value) {
indexed_ = value;
onChanged();
return this;
}
/**
* bool indexed = 1;
* @return This builder for chaining.
*/
public Builder clearIndexed() {
indexed_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = 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.SmartContract.ABI.Entry.Param)
}
// @@protoc_insertion_point(class_scope:protocol.SmartContract.ABI.Entry.Param)
private static final org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param();
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Param parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Param(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.Common.SmartContract.ABI.Entry.Param getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ANONYMOUS_FIELD_NUMBER = 1;
private boolean anonymous_;
/**
* bool anonymous = 1;
* @return The anonymous.
*/
@java.lang.Override
public boolean getAnonymous() {
return anonymous_;
}
public static final int CONSTANT_FIELD_NUMBER = 2;
private boolean constant_;
/**
* bool constant = 2;
* @return The constant.
*/
@java.lang.Override
public boolean getConstant() {
return constant_;
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUTS_FIELD_NUMBER = 4;
private java.util.List inputs_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
@java.lang.Override
public java.util.List getInputsList() {
return inputs_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsOrBuilderList() {
return inputs_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
@java.lang.Override
public int getInputsCount() {
return inputs_.size();
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getInputs(int index) {
return inputs_.get(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int OUTPUTS_FIELD_NUMBER = 5;
private java.util.List outputs_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
@java.lang.Override
public java.util.List getOutputsList() {
return outputs_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsOrBuilderList() {
return outputs_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
@java.lang.Override
public int getOutputsCount() {
return outputs_.size();
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getOutputs(int index) {
return outputs_.get(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getOutputsOrBuilder(
int index) {
return outputs_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
private int type_;
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The type.
*/
@java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType getType() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType result = org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.valueOf(type_);
return result == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.UNRECOGNIZED : result;
}
public static final int PAYABLE_FIELD_NUMBER = 7;
private boolean payable_;
/**
* bool payable = 7;
* @return The payable.
*/
@java.lang.Override
public boolean getPayable() {
return payable_;
}
public static final int STATEMUTABILITY_FIELD_NUMBER = 8;
private int stateMutability_;
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The enum numeric value on the wire for stateMutability.
*/
@java.lang.Override public int getStateMutabilityValue() {
return stateMutability_;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The stateMutability.
*/
@java.lang.Override public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType getStateMutability() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType result = org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.valueOf(stateMutability_);
return result == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.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 (anonymous_ != false) {
output.writeBool(1, anonymous_);
}
if (constant_ != false) {
output.writeBool(2, constant_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(4, inputs_.get(i));
}
for (int i = 0; i < outputs_.size(); i++) {
output.writeMessage(5, outputs_.get(i));
}
if (type_ != org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.UnknownEntryType.getNumber()) {
output.writeEnum(6, type_);
}
if (payable_ != false) {
output.writeBool(7, payable_);
}
if (stateMutability_ != org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.UnknownMutabilityType.getNumber()) {
output.writeEnum(8, stateMutability_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (anonymous_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, anonymous_);
}
if (constant_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, constant_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
for (int i = 0; i < inputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, inputs_.get(i));
}
for (int i = 0; i < outputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, outputs_.get(i));
}
if (type_ != org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.UnknownEntryType.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, type_);
}
if (payable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, payable_);
}
if (stateMutability_ != org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.UnknownMutabilityType.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, stateMutability_);
}
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.Common.SmartContract.ABI.Entry)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry other = (org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry) obj;
if (getAnonymous()
!= other.getAnonymous()) return false;
if (getConstant()
!= other.getConstant()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (!getOutputsList()
.equals(other.getOutputsList())) return false;
if (type_ != other.type_) return false;
if (getPayable()
!= other.getPayable()) return false;
if (stateMutability_ != other.stateMutability_) 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) + ANONYMOUS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAnonymous());
hash = (37 * hash) + CONSTANT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConstant());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
if (getOutputsCount() > 0) {
hash = (37 * hash) + OUTPUTS_FIELD_NUMBER;
hash = (53 * hash) + getOutputsList().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + PAYABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPayable());
hash = (37 * hash) + STATEMUTABILITY_FIELD_NUMBER;
hash = (53 * hash) + stateMutability_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry 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.Common.SmartContract.ABI.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry 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.Common.SmartContract.ABI.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry 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.Common.SmartContract.ABI.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry 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.Common.SmartContract.ABI.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry 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.Common.SmartContract.ABI.Entry 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.SmartContract.ABI.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SmartContract.ABI.Entry)
org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInputsFieldBuilder();
getOutputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
anonymous_ = false;
constant_ = false;
name_ = "";
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inputsBuilder_.clear();
}
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
outputsBuilder_.clear();
}
type_ = 0;
payable_ = false;
stateMutability_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry build() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry buildPartial() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry result = new org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry(this);
int from_bitField0_ = bitField0_;
result.anonymous_ = anonymous_;
result.constant_ = constant_;
result.name_ = name_;
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (outputsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.outputs_ = outputs_;
} else {
result.outputs_ = outputsBuilder_.build();
}
result.type_ = type_;
result.payable_ = payable_;
result.stateMutability_ = stateMutability_;
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.Common.SmartContract.ABI.Entry) {
return mergeFrom((org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry other) {
if (other == org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.getDefaultInstance()) return this;
if (other.getAnonymous() != false) {
setAnonymous(other.getAnonymous());
}
if (other.getConstant() != false) {
setConstant(other.getConstant());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
inputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputsFieldBuilder() : null;
} else {
inputsBuilder_.addAllMessages(other.inputs_);
}
}
}
if (outputsBuilder_ == null) {
if (!other.outputs_.isEmpty()) {
if (outputs_.isEmpty()) {
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOutputsIsMutable();
outputs_.addAll(other.outputs_);
}
onChanged();
}
} else {
if (!other.outputs_.isEmpty()) {
if (outputsBuilder_.isEmpty()) {
outputsBuilder_.dispose();
outputsBuilder_ = null;
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000002);
outputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOutputsFieldBuilder() : null;
} else {
outputsBuilder_.addAllMessages(other.outputs_);
}
}
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getPayable() != false) {
setPayable(other.getPayable());
}
if (other.stateMutability_ != 0) {
setStateMutabilityValue(other.getStateMutabilityValue());
}
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.Common.SmartContract.ABI.Entry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean anonymous_ ;
/**
* bool anonymous = 1;
* @return The anonymous.
*/
@java.lang.Override
public boolean getAnonymous() {
return anonymous_;
}
/**
* bool anonymous = 1;
* @param value The anonymous to set.
* @return This builder for chaining.
*/
public Builder setAnonymous(boolean value) {
anonymous_ = value;
onChanged();
return this;
}
/**
* bool anonymous = 1;
* @return This builder for chaining.
*/
public Builder clearAnonymous() {
anonymous_ = false;
onChanged();
return this;
}
private boolean constant_ ;
/**
* bool constant = 2;
* @return The constant.
*/
@java.lang.Override
public boolean getConstant() {
return constant_;
}
/**
* bool constant = 2;
* @param value The constant to set.
* @return This builder for chaining.
*/
public Builder setConstant(boolean value) {
constant_ = value;
onChanged();
return this;
}
/**
* bool constant = 2;
* @return This builder for chaining.
*/
public Builder clearConstant() {
constant_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder> inputsBuilder_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return list
*/
public java.util.List getInputsList() {
if (inputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputs_);
} else {
return inputsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return int
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return Param
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getInputs(int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index);
} else {
return inputsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @param value value
* @return Builder
*/
public Builder setInputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.set(index, value);
onChanged();
} else {
inputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setInputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.set(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param value value
* @return Builder
*/
public Builder addInputs(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(value);
onChanged();
} else {
inputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param value value
* @param index index
* @return Builder
*/
public Builder addInputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(index, value);
onChanged();
} else {
inputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addInputs(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param builderForValue builderForValue
* @param index index
* @return Builder
*/
public Builder addInputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param values values
* @return Builder
*/
public Builder addAllInputs(
java.lang.Iterable extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param> values) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputs_);
onChanged();
} else {
inputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return Builder
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return Builder
*/
public Builder removeInputs(int index) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.remove(index);
onChanged();
} else {
inputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return ParamOrBuilder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getInputsOrBuilder(
int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index); } else {
return inputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsOrBuilderList() {
if (inputsBuilder_ != null) {
return inputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputs_);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
* @return list
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>(
inputs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private java.util.List outputs_ =
java.util.Collections.emptyList();
private void ensureOutputsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
outputs_ = new java.util.ArrayList(outputs_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder> outputsBuilder_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return list
*/
public java.util.List getOutputsList() {
if (outputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(outputs_);
} else {
return outputsBuilder_.getMessageList();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return int
*/
public int getOutputsCount() {
if (outputsBuilder_ == null) {
return outputs_.size();
} else {
return outputsBuilder_.getCount();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return Param
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param getOutputs(int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index);
} else {
return outputsBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @param value value
* @return Builder
*/
public Builder setOutputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.set(index, value);
onChanged();
} else {
outputsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setOutputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.set(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param value value
* @return Builder
*/
public Builder addOutputs(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(value);
onChanged();
} else {
outputsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param value value
* @param index index
* @return Builder
*/
public Builder addOutputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param value) {
if (outputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOutputsIsMutable();
outputs_.add(index, value);
onChanged();
} else {
outputsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addOutputs(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param builderForValue builderForValue
* @param index index
* @return Builder
*/
public Builder addOutputs(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder builderForValue) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(index, builderForValue.build());
onChanged();
} else {
outputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param values values
* @return Builder
*/
public Builder addAllOutputs(
java.lang.Iterable extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param> values) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputs_);
onChanged();
} else {
outputsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return Builder
*/
public Builder clearOutputs() {
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
outputsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return Builder
*/
public Builder removeOutputs(int index) {
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.remove(index);
onChanged();
} else {
outputsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder getOutputsBuilder(
int index) {
return getOutputsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return ParamOrBuilder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getOutputsOrBuilder(
int index) {
if (outputsBuilder_ == null) {
return outputs_.get(index); } else {
return outputsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsOrBuilderList() {
if (outputsBuilder_ != null) {
return outputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(outputs_);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder addOutputsBuilder() {
return getOutputsFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder addOutputsBuilder(
int index) {
return getOutputsFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
* @return list
*/
public java.util.List
getOutputsBuilderList() {
return getOutputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsFieldBuilder() {
if (outputsBuilder_ == null) {
outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>(
outputs_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
outputs_ = null;
}
return outputsBuilder_;
}
private int type_ = 0;
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The type.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType getType() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType result = org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.valueOf(type_);
return result == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType.UNRECOGNIZED : result;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.EntryType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private boolean payable_ ;
/**
* bool payable = 7;
* @return The payable.
*/
@java.lang.Override
public boolean getPayable() {
return payable_;
}
/**
* bool payable = 7;
* @param value The payable to set.
* @return This builder for chaining.
*/
public Builder setPayable(boolean value) {
payable_ = value;
onChanged();
return this;
}
/**
* bool payable = 7;
* @return This builder for chaining.
*/
public Builder clearPayable() {
payable_ = false;
onChanged();
return this;
}
private int stateMutability_ = 0;
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The enum numeric value on the wire for stateMutability.
*/
@java.lang.Override public int getStateMutabilityValue() {
return stateMutability_;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @param value The enum numeric value on the wire for stateMutability to set.
* @return This builder for chaining.
*/
public Builder setStateMutabilityValue(int value) {
stateMutability_ = value;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The stateMutability.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType getStateMutability() {
@SuppressWarnings("deprecation")
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType result = org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.valueOf(stateMutability_);
return result == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.UNRECOGNIZED : result;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @param value The stateMutability to set.
* @return This builder for chaining.
*/
public Builder setStateMutability(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.StateMutabilityType value) {
if (value == null) {
throw new NullPointerException();
}
stateMutability_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return This builder for chaining.
*/
public Builder clearStateMutability() {
stateMutability_ = 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.SmartContract.ABI.Entry)
}
// @@protoc_insertion_point(class_scope:protocol.SmartContract.ABI.Entry)
private static final org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry();
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entry(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.Common.SmartContract.ABI.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENTRYS_FIELD_NUMBER = 1;
private java.util.List entrys_;
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public java.util.List getEntrysList() {
return entrys_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysOrBuilderList() {
return entrys_;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public int getEntrysCount() {
return entrys_.size();
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry getEntrys(int index) {
return entrys_.get(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder getEntrysOrBuilder(
int index) {
return entrys_.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 < entrys_.size(); i++) {
output.writeMessage(1, entrys_.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 < entrys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entrys_.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.Common.SmartContract.ABI)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.SmartContract.ABI other = (org.vision.visionjsdk.proto.Common.SmartContract.ABI) obj;
if (!getEntrysList()
.equals(other.getEntrysList())) 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 (getEntrysCount() > 0) {
hash = (37 * hash) + ENTRYS_FIELD_NUMBER;
hash = (53 * hash) + getEntrysList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI 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.Common.SmartContract.ABI parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI 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.Common.SmartContract.ABI parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI 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.Common.SmartContract.ABI parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI 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.Common.SmartContract.ABI parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI 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.Common.SmartContract.ABI 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.SmartContract.ABI}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SmartContract.ABI)
org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.class, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.SmartContract.ABI.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntrysFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (entrysBuilder_ == null) {
entrys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entrysBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.SmartContract.ABI.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI build() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI buildPartial() {
org.vision.visionjsdk.proto.Common.SmartContract.ABI result = new org.vision.visionjsdk.proto.Common.SmartContract.ABI(this);
int from_bitField0_ = bitField0_;
if (entrysBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entrys_ = java.util.Collections.unmodifiableList(entrys_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entrys_ = entrys_;
} else {
result.entrys_ = entrysBuilder_.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.Common.SmartContract.ABI) {
return mergeFrom((org.vision.visionjsdk.proto.Common.SmartContract.ABI)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.SmartContract.ABI other) {
if (other == org.vision.visionjsdk.proto.Common.SmartContract.ABI.getDefaultInstance()) return this;
if (entrysBuilder_ == null) {
if (!other.entrys_.isEmpty()) {
if (entrys_.isEmpty()) {
entrys_ = other.entrys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntrysIsMutable();
entrys_.addAll(other.entrys_);
}
onChanged();
}
} else {
if (!other.entrys_.isEmpty()) {
if (entrysBuilder_.isEmpty()) {
entrysBuilder_.dispose();
entrysBuilder_ = null;
entrys_ = other.entrys_;
bitField0_ = (bitField0_ & ~0x00000001);
entrysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntrysFieldBuilder() : null;
} else {
entrysBuilder_.addAllMessages(other.entrys_);
}
}
}
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.Common.SmartContract.ABI parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.SmartContract.ABI) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entrys_ =
java.util.Collections.emptyList();
private void ensureEntrysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entrys_ = new java.util.ArrayList(entrys_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder> entrysBuilder_;
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
public java.util.List getEntrysList() {
if (entrysBuilder_ == null) {
return java.util.Collections.unmodifiableList(entrys_);
} else {
return entrysBuilder_.getMessageList();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
public int getEntrysCount() {
if (entrysBuilder_ == null) {
return entrys_.size();
} else {
return entrysBuilder_.getCount();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry getEntrys(int index) {
if (entrysBuilder_ == null) {
return entrys_.get(index);
} else {
return entrysBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder setEntrys(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry value) {
if (entrysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntrysIsMutable();
entrys_.set(index, value);
onChanged();
} else {
entrysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setEntrys(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder builderForValue) {
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
entrys_.set(index, builderForValue.build());
onChanged();
} else {
entrysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param value value
* @return return
*/
public Builder addEntrys(org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry value) {
if (entrysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntrysIsMutable();
entrys_.add(value);
onChanged();
} else {
entrysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @param value value
* @return Builder
*/
public Builder addEntrys(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry value) {
if (entrysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntrysIsMutable();
entrys_.add(index, value);
onChanged();
} else {
entrysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addEntrys(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder builderForValue) {
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
entrys_.add(builderForValue.build());
onChanged();
} else {
entrysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @param builderForValue builderForValue
* @return Builder
*/
public Builder addEntrys(
int index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder builderForValue) {
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
entrys_.add(index, builderForValue.build());
onChanged();
} else {
entrysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param values values
* @return Builder
*/
public Builder addAllEntrys(
java.lang.Iterable extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry> values) {
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entrys_);
onChanged();
} else {
entrysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return Builder
*/
public Builder clearEntrys() {
if (entrysBuilder_ == null) {
entrys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entrysBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return * @return Builder
*/
public Builder removeEntrys(int index) {
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
entrys_.remove(index);
onChanged();
} else {
entrysBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return * @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder getEntrysBuilder(
int index) {
return getEntrysFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return EntryOrBuilder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder getEntrysOrBuilder(
int index) {
if (entrysBuilder_ == null) {
return entrys_.get(index); } else {
return entrysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return list
*/
public java.util.List extends org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysOrBuilderList() {
if (entrysBuilder_ != null) {
return entrysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entrys_);
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder addEntrysBuilder() {
return getEntrysFieldBuilder().addBuilder(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @param index index
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder addEntrysBuilder(
int index) {
return getEntrysFieldBuilder().addBuilder(
index, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
* @return list
*/
public java.util.List
getEntrysBuilderList() {
return getEntrysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysFieldBuilder() {
if (entrysBuilder_ == null) {
entrysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Entry.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABI.EntryOrBuilder>(
entrys_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
entrys_ = null;
}
return entrysBuilder_;
}
@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.SmartContract.ABI)
}
// @@protoc_insertion_point(class_scope:protocol.SmartContract.ABI)
private static final org.vision.visionjsdk.proto.Common.SmartContract.ABI DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.SmartContract.ABI();
}
public static org.vision.visionjsdk.proto.Common.SmartContract.ABI getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ABI parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ABI(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.Common.SmartContract.ABI getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ORIGIN_ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString originAddress_;
/**
* bytes origin_address = 1;
* @return The originAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginAddress() {
return originAddress_;
}
public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contractAddress_;
/**
* bytes contract_address = 2;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
public static final int ABI_FIELD_NUMBER = 3;
private org.vision.visionjsdk.proto.Common.SmartContract.ABI abi_;
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Whether the abi field is set.
*/
@java.lang.Override
public boolean hasAbi() {
return abi_ != null;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return The abi.
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABI getAbi() {
return abi_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder getAbiOrBuilder() {
return getAbi();
}
public static final int BYTECODE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString bytecode_;
/**
* bytes bytecode = 4;
* @return The bytecode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytecode() {
return bytecode_;
}
public static final int CALL_VALUE_FIELD_NUMBER = 5;
private long callValue_;
/**
* int64 call_value = 5;
* @return The callValue.
*/
@java.lang.Override
public long getCallValue() {
return callValue_;
}
public static final int CONSUME_USER_RESOURCE_PERCENT_FIELD_NUMBER = 6;
private long consumeUserResourcePercent_;
/**
* int64 consume_user_resource_percent = 6;
* @return The consumeUserResourcePercent.
*/
@java.lang.Override
public long getConsumeUserResourcePercent() {
return consumeUserResourcePercent_;
}
public static final int NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object name_;
/**
* string name = 7;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 7;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGIN_ENTROPY_LIMIT_FIELD_NUMBER = 8;
private long originEntropyLimit_;
/**
* int64 origin_entropy_limit = 8;
* @return The originEntropyLimit.
*/
@java.lang.Override
public long getOriginEntropyLimit() {
return originEntropyLimit_;
}
public static final int CODE_HASH_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString codeHash_;
/**
* bytes code_hash = 9;
* @return The codeHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCodeHash() {
return codeHash_;
}
public static final int VRC_HASH_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString vsHash_;
/**
* bytes vs_hash = 10;
* @return The vsHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getVsHash() {
return vsHash_;
}
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 (!originAddress_.isEmpty()) {
output.writeBytes(1, originAddress_);
}
if (!contractAddress_.isEmpty()) {
output.writeBytes(2, contractAddress_);
}
if (abi_ != null) {
output.writeMessage(3, getAbi());
}
if (!bytecode_.isEmpty()) {
output.writeBytes(4, bytecode_);
}
if (callValue_ != 0L) {
output.writeInt64(5, callValue_);
}
if (consumeUserResourcePercent_ != 0L) {
output.writeInt64(6, consumeUserResourcePercent_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
}
if (originEntropyLimit_ != 0L) {
output.writeInt64(8, originEntropyLimit_);
}
if (!codeHash_.isEmpty()) {
output.writeBytes(9, codeHash_);
}
if (!vsHash_.isEmpty()) {
output.writeBytes(10, vsHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!originAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, originAddress_);
}
if (!contractAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, contractAddress_);
}
if (abi_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAbi());
}
if (!bytecode_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, bytecode_);
}
if (callValue_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, callValue_);
}
if (consumeUserResourcePercent_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, consumeUserResourcePercent_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
}
if (originEntropyLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, originEntropyLimit_);
}
if (!codeHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, codeHash_);
}
if (!vsHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, vsHash_);
}
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.Common.SmartContract)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.SmartContract other = (org.vision.visionjsdk.proto.Common.SmartContract) obj;
if (!getOriginAddress()
.equals(other.getOriginAddress())) return false;
if (!getContractAddress()
.equals(other.getContractAddress())) return false;
if (hasAbi() != other.hasAbi()) return false;
if (hasAbi()) {
if (!getAbi()
.equals(other.getAbi())) return false;
}
if (!getBytecode()
.equals(other.getBytecode())) return false;
if (getCallValue()
!= other.getCallValue()) return false;
if (getConsumeUserResourcePercent()
!= other.getConsumeUserResourcePercent()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getOriginEntropyLimit()
!= other.getOriginEntropyLimit()) return false;
if (!getCodeHash()
.equals(other.getCodeHash())) return false;
if (!getVsHash()
.equals(other.getVsHash())) 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) + ORIGIN_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getOriginAddress().hashCode();
hash = (37 * hash) + CONTRACT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getContractAddress().hashCode();
if (hasAbi()) {
hash = (37 * hash) + ABI_FIELD_NUMBER;
hash = (53 * hash) + getAbi().hashCode();
}
hash = (37 * hash) + BYTECODE_FIELD_NUMBER;
hash = (53 * hash) + getBytecode().hashCode();
hash = (37 * hash) + CALL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCallValue());
hash = (37 * hash) + CONSUME_USER_RESOURCE_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getConsumeUserResourcePercent());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ORIGIN_ENTROPY_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOriginEntropyLimit());
hash = (37 * hash) + CODE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getCodeHash().hashCode();
hash = (37 * hash) + VRC_HASH_FIELD_NUMBER;
hash = (53 * hash) + getVsHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.SmartContract parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract 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.Common.SmartContract parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract 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.Common.SmartContract parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.SmartContract parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.SmartContract parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract 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.Common.SmartContract parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract 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.Common.SmartContract parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.SmartContract 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.Common.SmartContract 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.SmartContract}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.SmartContract)
org.vision.visionjsdk.proto.Common.SmartContractOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.SmartContract.class, org.vision.visionjsdk.proto.Common.SmartContract.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.SmartContract.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();
originAddress_ = com.google.protobuf.ByteString.EMPTY;
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
if (abiBuilder_ == null) {
abi_ = null;
} else {
abi_ = null;
abiBuilder_ = null;
}
bytecode_ = com.google.protobuf.ByteString.EMPTY;
callValue_ = 0L;
consumeUserResourcePercent_ = 0L;
name_ = "";
originEntropyLimit_ = 0L;
codeHash_ = com.google.protobuf.ByteString.EMPTY;
vsHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract build() {
org.vision.visionjsdk.proto.Common.SmartContract result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.SmartContract buildPartial() {
org.vision.visionjsdk.proto.Common.SmartContract result = new org.vision.visionjsdk.proto.Common.SmartContract(this);
result.originAddress_ = originAddress_;
result.contractAddress_ = contractAddress_;
if (abiBuilder_ == null) {
result.abi_ = abi_;
} else {
result.abi_ = abiBuilder_.build();
}
result.bytecode_ = bytecode_;
result.callValue_ = callValue_;
result.consumeUserResourcePercent_ = consumeUserResourcePercent_;
result.name_ = name_;
result.originEntropyLimit_ = originEntropyLimit_;
result.codeHash_ = codeHash_;
result.vsHash_ = vsHash_;
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.Common.SmartContract) {
return mergeFrom((org.vision.visionjsdk.proto.Common.SmartContract)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.SmartContract other) {
if (other == org.vision.visionjsdk.proto.Common.SmartContract.getDefaultInstance()) return this;
if (other.getOriginAddress() != com.google.protobuf.ByteString.EMPTY) {
setOriginAddress(other.getOriginAddress());
}
if (other.getContractAddress() != com.google.protobuf.ByteString.EMPTY) {
setContractAddress(other.getContractAddress());
}
if (other.hasAbi()) {
mergeAbi(other.getAbi());
}
if (other.getBytecode() != com.google.protobuf.ByteString.EMPTY) {
setBytecode(other.getBytecode());
}
if (other.getCallValue() != 0L) {
setCallValue(other.getCallValue());
}
if (other.getConsumeUserResourcePercent() != 0L) {
setConsumeUserResourcePercent(other.getConsumeUserResourcePercent());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getOriginEntropyLimit() != 0L) {
setOriginEntropyLimit(other.getOriginEntropyLimit());
}
if (other.getCodeHash() != com.google.protobuf.ByteString.EMPTY) {
setCodeHash(other.getCodeHash());
}
if (other.getVsHash() != com.google.protobuf.ByteString.EMPTY) {
setVsHash(other.getVsHash());
}
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.Common.SmartContract parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.SmartContract) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString originAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes origin_address = 1;
* @return The originAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginAddress() {
return originAddress_;
}
/**
* bytes origin_address = 1;
* @param value The originAddress to set.
* @return This builder for chaining.
*/
public Builder setOriginAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
originAddress_ = value;
onChanged();
return this;
}
/**
* bytes origin_address = 1;
* @return This builder for chaining.
*/
public Builder clearOriginAddress() {
originAddress_ = getDefaultInstance().getOriginAddress();
onChanged();
return this;
}
private com.google.protobuf.ByteString contractAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes contract_address = 2;
* @return The contractAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getContractAddress() {
return contractAddress_;
}
/**
* bytes contract_address = 2;
* @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 = 2;
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
private org.vision.visionjsdk.proto.Common.SmartContract.ABI abi_;
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder> abiBuilder_;
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Whether the abi field is set.
*/
public boolean hasAbi() {
return abiBuilder_ != null || abi_ != null;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return The abi.
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI getAbi() {
if (abiBuilder_ == null) {
return abi_ == null ? org.vision.visionjsdk.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
} else {
return abiBuilder_.getMessage();
}
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @param value value
* @return Builder
*/
public Builder setAbi(org.vision.visionjsdk.proto.Common.SmartContract.ABI value) {
if (abiBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
abi_ = value;
onChanged();
} else {
abiBuilder_.setMessage(value);
}
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @param builderForValue builderForValue
* @return Builder
*/
public Builder setAbi(
org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder builderForValue) {
if (abiBuilder_ == null) {
abi_ = builderForValue.build();
onChanged();
} else {
abiBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @param value value
* @return Builder
*/
public Builder mergeAbi(org.vision.visionjsdk.proto.Common.SmartContract.ABI value) {
if (abiBuilder_ == null) {
if (abi_ != null) {
abi_ =
org.vision.visionjsdk.proto.Common.SmartContract.ABI.newBuilder(abi_).mergeFrom(value).buildPartial();
} else {
abi_ = value;
}
onChanged();
} else {
abiBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Builder
*/
public Builder clearAbi() {
if (abiBuilder_ == null) {
abi_ = null;
onChanged();
} else {
abi_ = null;
abiBuilder_ = null;
}
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Builder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder getAbiBuilder() {
onChanged();
return getAbiFieldBuilder().getBuilder();
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return ABIOrBuilder
*/
public org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder getAbiOrBuilder() {
if (abiBuilder_ != null) {
return abiBuilder_.getMessageOrBuilder();
} else {
return abi_ == null ?
org.vision.visionjsdk.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
}
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return SingleFieldBuilderV3
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder>
getAbiFieldBuilder() {
if (abiBuilder_ == null) {
abiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.vision.visionjsdk.proto.Common.SmartContract.ABI, org.vision.visionjsdk.proto.Common.SmartContract.ABI.Builder, org.vision.visionjsdk.proto.Common.SmartContract.ABIOrBuilder>(
getAbi(),
getParentForChildren(),
isClean());
abi_ = null;
}
return abiBuilder_;
}
private com.google.protobuf.ByteString bytecode_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes bytecode = 4;
* @return The bytecode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytecode() {
return bytecode_;
}
/**
* bytes bytecode = 4;
* @param value The bytecode to set.
* @return This builder for chaining.
*/
public Builder setBytecode(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bytecode_ = value;
onChanged();
return this;
}
/**
* bytes bytecode = 4;
* @return This builder for chaining.
*/
public Builder clearBytecode() {
bytecode_ = getDefaultInstance().getBytecode();
onChanged();
return this;
}
private long callValue_ ;
/**
* int64 call_value = 5;
* @return The callValue.
*/
@java.lang.Override
public long getCallValue() {
return callValue_;
}
/**
* int64 call_value = 5;
* @param value The callValue to set.
* @return This builder for chaining.
*/
public Builder setCallValue(long value) {
callValue_ = value;
onChanged();
return this;
}
/**
* int64 call_value = 5;
* @return This builder for chaining.
*/
public Builder clearCallValue() {
callValue_ = 0L;
onChanged();
return this;
}
private long consumeUserResourcePercent_ ;
/**
* int64 consume_user_resource_percent = 6;
* @return The consumeUserResourcePercent.
*/
@java.lang.Override
public long getConsumeUserResourcePercent() {
return consumeUserResourcePercent_;
}
/**
* int64 consume_user_resource_percent = 6;
* @param value The consumeUserResourcePercent to set.
* @return This builder for chaining.
*/
public Builder setConsumeUserResourcePercent(long value) {
consumeUserResourcePercent_ = value;
onChanged();
return this;
}
/**
* int64 consume_user_resource_percent = 6;
* @return This builder for chaining.
*/
public Builder clearConsumeUserResourcePercent() {
consumeUserResourcePercent_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 7;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 7;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 7;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 7;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 7;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private long originEntropyLimit_ ;
/**
* int64 origin_entropy_limit = 8;
* @return The originEntropyLimit.
*/
@java.lang.Override
public long getOriginEntropyLimit() {
return originEntropyLimit_;
}
/**
* int64 origin_entropy_limit = 8;
* @param value The originEntropyLimit to set.
* @return This builder for chaining.
*/
public Builder setOriginEntropyLimit(long value) {
originEntropyLimit_ = value;
onChanged();
return this;
}
/**
* int64 origin_entropy_limit = 8;
* @return This builder for chaining.
*/
public Builder clearOriginEntropyLimit() {
originEntropyLimit_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString codeHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes code_hash = 9;
* @return The codeHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCodeHash() {
return codeHash_;
}
/**
* bytes code_hash = 9;
* @param value The codeHash to set.
* @return This builder for chaining.
*/
public Builder setCodeHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
codeHash_ = value;
onChanged();
return this;
}
/**
* bytes code_hash = 9;
* @return This builder for chaining.
*/
public Builder clearCodeHash() {
codeHash_ = getDefaultInstance().getCodeHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString vsHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes vs_hash = 10;
* @return The vsHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getVsHash() {
return vsHash_;
}
/**
* bytes vs_hash = 10;
* @param value The vsHash to set.
* @return This builder for chaining.
*/
public Builder setVsHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
vsHash_ = value;
onChanged();
return this;
}
/**
* bytes vs_hash = 10;
* @return This builder for chaining.
*/
public Builder clearVsHash() {
vsHash_ = getDefaultInstance().getVsHash();
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.SmartContract)
}
// @@protoc_insertion_point(class_scope:protocol.SmartContract)
private static final org.vision.visionjsdk.proto.Common.SmartContract DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.SmartContract();
}
public static org.vision.visionjsdk.proto.Common.SmartContract getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SmartContract parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SmartContract(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.Common.SmartContract getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Vote)
com.google.protobuf.MessageOrBuilder {
/**
* bytes vote_address = 1;
* @return The voteAddress.
*/
com.google.protobuf.ByteString getVoteAddress();
/**
* int64 vote_count = 2;
* @return The voteCount.
*/
long getVoteCount();
}
/**
* Protobuf type {@code protocol.Vote}
*/
public static final class Vote extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Vote)
VoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Vote.newBuilder() to construct.
private Vote(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Vote() {
voteAddress_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Vote();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Vote(
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: {
voteAddress_ = input.readBytes();
break;
}
case 16: {
voteCount_ = input.readInt64();
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.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Vote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Vote.class, org.vision.visionjsdk.proto.Common.Vote.Builder.class);
}
public static final int VOTE_ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString voteAddress_;
/**
* bytes vote_address = 1;
* @return The voteAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getVoteAddress() {
return voteAddress_;
}
public static final int VOTE_COUNT_FIELD_NUMBER = 2;
private long voteCount_;
/**
* int64 vote_count = 2;
* @return The voteCount.
*/
@java.lang.Override
public long getVoteCount() {
return voteCount_;
}
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 (!voteAddress_.isEmpty()) {
output.writeBytes(1, voteAddress_);
}
if (voteCount_ != 0L) {
output.writeInt64(2, voteCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!voteAddress_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, voteAddress_);
}
if (voteCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, voteCount_);
}
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.Common.Vote)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.Vote other = (org.vision.visionjsdk.proto.Common.Vote) obj;
if (!getVoteAddress()
.equals(other.getVoteAddress())) return false;
if (getVoteCount()
!= other.getVoteCount()) 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) + VOTE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getVoteAddress().hashCode();
hash = (37 * hash) + VOTE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getVoteCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.Vote parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Vote 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.Common.Vote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Vote 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.Common.Vote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Vote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.Vote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Vote 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.Common.Vote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Vote 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.Common.Vote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Vote 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.Common.Vote 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.Vote}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.Vote)
org.vision.visionjsdk.proto.Common.VoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Vote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Vote.class, org.vision.visionjsdk.proto.Common.Vote.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.Vote.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();
voteAddress_ = com.google.protobuf.ByteString.EMPTY;
voteCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Vote getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.Vote.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Vote build() {
org.vision.visionjsdk.proto.Common.Vote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Vote buildPartial() {
org.vision.visionjsdk.proto.Common.Vote result = new org.vision.visionjsdk.proto.Common.Vote(this);
result.voteAddress_ = voteAddress_;
result.voteCount_ = voteCount_;
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.Common.Vote) {
return mergeFrom((org.vision.visionjsdk.proto.Common.Vote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.Vote other) {
if (other == org.vision.visionjsdk.proto.Common.Vote.getDefaultInstance()) return this;
if (other.getVoteAddress() != com.google.protobuf.ByteString.EMPTY) {
setVoteAddress(other.getVoteAddress());
}
if (other.getVoteCount() != 0L) {
setVoteCount(other.getVoteCount());
}
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.Common.Vote parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.Vote) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString voteAddress_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes vote_address = 1;
* @return The voteAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getVoteAddress() {
return voteAddress_;
}
/**
* bytes vote_address = 1;
* @param value The voteAddress to set.
* @return This builder for chaining.
*/
public Builder setVoteAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
voteAddress_ = value;
onChanged();
return this;
}
/**
* bytes vote_address = 1;
* @return This builder for chaining.
*/
public Builder clearVoteAddress() {
voteAddress_ = getDefaultInstance().getVoteAddress();
onChanged();
return this;
}
private long voteCount_ ;
/**
* int64 vote_count = 2;
* @return The voteCount.
*/
@java.lang.Override
public long getVoteCount() {
return voteCount_;
}
/**
* int64 vote_count = 2;
* @param value The voteCount to set.
* @return This builder for chaining.
*/
public Builder setVoteCount(long value) {
voteCount_ = value;
onChanged();
return this;
}
/**
* int64 vote_count = 2;
* @return This builder for chaining.
*/
public Builder clearVoteCount() {
voteCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protocol.Vote)
}
// @@protoc_insertion_point(class_scope:protocol.Vote)
private static final org.vision.visionjsdk.proto.Common.Vote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.Vote();
}
public static org.vision.visionjsdk.proto.Common.Vote getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Vote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Vote(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.Common.Vote getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protocol.Note)
com.google.protobuf.MessageOrBuilder {
/**
* int64 value = 1;
* @return The value.
*/
long getValue();
/**
* string payment_address = 2;
* @return The paymentAddress.
*/
java.lang.String getPaymentAddress();
/**
* string payment_address = 2;
* @return The bytes for paymentAddress.
*/
com.google.protobuf.ByteString
getPaymentAddressBytes();
/**
*
* random 32
*
*
* bytes rcm = 3;
* @return The rcm.
*/
com.google.protobuf.ByteString getRcm();
/**
* bytes memo = 4;
* @return The memo.
*/
com.google.protobuf.ByteString getMemo();
}
/**
* Protobuf type {@code protocol.Note}
*/
public static final class Note extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protocol.Note)
NoteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Note.newBuilder() to construct.
private Note(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Note() {
paymentAddress_ = "";
rcm_ = com.google.protobuf.ByteString.EMPTY;
memo_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Note();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Note(
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: {
value_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
paymentAddress_ = s;
break;
}
case 26: {
rcm_ = input.readBytes();
break;
}
case 34: {
memo_ = 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.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Note_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Note.class, org.vision.visionjsdk.proto.Common.Note.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private long value_;
/**
* int64 value = 1;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object paymentAddress_;
/**
* string payment_address = 2;
* @return The paymentAddress.
*/
@java.lang.Override
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
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();
paymentAddress_ = s;
return s;
}
}
/**
* string payment_address = 2;
* @return The bytes for paymentAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RCM_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString rcm_;
/**
*
* random 32
*
*
* bytes rcm = 3;
* @return The rcm.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRcm() {
return rcm_;
}
public static final int MEMO_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString memo_;
/**
* bytes memo = 4;
* @return The memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMemo() {
return memo_;
}
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 (value_ != 0L) {
output.writeInt64(1, value_);
}
if (!getPaymentAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paymentAddress_);
}
if (!rcm_.isEmpty()) {
output.writeBytes(3, rcm_);
}
if (!memo_.isEmpty()) {
output.writeBytes(4, memo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, value_);
}
if (!getPaymentAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, paymentAddress_);
}
if (!rcm_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, rcm_);
}
if (!memo_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, memo_);
}
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.Common.Note)) {
return super.equals(obj);
}
org.vision.visionjsdk.proto.Common.Note other = (org.vision.visionjsdk.proto.Common.Note) obj;
if (getValue()
!= other.getValue()) return false;
if (!getPaymentAddress()
.equals(other.getPaymentAddress())) return false;
if (!getRcm()
.equals(other.getRcm())) return false;
if (!getMemo()
.equals(other.getMemo())) 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) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getValue());
hash = (37 * hash) + PAYMENT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getPaymentAddress().hashCode();
hash = (37 * hash) + RCM_FIELD_NUMBER;
hash = (53 * hash) + getRcm().hashCode();
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.vision.visionjsdk.proto.Common.Note parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Note 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.Common.Note parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Note 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.Common.Note parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.vision.visionjsdk.proto.Common.Note parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.vision.visionjsdk.proto.Common.Note parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Note 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.Common.Note parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Note 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.Common.Note parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.vision.visionjsdk.proto.Common.Note 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.Common.Note 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.Note}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protocol.Note)
org.vision.visionjsdk.proto.Common.NoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Note_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.vision.visionjsdk.proto.Common.Note.class, org.vision.visionjsdk.proto.Common.Note.Builder.class);
}
// Construct using org.vision.visionjsdk.proto.Common.Note.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();
value_ = 0L;
paymentAddress_ = "";
rcm_ = com.google.protobuf.ByteString.EMPTY;
memo_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.vision.visionjsdk.proto.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note getDefaultInstanceForType() {
return org.vision.visionjsdk.proto.Common.Note.getDefaultInstance();
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note build() {
org.vision.visionjsdk.proto.Common.Note result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.vision.visionjsdk.proto.Common.Note buildPartial() {
org.vision.visionjsdk.proto.Common.Note result = new org.vision.visionjsdk.proto.Common.Note(this);
result.value_ = value_;
result.paymentAddress_ = paymentAddress_;
result.rcm_ = rcm_;
result.memo_ = memo_;
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.Common.Note) {
return mergeFrom((org.vision.visionjsdk.proto.Common.Note)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.vision.visionjsdk.proto.Common.Note other) {
if (other == org.vision.visionjsdk.proto.Common.Note.getDefaultInstance()) return this;
if (other.getValue() != 0L) {
setValue(other.getValue());
}
if (!other.getPaymentAddress().isEmpty()) {
paymentAddress_ = other.paymentAddress_;
onChanged();
}
if (other.getRcm() != com.google.protobuf.ByteString.EMPTY) {
setRcm(other.getRcm());
}
if (other.getMemo() != com.google.protobuf.ByteString.EMPTY) {
setMemo(other.getMemo());
}
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.Common.Note parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.vision.visionjsdk.proto.Common.Note) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long value_ ;
/**
* int64 value = 1;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
/**
* int64 value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(long value) {
value_ = value;
onChanged();
return this;
}
/**
* int64 value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = 0L;
onChanged();
return this;
}
private java.lang.Object paymentAddress_ = "";
/**
* string payment_address = 2;
* @return The paymentAddress.
*/
public java.lang.String getPaymentAddress() {
java.lang.Object ref = paymentAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
paymentAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string payment_address = 2;
* @return The bytes for paymentAddress.
*/
public com.google.protobuf.ByteString
getPaymentAddressBytes() {
java.lang.Object ref = paymentAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
paymentAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string payment_address = 2;
* @param value The paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
paymentAddress_ = value;
onChanged();
return this;
}
/**
* string payment_address = 2;
* @return This builder for chaining.
*/
public Builder clearPaymentAddress() {
paymentAddress_ = getDefaultInstance().getPaymentAddress();
onChanged();
return this;
}
/**
* string payment_address = 2;
* @param value The bytes for paymentAddress to set.
* @return This builder for chaining.
*/
public Builder setPaymentAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
paymentAddress_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString rcm_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* random 32
*
*
* bytes rcm = 3;
* @return The rcm.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRcm() {
return rcm_;
}
/**
*
* random 32
*
*
* bytes rcm = 3;
* @param value The rcm to set.
* @return This builder for chaining.
*/
public Builder setRcm(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
rcm_ = value;
onChanged();
return this;
}
/**
*
* random 32
*
*
* bytes rcm = 3;
* @return This builder for chaining.
*/
public Builder clearRcm() {
rcm_ = getDefaultInstance().getRcm();
onChanged();
return this;
}
private com.google.protobuf.ByteString memo_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes memo = 4;
* @return The memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMemo() {
return memo_;
}
/**
* bytes memo = 4;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
* bytes memo = 4;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
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.Note)
}
// @@protoc_insertion_point(class_scope:protocol.Note)
private static final org.vision.visionjsdk.proto.Common.Note DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.vision.visionjsdk.proto.Common.Note();
}
public static org.vision.visionjsdk.proto.Common.Note getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Note parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Note(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.Common.Note getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_AccountId_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_AccountId_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_authority_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_authority_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_Key_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_Key_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_Permission_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_Permission_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SmartContract_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SmartContract_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SmartContract_ABI_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SmartContract_ABI_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SmartContract_ABI_Entry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_Vote_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_Vote_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protocol_Note_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_protocol_Note_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\021core/common.proto\022\010protocol\"*\n\tAccount" +
"Id\022\014\n\004name\030\001 \001(\014\022\017\n\007address\030\002 \001(\014\"J\n\taut" +
"hority\022$\n\007account\030\001 \001(\0132\023.protocol.Accou" +
"ntId\022\027\n\017permission_name\030\002 \001(\014\"&\n\003Key\022\017\n\007" +
"address\030\001 \001(\014\022\016\n\006weight\030\002 \001(\003\"\361\001\n\nPermis" +
"sion\0221\n\004type\030\001 \001(\0162#.protocol.Permission" +
".PermissionType\022\n\n\002id\030\002 \001(\005\022\027\n\017permissio" +
"n_name\030\003 \001(\t\022\021\n\tthreshold\030\004 \001(\003\022\021\n\tparen" +
"t_id\030\005 \001(\005\022\022\n\noperations\030\006 \001(\014\022\033\n\004keys\030\007" +
" \003(\0132\r.protocol.Key\"4\n\016PermissionType\022\t\n" +
"\005Owner\020\000\022\013\n\007Witness\020\001\022\n\n\006Active\020\002\"\203\007\n\rSm" +
"artContract\022\026\n\016origin_address\030\001 \001(\014\022\030\n\020c" +
"ontract_address\030\002 \001(\014\022(\n\003abi\030\003 \001(\0132\033.pro" +
"tocol.SmartContract.ABI\022\020\n\010bytecode\030\004 \001(" +
"\014\022\022\n\ncall_value\030\005 \001(\003\022%\n\035consume_user_re" +
"source_percent\030\006 \001(\003\022\014\n\004name\030\007 \001(\t\022\033\n\023or" +
"igin_entropy_limit\030\010 \001(\003\022\021\n\tcode_hash\030\t \001" +
"(\014\022\020\n\010vs_hash\030\n \001(\014\032\370\004\n\003ABI\0221\n\006entrys\030\001" +
" \003(\0132!.protocol.SmartContract.ABI.Entry\032" +
"\275\004\n\005Entry\022\021\n\tanonymous\030\001 \001(\010\022\020\n\010constant" +
"\030\002 \001(\010\022\014\n\004name\030\003 \001(\t\0227\n\006inputs\030\004 \003(\0132\'.p" +
"rotocol.SmartContract.ABI.Entry.Param\0228\n" +
"\007outputs\030\005 \003(\0132\'.protocol.SmartContract." +
"ABI.Entry.Param\0229\n\004type\030\006 \001(\0162+.protocol" +
".SmartContract.ABI.Entry.EntryType\022\017\n\007pa" +
"yable\030\007 \001(\010\022N\n\017stateMutability\030\010 \001(\01625.p" +
"rotocol.SmartContract.ABI.Entry.StateMut" +
"abilityType\0324\n\005Param\022\017\n\007indexed\030\001 \001(\010\022\014\n" +
"\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\"Y\n\tEntryType\022\024" +
"\n\020UnknownEntryType\020\000\022\017\n\013Constructor\020\001\022\014\n" +
"\010Function\020\002\022\t\n\005Event\020\003\022\014\n\010Fallback\020\004\"a\n\023" +
"StateMutabilityType\022\031\n\025UnknownMutability" +
"Type\020\000\022\010\n\004Pure\020\001\022\010\n\004View\020\002\022\016\n\nNonpayable" +
"\020\003\022\013\n\007Payable\020\004\"0\n\004Vote\022\024\n\014vote_address\030" +
"\001 \001(\014\022\022\n\nvote_count\030\002 \001(\003\"I\n\004Note\022\r\n\005val" +
"ue\030\001 \001(\003\022\027\n\017payment_address\030\002 \001(\t\022\013\n\003rcm" +
"\030\003 \001(\014\022\014\n\004memo\030\004 \001(\014*)\n\014ResourceCode\022\r\n\t" +
"PHOTON\020\000\022\n\n\006ENTROPY\020\001*7\n\013AccountType\022\n" +
"\n\006Normal\020\000\022\016\n\nAssetIssue\020\001\022\014\n\010Contract\020\002" +
"B\035\n\033org.vision.visionjsdk.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_protocol_AccountId_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protocol_AccountId_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_AccountId_descriptor,
new java.lang.String[] { "Name", "Address", });
internal_static_protocol_authority_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_protocol_authority_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_authority_descriptor,
new java.lang.String[] { "Account", "PermissionName", });
internal_static_protocol_Key_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_protocol_Key_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_Key_descriptor,
new java.lang.String[] { "Address", "Weight", });
internal_static_protocol_Permission_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_protocol_Permission_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_Permission_descriptor,
new java.lang.String[] { "Type", "Id", "PermissionName", "Threshold", "ParentId", "Operations", "Keys", });
internal_static_protocol_SmartContract_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_protocol_SmartContract_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SmartContract_descriptor,
new java.lang.String[] { "OriginAddress", "ContractAddress", "Abi", "Bytecode", "CallValue", "ConsumeUserResourcePercent", "Name", "OriginEntropyLimit", "CodeHash", "VsHash", });
internal_static_protocol_SmartContract_ABI_descriptor =
internal_static_protocol_SmartContract_descriptor.getNestedTypes().get(0);
internal_static_protocol_SmartContract_ABI_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SmartContract_ABI_descriptor,
new java.lang.String[] { "Entrys", });
internal_static_protocol_SmartContract_ABI_Entry_descriptor =
internal_static_protocol_SmartContract_ABI_descriptor.getNestedTypes().get(0);
internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SmartContract_ABI_Entry_descriptor,
new java.lang.String[] { "Anonymous", "Constant", "Name", "Inputs", "Outputs", "Type", "Payable", "StateMutability", });
internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor =
internal_static_protocol_SmartContract_ABI_Entry_descriptor.getNestedTypes().get(0);
internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor,
new java.lang.String[] { "Indexed", "Name", "Type", });
internal_static_protocol_Vote_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_protocol_Vote_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_Vote_descriptor,
new java.lang.String[] { "VoteAddress", "VoteCount", });
internal_static_protocol_Note_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_protocol_Note_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_protocol_Note_descriptor,
new java.lang.String[] { "Value", "PaymentAddress", "Rcm", "Memo", });
}
// @@protoc_insertion_point(outer_class_scope)
}