
com.wavesplatform.api.grpc.AccountsApiOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: waves/node/grpc/accounts_api.proto
package com.wavesplatform.api.grpc;
public final class AccountsApiOuterClass {
private AccountsApiOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AccountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.AccountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code waves.node.grpc.AccountRequest}
*/
public static final class AccountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.AccountRequest)
AccountRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountRequest.newBuilder() to construct.
private AccountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.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_;
}
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_);
}
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_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest) obj;
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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest 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 waves.node.grpc.AccountRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.AccountRequest)
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_AccountRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest.getDefaultInstance()) return this;
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: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
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 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;
}
@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:waves.node.grpc.AccountRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.AccountRequest)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountRequest 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.AccountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.DataRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
}
/**
* Protobuf type {@code waves.node.grpc.DataRequest}
*/
public static final class DataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.DataRequest)
DataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataRequest.newBuilder() to construct.
private DataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.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 KEY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* string key = 2;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 2;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = 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 (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getKey()
.equals(other.getKey())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest 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 waves.node.grpc.DataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.DataRequest)
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.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;
key_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = key_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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 java.lang.Object key_ = "";
/**
* string key = 2;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 2;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 2;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string key = 2;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
key_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:waves.node.grpc.DataRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.DataRequest)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataRequest 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.DataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BalancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.BalancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* repeated bytes assets = 4;
* @return A list containing the assets.
*/
java.util.List getAssetsList();
/**
* repeated bytes assets = 4;
* @return The count of assets.
*/
int getAssetsCount();
/**
* repeated bytes assets = 4;
* @param index The index of the element to return.
* @return The assets at the given index.
*/
com.google.protobuf.ByteString getAssets(int index);
}
/**
* Protobuf type {@code waves.node.grpc.BalancesRequest}
*/
public static final class BalancesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.BalancesRequest)
BalancesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BalancesRequest.newBuilder() to construct.
private BalancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BalancesRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
assets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BalancesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.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 ASSETS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List assets_;
/**
* repeated bytes assets = 4;
* @return A list containing the assets.
*/
@java.lang.Override
public java.util.List
getAssetsList() {
return assets_;
}
/**
* repeated bytes assets = 4;
* @return The count of assets.
*/
public int getAssetsCount() {
return assets_.size();
}
/**
* repeated bytes assets = 4;
* @param index The index of the element to return.
* @return The assets at the given index.
*/
public com.google.protobuf.ByteString getAssets(int index) {
return assets_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!address_.isEmpty()) {
output.writeBytes(1, address_);
}
for (int i = 0; i < assets_.size(); i++) {
output.writeBytes(4, assets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
{
int dataSize = 0;
for (int i = 0; i < assets_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(assets_.get(i));
}
size += dataSize;
size += 1 * getAssetsList().size();
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (!getAssetsList()
.equals(other.getAssetsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (getAssetsCount() > 0) {
hash = (37 * hash) + ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getAssetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest 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 waves.node.grpc.BalancesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.BalancesRequest)
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.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;
assets_ = java.util.Collections.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalancesRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result) {
if (((bitField0_ & 0x00000002) != 0)) {
assets_ = java.util.Collections.unmodifiableList(assets_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.assets_ = assets_;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (!other.assets_.isEmpty()) {
if (assets_.isEmpty()) {
assets_ = other.assets_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAssetsIsMutable();
assets_.addAll(other.assets_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 34: {
com.google.protobuf.ByteString v = input.readBytes();
ensureAssetsIsMutable();
assets_.add(v);
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 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 java.util.List assets_ = java.util.Collections.emptyList();
private void ensureAssetsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
assets_ = new java.util.ArrayList(assets_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated bytes assets = 4;
* @return A list containing the assets.
*/
public java.util.List
getAssetsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(assets_) : assets_;
}
/**
* repeated bytes assets = 4;
* @return The count of assets.
*/
public int getAssetsCount() {
return assets_.size();
}
/**
* repeated bytes assets = 4;
* @param index The index of the element to return.
* @return The assets at the given index.
*/
public com.google.protobuf.ByteString getAssets(int index) {
return assets_.get(index);
}
/**
* repeated bytes assets = 4;
* @param index The index to set the value at.
* @param value The assets to set.
* @return This builder for chaining.
*/
public Builder setAssets(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAssetsIsMutable();
assets_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes assets = 4;
* @param value The assets to add.
* @return This builder for chaining.
*/
public Builder addAssets(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAssetsIsMutable();
assets_.add(value);
onChanged();
return this;
}
/**
* repeated bytes assets = 4;
* @param values The assets to add.
* @return This builder for chaining.
*/
public Builder addAllAssets(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assets_);
onChanged();
return this;
}
/**
* repeated bytes assets = 4;
* @return This builder for chaining.
*/
public Builder clearAssets() {
assets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:waves.node.grpc.BalancesRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.BalancesRequest)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BalancesRequest 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalancesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BalanceResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.BalanceResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return Whether the waves field is set.
*/
boolean hasWaves();
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return The waves.
*/
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves();
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder();
/**
* .waves.Amount asset = 2;
* @return Whether the asset field is set.
*/
boolean hasAsset();
/**
* .waves.Amount asset = 2;
* @return The asset.
*/
com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset();
/**
* .waves.Amount asset = 2;
*/
com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder();
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.BalanceCase getBalanceCase();
}
/**
* Protobuf type {@code waves.node.grpc.BalanceResponse}
*/
public static final class BalanceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.BalanceResponse)
BalanceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BalanceResponse.newBuilder() to construct.
private BalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BalanceResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BalanceResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.Builder.class);
}
public interface WavesBalancesOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.BalanceResponse.WavesBalances)
com.google.protobuf.MessageOrBuilder {
/**
* int64 regular = 1;
* @return The regular.
*/
long getRegular();
/**
* int64 generating = 2;
* @return The generating.
*/
long getGenerating();
/**
* int64 available = 3;
* @return The available.
*/
long getAvailable();
/**
* int64 effective = 4;
* @return The effective.
*/
long getEffective();
/**
* int64 lease_in = 5;
* @return The leaseIn.
*/
long getLeaseIn();
/**
* int64 lease_out = 6;
* @return The leaseOut.
*/
long getLeaseOut();
}
/**
* Protobuf type {@code waves.node.grpc.BalanceResponse.WavesBalances}
*/
public static final class WavesBalances extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.BalanceResponse.WavesBalances)
WavesBalancesOrBuilder {
private static final long serialVersionUID = 0L;
// Use WavesBalances.newBuilder() to construct.
private WavesBalances(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WavesBalances() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WavesBalances();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder.class);
}
public static final int REGULAR_FIELD_NUMBER = 1;
private long regular_ = 0L;
/**
* int64 regular = 1;
* @return The regular.
*/
@java.lang.Override
public long getRegular() {
return regular_;
}
public static final int GENERATING_FIELD_NUMBER = 2;
private long generating_ = 0L;
/**
* int64 generating = 2;
* @return The generating.
*/
@java.lang.Override
public long getGenerating() {
return generating_;
}
public static final int AVAILABLE_FIELD_NUMBER = 3;
private long available_ = 0L;
/**
* int64 available = 3;
* @return The available.
*/
@java.lang.Override
public long getAvailable() {
return available_;
}
public static final int EFFECTIVE_FIELD_NUMBER = 4;
private long effective_ = 0L;
/**
* int64 effective = 4;
* @return The effective.
*/
@java.lang.Override
public long getEffective() {
return effective_;
}
public static final int LEASE_IN_FIELD_NUMBER = 5;
private long leaseIn_ = 0L;
/**
* int64 lease_in = 5;
* @return The leaseIn.
*/
@java.lang.Override
public long getLeaseIn() {
return leaseIn_;
}
public static final int LEASE_OUT_FIELD_NUMBER = 6;
private long leaseOut_ = 0L;
/**
* int64 lease_out = 6;
* @return The leaseOut.
*/
@java.lang.Override
public long getLeaseOut() {
return leaseOut_;
}
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 (regular_ != 0L) {
output.writeInt64(1, regular_);
}
if (generating_ != 0L) {
output.writeInt64(2, generating_);
}
if (available_ != 0L) {
output.writeInt64(3, available_);
}
if (effective_ != 0L) {
output.writeInt64(4, effective_);
}
if (leaseIn_ != 0L) {
output.writeInt64(5, leaseIn_);
}
if (leaseOut_ != 0L) {
output.writeInt64(6, leaseOut_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (regular_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, regular_);
}
if (generating_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, generating_);
}
if (available_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, available_);
}
if (effective_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, effective_);
}
if (leaseIn_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, leaseIn_);
}
if (leaseOut_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, leaseOut_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) obj;
if (getRegular()
!= other.getRegular()) return false;
if (getGenerating()
!= other.getGenerating()) return false;
if (getAvailable()
!= other.getAvailable()) return false;
if (getEffective()
!= other.getEffective()) return false;
if (getLeaseIn()
!= other.getLeaseIn()) return false;
if (getLeaseOut()
!= other.getLeaseOut()) 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) + REGULAR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRegular());
hash = (37 * hash) + GENERATING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGenerating());
hash = (37 * hash) + AVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvailable());
hash = (37 * hash) + EFFECTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEffective());
hash = (37 * hash) + LEASE_IN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLeaseIn());
hash = (37 * hash) + LEASE_OUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLeaseOut());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances 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 waves.node.grpc.BalanceResponse.WavesBalances}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.BalanceResponse.WavesBalances)
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
regular_ = 0L;
generating_ = 0L;
available_ = 0L;
effective_ = 0L;
leaseIn_ = 0L;
leaseOut_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.regular_ = regular_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.generating_ = generating_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.available_ = available_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.effective_ = effective_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.leaseIn_ = leaseIn_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.leaseOut_ = leaseOut_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance()) return this;
if (other.getRegular() != 0L) {
setRegular(other.getRegular());
}
if (other.getGenerating() != 0L) {
setGenerating(other.getGenerating());
}
if (other.getAvailable() != 0L) {
setAvailable(other.getAvailable());
}
if (other.getEffective() != 0L) {
setEffective(other.getEffective());
}
if (other.getLeaseIn() != 0L) {
setLeaseIn(other.getLeaseIn());
}
if (other.getLeaseOut() != 0L) {
setLeaseOut(other.getLeaseOut());
}
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: {
regular_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
generating_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
available_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
effective_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
leaseIn_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
leaseOut_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long regular_ ;
/**
* int64 regular = 1;
* @return The regular.
*/
@java.lang.Override
public long getRegular() {
return regular_;
}
/**
* int64 regular = 1;
* @param value The regular to set.
* @return This builder for chaining.
*/
public Builder setRegular(long value) {
regular_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 regular = 1;
* @return This builder for chaining.
*/
public Builder clearRegular() {
bitField0_ = (bitField0_ & ~0x00000001);
regular_ = 0L;
onChanged();
return this;
}
private long generating_ ;
/**
* int64 generating = 2;
* @return The generating.
*/
@java.lang.Override
public long getGenerating() {
return generating_;
}
/**
* int64 generating = 2;
* @param value The generating to set.
* @return This builder for chaining.
*/
public Builder setGenerating(long value) {
generating_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 generating = 2;
* @return This builder for chaining.
*/
public Builder clearGenerating() {
bitField0_ = (bitField0_ & ~0x00000002);
generating_ = 0L;
onChanged();
return this;
}
private long available_ ;
/**
* int64 available = 3;
* @return The available.
*/
@java.lang.Override
public long getAvailable() {
return available_;
}
/**
* int64 available = 3;
* @param value The available to set.
* @return This builder for chaining.
*/
public Builder setAvailable(long value) {
available_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 available = 3;
* @return This builder for chaining.
*/
public Builder clearAvailable() {
bitField0_ = (bitField0_ & ~0x00000004);
available_ = 0L;
onChanged();
return this;
}
private long effective_ ;
/**
* int64 effective = 4;
* @return The effective.
*/
@java.lang.Override
public long getEffective() {
return effective_;
}
/**
* int64 effective = 4;
* @param value The effective to set.
* @return This builder for chaining.
*/
public Builder setEffective(long value) {
effective_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 effective = 4;
* @return This builder for chaining.
*/
public Builder clearEffective() {
bitField0_ = (bitField0_ & ~0x00000008);
effective_ = 0L;
onChanged();
return this;
}
private long leaseIn_ ;
/**
* int64 lease_in = 5;
* @return The leaseIn.
*/
@java.lang.Override
public long getLeaseIn() {
return leaseIn_;
}
/**
* int64 lease_in = 5;
* @param value The leaseIn to set.
* @return This builder for chaining.
*/
public Builder setLeaseIn(long value) {
leaseIn_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 lease_in = 5;
* @return This builder for chaining.
*/
public Builder clearLeaseIn() {
bitField0_ = (bitField0_ & ~0x00000010);
leaseIn_ = 0L;
onChanged();
return this;
}
private long leaseOut_ ;
/**
* int64 lease_out = 6;
* @return The leaseOut.
*/
@java.lang.Override
public long getLeaseOut() {
return leaseOut_;
}
/**
* int64 lease_out = 6;
* @param value The leaseOut to set.
* @return This builder for chaining.
*/
public Builder setLeaseOut(long value) {
leaseOut_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 lease_out = 6;
* @return This builder for chaining.
*/
public Builder clearLeaseOut() {
bitField0_ = (bitField0_ & ~0x00000020);
leaseOut_ = 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:waves.node.grpc.BalanceResponse.WavesBalances)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.BalanceResponse.WavesBalances)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WavesBalances 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int balanceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object balance_;
public enum BalanceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
WAVES(1),
ASSET(2),
BALANCE_NOT_SET(0);
private final int value;
private BalanceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BalanceCase valueOf(int value) {
return forNumber(value);
}
public static BalanceCase forNumber(int value) {
switch (value) {
case 1: return WAVES;
case 2: return ASSET;
case 0: return BALANCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BalanceCase
getBalanceCase() {
return BalanceCase.forNumber(
balanceCase_);
}
public static final int WAVES_FIELD_NUMBER = 1;
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return Whether the waves field is set.
*/
@java.lang.Override
public boolean hasWaves() {
return balanceCase_ == 1;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return The waves.
*/
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves() {
if (balanceCase_ == 1) {
return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
}
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder() {
if (balanceCase_ == 1) {
return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
}
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
public static final int ASSET_FIELD_NUMBER = 2;
/**
* .waves.Amount asset = 2;
* @return Whether the asset field is set.
*/
@java.lang.Override
public boolean hasAsset() {
return balanceCase_ == 2;
}
/**
* .waves.Amount asset = 2;
* @return The asset.
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset() {
if (balanceCase_ == 2) {
return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
}
return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
}
/**
* .waves.Amount asset = 2;
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder() {
if (balanceCase_ == 2) {
return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
}
return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
}
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 (balanceCase_ == 1) {
output.writeMessage(1, (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_);
}
if (balanceCase_ == 2) {
output.writeMessage(2, (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (balanceCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_);
}
if (balanceCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse) obj;
if (!getBalanceCase().equals(other.getBalanceCase())) return false;
switch (balanceCase_) {
case 1:
if (!getWaves()
.equals(other.getWaves())) return false;
break;
case 2:
if (!getAsset()
.equals(other.getAsset())) return false;
break;
case 0:
default:
}
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();
switch (balanceCase_) {
case 1:
hash = (37 * hash) + WAVES_FIELD_NUMBER;
hash = (53 * hash) + getWaves().hashCode();
break;
case 2:
hash = (37 * hash) + ASSET_FIELD_NUMBER;
hash = (53 * hash) + getAsset().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse 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 waves.node.grpc.BalanceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.BalanceResponse)
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (wavesBuilder_ != null) {
wavesBuilder_.clear();
}
if (assetBuilder_ != null) {
assetBuilder_.clear();
}
balanceCase_ = 0;
balance_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_BalanceResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse result) {
result.balanceCase_ = balanceCase_;
result.balance_ = this.balance_;
if (balanceCase_ == 1 &&
wavesBuilder_ != null) {
result.balance_ = wavesBuilder_.build();
}
if (balanceCase_ == 2 &&
assetBuilder_ != null) {
result.balance_ = assetBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.getDefaultInstance()) return this;
switch (other.getBalanceCase()) {
case WAVES: {
mergeWaves(other.getWaves());
break;
}
case ASSET: {
mergeAsset(other.getAsset());
break;
}
case BALANCE_NOT_SET: {
break;
}
}
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(
getWavesFieldBuilder().getBuilder(),
extensionRegistry);
balanceCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getAssetFieldBuilder().getBuilder(),
extensionRegistry);
balanceCase_ = 2;
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 balanceCase_ = 0;
private java.lang.Object balance_;
public BalanceCase
getBalanceCase() {
return BalanceCase.forNumber(
balanceCase_);
}
public Builder clearBalance() {
balanceCase_ = 0;
balance_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder> wavesBuilder_;
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return Whether the waves field is set.
*/
@java.lang.Override
public boolean hasWaves() {
return balanceCase_ == 1;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
* @return The waves.
*/
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances getWaves() {
if (wavesBuilder_ == null) {
if (balanceCase_ == 1) {
return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
}
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
} else {
if (balanceCase_ == 1) {
return wavesBuilder_.getMessage();
}
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
public Builder setWaves(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances value) {
if (wavesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
} else {
wavesBuilder_.setMessage(value);
}
balanceCase_ = 1;
return this;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
public Builder setWaves(
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder builderForValue) {
if (wavesBuilder_ == null) {
balance_ = builderForValue.build();
onChanged();
} else {
wavesBuilder_.setMessage(builderForValue.build());
}
balanceCase_ = 1;
return this;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
public Builder mergeWaves(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances value) {
if (wavesBuilder_ == null) {
if (balanceCase_ == 1 &&
balance_ != com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance()) {
balance_ = com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.newBuilder((com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_)
.mergeFrom(value).buildPartial();
} else {
balance_ = value;
}
onChanged();
} else {
if (balanceCase_ == 1) {
wavesBuilder_.mergeFrom(value);
} else {
wavesBuilder_.setMessage(value);
}
}
balanceCase_ = 1;
return this;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
public Builder clearWaves() {
if (wavesBuilder_ == null) {
if (balanceCase_ == 1) {
balanceCase_ = 0;
balance_ = null;
onChanged();
}
} else {
if (balanceCase_ == 1) {
balanceCase_ = 0;
balance_ = null;
}
wavesBuilder_.clear();
}
return this;
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder getWavesBuilder() {
return getWavesFieldBuilder().getBuilder();
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder getWavesOrBuilder() {
if ((balanceCase_ == 1) && (wavesBuilder_ != null)) {
return wavesBuilder_.getMessageOrBuilder();
} else {
if (balanceCase_ == 1) {
return (com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_;
}
return com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
}
/**
* .waves.node.grpc.BalanceResponse.WavesBalances waves = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder>
getWavesFieldBuilder() {
if (wavesBuilder_ == null) {
if (!(balanceCase_ == 1)) {
balance_ = com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.getDefaultInstance();
}
wavesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalancesOrBuilder>(
(com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse.WavesBalances) balance_,
getParentForChildren(),
isClean());
balance_ = null;
}
balanceCase_ = 1;
onChanged();
return wavesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> assetBuilder_;
/**
* .waves.Amount asset = 2;
* @return Whether the asset field is set.
*/
@java.lang.Override
public boolean hasAsset() {
return balanceCase_ == 2;
}
/**
* .waves.Amount asset = 2;
* @return The asset.
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.Amount getAsset() {
if (assetBuilder_ == null) {
if (balanceCase_ == 2) {
return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
}
return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
} else {
if (balanceCase_ == 2) {
return assetBuilder_.getMessage();
}
return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
}
}
/**
* .waves.Amount asset = 2;
*/
public Builder setAsset(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
if (assetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
balance_ = value;
onChanged();
} else {
assetBuilder_.setMessage(value);
}
balanceCase_ = 2;
return this;
}
/**
* .waves.Amount asset = 2;
*/
public Builder setAsset(
com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
if (assetBuilder_ == null) {
balance_ = builderForValue.build();
onChanged();
} else {
assetBuilder_.setMessage(builderForValue.build());
}
balanceCase_ = 2;
return this;
}
/**
* .waves.Amount asset = 2;
*/
public Builder mergeAsset(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
if (assetBuilder_ == null) {
if (balanceCase_ == 2 &&
balance_ != com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()) {
balance_ = com.wavesplatform.protobuf.AmountOuterClass.Amount.newBuilder((com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_)
.mergeFrom(value).buildPartial();
} else {
balance_ = value;
}
onChanged();
} else {
if (balanceCase_ == 2) {
assetBuilder_.mergeFrom(value);
} else {
assetBuilder_.setMessage(value);
}
}
balanceCase_ = 2;
return this;
}
/**
* .waves.Amount asset = 2;
*/
public Builder clearAsset() {
if (assetBuilder_ == null) {
if (balanceCase_ == 2) {
balanceCase_ = 0;
balance_ = null;
onChanged();
}
} else {
if (balanceCase_ == 2) {
balanceCase_ = 0;
balance_ = null;
}
assetBuilder_.clear();
}
return this;
}
/**
* .waves.Amount asset = 2;
*/
public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getAssetBuilder() {
return getAssetFieldBuilder().getBuilder();
}
/**
* .waves.Amount asset = 2;
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getAssetOrBuilder() {
if ((balanceCase_ == 2) && (assetBuilder_ != null)) {
return assetBuilder_.getMessageOrBuilder();
} else {
if (balanceCase_ == 2) {
return (com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_;
}
return com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
}
}
/**
* .waves.Amount asset = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>
getAssetFieldBuilder() {
if (assetBuilder_ == null) {
if (!(balanceCase_ == 2)) {
balance_ = com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance();
}
assetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>(
(com.wavesplatform.protobuf.AmountOuterClass.Amount) balance_,
getParentForChildren(),
isClean());
balance_ = null;
}
balanceCase_ = 2;
onChanged();
return assetBuilder_;
}
@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:waves.node.grpc.BalanceResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.BalanceResponse)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BalanceResponse 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.BalanceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataEntryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.DataEntryResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return Whether the entry field is set.
*/
boolean hasEntry();
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return The entry.
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry();
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder();
}
/**
* Protobuf type {@code waves.node.grpc.DataEntryResponse}
*/
public static final class DataEntryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.DataEntryResponse)
DataEntryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataEntryResponse.newBuilder() to construct.
private DataEntryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataEntryResponse() {
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataEntryResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.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 ENTRY_FIELD_NUMBER = 2;
private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry entry_;
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return Whether the entry field is set.
*/
@java.lang.Override
public boolean hasEntry() {
return entry_ != null;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return The entry.
*/
@java.lang.Override
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry() {
return entry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
@java.lang.Override
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder() {
return entry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
}
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 (entry_ != null) {
output.writeMessage(2, getEntry());
}
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 (entry_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEntry());
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (hasEntry() != other.hasEntry()) return false;
if (hasEntry()) {
if (!getEntry()
.equals(other.getEntry())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
if (hasEntry()) {
hash = (37 * hash) + ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getEntry().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse 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 waves.node.grpc.DataEntryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.DataEntryResponse)
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.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;
entry_ = null;
if (entryBuilder_ != null) {
entryBuilder_.dispose();
entryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_DataEntryResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.entry_ = entryBuilder_ == null
? entry_
: entryBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.hasEntry()) {
mergeEntry(other.getEntry());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getEntryFieldBuilder().getBuilder(),
extensionRegistry);
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 address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry entry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder> entryBuilder_;
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return Whether the entry field is set.
*/
public boolean hasEntry() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
* @return The entry.
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry getEntry() {
if (entryBuilder_ == null) {
return entry_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
} else {
return entryBuilder_.getMessage();
}
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public Builder setEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entry_ = value;
} else {
entryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public Builder setEntry(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
entry_ = builderForValue.build();
} else {
entryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public Builder mergeEntry(com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry value) {
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
entry_ != null &&
entry_ != com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance()) {
getEntryBuilder().mergeFrom(value);
} else {
entry_ = value;
}
} else {
entryBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public Builder clearEntry() {
bitField0_ = (bitField0_ & ~0x00000002);
entry_ = null;
if (entryBuilder_ != null) {
entryBuilder_.dispose();
entryBuilder_ = null;
}
onChanged();
return this;
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder getEntryBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEntryFieldBuilder().getBuilder();
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder getEntryOrBuilder() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilder();
} else {
return entry_ == null ?
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.getDefaultInstance() : entry_;
}
}
/**
* .waves.DataTransactionData.DataEntry entry = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntry.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.DataTransactionData.DataEntryOrBuilder>(
getEntry(),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
@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:waves.node.grpc.DataEntryResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.DataEntryResponse)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataEntryResponse 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.DataEntryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScriptDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.ScriptData)
com.google.protobuf.MessageOrBuilder {
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
com.google.protobuf.ByteString getScriptBytes();
/**
* string script_text = 2;
* @return The scriptText.
*/
java.lang.String getScriptText();
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
com.google.protobuf.ByteString
getScriptTextBytes();
/**
* int64 complexity = 3;
* @return The complexity.
*/
long getComplexity();
}
/**
* Protobuf type {@code waves.node.grpc.ScriptData}
*/
public static final class ScriptData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.ScriptData)
ScriptDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScriptData.newBuilder() to construct.
private ScriptData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScriptData() {
scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
scriptText_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScriptData();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder.class);
}
public static final int SCRIPT_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScriptBytes() {
return scriptBytes_;
}
public static final int SCRIPT_TEXT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object scriptText_ = "";
/**
* string script_text = 2;
* @return The scriptText.
*/
@java.lang.Override
public java.lang.String getScriptText() {
java.lang.Object ref = scriptText_;
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();
scriptText_ = s;
return s;
}
}
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScriptTextBytes() {
java.lang.Object ref = scriptText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scriptText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPLEXITY_FIELD_NUMBER = 3;
private long complexity_ = 0L;
/**
* int64 complexity = 3;
* @return The complexity.
*/
@java.lang.Override
public long getComplexity() {
return complexity_;
}
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 (!scriptBytes_.isEmpty()) {
output.writeBytes(1, scriptBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scriptText_);
}
if (complexity_ != 0L) {
output.writeInt64(3, complexity_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!scriptBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, scriptBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scriptText_);
}
if (complexity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, complexity_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData) obj;
if (!getScriptBytes()
.equals(other.getScriptBytes())) return false;
if (!getScriptText()
.equals(other.getScriptText())) return false;
if (getComplexity()
!= other.getComplexity()) 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) + SCRIPT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getScriptBytes().hashCode();
hash = (37 * hash) + SCRIPT_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getScriptText().hashCode();
hash = (37 * hash) + COMPLEXITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getComplexity());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData 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 waves.node.grpc.ScriptData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.ScriptData)
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
scriptText_ = "";
complexity_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptData_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scriptBytes_ = scriptBytes_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scriptText_ = scriptText_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.complexity_ = complexity_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance()) return this;
if (other.getScriptBytes() != com.google.protobuf.ByteString.EMPTY) {
setScriptBytes(other.getScriptBytes());
}
if (!other.getScriptText().isEmpty()) {
scriptText_ = other.scriptText_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getComplexity() != 0L) {
setComplexity(other.getComplexity());
}
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: {
scriptBytes_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
scriptText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
complexity_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
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 scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScriptBytes() {
return scriptBytes_;
}
/**
* bytes script_bytes = 1;
* @param value The scriptBytes to set.
* @return This builder for chaining.
*/
public Builder setScriptBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scriptBytes_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes script_bytes = 1;
* @return This builder for chaining.
*/
public Builder clearScriptBytes() {
bitField0_ = (bitField0_ & ~0x00000001);
scriptBytes_ = getDefaultInstance().getScriptBytes();
onChanged();
return this;
}
private java.lang.Object scriptText_ = "";
/**
* string script_text = 2;
* @return The scriptText.
*/
public java.lang.String getScriptText() {
java.lang.Object ref = scriptText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scriptText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
public com.google.protobuf.ByteString
getScriptTextBytes() {
java.lang.Object ref = scriptText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scriptText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string script_text = 2;
* @param value The scriptText to set.
* @return This builder for chaining.
*/
public Builder setScriptText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scriptText_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string script_text = 2;
* @return This builder for chaining.
*/
public Builder clearScriptText() {
scriptText_ = getDefaultInstance().getScriptText();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string script_text = 2;
* @param value The bytes for scriptText to set.
* @return This builder for chaining.
*/
public Builder setScriptTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scriptText_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long complexity_ ;
/**
* int64 complexity = 3;
* @return The complexity.
*/
@java.lang.Override
public long getComplexity() {
return complexity_;
}
/**
* int64 complexity = 3;
* @param value The complexity to set.
* @return This builder for chaining.
*/
public Builder setComplexity(long value) {
complexity_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 complexity = 3;
* @return This builder for chaining.
*/
public Builder clearComplexity() {
bitField0_ = (bitField0_ & ~0x00000004);
complexity_ = 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:waves.node.grpc.ScriptData)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.ScriptData)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScriptData 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScriptResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.ScriptResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
com.google.protobuf.ByteString getScriptBytes();
/**
* string script_text = 2;
* @return The scriptText.
*/
java.lang.String getScriptText();
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
com.google.protobuf.ByteString
getScriptTextBytes();
/**
* int64 complexity = 3;
* @return The complexity.
*/
long getComplexity();
/**
* bytes public_key = 4;
* @return The publicKey.
*/
com.google.protobuf.ByteString getPublicKey();
}
/**
* Protobuf type {@code waves.node.grpc.ScriptResponse}
*/
public static final class ScriptResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.ScriptResponse)
ScriptResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScriptResponse.newBuilder() to construct.
private ScriptResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScriptResponse() {
scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
scriptText_ = "";
publicKey_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScriptResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.Builder.class);
}
public static final int SCRIPT_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScriptBytes() {
return scriptBytes_;
}
public static final int SCRIPT_TEXT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object scriptText_ = "";
/**
* string script_text = 2;
* @return The scriptText.
*/
@java.lang.Override
public java.lang.String getScriptText() {
java.lang.Object ref = scriptText_;
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();
scriptText_ = s;
return s;
}
}
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScriptTextBytes() {
java.lang.Object ref = scriptText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scriptText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPLEXITY_FIELD_NUMBER = 3;
private long complexity_ = 0L;
/**
* int64 complexity = 3;
* @return The complexity.
*/
@java.lang.Override
public long getComplexity() {
return complexity_;
}
public static final int PUBLIC_KEY_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes public_key = 4;
* @return The publicKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPublicKey() {
return publicKey_;
}
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 (!scriptBytes_.isEmpty()) {
output.writeBytes(1, scriptBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scriptText_);
}
if (complexity_ != 0L) {
output.writeInt64(3, complexity_);
}
if (!publicKey_.isEmpty()) {
output.writeBytes(4, publicKey_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!scriptBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, scriptBytes_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scriptText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scriptText_);
}
if (complexity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, complexity_);
}
if (!publicKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, publicKey_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse) obj;
if (!getScriptBytes()
.equals(other.getScriptBytes())) return false;
if (!getScriptText()
.equals(other.getScriptText())) return false;
if (getComplexity()
!= other.getComplexity()) return false;
if (!getPublicKey()
.equals(other.getPublicKey())) 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) + SCRIPT_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getScriptBytes().hashCode();
hash = (37 * hash) + SCRIPT_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getScriptText().hashCode();
hash = (37 * hash) + COMPLEXITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getComplexity());
hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPublicKey().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse 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 waves.node.grpc.ScriptResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.ScriptResponse)
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
scriptText_ = "";
complexity_ = 0L;
publicKey_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_ScriptResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scriptBytes_ = scriptBytes_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scriptText_ = scriptText_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.complexity_ = complexity_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.publicKey_ = publicKey_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse.getDefaultInstance()) return this;
if (other.getScriptBytes() != com.google.protobuf.ByteString.EMPTY) {
setScriptBytes(other.getScriptBytes());
}
if (!other.getScriptText().isEmpty()) {
scriptText_ = other.scriptText_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getComplexity() != 0L) {
setComplexity(other.getComplexity());
}
if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) {
setPublicKey(other.getPublicKey());
}
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: {
scriptBytes_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
scriptText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
complexity_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
publicKey_ = 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 com.google.protobuf.ByteString scriptBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes script_bytes = 1;
* @return The scriptBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScriptBytes() {
return scriptBytes_;
}
/**
* bytes script_bytes = 1;
* @param value The scriptBytes to set.
* @return This builder for chaining.
*/
public Builder setScriptBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scriptBytes_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes script_bytes = 1;
* @return This builder for chaining.
*/
public Builder clearScriptBytes() {
bitField0_ = (bitField0_ & ~0x00000001);
scriptBytes_ = getDefaultInstance().getScriptBytes();
onChanged();
return this;
}
private java.lang.Object scriptText_ = "";
/**
* string script_text = 2;
* @return The scriptText.
*/
public java.lang.String getScriptText() {
java.lang.Object ref = scriptText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
scriptText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string script_text = 2;
* @return The bytes for scriptText.
*/
public com.google.protobuf.ByteString
getScriptTextBytes() {
java.lang.Object ref = scriptText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scriptText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string script_text = 2;
* @param value The scriptText to set.
* @return This builder for chaining.
*/
public Builder setScriptText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scriptText_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string script_text = 2;
* @return This builder for chaining.
*/
public Builder clearScriptText() {
scriptText_ = getDefaultInstance().getScriptText();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string script_text = 2;
* @param value The bytes for scriptText to set.
* @return This builder for chaining.
*/
public Builder setScriptTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
scriptText_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long complexity_ ;
/**
* int64 complexity = 3;
* @return The complexity.
*/
@java.lang.Override
public long getComplexity() {
return complexity_;
}
/**
* int64 complexity = 3;
* @param value The complexity to set.
* @return This builder for chaining.
*/
public Builder setComplexity(long value) {
complexity_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 complexity = 3;
* @return This builder for chaining.
*/
public Builder clearComplexity() {
bitField0_ = (bitField0_ & ~0x00000004);
complexity_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes public_key = 4;
* @return The publicKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPublicKey() {
return publicKey_;
}
/**
* bytes public_key = 4;
* @param value The publicKey to set.
* @return This builder for chaining.
*/
public Builder setPublicKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
publicKey_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes public_key = 4;
* @return This builder for chaining.
*/
public Builder clearPublicKey() {
bitField0_ = (bitField0_ & ~0x00000008);
publicKey_ = getDefaultInstance().getPublicKey();
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:waves.node.grpc.ScriptResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.ScriptResponse)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScriptResponse 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LeaseResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.LeaseResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes leaseId = 1;
* @return The leaseId.
*/
com.google.protobuf.ByteString getLeaseId();
/**
* bytes originTransactionId = 2;
* @return The originTransactionId.
*/
com.google.protobuf.ByteString getOriginTransactionId();
/**
* bytes sender = 3;
* @return The sender.
*/
com.google.protobuf.ByteString getSender();
/**
* .waves.Recipient recipient = 4;
* @return Whether the recipient field is set.
*/
boolean hasRecipient();
/**
* .waves.Recipient recipient = 4;
* @return The recipient.
*/
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient();
/**
* .waves.Recipient recipient = 4;
*/
com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder();
/**
* int64 amount = 5;
* @return The amount.
*/
long getAmount();
/**
* int64 height = 6;
* @return The height.
*/
long getHeight();
}
/**
* Protobuf type {@code waves.node.grpc.LeaseResponse}
*/
public static final class LeaseResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.LeaseResponse)
LeaseResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use LeaseResponse.newBuilder() to construct.
private LeaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LeaseResponse() {
leaseId_ = com.google.protobuf.ByteString.EMPTY;
originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
sender_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LeaseResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.Builder.class);
}
public static final int LEASEID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString leaseId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes leaseId = 1;
* @return The leaseId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLeaseId() {
return leaseId_;
}
public static final int ORIGINTRANSACTIONID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes originTransactionId = 2;
* @return The originTransactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginTransactionId() {
return originTransactionId_;
}
public static final int SENDER_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString sender_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sender = 3;
* @return The sender.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSender() {
return sender_;
}
public static final int RECIPIENT_FIELD_NUMBER = 4;
private com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient recipient_;
/**
* .waves.Recipient recipient = 4;
* @return Whether the recipient field is set.
*/
@java.lang.Override
public boolean hasRecipient() {
return recipient_ != null;
}
/**
* .waves.Recipient recipient = 4;
* @return The recipient.
*/
@java.lang.Override
public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient() {
return recipient_ == null ? com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
}
/**
* .waves.Recipient recipient = 4;
*/
@java.lang.Override
public com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder() {
return recipient_ == null ? com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
}
public static final int AMOUNT_FIELD_NUMBER = 5;
private long amount_ = 0L;
/**
* int64 amount = 5;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
public static final int HEIGHT_FIELD_NUMBER = 6;
private long height_ = 0L;
/**
* int64 height = 6;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
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 (!leaseId_.isEmpty()) {
output.writeBytes(1, leaseId_);
}
if (!originTransactionId_.isEmpty()) {
output.writeBytes(2, originTransactionId_);
}
if (!sender_.isEmpty()) {
output.writeBytes(3, sender_);
}
if (recipient_ != null) {
output.writeMessage(4, getRecipient());
}
if (amount_ != 0L) {
output.writeInt64(5, amount_);
}
if (height_ != 0L) {
output.writeInt64(6, height_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!leaseId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, leaseId_);
}
if (!originTransactionId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, originTransactionId_);
}
if (!sender_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, sender_);
}
if (recipient_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRecipient());
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, amount_);
}
if (height_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, height_);
}
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 com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse other = (com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse) obj;
if (!getLeaseId()
.equals(other.getLeaseId())) return false;
if (!getOriginTransactionId()
.equals(other.getOriginTransactionId())) return false;
if (!getSender()
.equals(other.getSender())) return false;
if (hasRecipient() != other.hasRecipient()) return false;
if (hasRecipient()) {
if (!getRecipient()
.equals(other.getRecipient())) return false;
}
if (getAmount()
!= other.getAmount()) return false;
if (getHeight()
!= other.getHeight()) 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) + LEASEID_FIELD_NUMBER;
hash = (53 * hash) + getLeaseId().hashCode();
hash = (37 * hash) + ORIGINTRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getOriginTransactionId().hashCode();
hash = (37 * hash) + SENDER_FIELD_NUMBER;
hash = (53 * hash) + getSender().hashCode();
if (hasRecipient()) {
hash = (37 * hash) + RECIPIENT_FIELD_NUMBER;
hash = (53 * hash) + getRecipient().hashCode();
}
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeight());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse 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 waves.node.grpc.LeaseResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.LeaseResponse)
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.class, com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
leaseId_ = com.google.protobuf.ByteString.EMPTY;
originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
sender_ = com.google.protobuf.ByteString.EMPTY;
recipient_ = null;
if (recipientBuilder_ != null) {
recipientBuilder_.dispose();
recipientBuilder_ = null;
}
amount_ = 0L;
height_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.internal_static_waves_node_grpc_LeaseResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse build() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse buildPartial() {
com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse result = new com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.leaseId_ = leaseId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.originTransactionId_ = originTransactionId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sender_ = sender_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.recipient_ = recipientBuilder_ == null
? recipient_
: recipientBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.amount_ = amount_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.height_ = height_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse other) {
if (other == com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse.getDefaultInstance()) return this;
if (other.getLeaseId() != com.google.protobuf.ByteString.EMPTY) {
setLeaseId(other.getLeaseId());
}
if (other.getOriginTransactionId() != com.google.protobuf.ByteString.EMPTY) {
setOriginTransactionId(other.getOriginTransactionId());
}
if (other.getSender() != com.google.protobuf.ByteString.EMPTY) {
setSender(other.getSender());
}
if (other.hasRecipient()) {
mergeRecipient(other.getRecipient());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
if (other.getHeight() != 0L) {
setHeight(other.getHeight());
}
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: {
leaseId_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
originTransactionId_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
sender_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getRecipientFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
amount_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
height_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString leaseId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes leaseId = 1;
* @return The leaseId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLeaseId() {
return leaseId_;
}
/**
* bytes leaseId = 1;
* @param value The leaseId to set.
* @return This builder for chaining.
*/
public Builder setLeaseId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
leaseId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes leaseId = 1;
* @return This builder for chaining.
*/
public Builder clearLeaseId() {
bitField0_ = (bitField0_ & ~0x00000001);
leaseId_ = getDefaultInstance().getLeaseId();
onChanged();
return this;
}
private com.google.protobuf.ByteString originTransactionId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes originTransactionId = 2;
* @return The originTransactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginTransactionId() {
return originTransactionId_;
}
/**
* bytes originTransactionId = 2;
* @param value The originTransactionId to set.
* @return This builder for chaining.
*/
public Builder setOriginTransactionId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
originTransactionId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes originTransactionId = 2;
* @return This builder for chaining.
*/
public Builder clearOriginTransactionId() {
bitField0_ = (bitField0_ & ~0x00000002);
originTransactionId_ = getDefaultInstance().getOriginTransactionId();
onChanged();
return this;
}
private com.google.protobuf.ByteString sender_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sender = 3;
* @return The sender.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSender() {
return sender_;
}
/**
* bytes sender = 3;
* @param value The sender to set.
* @return This builder for chaining.
*/
public Builder setSender(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
sender_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes sender = 3;
* @return This builder for chaining.
*/
public Builder clearSender() {
bitField0_ = (bitField0_ & ~0x00000004);
sender_ = getDefaultInstance().getSender();
onChanged();
return this;
}
private com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient recipient_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder> recipientBuilder_;
/**
* .waves.Recipient recipient = 4;
* @return Whether the recipient field is set.
*/
public boolean hasRecipient() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .waves.Recipient recipient = 4;
* @return The recipient.
*/
public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient getRecipient() {
if (recipientBuilder_ == null) {
return recipient_ == null ? com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
} else {
return recipientBuilder_.getMessage();
}
}
/**
* .waves.Recipient recipient = 4;
*/
public Builder setRecipient(com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient value) {
if (recipientBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recipient_ = value;
} else {
recipientBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .waves.Recipient recipient = 4;
*/
public Builder setRecipient(
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder builderForValue) {
if (recipientBuilder_ == null) {
recipient_ = builderForValue.build();
} else {
recipientBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .waves.Recipient recipient = 4;
*/
public Builder mergeRecipient(com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient value) {
if (recipientBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
recipient_ != null &&
recipient_ != com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance()) {
getRecipientBuilder().mergeFrom(value);
} else {
recipient_ = value;
}
} else {
recipientBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .waves.Recipient recipient = 4;
*/
public Builder clearRecipient() {
bitField0_ = (bitField0_ & ~0x00000008);
recipient_ = null;
if (recipientBuilder_ != null) {
recipientBuilder_.dispose();
recipientBuilder_ = null;
}
onChanged();
return this;
}
/**
* .waves.Recipient recipient = 4;
*/
public com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder getRecipientBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRecipientFieldBuilder().getBuilder();
}
/**
* .waves.Recipient recipient = 4;
*/
public com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder getRecipientOrBuilder() {
if (recipientBuilder_ != null) {
return recipientBuilder_.getMessageOrBuilder();
} else {
return recipient_ == null ?
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.getDefaultInstance() : recipient_;
}
}
/**
* .waves.Recipient recipient = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder>
getRecipientFieldBuilder() {
if (recipientBuilder_ == null) {
recipientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient, com.wavesplatform.protobuf.transaction.RecipientOuterClass.Recipient.Builder, com.wavesplatform.protobuf.transaction.RecipientOuterClass.RecipientOrBuilder>(
getRecipient(),
getParentForChildren(),
isClean());
recipient_ = null;
}
return recipientBuilder_;
}
private long amount_ ;
/**
* int64 amount = 5;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
/**
* int64 amount = 5;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 amount = 5;
* @return This builder for chaining.
*/
public Builder clearAmount() {
bitField0_ = (bitField0_ & ~0x00000010);
amount_ = 0L;
onChanged();
return this;
}
private long height_ ;
/**
* int64 height = 6;
* @return The height.
*/
@java.lang.Override
public long getHeight() {
return height_;
}
/**
* int64 height = 6;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(long value) {
height_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 height = 6;
* @return This builder for chaining.
*/
public Builder clearHeight() {
bitField0_ = (bitField0_ & ~0x00000020);
height_ = 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:waves.node.grpc.LeaseResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.LeaseResponse)
private static final com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse();
}
public static com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LeaseResponse 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 com.wavesplatform.api.grpc.AccountsApiOuterClass.LeaseResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_AccountRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_DataRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_DataRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_BalancesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_BalanceResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_DataEntryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_ScriptData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_ScriptData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_ScriptResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_ScriptResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_LeaseResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_LeaseResponse_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\"waves/node/grpc/accounts_api.proto\022\017wa" +
"ves.node.grpc\032\022waves/amount.proto\032\027waves" +
"/transaction.proto\032\025waves/recipient.prot" +
"o\032\036google/protobuf/wrappers.proto\"!\n\016Acc" +
"ountRequest\022\017\n\007address\030\001 \001(\014\"+\n\013DataRequ" +
"est\022\017\n\007address\030\001 \001(\014\022\013\n\003key\030\002 \001(\t\"2\n\017Bal" +
"ancesRequest\022\017\n\007address\030\001 \001(\014\022\016\n\006assets\030" +
"\004 \003(\014\"\376\001\n\017BalanceResponse\022?\n\005waves\030\001 \001(\013" +
"2..waves.node.grpc.BalanceResponse.Waves" +
"BalancesH\000\022\036\n\005asset\030\002 \001(\0132\r.waves.Amount" +
"H\000\032\177\n\rWavesBalances\022\017\n\007regular\030\001 \001(\003\022\022\n\n" +
"generating\030\002 \001(\003\022\021\n\tavailable\030\003 \001(\003\022\021\n\te" +
"ffective\030\004 \001(\003\022\020\n\010lease_in\030\005 \001(\003\022\021\n\tleas" +
"e_out\030\006 \001(\003B\t\n\007balance\"Y\n\021DataEntryRespo" +
"nse\022\017\n\007address\030\001 \001(\014\0223\n\005entry\030\002 \001(\0132$.wa" +
"ves.DataTransactionData.DataEntry\"K\n\nScr" +
"iptData\022\024\n\014script_bytes\030\001 \001(\014\022\023\n\013script_" +
"text\030\002 \001(\t\022\022\n\ncomplexity\030\003 \001(\003\"c\n\016Script" +
"Response\022\024\n\014script_bytes\030\001 \001(\014\022\023\n\013script" +
"_text\030\002 \001(\t\022\022\n\ncomplexity\030\003 \001(\003\022\022\n\npubli" +
"c_key\030\004 \001(\014\"\222\001\n\rLeaseResponse\022\017\n\007leaseId" +
"\030\001 \001(\014\022\033\n\023originTransactionId\030\002 \001(\014\022\016\n\006s" +
"ender\030\003 \001(\014\022#\n\trecipient\030\004 \001(\0132\020.waves.R" +
"ecipient\022\016\n\006amount\030\005 \001(\003\022\016\n\006height\030\006 \001(\003" +
"2\250\003\n\013AccountsApi\022S\n\013GetBalances\022 .waves." +
"node.grpc.BalancesRequest\032 .waves.node.g" +
"rpc.BalanceResponse0\001\022M\n\tGetScript\022\037.wav" +
"es.node.grpc.AccountRequest\032\037.waves.node" +
".grpc.ScriptResponse\022T\n\017GetActiveLeases\022" +
"\037.waves.node.grpc.AccountRequest\032\036.waves" +
".node.grpc.LeaseResponse0\001\022T\n\016GetDataEnt" +
"ries\022\034.waves.node.grpc.DataRequest\032\".wav" +
"es.node.grpc.DataEntryResponse0\001\022I\n\014Reso" +
"lveAlias\022\034.google.protobuf.StringValue\032\033" +
".google.protobuf.BytesValueBs\n\032com.waves" +
"platform.api.grpcZCgithub.com/wavesplatf" +
"orm/gowaves/pkg/grpc/generated/waves/nod" +
"e/grpc\252\002\017Waves.Node.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(),
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(),
com.wavesplatform.protobuf.transaction.RecipientOuterClass.getDescriptor(),
com.google.protobuf.WrappersProto.getDescriptor(),
});
internal_static_waves_node_grpc_AccountRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_waves_node_grpc_AccountRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_AccountRequest_descriptor,
new java.lang.String[] { "Address", });
internal_static_waves_node_grpc_DataRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_waves_node_grpc_DataRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_DataRequest_descriptor,
new java.lang.String[] { "Address", "Key", });
internal_static_waves_node_grpc_BalancesRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_waves_node_grpc_BalancesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_BalancesRequest_descriptor,
new java.lang.String[] { "Address", "Assets", });
internal_static_waves_node_grpc_BalanceResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_waves_node_grpc_BalanceResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_BalanceResponse_descriptor,
new java.lang.String[] { "Waves", "Asset", "Balance", });
internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor =
internal_static_waves_node_grpc_BalanceResponse_descriptor.getNestedTypes().get(0);
internal_static_waves_node_grpc_BalanceResponse_WavesBalances_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_BalanceResponse_WavesBalances_descriptor,
new java.lang.String[] { "Regular", "Generating", "Available", "Effective", "LeaseIn", "LeaseOut", });
internal_static_waves_node_grpc_DataEntryResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_waves_node_grpc_DataEntryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_DataEntryResponse_descriptor,
new java.lang.String[] { "Address", "Entry", });
internal_static_waves_node_grpc_ScriptData_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_waves_node_grpc_ScriptData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_ScriptData_descriptor,
new java.lang.String[] { "ScriptBytes", "ScriptText", "Complexity", });
internal_static_waves_node_grpc_ScriptResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_waves_node_grpc_ScriptResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_ScriptResponse_descriptor,
new java.lang.String[] { "ScriptBytes", "ScriptText", "Complexity", "PublicKey", });
internal_static_waves_node_grpc_LeaseResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_waves_node_grpc_LeaseResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_LeaseResponse_descriptor,
new java.lang.String[] { "LeaseId", "OriginTransactionId", "Sender", "Recipient", "Amount", "Height", });
com.wavesplatform.protobuf.AmountOuterClass.getDescriptor();
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor();
com.wavesplatform.protobuf.transaction.RecipientOuterClass.getDescriptor();
com.google.protobuf.WrappersProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy