com.wavesplatform.api.grpc.AssetsApiOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-schemas Show documentation
Show all versions of protobuf-schemas Show documentation
Waves Node protobuf java classes
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: waves/node/grpc/assets_api.proto
package com.wavesplatform.api.grpc;
public final class AssetsApiOuterClass {
private AssetsApiOuterClass() {}
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 AssetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.AssetRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes asset_id = 1;
* @return The assetId.
*/
com.google.protobuf.ByteString getAssetId();
}
/**
* Protobuf type {@code waves.node.grpc.AssetRequest}
*/
public static final class AssetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.AssetRequest)
AssetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetRequest.newBuilder() to construct.
private AssetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetRequest() {
assetId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
assetId_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.Builder.class);
}
public static final int ASSET_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString assetId_;
/**
* bytes asset_id = 1;
* @return The assetId.
*/
public com.google.protobuf.ByteString getAssetId() {
return assetId_;
}
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 (!assetId_.isEmpty()) {
output.writeBytes(1, assetId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!assetId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, assetId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest other = (com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest) obj;
if (!getAssetId()
.equals(other.getAssetId())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ASSET_ID_FIELD_NUMBER;
hash = (53 * hash) + getAssetId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest 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.AssetsApiOuterClass.AssetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest 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.AssetsApiOuterClass.AssetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest 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.AssetsApiOuterClass.AssetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest 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.AssetsApiOuterClass.AssetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest 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.AssetsApiOuterClass.AssetRequest 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.AssetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.AssetRequest)
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
assetId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest build() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest buildPartial() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest result = new com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest(this);
result.assetId_ = assetId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest) {
return mergeFrom((com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest other) {
if (other == com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest.getDefaultInstance()) return this;
if (other.getAssetId() != com.google.protobuf.ByteString.EMPTY) {
setAssetId(other.getAssetId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString assetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes asset_id = 1;
* @return The assetId.
*/
public com.google.protobuf.ByteString getAssetId() {
return assetId_;
}
/**
* bytes asset_id = 1;
* @param value The assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
assetId_ = value;
onChanged();
return this;
}
/**
* bytes asset_id = 1;
* @return This builder for chaining.
*/
public Builder clearAssetId() {
assetId_ = getDefaultInstance().getAssetId();
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.AssetRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.AssetRequest)
private static final com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest();
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NFTRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.NFTRequest)
com.google.protobuf.MessageOrBuilder {
/**
* bytes address = 1;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
/**
* int32 limit = 2;
* @return The limit.
*/
int getLimit();
/**
* bytes after_asset_id = 3;
* @return The afterAssetId.
*/
com.google.protobuf.ByteString getAfterAssetId();
}
/**
* Protobuf type {@code waves.node.grpc.NFTRequest}
*/
public static final class NFTRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.NFTRequest)
NFTRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NFTRequest.newBuilder() to construct.
private NFTRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NFTRequest() {
address_ = com.google.protobuf.ByteString.EMPTY;
afterAssetId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NFTRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NFTRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readBytes();
break;
}
case 16: {
limit_ = input.readInt32();
break;
}
case 26: {
afterAssetId_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 1;
* @return The address.
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
public static final int LIMIT_FIELD_NUMBER = 2;
private int limit_;
/**
* int32 limit = 2;
* @return The limit.
*/
public int getLimit() {
return limit_;
}
public static final int AFTER_ASSET_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString afterAssetId_;
/**
* bytes after_asset_id = 3;
* @return The afterAssetId.
*/
public com.google.protobuf.ByteString getAfterAssetId() {
return afterAssetId_;
}
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 (limit_ != 0) {
output.writeInt32(2, limit_);
}
if (!afterAssetId_.isEmpty()) {
output.writeBytes(3, afterAssetId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, address_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, limit_);
}
if (!afterAssetId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, afterAssetId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest other = (com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getLimit()
!= other.getLimit()) return false;
if (!getAfterAssetId()
.equals(other.getAfterAssetId())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
hash = (37 * hash) + AFTER_ASSET_ID_FIELD_NUMBER;
hash = (53 * hash) + getAfterAssetId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest 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.AssetsApiOuterClass.NFTRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest 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.AssetsApiOuterClass.NFTRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest 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.AssetsApiOuterClass.NFTRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest 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.AssetsApiOuterClass.NFTRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest 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.AssetsApiOuterClass.NFTRequest 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.NFTRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.NFTRequest)
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
address_ = com.google.protobuf.ByteString.EMPTY;
limit_ = 0;
afterAssetId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTRequest_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest build() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest buildPartial() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest result = new com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest(this);
result.address_ = address_;
result.limit_ = limit_;
result.afterAssetId_ = afterAssetId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest) {
return mergeFrom((com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest other) {
if (other == com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest.getDefaultInstance()) return this;
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (other.getAfterAssetId() != com.google.protobuf.ByteString.EMPTY) {
setAfterAssetId(other.getAfterAssetId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 1;
* @return The address.
*/
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
private int limit_ ;
/**
* int32 limit = 2;
* @return The limit.
*/
public int getLimit() {
return limit_;
}
/**
* int32 limit = 2;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
onChanged();
return this;
}
/**
* int32 limit = 2;
* @return This builder for chaining.
*/
public Builder clearLimit() {
limit_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString afterAssetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes after_asset_id = 3;
* @return The afterAssetId.
*/
public com.google.protobuf.ByteString getAfterAssetId() {
return afterAssetId_;
}
/**
* bytes after_asset_id = 3;
* @param value The afterAssetId to set.
* @return This builder for chaining.
*/
public Builder setAfterAssetId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
afterAssetId_ = value;
onChanged();
return this;
}
/**
* bytes after_asset_id = 3;
* @return This builder for chaining.
*/
public Builder clearAfterAssetId() {
afterAssetId_ = getDefaultInstance().getAfterAssetId();
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.NFTRequest)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.NFTRequest)
private static final com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest();
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NFTRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NFTRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NFTResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.NFTResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes asset_id = 1;
* @return The assetId.
*/
com.google.protobuf.ByteString getAssetId();
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return Whether the assetInfo field is set.
*/
boolean hasAssetInfo();
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return The assetInfo.
*/
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getAssetInfo();
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder getAssetInfoOrBuilder();
}
/**
* Protobuf type {@code waves.node.grpc.NFTResponse}
*/
public static final class NFTResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.NFTResponse)
NFTResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use NFTResponse.newBuilder() to construct.
private NFTResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NFTResponse() {
assetId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NFTResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NFTResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
assetId_ = input.readBytes();
break;
}
case 18: {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder subBuilder = null;
if (assetInfo_ != null) {
subBuilder = assetInfo_.toBuilder();
}
assetInfo_ = input.readMessage(com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(assetInfo_);
assetInfo_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.Builder.class);
}
public static final int ASSET_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString assetId_;
/**
* bytes asset_id = 1;
* @return The assetId.
*/
public com.google.protobuf.ByteString getAssetId() {
return assetId_;
}
public static final int ASSET_INFO_FIELD_NUMBER = 2;
private com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse assetInfo_;
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return Whether the assetInfo field is set.
*/
public boolean hasAssetInfo() {
return assetInfo_ != null;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return The assetInfo.
*/
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getAssetInfo() {
return assetInfo_ == null ? com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.getDefaultInstance() : assetInfo_;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder getAssetInfoOrBuilder() {
return getAssetInfo();
}
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 (!assetId_.isEmpty()) {
output.writeBytes(1, assetId_);
}
if (assetInfo_ != null) {
output.writeMessage(2, getAssetInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!assetId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, assetId_);
}
if (assetInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAssetInfo());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse other = (com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse) obj;
if (!getAssetId()
.equals(other.getAssetId())) return false;
if (hasAssetInfo() != other.hasAssetInfo()) return false;
if (hasAssetInfo()) {
if (!getAssetInfo()
.equals(other.getAssetInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) 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) + ASSET_ID_FIELD_NUMBER;
hash = (53 * hash) + getAssetId().hashCode();
if (hasAssetInfo()) {
hash = (37 * hash) + ASSET_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAssetInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse 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.AssetsApiOuterClass.NFTResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse 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.AssetsApiOuterClass.NFTResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse 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.AssetsApiOuterClass.NFTResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse 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.AssetsApiOuterClass.NFTResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse 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.AssetsApiOuterClass.NFTResponse 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.NFTResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.NFTResponse)
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
assetId_ = com.google.protobuf.ByteString.EMPTY;
if (assetInfoBuilder_ == null) {
assetInfo_ = null;
} else {
assetInfo_ = null;
assetInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_NFTResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse build() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse buildPartial() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse result = new com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse(this);
result.assetId_ = assetId_;
if (assetInfoBuilder_ == null) {
result.assetInfo_ = assetInfo_;
} else {
result.assetInfo_ = assetInfoBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse other) {
if (other == com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse.getDefaultInstance()) return this;
if (other.getAssetId() != com.google.protobuf.ByteString.EMPTY) {
setAssetId(other.getAssetId());
}
if (other.hasAssetInfo()) {
mergeAssetInfo(other.getAssetInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString assetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes asset_id = 1;
* @return The assetId.
*/
public com.google.protobuf.ByteString getAssetId() {
return assetId_;
}
/**
* bytes asset_id = 1;
* @param value The assetId to set.
* @return This builder for chaining.
*/
public Builder setAssetId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
assetId_ = value;
onChanged();
return this;
}
/**
* bytes asset_id = 1;
* @return This builder for chaining.
*/
public Builder clearAssetId() {
assetId_ = getDefaultInstance().getAssetId();
onChanged();
return this;
}
private com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse assetInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder> assetInfoBuilder_;
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return Whether the assetInfo field is set.
*/
public boolean hasAssetInfo() {
return assetInfoBuilder_ != null || assetInfo_ != null;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
* @return The assetInfo.
*/
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getAssetInfo() {
if (assetInfoBuilder_ == null) {
return assetInfo_ == null ? com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.getDefaultInstance() : assetInfo_;
} else {
return assetInfoBuilder_.getMessage();
}
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public Builder setAssetInfo(com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse value) {
if (assetInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetInfo_ = value;
onChanged();
} else {
assetInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public Builder setAssetInfo(
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder builderForValue) {
if (assetInfoBuilder_ == null) {
assetInfo_ = builderForValue.build();
onChanged();
} else {
assetInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public Builder mergeAssetInfo(com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse value) {
if (assetInfoBuilder_ == null) {
if (assetInfo_ != null) {
assetInfo_ =
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.newBuilder(assetInfo_).mergeFrom(value).buildPartial();
} else {
assetInfo_ = value;
}
onChanged();
} else {
assetInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public Builder clearAssetInfo() {
if (assetInfoBuilder_ == null) {
assetInfo_ = null;
onChanged();
} else {
assetInfo_ = null;
assetInfoBuilder_ = null;
}
return this;
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder getAssetInfoBuilder() {
onChanged();
return getAssetInfoFieldBuilder().getBuilder();
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder getAssetInfoOrBuilder() {
if (assetInfoBuilder_ != null) {
return assetInfoBuilder_.getMessageOrBuilder();
} else {
return assetInfo_ == null ?
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.getDefaultInstance() : assetInfo_;
}
}
/**
* .waves.node.grpc.AssetInfoResponse asset_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder>
getAssetInfoFieldBuilder() {
if (assetInfoBuilder_ == null) {
assetInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder>(
getAssetInfo(),
getParentForChildren(),
isClean());
assetInfo_ = null;
}
return assetInfoBuilder_;
}
@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.NFTResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.NFTResponse)
private static final com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse();
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NFTResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NFTResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.NFTResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssetInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.node.grpc.AssetInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* bytes issuer = 1;
* @return The issuer.
*/
com.google.protobuf.ByteString getIssuer();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string description = 3;
* @return The description.
*/
java.lang.String getDescription();
/**
* string description = 3;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* int32 decimals = 4;
* @return The decimals.
*/
int getDecimals();
/**
* bool reissuable = 5;
* @return The reissuable.
*/
boolean getReissuable();
/**
* int64 total_volume = 6;
* @return The totalVolume.
*/
long getTotalVolume();
/**
* .waves.node.grpc.ScriptData script = 7;
* @return Whether the script field is set.
*/
boolean hasScript();
/**
* .waves.node.grpc.ScriptData script = 7;
* @return The script.
*/
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getScript();
/**
* .waves.node.grpc.ScriptData script = 7;
*/
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder getScriptOrBuilder();
/**
* int64 sponsorship = 8;
* @return The sponsorship.
*/
long getSponsorship();
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return Whether the issueTransaction field is set.
*/
boolean hasIssueTransaction();
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return The issueTransaction.
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getIssueTransaction();
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getIssueTransactionOrBuilder();
/**
* int64 sponsor_balance = 10;
* @return The sponsorBalance.
*/
long getSponsorBalance();
}
/**
* Protobuf type {@code waves.node.grpc.AssetInfoResponse}
*/
public static final class AssetInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.node.grpc.AssetInfoResponse)
AssetInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetInfoResponse.newBuilder() to construct.
private AssetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetInfoResponse() {
issuer_ = com.google.protobuf.ByteString.EMPTY;
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetInfoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetInfoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
issuer_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 32: {
decimals_ = input.readInt32();
break;
}
case 40: {
reissuable_ = input.readBool();
break;
}
case 48: {
totalVolume_ = input.readInt64();
break;
}
case 58: {
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder subBuilder = null;
if (script_ != null) {
subBuilder = script_.toBuilder();
}
script_ = input.readMessage(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(script_);
script_ = subBuilder.buildPartial();
}
break;
}
case 64: {
sponsorship_ = input.readInt64();
break;
}
case 80: {
sponsorBalance_ = input.readInt64();
break;
}
case 90: {
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder subBuilder = null;
if (issueTransaction_ != null) {
subBuilder = issueTransaction_.toBuilder();
}
issueTransaction_ = input.readMessage(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(issueTransaction_);
issueTransaction_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder.class);
}
public static final int ISSUER_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString issuer_;
/**
* bytes issuer = 1;
* @return The issuer.
*/
public com.google.protobuf.ByteString getIssuer() {
return issuer_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DECIMALS_FIELD_NUMBER = 4;
private int decimals_;
/**
* int32 decimals = 4;
* @return The decimals.
*/
public int getDecimals() {
return decimals_;
}
public static final int REISSUABLE_FIELD_NUMBER = 5;
private boolean reissuable_;
/**
* bool reissuable = 5;
* @return The reissuable.
*/
public boolean getReissuable() {
return reissuable_;
}
public static final int TOTAL_VOLUME_FIELD_NUMBER = 6;
private long totalVolume_;
/**
* int64 total_volume = 6;
* @return The totalVolume.
*/
public long getTotalVolume() {
return totalVolume_;
}
public static final int SCRIPT_FIELD_NUMBER = 7;
private com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData script_;
/**
* .waves.node.grpc.ScriptData script = 7;
* @return Whether the script field is set.
*/
public boolean hasScript() {
return script_ != null;
}
/**
* .waves.node.grpc.ScriptData script = 7;
* @return The script.
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getScript() {
return script_ == null ? com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance() : script_;
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder getScriptOrBuilder() {
return getScript();
}
public static final int SPONSORSHIP_FIELD_NUMBER = 8;
private long sponsorship_;
/**
* int64 sponsorship = 8;
* @return The sponsorship.
*/
public long getSponsorship() {
return sponsorship_;
}
public static final int ISSUE_TRANSACTION_FIELD_NUMBER = 11;
private com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction issueTransaction_;
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return Whether the issueTransaction field is set.
*/
public boolean hasIssueTransaction() {
return issueTransaction_ != null;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return The issueTransaction.
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getIssueTransaction() {
return issueTransaction_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance() : issueTransaction_;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getIssueTransactionOrBuilder() {
return getIssueTransaction();
}
public static final int SPONSOR_BALANCE_FIELD_NUMBER = 10;
private long sponsorBalance_;
/**
* int64 sponsor_balance = 10;
* @return The sponsorBalance.
*/
public long getSponsorBalance() {
return sponsorBalance_;
}
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 (!issuer_.isEmpty()) {
output.writeBytes(1, issuer_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (decimals_ != 0) {
output.writeInt32(4, decimals_);
}
if (reissuable_ != false) {
output.writeBool(5, reissuable_);
}
if (totalVolume_ != 0L) {
output.writeInt64(6, totalVolume_);
}
if (script_ != null) {
output.writeMessage(7, getScript());
}
if (sponsorship_ != 0L) {
output.writeInt64(8, sponsorship_);
}
if (sponsorBalance_ != 0L) {
output.writeInt64(10, sponsorBalance_);
}
if (issueTransaction_ != null) {
output.writeMessage(11, getIssueTransaction());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!issuer_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, issuer_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (decimals_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, decimals_);
}
if (reissuable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, reissuable_);
}
if (totalVolume_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalVolume_);
}
if (script_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getScript());
}
if (sponsorship_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, sponsorship_);
}
if (sponsorBalance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, sponsorBalance_);
}
if (issueTransaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getIssueTransaction());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse)) {
return super.equals(obj);
}
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse other = (com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse) obj;
if (!getIssuer()
.equals(other.getIssuer())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (getDecimals()
!= other.getDecimals()) return false;
if (getReissuable()
!= other.getReissuable()) return false;
if (getTotalVolume()
!= other.getTotalVolume()) return false;
if (hasScript() != other.hasScript()) return false;
if (hasScript()) {
if (!getScript()
.equals(other.getScript())) return false;
}
if (getSponsorship()
!= other.getSponsorship()) return false;
if (hasIssueTransaction() != other.hasIssueTransaction()) return false;
if (hasIssueTransaction()) {
if (!getIssueTransaction()
.equals(other.getIssueTransaction())) return false;
}
if (getSponsorBalance()
!= other.getSponsorBalance()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ISSUER_FIELD_NUMBER;
hash = (53 * hash) + getIssuer().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DECIMALS_FIELD_NUMBER;
hash = (53 * hash) + getDecimals();
hash = (37 * hash) + REISSUABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReissuable());
hash = (37 * hash) + TOTAL_VOLUME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalVolume());
if (hasScript()) {
hash = (37 * hash) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
}
hash = (37 * hash) + SPONSORSHIP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSponsorship());
if (hasIssueTransaction()) {
hash = (37 * hash) + ISSUE_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getIssueTransaction().hashCode();
}
hash = (37 * hash) + SPONSOR_BALANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSponsorBalance());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse 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.AssetsApiOuterClass.AssetInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse 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.AssetsApiOuterClass.AssetInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse 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.AssetsApiOuterClass.AssetInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse 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.AssetsApiOuterClass.AssetInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse 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.AssetsApiOuterClass.AssetInfoResponse 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.AssetInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.node.grpc.AssetInfoResponse)
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.class, com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.Builder.class);
}
// Construct using com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
issuer_ = com.google.protobuf.ByteString.EMPTY;
name_ = "";
description_ = "";
decimals_ = 0;
reissuable_ = false;
totalVolume_ = 0L;
if (scriptBuilder_ == null) {
script_ = null;
} else {
script_ = null;
scriptBuilder_ = null;
}
sponsorship_ = 0L;
if (issueTransactionBuilder_ == null) {
issueTransaction_ = null;
} else {
issueTransaction_ = null;
issueTransactionBuilder_ = null;
}
sponsorBalance_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.internal_static_waves_node_grpc_AssetInfoResponse_descriptor;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getDefaultInstanceForType() {
return com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse build() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse buildPartial() {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse result = new com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse(this);
result.issuer_ = issuer_;
result.name_ = name_;
result.description_ = description_;
result.decimals_ = decimals_;
result.reissuable_ = reissuable_;
result.totalVolume_ = totalVolume_;
if (scriptBuilder_ == null) {
result.script_ = script_;
} else {
result.script_ = scriptBuilder_.build();
}
result.sponsorship_ = sponsorship_;
if (issueTransactionBuilder_ == null) {
result.issueTransaction_ = issueTransaction_;
} else {
result.issueTransaction_ = issueTransactionBuilder_.build();
}
result.sponsorBalance_ = sponsorBalance_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse) {
return mergeFrom((com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse other) {
if (other == com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse.getDefaultInstance()) return this;
if (other.getIssuer() != com.google.protobuf.ByteString.EMPTY) {
setIssuer(other.getIssuer());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.getDecimals() != 0) {
setDecimals(other.getDecimals());
}
if (other.getReissuable() != false) {
setReissuable(other.getReissuable());
}
if (other.getTotalVolume() != 0L) {
setTotalVolume(other.getTotalVolume());
}
if (other.hasScript()) {
mergeScript(other.getScript());
}
if (other.getSponsorship() != 0L) {
setSponsorship(other.getSponsorship());
}
if (other.hasIssueTransaction()) {
mergeIssueTransaction(other.getIssueTransaction());
}
if (other.getSponsorBalance() != 0L) {
setSponsorBalance(other.getSponsorBalance());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString issuer_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes issuer = 1;
* @return The issuer.
*/
public com.google.protobuf.ByteString getIssuer() {
return issuer_;
}
/**
* bytes issuer = 1;
* @param value The issuer to set.
* @return This builder for chaining.
*/
public Builder setIssuer(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
issuer_ = value;
onChanged();
return this;
}
/**
* bytes issuer = 1;
* @return This builder for chaining.
*/
public Builder clearIssuer() {
issuer_ = getDefaultInstance().getIssuer();
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
* string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private int decimals_ ;
/**
* int32 decimals = 4;
* @return The decimals.
*/
public int getDecimals() {
return decimals_;
}
/**
* int32 decimals = 4;
* @param value The decimals to set.
* @return This builder for chaining.
*/
public Builder setDecimals(int value) {
decimals_ = value;
onChanged();
return this;
}
/**
* int32 decimals = 4;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
decimals_ = 0;
onChanged();
return this;
}
private boolean reissuable_ ;
/**
* bool reissuable = 5;
* @return The reissuable.
*/
public boolean getReissuable() {
return reissuable_;
}
/**
* bool reissuable = 5;
* @param value The reissuable to set.
* @return This builder for chaining.
*/
public Builder setReissuable(boolean value) {
reissuable_ = value;
onChanged();
return this;
}
/**
* bool reissuable = 5;
* @return This builder for chaining.
*/
public Builder clearReissuable() {
reissuable_ = false;
onChanged();
return this;
}
private long totalVolume_ ;
/**
* int64 total_volume = 6;
* @return The totalVolume.
*/
public long getTotalVolume() {
return totalVolume_;
}
/**
* int64 total_volume = 6;
* @param value The totalVolume to set.
* @return This builder for chaining.
*/
public Builder setTotalVolume(long value) {
totalVolume_ = value;
onChanged();
return this;
}
/**
* int64 total_volume = 6;
* @return This builder for chaining.
*/
public Builder clearTotalVolume() {
totalVolume_ = 0L;
onChanged();
return this;
}
private com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData script_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder> scriptBuilder_;
/**
* .waves.node.grpc.ScriptData script = 7;
* @return Whether the script field is set.
*/
public boolean hasScript() {
return scriptBuilder_ != null || script_ != null;
}
/**
* .waves.node.grpc.ScriptData script = 7;
* @return The script.
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData getScript() {
if (scriptBuilder_ == null) {
return script_ == null ? com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance() : script_;
} else {
return scriptBuilder_.getMessage();
}
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public Builder setScript(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData value) {
if (scriptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
} else {
scriptBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public Builder setScript(
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder builderForValue) {
if (scriptBuilder_ == null) {
script_ = builderForValue.build();
onChanged();
} else {
scriptBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public Builder mergeScript(com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData value) {
if (scriptBuilder_ == null) {
if (script_ != null) {
script_ =
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.newBuilder(script_).mergeFrom(value).buildPartial();
} else {
script_ = value;
}
onChanged();
} else {
scriptBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public Builder clearScript() {
if (scriptBuilder_ == null) {
script_ = null;
onChanged();
} else {
script_ = null;
scriptBuilder_ = null;
}
return this;
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder getScriptBuilder() {
onChanged();
return getScriptFieldBuilder().getBuilder();
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
public com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder getScriptOrBuilder() {
if (scriptBuilder_ != null) {
return scriptBuilder_.getMessageOrBuilder();
} else {
return script_ == null ?
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.getDefaultInstance() : script_;
}
}
/**
* .waves.node.grpc.ScriptData script = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder>
getScriptFieldBuilder() {
if (scriptBuilder_ == null) {
scriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptData.Builder, com.wavesplatform.api.grpc.AccountsApiOuterClass.ScriptDataOrBuilder>(
getScript(),
getParentForChildren(),
isClean());
script_ = null;
}
return scriptBuilder_;
}
private long sponsorship_ ;
/**
* int64 sponsorship = 8;
* @return The sponsorship.
*/
public long getSponsorship() {
return sponsorship_;
}
/**
* int64 sponsorship = 8;
* @param value The sponsorship to set.
* @return This builder for chaining.
*/
public Builder setSponsorship(long value) {
sponsorship_ = value;
onChanged();
return this;
}
/**
* int64 sponsorship = 8;
* @return This builder for chaining.
*/
public Builder clearSponsorship() {
sponsorship_ = 0L;
onChanged();
return this;
}
private com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction issueTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder> issueTransactionBuilder_;
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return Whether the issueTransaction field is set.
*/
public boolean hasIssueTransaction() {
return issueTransactionBuilder_ != null || issueTransaction_ != null;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
* @return The issueTransaction.
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction getIssueTransaction() {
if (issueTransactionBuilder_ == null) {
return issueTransaction_ == null ? com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance() : issueTransaction_;
} else {
return issueTransactionBuilder_.getMessage();
}
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public Builder setIssueTransaction(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (issueTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
issueTransaction_ = value;
onChanged();
} else {
issueTransactionBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public Builder setIssueTransaction(
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder builderForValue) {
if (issueTransactionBuilder_ == null) {
issueTransaction_ = builderForValue.build();
onChanged();
} else {
issueTransactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public Builder mergeIssueTransaction(com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction value) {
if (issueTransactionBuilder_ == null) {
if (issueTransaction_ != null) {
issueTransaction_ =
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.newBuilder(issueTransaction_).mergeFrom(value).buildPartial();
} else {
issueTransaction_ = value;
}
onChanged();
} else {
issueTransactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public Builder clearIssueTransaction() {
if (issueTransactionBuilder_ == null) {
issueTransaction_ = null;
onChanged();
} else {
issueTransaction_ = null;
issueTransactionBuilder_ = null;
}
return this;
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder getIssueTransactionBuilder() {
onChanged();
return getIssueTransactionFieldBuilder().getBuilder();
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
public com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder getIssueTransactionOrBuilder() {
if (issueTransactionBuilder_ != null) {
return issueTransactionBuilder_.getMessageOrBuilder();
} else {
return issueTransaction_ == null ?
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.getDefaultInstance() : issueTransaction_;
}
}
/**
* .waves.SignedTransaction issue_transaction = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>
getIssueTransactionFieldBuilder() {
if (issueTransactionBuilder_ == null) {
issueTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransaction.Builder, com.wavesplatform.protobuf.transaction.TransactionOuterClass.SignedTransactionOrBuilder>(
getIssueTransaction(),
getParentForChildren(),
isClean());
issueTransaction_ = null;
}
return issueTransactionBuilder_;
}
private long sponsorBalance_ ;
/**
* int64 sponsor_balance = 10;
* @return The sponsorBalance.
*/
public long getSponsorBalance() {
return sponsorBalance_;
}
/**
* int64 sponsor_balance = 10;
* @param value The sponsorBalance to set.
* @return This builder for chaining.
*/
public Builder setSponsorBalance(long value) {
sponsorBalance_ = value;
onChanged();
return this;
}
/**
* int64 sponsor_balance = 10;
* @return This builder for chaining.
*/
public Builder clearSponsorBalance() {
sponsorBalance_ = 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.AssetInfoResponse)
}
// @@protoc_insertion_point(class_scope:waves.node.grpc.AssetInfoResponse)
private static final com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse();
}
public static com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetInfoResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.api.grpc.AssetsApiOuterClass.AssetInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_AssetRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_AssetRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_NFTRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_NFTRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_NFTResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_NFTResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_node_grpc_AssetInfoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_node_grpc_AssetInfoResponse_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/assets_api.proto\022\017wave" +
"s.node.grpc\032\027waves/transaction.proto\032\"wa" +
"ves/node/grpc/accounts_api.proto\" \n\014Asse" +
"tRequest\022\020\n\010asset_id\030\001 \001(\014\"D\n\nNFTRequest" +
"\022\017\n\007address\030\001 \001(\014\022\r\n\005limit\030\002 \001(\005\022\026\n\016afte" +
"r_asset_id\030\003 \001(\014\"W\n\013NFTResponse\022\020\n\010asset" +
"_id\030\001 \001(\014\0226\n\nasset_info\030\002 \001(\0132\".waves.no" +
"de.grpc.AssetInfoResponse\"\222\002\n\021AssetInfoR" +
"esponse\022\016\n\006issuer\030\001 \001(\014\022\014\n\004name\030\002 \001(\t\022\023\n" +
"\013description\030\003 \001(\t\022\020\n\010decimals\030\004 \001(\005\022\022\n\n" +
"reissuable\030\005 \001(\010\022\024\n\014total_volume\030\006 \001(\003\022+" +
"\n\006script\030\007 \001(\0132\033.waves.node.grpc.ScriptD" +
"ata\022\023\n\013sponsorship\030\010 \001(\003\0223\n\021issue_transa" +
"ction\030\013 \001(\0132\030.waves.SignedTransaction\022\027\n" +
"\017sponsor_balance\030\n \001(\0032\244\001\n\tAssetsApi\022L\n\007" +
"GetInfo\022\035.waves.node.grpc.AssetRequest\032\"" +
".waves.node.grpc.AssetInfoResponse\022I\n\nGe" +
"tNFTList\022\033.waves.node.grpc.NFTRequest\032\034." +
"waves.node.grpc.NFTResponse0\001Bs\n\032com.wav" +
"esplatform.api.grpcZCgithub.com/wavespla" +
"tform/gowaves/pkg/grpc/generated/waves/n" +
"ode/grpc\252\002\017Waves.Node.Grpcb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor(),
com.wavesplatform.api.grpc.AccountsApiOuterClass.getDescriptor(),
});
internal_static_waves_node_grpc_AssetRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_waves_node_grpc_AssetRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_AssetRequest_descriptor,
new java.lang.String[] { "AssetId", });
internal_static_waves_node_grpc_NFTRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_waves_node_grpc_NFTRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_NFTRequest_descriptor,
new java.lang.String[] { "Address", "Limit", "AfterAssetId", });
internal_static_waves_node_grpc_NFTResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_waves_node_grpc_NFTResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_NFTResponse_descriptor,
new java.lang.String[] { "AssetId", "AssetInfo", });
internal_static_waves_node_grpc_AssetInfoResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_waves_node_grpc_AssetInfoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_node_grpc_AssetInfoResponse_descriptor,
new java.lang.String[] { "Issuer", "Name", "Description", "Decimals", "Reissuable", "TotalVolume", "Script", "Sponsorship", "IssueTransaction", "SponsorBalance", });
com.wavesplatform.protobuf.transaction.TransactionOuterClass.getDescriptor();
com.wavesplatform.api.grpc.AccountsApiOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}