org.tron.trident.proto.Common Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
A concise description of my library
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/common.proto
// Protobuf Java Version: 3.25.0
package org.tron.trident.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 {
/**
* BANDWIDTH = 0;
*/
BANDWIDTH(0),
/**
* ENERGY = 1;
*/
ENERGY(1),
/**
* TRON_POWER = 2;
*/
TRON_POWER(2),
UNRECOGNIZED(-1),
;
/**
* BANDWIDTH = 0;
*/
public static final int BANDWIDTH_VALUE = 0;
/**
* ENERGY = 1;
*/
public static final int ENERGY_VALUE = 1;
/**
* TRON_POWER = 2;
*/
public static final int TRON_POWER_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 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 BANDWIDTH;
case 1: return ENERGY;
case 2: return TRON_POWER;
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.tron.trident.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.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_AccountId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.AccountId.class, org.tron.trident.proto.Common.AccountId.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
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_;
}
public static final int ADDRESS_FIELD_NUMBER = 2;
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_;
}
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_);
}
getUnknownFields().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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.AccountId)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.AccountId other = (org.tron.trident.proto.Common.AccountId) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.AccountId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.AccountId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.AccountId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.AccountId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.AccountId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.AccountId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.AccountId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.AccountIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_AccountId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.AccountId.class, org.tron.trident.proto.Common.AccountId.Builder.class);
}
// Construct using org.tron.trident.proto.Common.AccountId.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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.tron.trident.proto.Common.internal_static_protocol_AccountId_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.AccountId getDefaultInstanceForType() {
return org.tron.trident.proto.Common.AccountId.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.AccountId build() {
org.tron.trident.proto.Common.AccountId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.AccountId buildPartial() {
org.tron.trident.proto.Common.AccountId result = new org.tron.trident.proto.Common.AccountId(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.AccountId result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.address_ = address_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.AccountId) {
return mergeFrom((org.tron.trident.proto.Common.AccountId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.AccountId other) {
if (other == org.tron.trident.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
address_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes address = 2;
* @return This builder for chaining.
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000002);
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.tron.trident.proto.Common.AccountId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.AccountId();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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.tron.trident.proto.Common.AccountId getAccount();
/**
* .protocol.AccountId account = 1;
*/
org.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_authority_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.authority.class, org.tron.trident.proto.Common.authority.Builder.class);
}
private int bitField0_;
public static final int ACCOUNT_FIELD_NUMBER = 1;
private org.tron.trident.proto.Common.AccountId account_;
/**
* .protocol.AccountId account = 1;
* @return Whether the account field is set.
*/
@java.lang.Override
public boolean hasAccount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.AccountId account = 1;
* @return The account.
*/
@java.lang.Override
public org.tron.trident.proto.Common.AccountId getAccount() {
return account_ == null ? org.tron.trident.proto.Common.AccountId.getDefaultInstance() : account_;
}
/**
* .protocol.AccountId account = 1;
*/
@java.lang.Override
public org.tron.trident.proto.Common.AccountIdOrBuilder getAccountOrBuilder() {
return account_ == null ? org.tron.trident.proto.Common.AccountId.getDefaultInstance() : account_;
}
public static final int PERMISSION_NAME_FIELD_NUMBER = 2;
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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAccount());
}
if (!permissionName_.isEmpty()) {
output.writeBytes(2, permissionName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
if (!permissionName_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, permissionName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.authority)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.authority other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.authority parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.authority parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.authority parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.authority parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.authority parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.authority parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.authority parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.authorityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_authority_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.authority.class, org.tron.trident.proto.Common.authority.Builder.class);
}
// Construct using org.tron.trident.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) {
getAccountFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
account_ = null;
if (accountBuilder_ != null) {
accountBuilder_.dispose();
accountBuilder_ = null;
}
permissionName_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_authority_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.authority getDefaultInstanceForType() {
return org.tron.trident.proto.Common.authority.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.authority build() {
org.tron.trident.proto.Common.authority result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.authority buildPartial() {
org.tron.trident.proto.Common.authority result = new org.tron.trident.proto.Common.authority(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.authority result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.account_ = accountBuilder_ == null
? account_
: accountBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.permissionName_ = permissionName_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.authority) {
return mergeFrom((org.tron.trident.proto.Common.authority)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.authority other) {
if (other == org.tron.trident.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAccountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
permissionName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.tron.trident.proto.Common.AccountId account_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.AccountId, org.tron.trident.proto.Common.AccountId.Builder, org.tron.trident.proto.Common.AccountIdOrBuilder> accountBuilder_;
/**
* .protocol.AccountId account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.AccountId account = 1;
* @return The account.
*/
public org.tron.trident.proto.Common.AccountId getAccount() {
if (accountBuilder_ == null) {
return account_ == null ? org.tron.trident.proto.Common.AccountId.getDefaultInstance() : account_;
} else {
return accountBuilder_.getMessage();
}
}
/**
* .protocol.AccountId account = 1;
*/
public Builder setAccount(org.tron.trident.proto.Common.AccountId value) {
if (accountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
account_ = value;
} else {
accountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.AccountId account = 1;
*/
public Builder setAccount(
org.tron.trident.proto.Common.AccountId.Builder builderForValue) {
if (accountBuilder_ == null) {
account_ = builderForValue.build();
} else {
accountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.AccountId account = 1;
*/
public Builder mergeAccount(org.tron.trident.proto.Common.AccountId value) {
if (accountBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
account_ != null &&
account_ != org.tron.trident.proto.Common.AccountId.getDefaultInstance()) {
getAccountBuilder().mergeFrom(value);
} else {
account_ = value;
}
} else {
accountBuilder_.mergeFrom(value);
}
if (account_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .protocol.AccountId account = 1;
*/
public Builder clearAccount() {
bitField0_ = (bitField0_ & ~0x00000001);
account_ = null;
if (accountBuilder_ != null) {
accountBuilder_.dispose();
accountBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.AccountId account = 1;
*/
public org.tron.trident.proto.Common.AccountId.Builder getAccountBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAccountFieldBuilder().getBuilder();
}
/**
* .protocol.AccountId account = 1;
*/
public org.tron.trident.proto.Common.AccountIdOrBuilder getAccountOrBuilder() {
if (accountBuilder_ != null) {
return accountBuilder_.getMessageOrBuilder();
} else {
return account_ == null ?
org.tron.trident.proto.Common.AccountId.getDefaultInstance() : account_;
}
}
/**
* .protocol.AccountId account = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.AccountId, org.tron.trident.proto.Common.AccountId.Builder, org.tron.trident.proto.Common.AccountIdOrBuilder>
getAccountFieldBuilder() {
if (accountBuilder_ == null) {
accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.AccountId, org.tron.trident.proto.Common.AccountId.Builder, org.tron.trident.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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes permission_name = 2;
* @return This builder for chaining.
*/
public Builder clearPermissionName() {
bitField0_ = (bitField0_ & ~0x00000002);
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.tron.trident.proto.Common.authority DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.authority();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Key.class, org.tron.trident.proto.Common.Key.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int WEIGHT_FIELD_NUMBER = 2;
private long weight_ = 0L;
/**
* 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_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (weight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, weight_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.Key)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.Key other = (org.tron.trident.proto.Common.Key) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getWeight()
!= other.getWeight()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWeight());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.Key parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Key parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Key parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.Key parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.Key parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Key parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Key parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.KeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Key_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Key.class, org.tron.trident.proto.Common.Key.Builder.class);
}
// Construct using org.tron.trident.proto.Common.Key.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
weight_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_Key_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.Key getDefaultInstanceForType() {
return org.tron.trident.proto.Common.Key.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.Key build() {
org.tron.trident.proto.Common.Key result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.Key buildPartial() {
org.tron.trident.proto.Common.Key result = new org.tron.trident.proto.Common.Key(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.Key result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.weight_ = weight_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.Key) {
return mergeFrom((org.tron.trident.proto.Common.Key)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.Key other) {
if (other == org.tron.trident.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
weight_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private long 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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 weight = 2;
* @return This builder for chaining.
*/
public Builder clearWeight() {
bitField0_ = (bitField0_ & ~0x00000002);
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.tron.trident.proto.Common.Key DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.Key();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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.tron.trident.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;
*/
java.util.List
getKeysList();
/**
* repeated .protocol.Key keys = 7;
*/
org.tron.trident.proto.Common.Key getKeys(int index);
/**
* repeated .protocol.Key keys = 7;
*/
int getKeysCount();
/**
* repeated .protocol.Key keys = 7;
*/
java.util.List extends org.tron.trident.proto.Common.KeyOrBuilder>
getKeysOrBuilderList();
/**
* repeated .protocol.Key keys = 7;
*/
org.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Permission.class, org.tron.trident.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.tron.trident.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_ = 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;
* @return The type.
*/
@java.lang.Override public org.tron.trident.proto.Common.Permission.PermissionType getType() {
org.tron.trident.proto.Common.Permission.PermissionType result = org.tron.trident.proto.Common.Permission.PermissionType.forNumber(type_);
return result == null ? org.tron.trident.proto.Common.Permission.PermissionType.UNRECOGNIZED : result;
}
public static final int ID_FIELD_NUMBER = 2;
private int id_ = 0;
/**
*
* 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;
@SuppressWarnings("serial")
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_ = 0L;
/**
* 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_ = 0;
/**
* 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_ = 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_;
}
public static final int KEYS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
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.tron.trident.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.tron.trident.proto.Common.Key getKeys(int index) {
return keys_.get(index);
}
/**
* repeated .protocol.Key keys = 7;
*/
@java.lang.Override
public org.tron.trident.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.tron.trident.proto.Common.Permission.PermissionType.Owner.getNumber()) {
output.writeEnum(1, type_);
}
if (id_ != 0) {
output.writeInt32(2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(permissionName_)) {
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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != org.tron.trident.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(permissionName_)) {
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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.Permission)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.Permission other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.Permission parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Permission parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Permission parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.Permission parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.Permission parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Permission parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Permission parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.PermissionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Permission_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Permission.class, org.tron.trident.proto.Common.Permission.Builder.class);
}
// Construct using org.tron.trident.proto.Common.Permission.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = 0;
id_ = 0;
permissionName_ = "";
threshold_ = 0L;
parentId_ = 0;
operations_ = com.google.protobuf.ByteString.EMPTY;
if (keysBuilder_ == null) {
keys_ = java.util.Collections.emptyList();
} else {
keys_ = null;
keysBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_Permission_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.Permission getDefaultInstanceForType() {
return org.tron.trident.proto.Common.Permission.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.Permission build() {
org.tron.trident.proto.Common.Permission result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.Permission buildPartial() {
org.tron.trident.proto.Common.Permission result = new org.tron.trident.proto.Common.Permission(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Common.Permission result) {
if (keysBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
keys_ = java.util.Collections.unmodifiableList(keys_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.keys_ = keys_;
} else {
result.keys_ = keysBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Common.Permission result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.permissionName_ = permissionName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.threshold_ = threshold_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.parentId_ = parentId_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.operations_ = operations_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.Permission) {
return mergeFrom((org.tron.trident.proto.Common.Permission)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.Permission other) {
if (other == org.tron.trident.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_;
bitField0_ |= 0x00000004;
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_ & ~0x00000040);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
onChanged();
}
} else {
if (!other.keys_.isEmpty()) {
if (keysBuilder_.isEmpty()) {
keysBuilder_.dispose();
keysBuilder_ = null;
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000040);
keysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeysFieldBuilder() : null;
} else {
keysBuilder_.addAllMessages(other.keys_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
type_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
id_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
permissionName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
threshold_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
parentId_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
operations_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
org.tron.trident.proto.Common.Key m =
input.readMessage(
org.tron.trident.proto.Common.Key.parser(),
extensionRegistry);
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.add(m);
} else {
keysBuilder_.addMessage(m);
}
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @return The type.
*/
@java.lang.Override
public org.tron.trident.proto.Common.Permission.PermissionType getType() {
org.tron.trident.proto.Common.Permission.PermissionType result = org.tron.trident.proto.Common.Permission.PermissionType.forNumber(type_);
return result == null ? org.tron.trident.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.tron.trident.proto.Common.Permission.PermissionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.Permission.PermissionType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
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() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string permission_name = 3;
* @return This builder for chaining.
*/
public Builder clearPermissionName() {
permissionName_ = getDefaultInstance().getPermissionName();
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000004;
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 threshold = 4;
* @return This builder for chaining.
*/
public Builder clearThreshold() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int32 parent_id = 5;
* @return This builder for chaining.
*/
public Builder clearParentId() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* 1 bit 1 contract
*
*
* bytes operations = 6;
* @return This builder for chaining.
*/
public Builder clearOperations() {
bitField0_ = (bitField0_ & ~0x00000020);
operations_ = getDefaultInstance().getOperations();
onChanged();
return this;
}
private java.util.List keys_ =
java.util.Collections.emptyList();
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
keys_ = new java.util.ArrayList(keys_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.Key, org.tron.trident.proto.Common.Key.Builder, org.tron.trident.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;
*/
public org.tron.trident.proto.Common.Key getKeys(int index) {
if (keysBuilder_ == null) {
return keys_.get(index);
} else {
return keysBuilder_.getMessage(index);
}
}
/**
* repeated .protocol.Key keys = 7;
*/
public Builder setKeys(
int index, org.tron.trident.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;
*/
public Builder setKeys(
int index, org.tron.trident.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;
*/
public Builder addKeys(org.tron.trident.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;
*/
public Builder addKeys(
int index, org.tron.trident.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;
*/
public Builder addKeys(
org.tron.trident.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;
*/
public Builder addKeys(
int index, org.tron.trident.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;
*/
public Builder addAllKeys(
java.lang.Iterable extends org.tron.trident.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;
*/
public Builder clearKeys() {
if (keysBuilder_ == null) {
keys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
keysBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
*/
public Builder removeKeys(int index) {
if (keysBuilder_ == null) {
ensureKeysIsMutable();
keys_.remove(index);
onChanged();
} else {
keysBuilder_.remove(index);
}
return this;
}
/**
* repeated .protocol.Key keys = 7;
*/
public org.tron.trident.proto.Common.Key.Builder getKeysBuilder(
int index) {
return getKeysFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.Key keys = 7;
*/
public org.tron.trident.proto.Common.KeyOrBuilder getKeysOrBuilder(
int index) {
if (keysBuilder_ == null) {
return keys_.get(index); } else {
return keysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protocol.Key keys = 7;
*/
public java.util.List extends org.tron.trident.proto.Common.KeyOrBuilder>
getKeysOrBuilderList() {
if (keysBuilder_ != null) {
return keysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keys_);
}
}
/**
* repeated .protocol.Key keys = 7;
*/
public org.tron.trident.proto.Common.Key.Builder addKeysBuilder() {
return getKeysFieldBuilder().addBuilder(
org.tron.trident.proto.Common.Key.getDefaultInstance());
}
/**
* repeated .protocol.Key keys = 7;
*/
public org.tron.trident.proto.Common.Key.Builder addKeysBuilder(
int index) {
return getKeysFieldBuilder().addBuilder(
index, org.tron.trident.proto.Common.Key.getDefaultInstance());
}
/**
* repeated .protocol.Key keys = 7;
*/
public java.util.List
getKeysBuilderList() {
return getKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.Key, org.tron.trident.proto.Common.Key.Builder, org.tron.trident.proto.Common.KeyOrBuilder>
getKeysFieldBuilder() {
if (keysBuilder_ == null) {
keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.Key, org.tron.trident.proto.Common.Key.Builder, org.tron.trident.proto.Common.KeyOrBuilder>(
keys_,
((bitField0_ & 0x00000040) != 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.tron.trident.proto.Common.Permission DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.Permission();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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.tron.trident.proto.Common.SmartContract.ABI getAbi();
/**
* .protocol.SmartContract.ABI abi = 3;
*/
org.tron.trident.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_energy_limit = 8;
* @return The originEnergyLimit.
*/
long getOriginEnergyLimit();
/**
* bytes code_hash = 9;
* @return The codeHash.
*/
com.google.protobuf.ByteString getCodeHash();
/**
* bytes trx_hash = 10;
* @return The trxHash.
*/
com.google.protobuf.ByteString getTrxHash();
}
/**
* 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;
trxHash_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SmartContract();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.class, org.tron.trident.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;
*/
java.util.List
getEntrysList();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
org.tron.trident.proto.Common.SmartContract.ABI.Entry getEntrys(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
int getEntrysCount();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
java.util.List extends org.tron.trident.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
org.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.class, org.tron.trident.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;
*/
java.util.List
getInputsList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param getInputs(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
int getInputsCount();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
java.util.List extends org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getInputsOrBuilder(
int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
java.util.List
getOutputsList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param getOutputs(int index);
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
int getOutputsCount();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
java.util.List extends org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsOrBuilderList();
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
org.tron.trident.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.tron.trident.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.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.class, org.tron.trident.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.tron.trident.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.tron.trident.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.class, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder.class);
}
public static final int INDEXED_FIELD_NUMBER = 1;
private boolean indexed_ = false;
/**
* bool indexed = 1;
* @return The indexed.
*/
@java.lang.Override
public boolean getIndexed() {
return indexed_;
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.Param parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.Param parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.class, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder.class);
}
// Construct using org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexed_ = false;
name_ = "";
type_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_Param_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param getDefaultInstanceForType() {
return org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param build() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param buildPartial() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param result = new org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexed_ = indexed_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param) {
return mergeFrom((org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param other) {
if (other == org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance()) return this;
if (other.getIndexed() != false) {
setIndexed(other.getIndexed());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
indexed_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bool indexed = 1;
* @return This builder for chaining.
*/
public Builder clearIndexed() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000002;
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* SolidityType type = 3;
*
*
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000004;
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.tron.trident.proto.Common.SmartContract.ABI.Entry.Param DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ANONYMOUS_FIELD_NUMBER = 1;
private boolean anonymous_ = false;
/**
* 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_ = false;
/**
* bool constant = 2;
* @return The constant.
*/
@java.lang.Override
public boolean getConstant() {
return constant_;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int OUTPUTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
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.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder getOutputsOrBuilder(
int index) {
return outputs_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
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;
* @return The type.
*/
@java.lang.Override public org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType getType() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType result = org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType.forNumber(type_);
return result == null ? org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType.UNRECOGNIZED : result;
}
public static final int PAYABLE_FIELD_NUMBER = 7;
private boolean payable_ = false;
/**
* 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_ = 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;
* @return The stateMutability.
*/
@java.lang.Override public org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType getStateMutability() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType result = org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.forNumber(stateMutability_);
return result == null ? org.tron.trident.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType.UnknownEntryType.getNumber()) {
output.writeEnum(6, type_);
}
if (payable_ != false) {
output.writeBool(7, payable_);
}
if (stateMutability_ != org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.UnknownMutabilityType.getNumber()) {
output.writeEnum(8, stateMutability_);
}
getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.UnknownMutabilityType.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, stateMutability_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.SmartContract.ABI.Entry)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.SmartContract.ABI.Entry other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.SmartContract.ABI.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.class, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder.class);
}
// Construct using org.tron.trident.proto.Common.SmartContract.ABI.Entry.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
anonymous_ = false;
constant_ = false;
name_ = "";
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
} else {
inputs_ = null;
inputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
} else {
outputs_ = null;
outputsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
type_ = 0;
payable_ = false;
stateMutability_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_Entry_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry getDefaultInstanceForType() {
return org.tron.trident.proto.Common.SmartContract.ABI.Entry.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry build() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry buildPartial() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry result = new org.tron.trident.proto.Common.SmartContract.ABI.Entry(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Common.SmartContract.ABI.Entry result) {
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (outputsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
outputs_ = java.util.Collections.unmodifiableList(outputs_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.outputs_ = outputs_;
} else {
result.outputs_ = outputsBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Common.SmartContract.ABI.Entry result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.anonymous_ = anonymous_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.constant_ = constant_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.payable_ = payable_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.stateMutability_ = stateMutability_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.SmartContract.ABI.Entry) {
return mergeFrom((org.tron.trident.proto.Common.SmartContract.ABI.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.SmartContract.ABI.Entry other) {
if (other == org.tron.trident.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_;
bitField0_ |= 0x00000004;
onChanged();
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000008);
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_ & ~0x00000010);
} else {
ensureOutputsIsMutable();
outputs_.addAll(other.outputs_);
}
onChanged();
}
} else {
if (!other.outputs_.isEmpty()) {
if (outputsBuilder_.isEmpty()) {
outputsBuilder_.dispose();
outputsBuilder_ = null;
outputs_ = other.outputs_;
bitField0_ = (bitField0_ & ~0x00000010);
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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
anonymous_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
constant_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param m =
input.readMessage(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.parser(),
extensionRegistry);
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(m);
} else {
inputsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param m =
input.readMessage(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.parser(),
extensionRegistry);
if (outputsBuilder_ == null) {
ensureOutputsIsMutable();
outputs_.add(m);
} else {
outputsBuilder_.addMessage(m);
}
break;
} // case 42
case 48: {
type_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
payable_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
stateMutability_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bool anonymous = 1;
* @return This builder for chaining.
*/
public Builder clearAnonymous() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool constant = 2;
* @return This builder for chaining.
*/
public Builder clearConstant() {
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder> inputsBuilder_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
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;
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
public org.tron.trident.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;
*/
public Builder setInputs(
int index, org.tron.trident.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;
*/
public Builder setInputs(
int index, org.tron.trident.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;
*/
public Builder addInputs(org.tron.trident.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;
*/
public Builder addInputs(
int index, org.tron.trident.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;
*/
public Builder addInputs(
org.tron.trident.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;
*/
public Builder addInputs(
int index, org.tron.trident.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;
*/
public Builder addAllInputs(
java.lang.Iterable extends org.tron.trident.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;
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
public org.tron.trident.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;
*/
public java.util.List extends org.tron.trident.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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param inputs = 4;
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>(
inputs_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private java.util.List outputs_ =
java.util.Collections.emptyList();
private void ensureOutputsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
outputs_ = new java.util.ArrayList(outputs_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder> outputsBuilder_;
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
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;
*/
public int getOutputsCount() {
if (outputsBuilder_ == null) {
return outputs_.size();
} else {
return outputsBuilder_.getCount();
}
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
public org.tron.trident.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;
*/
public Builder setOutputs(
int index, org.tron.trident.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;
*/
public Builder setOutputs(
int index, org.tron.trident.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;
*/
public Builder addOutputs(org.tron.trident.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;
*/
public Builder addOutputs(
int index, org.tron.trident.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;
*/
public Builder addOutputs(
org.tron.trident.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;
*/
public Builder addOutputs(
int index, org.tron.trident.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;
*/
public Builder addAllOutputs(
java.lang.Iterable extends org.tron.trident.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;
*/
public Builder clearOutputs() {
if (outputsBuilder_ == null) {
outputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
outputsBuilder_.clear();
}
return this;
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder getOutputsBuilder(
int index) {
return getOutputsFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
public org.tron.trident.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;
*/
public java.util.List extends org.tron.trident.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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder addOutputsBuilder() {
return getOutputsFieldBuilder().addBuilder(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder addOutputsBuilder(
int index) {
return getOutputsFieldBuilder().addBuilder(
index, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry.Param outputs = 5;
*/
public java.util.List
getOutputsBuilderList() {
return getOutputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>
getOutputsFieldBuilder() {
if (outputsBuilder_ == null) {
outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Param.Builder, org.tron.trident.proto.Common.SmartContract.ABI.Entry.ParamOrBuilder>(
outputs_,
((bitField0_ & 0x00000010) != 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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return The type.
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType getType() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType result = org.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType.forNumber(type_);
return result == null ? org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.EntryType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.EntryType type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bool payable = 7;
* @return This builder for chaining.
*/
public Builder clearPayable() {
bitField0_ = (bitField0_ & ~0x00000040);
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;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return The stateMutability.
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType getStateMutability() {
org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType result = org.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType.forNumber(stateMutability_);
return result == null ? org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry.StateMutabilityType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
stateMutability_ = value.getNumber();
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI.Entry.StateMutabilityType stateMutability = 8;
* @return This builder for chaining.
*/
public Builder clearStateMutability() {
bitField0_ = (bitField0_ & ~0x00000080);
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.tron.trident.proto.Common.SmartContract.ABI.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.SmartContract.ABI.Entry();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENTRYS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI.Entry getEntrys(int index) {
return entrys_.get(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
@java.lang.Override
public org.tron.trident.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));
}
getUnknownFields().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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.SmartContract.ABI)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.SmartContract.ABI other = (org.tron.trident.proto.Common.SmartContract.ABI) obj;
if (!getEntrysList()
.equals(other.getEntrysList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEntrysCount() > 0) {
hash = (37 * hash) + ENTRYS_FIELD_NUMBER;
hash = (53 * hash) + getEntrysList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.SmartContract.ABI parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContract.ABIOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.ABI.class, org.tron.trident.proto.Common.SmartContract.ABI.Builder.class);
}
// Construct using org.tron.trident.proto.Common.SmartContract.ABI.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (entrysBuilder_ == null) {
entrys_ = java.util.Collections.emptyList();
} else {
entrys_ = null;
entrysBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_ABI_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI getDefaultInstanceForType() {
return org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI build() {
org.tron.trident.proto.Common.SmartContract.ABI result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI buildPartial() {
org.tron.trident.proto.Common.SmartContract.ABI result = new org.tron.trident.proto.Common.SmartContract.ABI(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.tron.trident.proto.Common.SmartContract.ABI result) {
if (entrysBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entrys_ = java.util.Collections.unmodifiableList(entrys_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entrys_ = entrys_;
} else {
result.entrys_ = entrysBuilder_.build();
}
}
private void buildPartial0(org.tron.trident.proto.Common.SmartContract.ABI result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.SmartContract.ABI) {
return mergeFrom((org.tron.trident.proto.Common.SmartContract.ABI)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.SmartContract.ABI other) {
if (other == org.tron.trident.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.tron.trident.proto.Common.SmartContract.ABI.Entry m =
input.readMessage(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.parser(),
extensionRegistry);
if (entrysBuilder_ == null) {
ensureEntrysIsMutable();
entrys_.add(m);
} else {
entrysBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List 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.tron.trident.proto.Common.SmartContract.ABI.Entry, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder, org.tron.trident.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;
*/
public org.tron.trident.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;
*/
public Builder setEntrys(
int index, org.tron.trident.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;
*/
public Builder setEntrys(
int index, org.tron.trident.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;
*/
public Builder addEntrys(org.tron.trident.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;
*/
public Builder addEntrys(
int index, org.tron.trident.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;
*/
public Builder addEntrys(
org.tron.trident.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;
*/
public Builder addEntrys(
int index, org.tron.trident.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;
*/
public Builder addAllEntrys(
java.lang.Iterable extends org.tron.trident.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;
*/
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;
*/
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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder getEntrysBuilder(
int index) {
return getEntrysFieldBuilder().getBuilder(index);
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
public org.tron.trident.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;
*/
public java.util.List extends org.tron.trident.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;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder addEntrysBuilder() {
return getEntrysFieldBuilder().addBuilder(
org.tron.trident.proto.Common.SmartContract.ABI.Entry.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder addEntrysBuilder(
int index) {
return getEntrysFieldBuilder().addBuilder(
index, org.tron.trident.proto.Common.SmartContract.ABI.Entry.getDefaultInstance());
}
/**
* repeated .protocol.SmartContract.ABI.Entry entrys = 1;
*/
public java.util.List
getEntrysBuilderList() {
return getEntrysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder, org.tron.trident.proto.Common.SmartContract.ABI.EntryOrBuilder>
getEntrysFieldBuilder() {
if (entrysBuilder_ == null) {
entrysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI.Entry, org.tron.trident.proto.Common.SmartContract.ABI.Entry.Builder, org.tron.trident.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.tron.trident.proto.Common.SmartContract.ABI DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.SmartContract.ABI();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ORIGIN_ADDRESS_FIELD_NUMBER = 1;
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_;
}
public static final int CONTRACT_ADDRESS_FIELD_NUMBER = 2;
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_;
}
public static final int ABI_FIELD_NUMBER = 3;
private org.tron.trident.proto.Common.SmartContract.ABI abi_;
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Whether the abi field is set.
*/
@java.lang.Override
public boolean hasAbi() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return The abi.
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABI getAbi() {
return abi_ == null ? org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract.ABIOrBuilder getAbiOrBuilder() {
return abi_ == null ? org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
}
public static final int BYTECODE_FIELD_NUMBER = 4;
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_;
}
public static final int CALL_VALUE_FIELD_NUMBER = 5;
private long callValue_ = 0L;
/**
* 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_ = 0L;
/**
* 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;
@SuppressWarnings("serial")
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_ENERGY_LIMIT_FIELD_NUMBER = 8;
private long originEnergyLimit_ = 0L;
/**
* int64 origin_energy_limit = 8;
* @return The originEnergyLimit.
*/
@java.lang.Override
public long getOriginEnergyLimit() {
return originEnergyLimit_;
}
public static final int CODE_HASH_FIELD_NUMBER = 9;
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_;
}
public static final int TRX_HASH_FIELD_NUMBER = 10;
private com.google.protobuf.ByteString trxHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes trx_hash = 10;
* @return The trxHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTrxHash() {
return trxHash_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
}
if (originEnergyLimit_ != 0L) {
output.writeInt64(8, originEnergyLimit_);
}
if (!codeHash_.isEmpty()) {
output.writeBytes(9, codeHash_);
}
if (!trxHash_.isEmpty()) {
output.writeBytes(10, trxHash_);
}
getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
}
if (originEnergyLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, originEnergyLimit_);
}
if (!codeHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, codeHash_);
}
if (!trxHash_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, trxHash_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.SmartContract)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.SmartContract other = (org.tron.trident.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 (getOriginEnergyLimit()
!= other.getOriginEnergyLimit()) return false;
if (!getCodeHash()
.equals(other.getCodeHash())) return false;
if (!getTrxHash()
.equals(other.getTrxHash())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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_ENERGY_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOriginEnergyLimit());
hash = (37 * hash) + CODE_HASH_FIELD_NUMBER;
hash = (53 * hash) + getCodeHash().hashCode();
hash = (37 * hash) + TRX_HASH_FIELD_NUMBER;
hash = (53 * hash) + getTrxHash().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.SmartContract parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.SmartContract parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.SmartContract parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.SmartContract parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.SmartContractOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.SmartContract.class, org.tron.trident.proto.Common.SmartContract.Builder.class);
}
// Construct using org.tron.trident.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) {
getAbiFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
originAddress_ = com.google.protobuf.ByteString.EMPTY;
contractAddress_ = com.google.protobuf.ByteString.EMPTY;
abi_ = null;
if (abiBuilder_ != null) {
abiBuilder_.dispose();
abiBuilder_ = null;
}
bytecode_ = com.google.protobuf.ByteString.EMPTY;
callValue_ = 0L;
consumeUserResourcePercent_ = 0L;
name_ = "";
originEnergyLimit_ = 0L;
codeHash_ = com.google.protobuf.ByteString.EMPTY;
trxHash_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_SmartContract_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract getDefaultInstanceForType() {
return org.tron.trident.proto.Common.SmartContract.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract build() {
org.tron.trident.proto.Common.SmartContract result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.SmartContract buildPartial() {
org.tron.trident.proto.Common.SmartContract result = new org.tron.trident.proto.Common.SmartContract(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.SmartContract result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.originAddress_ = originAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.contractAddress_ = contractAddress_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.abi_ = abiBuilder_ == null
? abi_
: abiBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bytecode_ = bytecode_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.callValue_ = callValue_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.consumeUserResourcePercent_ = consumeUserResourcePercent_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.originEnergyLimit_ = originEnergyLimit_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.codeHash_ = codeHash_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.trxHash_ = trxHash_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.SmartContract) {
return mergeFrom((org.tron.trident.proto.Common.SmartContract)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.SmartContract other) {
if (other == org.tron.trident.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_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.getOriginEnergyLimit() != 0L) {
setOriginEnergyLimit(other.getOriginEnergyLimit());
}
if (other.getCodeHash() != com.google.protobuf.ByteString.EMPTY) {
setCodeHash(other.getCodeHash());
}
if (other.getTrxHash() != com.google.protobuf.ByteString.EMPTY) {
setTrxHash(other.getTrxHash());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
originAddress_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
contractAddress_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getAbiFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
bytecode_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
callValue_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
consumeUserResourcePercent_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64: {
originEnergyLimit_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
codeHash_ = input.readBytes();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
trxHash_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes origin_address = 1;
* @return This builder for chaining.
*/
public Builder clearOriginAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes contract_address = 2;
* @return This builder for chaining.
*/
public Builder clearContractAddress() {
bitField0_ = (bitField0_ & ~0x00000002);
contractAddress_ = getDefaultInstance().getContractAddress();
onChanged();
return this;
}
private org.tron.trident.proto.Common.SmartContract.ABI abi_;
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI, org.tron.trident.proto.Common.SmartContract.ABI.Builder, org.tron.trident.proto.Common.SmartContract.ABIOrBuilder> abiBuilder_;
/**
* .protocol.SmartContract.ABI abi = 3;
* @return Whether the abi field is set.
*/
public boolean hasAbi() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .protocol.SmartContract.ABI abi = 3;
* @return The abi.
*/
public org.tron.trident.proto.Common.SmartContract.ABI getAbi() {
if (abiBuilder_ == null) {
return abi_ == null ? org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
} else {
return abiBuilder_.getMessage();
}
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public Builder setAbi(org.tron.trident.proto.Common.SmartContract.ABI value) {
if (abiBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
abi_ = value;
} else {
abiBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public Builder setAbi(
org.tron.trident.proto.Common.SmartContract.ABI.Builder builderForValue) {
if (abiBuilder_ == null) {
abi_ = builderForValue.build();
} else {
abiBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public Builder mergeAbi(org.tron.trident.proto.Common.SmartContract.ABI value) {
if (abiBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
abi_ != null &&
abi_ != org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance()) {
getAbiBuilder().mergeFrom(value);
} else {
abi_ = value;
}
} else {
abiBuilder_.mergeFrom(value);
}
if (abi_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public Builder clearAbi() {
bitField0_ = (bitField0_ & ~0x00000004);
abi_ = null;
if (abiBuilder_ != null) {
abiBuilder_.dispose();
abiBuilder_ = null;
}
onChanged();
return this;
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public org.tron.trident.proto.Common.SmartContract.ABI.Builder getAbiBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAbiFieldBuilder().getBuilder();
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
public org.tron.trident.proto.Common.SmartContract.ABIOrBuilder getAbiOrBuilder() {
if (abiBuilder_ != null) {
return abiBuilder_.getMessageOrBuilder();
} else {
return abi_ == null ?
org.tron.trident.proto.Common.SmartContract.ABI.getDefaultInstance() : abi_;
}
}
/**
* .protocol.SmartContract.ABI abi = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI, org.tron.trident.proto.Common.SmartContract.ABI.Builder, org.tron.trident.proto.Common.SmartContract.ABIOrBuilder>
getAbiFieldBuilder() {
if (abiBuilder_ == null) {
abiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.tron.trident.proto.Common.SmartContract.ABI, org.tron.trident.proto.Common.SmartContract.ABI.Builder, org.tron.trident.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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes bytecode = 4;
* @return This builder for chaining.
*/
public Builder clearBytecode() {
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 call_value = 5;
* @return This builder for chaining.
*/
public Builder clearCallValue() {
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 consume_user_resource_percent = 6;
* @return This builder for chaining.
*/
public Builder clearConsumeUserResourcePercent() {
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* string name = 7;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000040);
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private long originEnergyLimit_ ;
/**
* int64 origin_energy_limit = 8;
* @return The originEnergyLimit.
*/
@java.lang.Override
public long getOriginEnergyLimit() {
return originEnergyLimit_;
}
/**
* int64 origin_energy_limit = 8;
* @param value The originEnergyLimit to set.
* @return This builder for chaining.
*/
public Builder setOriginEnergyLimit(long value) {
originEnergyLimit_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int64 origin_energy_limit = 8;
* @return This builder for chaining.
*/
public Builder clearOriginEnergyLimit() {
bitField0_ = (bitField0_ & ~0x00000080);
originEnergyLimit_ = 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;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* bytes code_hash = 9;
* @return This builder for chaining.
*/
public Builder clearCodeHash() {
bitField0_ = (bitField0_ & ~0x00000100);
codeHash_ = getDefaultInstance().getCodeHash();
onChanged();
return this;
}
private com.google.protobuf.ByteString trxHash_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes trx_hash = 10;
* @return The trxHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTrxHash() {
return trxHash_;
}
/**
* bytes trx_hash = 10;
* @param value The trxHash to set.
* @return This builder for chaining.
*/
public Builder setTrxHash(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
trxHash_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* bytes trx_hash = 10;
* @return This builder for chaining.
*/
public Builder clearTrxHash() {
bitField0_ = (bitField0_ & ~0x00000200);
trxHash_ = getDefaultInstance().getTrxHash();
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.tron.trident.proto.Common.SmartContract DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.SmartContract();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Vote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Vote.class, org.tron.trident.proto.Common.Vote.Builder.class);
}
public static final int VOTE_ADDRESS_FIELD_NUMBER = 1;
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_;
}
public static final int VOTE_COUNT_FIELD_NUMBER = 2;
private long voteCount_ = 0L;
/**
* 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_);
}
getUnknownFields().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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.Vote)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.Vote other = (org.tron.trident.proto.Common.Vote) obj;
if (!getVoteAddress()
.equals(other.getVoteAddress())) return false;
if (getVoteCount()
!= other.getVoteCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.Vote parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Vote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Vote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.Vote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.Vote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Vote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Vote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.VoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Vote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Vote.class, org.tron.trident.proto.Common.Vote.Builder.class);
}
// Construct using org.tron.trident.proto.Common.Vote.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
voteAddress_ = com.google.protobuf.ByteString.EMPTY;
voteCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tron.trident.proto.Common.internal_static_protocol_Vote_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.Vote getDefaultInstanceForType() {
return org.tron.trident.proto.Common.Vote.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.Vote build() {
org.tron.trident.proto.Common.Vote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.Vote buildPartial() {
org.tron.trident.proto.Common.Vote result = new org.tron.trident.proto.Common.Vote(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.Vote result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.voteAddress_ = voteAddress_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.voteCount_ = voteCount_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.Vote) {
return mergeFrom((org.tron.trident.proto.Common.Vote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.Vote other) {
if (other == org.tron.trident.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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
voteAddress_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
voteCount_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes vote_address = 1;
* @return This builder for chaining.
*/
public Builder clearVoteAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 vote_count = 2;
* @return This builder for chaining.
*/
public Builder clearVoteCount() {
bitField0_ = (bitField0_ & ~0x00000002);
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.tron.trident.proto.Common.Vote DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.Vote();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Note_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Note.class, org.tron.trident.proto.Common.Note.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private long value_ = 0L;
/**
* int64 value = 1;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
public static final int PAYMENT_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 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_ = com.google.protobuf.ByteString.EMPTY;
/**
* 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paymentAddress_);
}
if (!rcm_.isEmpty()) {
output.writeBytes(3, rcm_);
}
if (!memo_.isEmpty()) {
output.writeBytes(4, memo_);
}
getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paymentAddress_)) {
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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tron.trident.proto.Common.Note)) {
return super.equals(obj);
}
org.tron.trident.proto.Common.Note other = (org.tron.trident.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tron.trident.proto.Common.Note parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Note parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.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.tron.trident.proto.Common.Note parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tron.trident.proto.Common.Note parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tron.trident.proto.Common.Note parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Note parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.proto.Common.Note parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tron.trident.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.tron.trident.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.tron.trident.proto.Common.NoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tron.trident.proto.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tron.trident.proto.Common.internal_static_protocol_Note_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tron.trident.proto.Common.Note.class, org.tron.trident.proto.Common.Note.Builder.class);
}
// Construct using org.tron.trident.proto.Common.Note.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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.tron.trident.proto.Common.internal_static_protocol_Note_descriptor;
}
@java.lang.Override
public org.tron.trident.proto.Common.Note getDefaultInstanceForType() {
return org.tron.trident.proto.Common.Note.getDefaultInstance();
}
@java.lang.Override
public org.tron.trident.proto.Common.Note build() {
org.tron.trident.proto.Common.Note result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tron.trident.proto.Common.Note buildPartial() {
org.tron.trident.proto.Common.Note result = new org.tron.trident.proto.Common.Note(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.tron.trident.proto.Common.Note result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.paymentAddress_ = paymentAddress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rcm_ = rcm_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.memo_ = memo_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.tron.trident.proto.Common.Note) {
return mergeFrom((org.tron.trident.proto.Common.Note)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tron.trident.proto.Common.Note other) {
if (other == org.tron.trident.proto.Common.Note.getDefaultInstance()) return this;
if (other.getValue() != 0L) {
setValue(other.getValue());
}
if (!other.getPaymentAddress().isEmpty()) {
paymentAddress_ = other.paymentAddress_;
bitField0_ |= 0x00000002;
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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
value_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
paymentAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
rcm_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
memo_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string payment_address = 2;
* @return This builder for chaining.
*/
public Builder clearPaymentAddress() {
paymentAddress_ = getDefaultInstance().getPaymentAddress();
bitField0_ = (bitField0_ & ~0x00000002);
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;
bitField0_ |= 0x00000002;
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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* random 32
*
*
* bytes rcm = 3;
* @return This builder for chaining.
*/
public Builder clearRcm() {
bitField0_ = (bitField0_ & ~0x00000004);
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes memo = 4;
* @return This builder for chaining.
*/
public Builder clearMemo() {
bitField0_ = (bitField0_ & ~0x00000008);
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.tron.trident.proto.Common.Note DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tron.trident.proto.Common.Note();
}
public static org.tron.trident.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tron.trident.proto.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_energy_limit\030\010 \001(\003\022\021\n\tcode_hash\030\t \001" +
"(\014\022\020\n\010trx_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*9\n\014ResourceCode\022\r\n\t" +
"BANDWIDTH\020\000\022\n\n\006ENERGY\020\001\022\016\n\nTRON_POWER\020\002*" +
"7\n\013AccountType\022\n\n\006Normal\020\000\022\016\n\nAssetIssue" +
"\020\001\022\014\n\010Contract\020\002B\030\n\026org.tron.trident.pro" +
"tob\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", "OriginEnergyLimit", "CodeHash", "TrxHash", });
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)
}