com.wavesplatform.protobuf.order.OrderOuterClass 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/order.proto
package com.wavesplatform.protobuf.order;
public final class OrderOuterClass {
private OrderOuterClass() {}
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 AssetPairOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.AssetPair)
com.google.protobuf.MessageOrBuilder {
/**
* bytes amount_asset_id = 1;
* @return The amountAssetId.
*/
com.google.protobuf.ByteString getAmountAssetId();
/**
* bytes price_asset_id = 2;
* @return The priceAssetId.
*/
com.google.protobuf.ByteString getPriceAssetId();
}
/**
* Protobuf type {@code waves.AssetPair}
*/
public static final class AssetPair extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.AssetPair)
AssetPairOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetPair.newBuilder() to construct.
private AssetPair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetPair() {
amountAssetId_ = com.google.protobuf.ByteString.EMPTY;
priceAssetId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AssetPair();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetPair(
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: {
amountAssetId_ = input.readBytes();
break;
}
case 18: {
priceAssetId_ = 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.protobuf.order.OrderOuterClass.internal_static_waves_AssetPair_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_AssetPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.class, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder.class);
}
public static final int AMOUNT_ASSET_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString amountAssetId_;
/**
* bytes amount_asset_id = 1;
* @return The amountAssetId.
*/
public com.google.protobuf.ByteString getAmountAssetId() {
return amountAssetId_;
}
public static final int PRICE_ASSET_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString priceAssetId_;
/**
* bytes price_asset_id = 2;
* @return The priceAssetId.
*/
public com.google.protobuf.ByteString getPriceAssetId() {
return priceAssetId_;
}
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 (!amountAssetId_.isEmpty()) {
output.writeBytes(1, amountAssetId_);
}
if (!priceAssetId_.isEmpty()) {
output.writeBytes(2, priceAssetId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!amountAssetId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, amountAssetId_);
}
if (!priceAssetId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, priceAssetId_);
}
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.protobuf.order.OrderOuterClass.AssetPair)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair other = (com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair) obj;
if (!getAmountAssetId()
.equals(other.getAmountAssetId())) return false;
if (!getPriceAssetId()
.equals(other.getPriceAssetId())) 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) + AMOUNT_ASSET_ID_FIELD_NUMBER;
hash = (53 * hash) + getAmountAssetId().hashCode();
hash = (37 * hash) + PRICE_ASSET_ID_FIELD_NUMBER;
hash = (53 * hash) + getPriceAssetId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair 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.protobuf.order.OrderOuterClass.AssetPair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair 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.protobuf.order.OrderOuterClass.AssetPair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair 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.protobuf.order.OrderOuterClass.AssetPair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair 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.protobuf.order.OrderOuterClass.AssetPair 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.AssetPair}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.AssetPair)
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_AssetPair_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_AssetPair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.class, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder.class);
}
// Construct using com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.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();
amountAssetId_ = com.google.protobuf.ByteString.EMPTY;
priceAssetId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_AssetPair_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getDefaultInstanceForType() {
return com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair build() {
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair buildPartial() {
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair result = new com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair(this);
result.amountAssetId_ = amountAssetId_;
result.priceAssetId_ = priceAssetId_;
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.protobuf.order.OrderOuterClass.AssetPair) {
return mergeFrom((com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair other) {
if (other == com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance()) return this;
if (other.getAmountAssetId() != com.google.protobuf.ByteString.EMPTY) {
setAmountAssetId(other.getAmountAssetId());
}
if (other.getPriceAssetId() != com.google.protobuf.ByteString.EMPTY) {
setPriceAssetId(other.getPriceAssetId());
}
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.protobuf.order.OrderOuterClass.AssetPair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString amountAssetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes amount_asset_id = 1;
* @return The amountAssetId.
*/
public com.google.protobuf.ByteString getAmountAssetId() {
return amountAssetId_;
}
/**
* bytes amount_asset_id = 1;
* @param value The amountAssetId to set.
* @return This builder for chaining.
*/
public Builder setAmountAssetId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
amountAssetId_ = value;
onChanged();
return this;
}
/**
* bytes amount_asset_id = 1;
* @return This builder for chaining.
*/
public Builder clearAmountAssetId() {
amountAssetId_ = getDefaultInstance().getAmountAssetId();
onChanged();
return this;
}
private com.google.protobuf.ByteString priceAssetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes price_asset_id = 2;
* @return The priceAssetId.
*/
public com.google.protobuf.ByteString getPriceAssetId() {
return priceAssetId_;
}
/**
* bytes price_asset_id = 2;
* @param value The priceAssetId to set.
* @return This builder for chaining.
*/
public Builder setPriceAssetId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
priceAssetId_ = value;
onChanged();
return this;
}
/**
* bytes price_asset_id = 2;
* @return This builder for chaining.
*/
public Builder clearPriceAssetId() {
priceAssetId_ = getDefaultInstance().getPriceAssetId();
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.AssetPair)
}
// @@protoc_insertion_point(class_scope:waves.AssetPair)
private static final com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair();
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetPair parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetPair(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.protobuf.order.OrderOuterClass.AssetPair getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrderOrBuilder extends
// @@protoc_insertion_point(interface_extends:waves.Order)
com.google.protobuf.MessageOrBuilder {
/**
* int32 chain_id = 1;
* @return The chainId.
*/
int getChainId();
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
com.google.protobuf.ByteString getSenderPublicKey();
/**
* bytes matcher_public_key = 3;
* @return The matcherPublicKey.
*/
com.google.protobuf.ByteString getMatcherPublicKey();
/**
* .waves.AssetPair asset_pair = 4;
* @return Whether the assetPair field is set.
*/
boolean hasAssetPair();
/**
* .waves.AssetPair asset_pair = 4;
* @return The assetPair.
*/
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getAssetPair();
/**
* .waves.AssetPair asset_pair = 4;
*/
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder getAssetPairOrBuilder();
/**
* .waves.Order.Side order_side = 5;
* @return The enum numeric value on the wire for orderSide.
*/
int getOrderSideValue();
/**
* .waves.Order.Side order_side = 5;
* @return The orderSide.
*/
com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side getOrderSide();
/**
* int64 amount = 6;
* @return The amount.
*/
long getAmount();
/**
* int64 price = 7;
* @return The price.
*/
long getPrice();
/**
* int64 timestamp = 8;
* @return The timestamp.
*/
long getTimestamp();
/**
* int64 expiration = 9;
* @return The expiration.
*/
long getExpiration();
/**
* .waves.Amount matcher_fee = 10;
* @return Whether the matcherFee field is set.
*/
boolean hasMatcherFee();
/**
* .waves.Amount matcher_fee = 10;
* @return The matcherFee.
*/
com.wavesplatform.protobuf.AmountOuterClass.Amount getMatcherFee();
/**
* .waves.Amount matcher_fee = 10;
*/
com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getMatcherFeeOrBuilder();
/**
* int32 version = 11;
* @return The version.
*/
int getVersion();
/**
* repeated bytes proofs = 12;
* @return A list containing the proofs.
*/
java.util.List getProofsList();
/**
* repeated bytes proofs = 12;
* @return The count of proofs.
*/
int getProofsCount();
/**
* repeated bytes proofs = 12;
* @param index The index of the element to return.
* @return The proofs at the given index.
*/
com.google.protobuf.ByteString getProofs(int index);
}
/**
* Protobuf type {@code waves.Order}
*/
public static final class Order extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:waves.Order)
OrderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Order.newBuilder() to construct.
private Order(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Order() {
senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
orderSide_ = 0;
proofs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Order();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Order(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
chainId_ = input.readInt32();
break;
}
case 18: {
senderPublicKey_ = input.readBytes();
break;
}
case 26: {
matcherPublicKey_ = input.readBytes();
break;
}
case 34: {
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder subBuilder = null;
if (assetPair_ != null) {
subBuilder = assetPair_.toBuilder();
}
assetPair_ = input.readMessage(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(assetPair_);
assetPair_ = subBuilder.buildPartial();
}
break;
}
case 40: {
int rawValue = input.readEnum();
orderSide_ = rawValue;
break;
}
case 48: {
amount_ = input.readInt64();
break;
}
case 56: {
price_ = input.readInt64();
break;
}
case 64: {
timestamp_ = input.readInt64();
break;
}
case 72: {
expiration_ = input.readInt64();
break;
}
case 82: {
com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder subBuilder = null;
if (matcherFee_ != null) {
subBuilder = matcherFee_.toBuilder();
}
matcherFee_ = input.readMessage(com.wavesplatform.protobuf.AmountOuterClass.Amount.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(matcherFee_);
matcherFee_ = subBuilder.buildPartial();
}
break;
}
case 88: {
version_ = input.readInt32();
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
proofs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
proofs_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
proofs_ = java.util.Collections.unmodifiableList(proofs_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.order.OrderOuterClass.Order.class, com.wavesplatform.protobuf.order.OrderOuterClass.Order.Builder.class);
}
/**
* Protobuf enum {@code waves.Order.Side}
*/
public enum Side
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BUY = 0;
*/
BUY(0),
/**
* SELL = 1;
*/
SELL(1),
UNRECOGNIZED(-1),
;
/**
* BUY = 0;
*/
public static final int BUY_VALUE = 0;
/**
* SELL = 1;
*/
public static final int SELL_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Side valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Side forNumber(int value) {
switch (value) {
case 0: return BUY;
case 1: return SELL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Side> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Side findValueByNumber(int number) {
return Side.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.wavesplatform.protobuf.order.OrderOuterClass.Order.getDescriptor().getEnumTypes().get(0);
}
private static final Side[] VALUES = values();
public static Side valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Side(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:waves.Order.Side)
}
public static final int CHAIN_ID_FIELD_NUMBER = 1;
private int chainId_;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
public int getChainId() {
return chainId_;
}
public static final int SENDER_PUBLIC_KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString senderPublicKey_;
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
public com.google.protobuf.ByteString getSenderPublicKey() {
return senderPublicKey_;
}
public static final int MATCHER_PUBLIC_KEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString matcherPublicKey_;
/**
* bytes matcher_public_key = 3;
* @return The matcherPublicKey.
*/
public com.google.protobuf.ByteString getMatcherPublicKey() {
return matcherPublicKey_;
}
public static final int ASSET_PAIR_FIELD_NUMBER = 4;
private com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair assetPair_;
/**
* .waves.AssetPair asset_pair = 4;
* @return Whether the assetPair field is set.
*/
public boolean hasAssetPair() {
return assetPair_ != null;
}
/**
* .waves.AssetPair asset_pair = 4;
* @return The assetPair.
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getAssetPair() {
return assetPair_ == null ? com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance() : assetPair_;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder getAssetPairOrBuilder() {
return getAssetPair();
}
public static final int ORDER_SIDE_FIELD_NUMBER = 5;
private int orderSide_;
/**
* .waves.Order.Side order_side = 5;
* @return The enum numeric value on the wire for orderSide.
*/
public int getOrderSideValue() {
return orderSide_;
}
/**
* .waves.Order.Side order_side = 5;
* @return The orderSide.
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side getOrderSide() {
@SuppressWarnings("deprecation")
com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.valueOf(orderSide_);
return result == null ? com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.UNRECOGNIZED : result;
}
public static final int AMOUNT_FIELD_NUMBER = 6;
private long amount_;
/**
* int64 amount = 6;
* @return The amount.
*/
public long getAmount() {
return amount_;
}
public static final int PRICE_FIELD_NUMBER = 7;
private long price_;
/**
* int64 price = 7;
* @return The price.
*/
public long getPrice() {
return price_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 8;
private long timestamp_;
/**
* int64 timestamp = 8;
* @return The timestamp.
*/
public long getTimestamp() {
return timestamp_;
}
public static final int EXPIRATION_FIELD_NUMBER = 9;
private long expiration_;
/**
* int64 expiration = 9;
* @return The expiration.
*/
public long getExpiration() {
return expiration_;
}
public static final int MATCHER_FEE_FIELD_NUMBER = 10;
private com.wavesplatform.protobuf.AmountOuterClass.Amount matcherFee_;
/**
* .waves.Amount matcher_fee = 10;
* @return Whether the matcherFee field is set.
*/
public boolean hasMatcherFee() {
return matcherFee_ != null;
}
/**
* .waves.Amount matcher_fee = 10;
* @return The matcherFee.
*/
public com.wavesplatform.protobuf.AmountOuterClass.Amount getMatcherFee() {
return matcherFee_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : matcherFee_;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getMatcherFeeOrBuilder() {
return getMatcherFee();
}
public static final int VERSION_FIELD_NUMBER = 11;
private int version_;
/**
* int32 version = 11;
* @return The version.
*/
public int getVersion() {
return version_;
}
public static final int PROOFS_FIELD_NUMBER = 12;
private java.util.List proofs_;
/**
* repeated bytes proofs = 12;
* @return A list containing the proofs.
*/
public java.util.List
getProofsList() {
return proofs_;
}
/**
* repeated bytes proofs = 12;
* @return The count of proofs.
*/
public int getProofsCount() {
return proofs_.size();
}
/**
* repeated bytes proofs = 12;
* @param index The index of the element to return.
* @return The proofs at the given index.
*/
public com.google.protobuf.ByteString getProofs(int index) {
return proofs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (chainId_ != 0) {
output.writeInt32(1, chainId_);
}
if (!senderPublicKey_.isEmpty()) {
output.writeBytes(2, senderPublicKey_);
}
if (!matcherPublicKey_.isEmpty()) {
output.writeBytes(3, matcherPublicKey_);
}
if (assetPair_ != null) {
output.writeMessage(4, getAssetPair());
}
if (orderSide_ != com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.BUY.getNumber()) {
output.writeEnum(5, orderSide_);
}
if (amount_ != 0L) {
output.writeInt64(6, amount_);
}
if (price_ != 0L) {
output.writeInt64(7, price_);
}
if (timestamp_ != 0L) {
output.writeInt64(8, timestamp_);
}
if (expiration_ != 0L) {
output.writeInt64(9, expiration_);
}
if (matcherFee_ != null) {
output.writeMessage(10, getMatcherFee());
}
if (version_ != 0) {
output.writeInt32(11, version_);
}
for (int i = 0; i < proofs_.size(); i++) {
output.writeBytes(12, proofs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (chainId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, chainId_);
}
if (!senderPublicKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, senderPublicKey_);
}
if (!matcherPublicKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, matcherPublicKey_);
}
if (assetPair_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAssetPair());
}
if (orderSide_ != com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.BUY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, orderSide_);
}
if (amount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, amount_);
}
if (price_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, price_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, timestamp_);
}
if (expiration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, expiration_);
}
if (matcherFee_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getMatcherFee());
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, version_);
}
{
int dataSize = 0;
for (int i = 0; i < proofs_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(proofs_.get(i));
}
size += dataSize;
size += 1 * getProofsList().size();
}
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.protobuf.order.OrderOuterClass.Order)) {
return super.equals(obj);
}
com.wavesplatform.protobuf.order.OrderOuterClass.Order other = (com.wavesplatform.protobuf.order.OrderOuterClass.Order) obj;
if (getChainId()
!= other.getChainId()) return false;
if (!getSenderPublicKey()
.equals(other.getSenderPublicKey())) return false;
if (!getMatcherPublicKey()
.equals(other.getMatcherPublicKey())) return false;
if (hasAssetPair() != other.hasAssetPair()) return false;
if (hasAssetPair()) {
if (!getAssetPair()
.equals(other.getAssetPair())) return false;
}
if (orderSide_ != other.orderSide_) return false;
if (getAmount()
!= other.getAmount()) return false;
if (getPrice()
!= other.getPrice()) return false;
if (getTimestamp()
!= other.getTimestamp()) return false;
if (getExpiration()
!= other.getExpiration()) return false;
if (hasMatcherFee() != other.hasMatcherFee()) return false;
if (hasMatcherFee()) {
if (!getMatcherFee()
.equals(other.getMatcherFee())) return false;
}
if (getVersion()
!= other.getVersion()) return false;
if (!getProofsList()
.equals(other.getProofsList())) 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) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId();
hash = (37 * hash) + SENDER_PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSenderPublicKey().hashCode();
hash = (37 * hash) + MATCHER_PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getMatcherPublicKey().hashCode();
if (hasAssetPair()) {
hash = (37 * hash) + ASSET_PAIR_FIELD_NUMBER;
hash = (53 * hash) + getAssetPair().hashCode();
}
hash = (37 * hash) + ORDER_SIDE_FIELD_NUMBER;
hash = (53 * hash) + orderSide_;
hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAmount());
hash = (37 * hash) + PRICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPrice());
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + EXPIRATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpiration());
if (hasMatcherFee()) {
hash = (37 * hash) + MATCHER_FEE_FIELD_NUMBER;
hash = (53 * hash) + getMatcherFee().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
if (getProofsCount() > 0) {
hash = (37 * hash) + PROOFS_FIELD_NUMBER;
hash = (53 * hash) + getProofsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order 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.protobuf.order.OrderOuterClass.Order parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order 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.protobuf.order.OrderOuterClass.Order parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order 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.protobuf.order.OrderOuterClass.Order parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order 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.protobuf.order.OrderOuterClass.Order 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.Order}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:waves.Order)
com.wavesplatform.protobuf.order.OrderOuterClass.OrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_Order_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wavesplatform.protobuf.order.OrderOuterClass.Order.class, com.wavesplatform.protobuf.order.OrderOuterClass.Order.Builder.class);
}
// Construct using com.wavesplatform.protobuf.order.OrderOuterClass.Order.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();
chainId_ = 0;
senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
if (assetPairBuilder_ == null) {
assetPair_ = null;
} else {
assetPair_ = null;
assetPairBuilder_ = null;
}
orderSide_ = 0;
amount_ = 0L;
price_ = 0L;
timestamp_ = 0L;
expiration_ = 0L;
if (matcherFeeBuilder_ == null) {
matcherFee_ = null;
} else {
matcherFee_ = null;
matcherFeeBuilder_ = null;
}
version_ = 0;
proofs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wavesplatform.protobuf.order.OrderOuterClass.internal_static_waves_Order_descriptor;
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.Order getDefaultInstanceForType() {
return com.wavesplatform.protobuf.order.OrderOuterClass.Order.getDefaultInstance();
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.Order build() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.Order buildPartial() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order result = new com.wavesplatform.protobuf.order.OrderOuterClass.Order(this);
int from_bitField0_ = bitField0_;
result.chainId_ = chainId_;
result.senderPublicKey_ = senderPublicKey_;
result.matcherPublicKey_ = matcherPublicKey_;
if (assetPairBuilder_ == null) {
result.assetPair_ = assetPair_;
} else {
result.assetPair_ = assetPairBuilder_.build();
}
result.orderSide_ = orderSide_;
result.amount_ = amount_;
result.price_ = price_;
result.timestamp_ = timestamp_;
result.expiration_ = expiration_;
if (matcherFeeBuilder_ == null) {
result.matcherFee_ = matcherFee_;
} else {
result.matcherFee_ = matcherFeeBuilder_.build();
}
result.version_ = version_;
if (((bitField0_ & 0x00000001) != 0)) {
proofs_ = java.util.Collections.unmodifiableList(proofs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.proofs_ = proofs_;
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.protobuf.order.OrderOuterClass.Order) {
return mergeFrom((com.wavesplatform.protobuf.order.OrderOuterClass.Order)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wavesplatform.protobuf.order.OrderOuterClass.Order other) {
if (other == com.wavesplatform.protobuf.order.OrderOuterClass.Order.getDefaultInstance()) return this;
if (other.getChainId() != 0) {
setChainId(other.getChainId());
}
if (other.getSenderPublicKey() != com.google.protobuf.ByteString.EMPTY) {
setSenderPublicKey(other.getSenderPublicKey());
}
if (other.getMatcherPublicKey() != com.google.protobuf.ByteString.EMPTY) {
setMatcherPublicKey(other.getMatcherPublicKey());
}
if (other.hasAssetPair()) {
mergeAssetPair(other.getAssetPair());
}
if (other.orderSide_ != 0) {
setOrderSideValue(other.getOrderSideValue());
}
if (other.getAmount() != 0L) {
setAmount(other.getAmount());
}
if (other.getPrice() != 0L) {
setPrice(other.getPrice());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.getExpiration() != 0L) {
setExpiration(other.getExpiration());
}
if (other.hasMatcherFee()) {
mergeMatcherFee(other.getMatcherFee());
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (!other.proofs_.isEmpty()) {
if (proofs_.isEmpty()) {
proofs_ = other.proofs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProofsIsMutable();
proofs_.addAll(other.proofs_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.wavesplatform.protobuf.order.OrderOuterClass.Order parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.wavesplatform.protobuf.order.OrderOuterClass.Order) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int chainId_ ;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
public int getChainId() {
return chainId_;
}
/**
* int32 chain_id = 1;
* @param value The chainId to set.
* @return This builder for chaining.
*/
public Builder setChainId(int value) {
chainId_ = value;
onChanged();
return this;
}
/**
* int32 chain_id = 1;
* @return This builder for chaining.
*/
public Builder clearChainId() {
chainId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString senderPublicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
public com.google.protobuf.ByteString getSenderPublicKey() {
return senderPublicKey_;
}
/**
* bytes sender_public_key = 2;
* @param value The senderPublicKey to set.
* @return This builder for chaining.
*/
public Builder setSenderPublicKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
senderPublicKey_ = value;
onChanged();
return this;
}
/**
* bytes sender_public_key = 2;
* @return This builder for chaining.
*/
public Builder clearSenderPublicKey() {
senderPublicKey_ = getDefaultInstance().getSenderPublicKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes matcher_public_key = 3;
* @return The matcherPublicKey.
*/
public com.google.protobuf.ByteString getMatcherPublicKey() {
return matcherPublicKey_;
}
/**
* bytes matcher_public_key = 3;
* @param value The matcherPublicKey to set.
* @return This builder for chaining.
*/
public Builder setMatcherPublicKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
matcherPublicKey_ = value;
onChanged();
return this;
}
/**
* bytes matcher_public_key = 3;
* @return This builder for chaining.
*/
public Builder clearMatcherPublicKey() {
matcherPublicKey_ = getDefaultInstance().getMatcherPublicKey();
onChanged();
return this;
}
private com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair assetPair_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder> assetPairBuilder_;
/**
* .waves.AssetPair asset_pair = 4;
* @return Whether the assetPair field is set.
*/
public boolean hasAssetPair() {
return assetPairBuilder_ != null || assetPair_ != null;
}
/**
* .waves.AssetPair asset_pair = 4;
* @return The assetPair.
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getAssetPair() {
if (assetPairBuilder_ == null) {
return assetPair_ == null ? com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance() : assetPair_;
} else {
return assetPairBuilder_.getMessage();
}
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder setAssetPair(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair value) {
if (assetPairBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetPair_ = value;
onChanged();
} else {
assetPairBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder setAssetPair(
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder builderForValue) {
if (assetPairBuilder_ == null) {
assetPair_ = builderForValue.build();
onChanged();
} else {
assetPairBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder mergeAssetPair(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair value) {
if (assetPairBuilder_ == null) {
if (assetPair_ != null) {
assetPair_ =
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.newBuilder(assetPair_).mergeFrom(value).buildPartial();
} else {
assetPair_ = value;
}
onChanged();
} else {
assetPairBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder clearAssetPair() {
if (assetPairBuilder_ == null) {
assetPair_ = null;
onChanged();
} else {
assetPair_ = null;
assetPairBuilder_ = null;
}
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder getAssetPairBuilder() {
onChanged();
return getAssetPairFieldBuilder().getBuilder();
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder getAssetPairOrBuilder() {
if (assetPairBuilder_ != null) {
return assetPairBuilder_.getMessageOrBuilder();
} else {
return assetPair_ == null ?
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance() : assetPair_;
}
}
/**
* .waves.AssetPair asset_pair = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder>
getAssetPairFieldBuilder() {
if (assetPairBuilder_ == null) {
assetPairBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder, com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder>(
getAssetPair(),
getParentForChildren(),
isClean());
assetPair_ = null;
}
return assetPairBuilder_;
}
private int orderSide_ = 0;
/**
* .waves.Order.Side order_side = 5;
* @return The enum numeric value on the wire for orderSide.
*/
public int getOrderSideValue() {
return orderSide_;
}
/**
* .waves.Order.Side order_side = 5;
* @param value The enum numeric value on the wire for orderSide to set.
* @return This builder for chaining.
*/
public Builder setOrderSideValue(int value) {
orderSide_ = value;
onChanged();
return this;
}
/**
* .waves.Order.Side order_side = 5;
* @return The orderSide.
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side getOrderSide() {
@SuppressWarnings("deprecation")
com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.valueOf(orderSide_);
return result == null ? com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.UNRECOGNIZED : result;
}
/**
* .waves.Order.Side order_side = 5;
* @param value The orderSide to set.
* @return This builder for chaining.
*/
public Builder setOrderSide(com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side value) {
if (value == null) {
throw new NullPointerException();
}
orderSide_ = value.getNumber();
onChanged();
return this;
}
/**
* .waves.Order.Side order_side = 5;
* @return This builder for chaining.
*/
public Builder clearOrderSide() {
orderSide_ = 0;
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 6;
* @return The amount.
*/
public long getAmount() {
return amount_;
}
/**
* int64 amount = 6;
* @param value The amount to set.
* @return This builder for chaining.
*/
public Builder setAmount(long value) {
amount_ = value;
onChanged();
return this;
}
/**
* int64 amount = 6;
* @return This builder for chaining.
*/
public Builder clearAmount() {
amount_ = 0L;
onChanged();
return this;
}
private long price_ ;
/**
* int64 price = 7;
* @return The price.
*/
public long getPrice() {
return price_;
}
/**
* int64 price = 7;
* @param value The price to set.
* @return This builder for chaining.
*/
public Builder setPrice(long value) {
price_ = value;
onChanged();
return this;
}
/**
* int64 price = 7;
* @return This builder for chaining.
*/
public Builder clearPrice() {
price_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 8;
* @return The timestamp.
*/
public long getTimestamp() {
return timestamp_;
}
/**
* int64 timestamp = 8;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* int64 timestamp = 8;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private long expiration_ ;
/**
* int64 expiration = 9;
* @return The expiration.
*/
public long getExpiration() {
return expiration_;
}
/**
* int64 expiration = 9;
* @param value The expiration to set.
* @return This builder for chaining.
*/
public Builder setExpiration(long value) {
expiration_ = value;
onChanged();
return this;
}
/**
* int64 expiration = 9;
* @return This builder for chaining.
*/
public Builder clearExpiration() {
expiration_ = 0L;
onChanged();
return this;
}
private com.wavesplatform.protobuf.AmountOuterClass.Amount matcherFee_;
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder> matcherFeeBuilder_;
/**
* .waves.Amount matcher_fee = 10;
* @return Whether the matcherFee field is set.
*/
public boolean hasMatcherFee() {
return matcherFeeBuilder_ != null || matcherFee_ != null;
}
/**
* .waves.Amount matcher_fee = 10;
* @return The matcherFee.
*/
public com.wavesplatform.protobuf.AmountOuterClass.Amount getMatcherFee() {
if (matcherFeeBuilder_ == null) {
return matcherFee_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : matcherFee_;
} else {
return matcherFeeBuilder_.getMessage();
}
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder setMatcherFee(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
if (matcherFeeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
matcherFee_ = value;
onChanged();
} else {
matcherFeeBuilder_.setMessage(value);
}
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder setMatcherFee(
com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
if (matcherFeeBuilder_ == null) {
matcherFee_ = builderForValue.build();
onChanged();
} else {
matcherFeeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder mergeMatcherFee(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
if (matcherFeeBuilder_ == null) {
if (matcherFee_ != null) {
matcherFee_ =
com.wavesplatform.protobuf.AmountOuterClass.Amount.newBuilder(matcherFee_).mergeFrom(value).buildPartial();
} else {
matcherFee_ = value;
}
onChanged();
} else {
matcherFeeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder clearMatcherFee() {
if (matcherFeeBuilder_ == null) {
matcherFee_ = null;
onChanged();
} else {
matcherFee_ = null;
matcherFeeBuilder_ = null;
}
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getMatcherFeeBuilder() {
onChanged();
return getMatcherFeeFieldBuilder().getBuilder();
}
/**
* .waves.Amount matcher_fee = 10;
*/
public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getMatcherFeeOrBuilder() {
if (matcherFeeBuilder_ != null) {
return matcherFeeBuilder_.getMessageOrBuilder();
} else {
return matcherFee_ == null ?
com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : matcherFee_;
}
}
/**
* .waves.Amount matcher_fee = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>
getMatcherFeeFieldBuilder() {
if (matcherFeeBuilder_ == null) {
matcherFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.wavesplatform.protobuf.AmountOuterClass.Amount, com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder, com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder>(
getMatcherFee(),
getParentForChildren(),
isClean());
matcherFee_ = null;
}
return matcherFeeBuilder_;
}
private int version_ ;
/**
* int32 version = 11;
* @return The version.
*/
public int getVersion() {
return version_;
}
/**
* int32 version = 11;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 11;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private java.util.List proofs_ = java.util.Collections.emptyList();
private void ensureProofsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
proofs_ = new java.util.ArrayList(proofs_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes proofs = 12;
* @return A list containing the proofs.
*/
public java.util.List
getProofsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(proofs_) : proofs_;
}
/**
* repeated bytes proofs = 12;
* @return The count of proofs.
*/
public int getProofsCount() {
return proofs_.size();
}
/**
* repeated bytes proofs = 12;
* @param index The index of the element to return.
* @return The proofs at the given index.
*/
public com.google.protobuf.ByteString getProofs(int index) {
return proofs_.get(index);
}
/**
* repeated bytes proofs = 12;
* @param index The index to set the value at.
* @param value The proofs to set.
* @return This builder for chaining.
*/
public Builder setProofs(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureProofsIsMutable();
proofs_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes proofs = 12;
* @param value The proofs to add.
* @return This builder for chaining.
*/
public Builder addProofs(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureProofsIsMutable();
proofs_.add(value);
onChanged();
return this;
}
/**
* repeated bytes proofs = 12;
* @param values The proofs to add.
* @return This builder for chaining.
*/
public Builder addAllProofs(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureProofsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, proofs_);
onChanged();
return this;
}
/**
* repeated bytes proofs = 12;
* @return This builder for chaining.
*/
public Builder clearProofs() {
proofs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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.Order)
}
// @@protoc_insertion_point(class_scope:waves.Order)
private static final com.wavesplatform.protobuf.order.OrderOuterClass.Order DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wavesplatform.protobuf.order.OrderOuterClass.Order();
}
public static com.wavesplatform.protobuf.order.OrderOuterClass.Order getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Order parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Order(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.protobuf.order.OrderOuterClass.Order getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_AssetPair_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_AssetPair_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_waves_Order_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_waves_Order_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\021waves/order.proto\022\005waves\032\022waves/amount" +
".proto\"<\n\tAssetPair\022\027\n\017amount_asset_id\030\001" +
" \001(\014\022\026\n\016price_asset_id\030\002 \001(\014\"\303\002\n\005Order\022\020" +
"\n\010chain_id\030\001 \001(\005\022\031\n\021sender_public_key\030\002 " +
"\001(\014\022\032\n\022matcher_public_key\030\003 \001(\014\022$\n\nasset" +
"_pair\030\004 \001(\0132\020.waves.AssetPair\022%\n\norder_s" +
"ide\030\005 \001(\0162\021.waves.Order.Side\022\016\n\006amount\030\006" +
" \001(\003\022\r\n\005price\030\007 \001(\003\022\021\n\ttimestamp\030\010 \001(\003\022\022" +
"\n\nexpiration\030\t \001(\003\022\"\n\013matcher_fee\030\n \001(\0132" +
"\r.waves.Amount\022\017\n\007version\030\013 \001(\005\022\016\n\006proof" +
"s\030\014 \003(\014\"\031\n\004Side\022\007\n\003BUY\020\000\022\010\n\004SELL\020\001Be\n co" +
"m.wavesplatform.protobuf.orderZ9github.c" +
"om/wavesplatform/gowaves/pkg/grpc/genera" +
"ted/waves\252\002\005Wavesb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.wavesplatform.protobuf.AmountOuterClass.getDescriptor(),
});
internal_static_waves_AssetPair_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_waves_AssetPair_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_AssetPair_descriptor,
new java.lang.String[] { "AmountAssetId", "PriceAssetId", });
internal_static_waves_Order_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_waves_Order_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_waves_Order_descriptor,
new java.lang.String[] { "ChainId", "SenderPublicKey", "MatcherPublicKey", "AssetPair", "OrderSide", "Amount", "Price", "Timestamp", "Expiration", "MatcherFee", "Version", "Proofs", });
com.wavesplatform.protobuf.AmountOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}