
com.wavesplatform.protobuf.order.OrderOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: waves/order.proto
// Protobuf Java Version: 3.25.1
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();
}
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_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes amount_asset_id = 1;
* @return The amountAssetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAmountAssetId() {
return amountAssetId_;
}
public static final int PRICE_ASSET_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString priceAssetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes price_asset_id = 2;
* @return The priceAssetId.
*/
@java.lang.Override
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_);
}
getUnknownFields().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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.amountAssetId_ = amountAssetId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.priceAssetId_ = priceAssetId_;
}
}
@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.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
amountAssetId_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
priceAssetId_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString amountAssetId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes amount_asset_id = 1;
* @return The amountAssetId.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes amount_asset_id = 1;
* @return This builder for chaining.
*/
public Builder clearAmountAssetId() {
bitField0_ = (bitField0_ & ~0x00000001);
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.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes price_asset_id = 2;
* @return This builder for chaining.
*/
public Builder clearPriceAssetId() {
bitField0_ = (bitField0_ & ~0x00000002);
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.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 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);
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The enum numeric value on the wire for priceMode.
*/
int getPriceModeValue();
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The priceMode.
*/
com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode getPriceMode();
/**
* bytes attachment = 15;
* @return The attachment.
*/
com.google.protobuf.ByteString getAttachment();
/**
* bytes sender_public_key = 2;
* @return Whether the senderPublicKey field is set.
*/
boolean hasSenderPublicKey();
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
com.google.protobuf.ByteString getSenderPublicKey();
/**
* bytes eip712_signature = 13;
* @return Whether the eip712Signature field is set.
*/
boolean hasEip712Signature();
/**
* bytes eip712_signature = 13;
* @return The eip712Signature.
*/
com.google.protobuf.ByteString getEip712Signature();
com.wavesplatform.protobuf.order.OrderOuterClass.Order.SenderCase getSenderCase();
}
/**
* 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() {
matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
orderSide_ = 0;
proofs_ = emptyList(com.google.protobuf.ByteString.class);
priceMode_ = 0;
attachment_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Order();
}
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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return 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)
}
/**
* Protobuf enum {@code waves.Order.PriceMode}
*/
public enum PriceMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DEFAULT = 0;
*/
DEFAULT(0),
/**
* FIXED_DECIMALS = 1;
*/
FIXED_DECIMALS(1),
/**
* ASSET_DECIMALS = 2;
*/
ASSET_DECIMALS(2),
UNRECOGNIZED(-1),
;
/**
* DEFAULT = 0;
*/
public static final int DEFAULT_VALUE = 0;
/**
* FIXED_DECIMALS = 1;
*/
public static final int FIXED_DECIMALS_VALUE = 1;
/**
* ASSET_DECIMALS = 2;
*/
public static final int ASSET_DECIMALS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PriceMode 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 PriceMode forNumber(int value) {
switch (value) {
case 0: return DEFAULT;
case 1: return FIXED_DECIMALS;
case 2: return ASSET_DECIMALS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PriceMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PriceMode findValueByNumber(int number) {
return PriceMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.wavesplatform.protobuf.order.OrderOuterClass.Order.getDescriptor().getEnumTypes().get(1);
}
private static final PriceMode[] VALUES = values();
public static PriceMode 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 PriceMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:waves.Order.PriceMode)
}
private int bitField0_;
private int senderCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object sender_;
public enum SenderCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SENDER_PUBLIC_KEY(2),
EIP712_SIGNATURE(13),
SENDER_NOT_SET(0);
private final int value;
private SenderCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SenderCase valueOf(int value) {
return forNumber(value);
}
public static SenderCase forNumber(int value) {
switch (value) {
case 2: return SENDER_PUBLIC_KEY;
case 13: return EIP712_SIGNATURE;
case 0: return SENDER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SenderCase
getSenderCase() {
return SenderCase.forNumber(
senderCase_);
}
public static final int CHAIN_ID_FIELD_NUMBER = 1;
private int chainId_ = 0;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
@java.lang.Override
public int getChainId() {
return chainId_;
}
public static final int MATCHER_PUBLIC_KEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes matcher_public_key = 3;
* @return The matcherPublicKey.
*/
@java.lang.Override
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.
*/
@java.lang.Override
public boolean hasAssetPair() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .waves.AssetPair asset_pair = 4;
* @return The assetPair.
*/
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair getAssetPair() {
return assetPair_ == null ? com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance() : assetPair_;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPairOrBuilder getAssetPairOrBuilder() {
return assetPair_ == null ? com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance() : assetPair_;
}
public static final int ORDER_SIDE_FIELD_NUMBER = 5;
private int orderSide_ = 0;
/**
* .waves.Order.Side order_side = 5;
* @return The enum numeric value on the wire for orderSide.
*/
@java.lang.Override public int getOrderSideValue() {
return orderSide_;
}
/**
* .waves.Order.Side order_side = 5;
* @return The orderSide.
*/
@java.lang.Override public com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side getOrderSide() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.forNumber(orderSide_);
return result == null ? com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.UNRECOGNIZED : result;
}
public static final int AMOUNT_FIELD_NUMBER = 6;
private long amount_ = 0L;
/**
* int64 amount = 6;
* @return The amount.
*/
@java.lang.Override
public long getAmount() {
return amount_;
}
public static final int PRICE_FIELD_NUMBER = 7;
private long price_ = 0L;
/**
* int64 price = 7;
* @return The price.
*/
@java.lang.Override
public long getPrice() {
return price_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 8;
private long timestamp_ = 0L;
/**
* int64 timestamp = 8;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int EXPIRATION_FIELD_NUMBER = 9;
private long expiration_ = 0L;
/**
* int64 expiration = 9;
* @return The expiration.
*/
@java.lang.Override
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.
*/
@java.lang.Override
public boolean hasMatcherFee() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .waves.Amount matcher_fee = 10;
* @return The matcherFee.
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.Amount getMatcherFee() {
return matcherFee_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : matcherFee_;
}
/**
* .waves.Amount matcher_fee = 10;
*/
@java.lang.Override
public com.wavesplatform.protobuf.AmountOuterClass.AmountOrBuilder getMatcherFeeOrBuilder() {
return matcherFee_ == null ? com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance() : matcherFee_;
}
public static final int VERSION_FIELD_NUMBER = 11;
private int version_ = 0;
/**
* int32 version = 11;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
public static final int PROOFS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufList proofs_ =
emptyList(com.google.protobuf.ByteString.class);
/**
* repeated bytes proofs = 12;
* @return A list containing the proofs.
*/
@java.lang.Override
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);
}
public static final int PRICE_MODE_FIELD_NUMBER = 14;
private int priceMode_ = 0;
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The enum numeric value on the wire for priceMode.
*/
@java.lang.Override public int getPriceModeValue() {
return priceMode_;
}
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The priceMode.
*/
@java.lang.Override public com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode getPriceMode() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.forNumber(priceMode_);
return result == null ? com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.UNRECOGNIZED : result;
}
public static final int ATTACHMENT_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString attachment_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes attachment = 15;
* @return The attachment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAttachment() {
return attachment_;
}
public static final int SENDER_PUBLIC_KEY_FIELD_NUMBER = 2;
/**
* bytes sender_public_key = 2;
* @return Whether the senderPublicKey field is set.
*/
@java.lang.Override
public boolean hasSenderPublicKey() {
return senderCase_ == 2;
}
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSenderPublicKey() {
if (senderCase_ == 2) {
return (com.google.protobuf.ByteString) sender_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int EIP712_SIGNATURE_FIELD_NUMBER = 13;
/**
* bytes eip712_signature = 13;
* @return Whether the eip712Signature field is set.
*/
@java.lang.Override
public boolean hasEip712Signature() {
return senderCase_ == 13;
}
/**
* bytes eip712_signature = 13;
* @return The eip712Signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEip712Signature() {
if (senderCase_ == 13) {
return (com.google.protobuf.ByteString) sender_;
}
return com.google.protobuf.ByteString.EMPTY;
}
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 (senderCase_ == 2) {
output.writeBytes(
2, (com.google.protobuf.ByteString) sender_);
}
if (!matcherPublicKey_.isEmpty()) {
output.writeBytes(3, matcherPublicKey_);
}
if (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
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));
}
if (senderCase_ == 13) {
output.writeBytes(
13, (com.google.protobuf.ByteString) sender_);
}
if (priceMode_ != com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.DEFAULT.getNumber()) {
output.writeEnum(14, priceMode_);
}
if (!attachment_.isEmpty()) {
output.writeBytes(15, attachment_);
}
getUnknownFields().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 (senderCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
2, (com.google.protobuf.ByteString) sender_);
}
if (!matcherPublicKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, matcherPublicKey_);
}
if (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
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();
}
if (senderCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
13, (com.google.protobuf.ByteString) sender_);
}
if (priceMode_ != com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, priceMode_);
}
if (!attachment_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, attachment_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wavesplatform.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 (!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 (priceMode_ != other.priceMode_) return false;
if (!getAttachment()
.equals(other.getAttachment())) return false;
if (!getSenderCase().equals(other.getSenderCase())) return false;
switch (senderCase_) {
case 2:
if (!getSenderPublicKey()
.equals(other.getSenderPublicKey())) return false;
break;
case 13:
if (!getEip712Signature()
.equals(other.getEip712Signature())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getChainId();
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 = (37 * hash) + PRICE_MODE_FIELD_NUMBER;
hash = (53 * hash) + priceMode_;
hash = (37 * hash) + ATTACHMENT_FIELD_NUMBER;
hash = (53 * hash) + getAttachment().hashCode();
switch (senderCase_) {
case 2:
hash = (37 * hash) + SENDER_PUBLIC_KEY_FIELD_NUMBER;
hash = (53 * hash) + getSenderPublicKey().hashCode();
break;
case 13:
hash = (37 * hash) + EIP712_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getEip712Signature().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().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) {
getAssetPairFieldBuilder();
getMatcherFeeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
chainId_ = 0;
matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
assetPair_ = null;
if (assetPairBuilder_ != null) {
assetPairBuilder_.dispose();
assetPairBuilder_ = null;
}
orderSide_ = 0;
amount_ = 0L;
price_ = 0L;
timestamp_ = 0L;
expiration_ = 0L;
matcherFee_ = null;
if (matcherFeeBuilder_ != null) {
matcherFeeBuilder_.dispose();
matcherFeeBuilder_ = null;
}
version_ = 0;
proofs_ = emptyList(com.google.protobuf.ByteString.class);
priceMode_ = 0;
attachment_ = com.google.protobuf.ByteString.EMPTY;
senderCase_ = 0;
sender_ = null;
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);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.wavesplatform.protobuf.order.OrderOuterClass.Order result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.chainId_ = chainId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.matcherPublicKey_ = matcherPublicKey_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.assetPair_ = assetPairBuilder_ == null
? assetPair_
: assetPairBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.orderSide_ = orderSide_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.amount_ = amount_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.price_ = price_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.timestamp_ = timestamp_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.expiration_ = expiration_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.matcherFee_ = matcherFeeBuilder_ == null
? matcherFee_
: matcherFeeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
proofs_.makeImmutable();
result.proofs_ = proofs_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.priceMode_ = priceMode_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.attachment_ = attachment_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.wavesplatform.protobuf.order.OrderOuterClass.Order result) {
result.senderCase_ = senderCase_;
result.sender_ = this.sender_;
}
@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.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_;
proofs_.makeImmutable();
bitField0_ |= 0x00000400;
} else {
ensureProofsIsMutable();
proofs_.addAll(other.proofs_);
}
onChanged();
}
if (other.priceMode_ != 0) {
setPriceModeValue(other.getPriceModeValue());
}
if (other.getAttachment() != com.google.protobuf.ByteString.EMPTY) {
setAttachment(other.getAttachment());
}
switch (other.getSenderCase()) {
case SENDER_PUBLIC_KEY: {
setSenderPublicKey(other.getSenderPublicKey());
break;
}
case EIP712_SIGNATURE: {
setEip712Signature(other.getEip712Signature());
break;
}
case SENDER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
chainId_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
sender_ = input.readBytes();
senderCase_ = 2;
break;
} // case 18
case 26: {
matcherPublicKey_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
case 34: {
input.readMessage(
getAssetPairFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
case 40: {
orderSide_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 40
case 48: {
amount_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 48
case 56: {
price_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 56
case 64: {
timestamp_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 64
case 72: {
expiration_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 72
case 82: {
input.readMessage(
getMatcherFeeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 82
case 88: {
version_ = input.readInt32();
bitField0_ |= 0x00000200;
break;
} // case 88
case 98: {
com.google.protobuf.ByteString v = input.readBytes();
ensureProofsIsMutable();
proofs_.add(v);
break;
} // case 98
case 106: {
sender_ = input.readBytes();
senderCase_ = 13;
break;
} // case 106
case 112: {
priceMode_ = input.readEnum();
bitField0_ |= 0x00000800;
break;
} // case 112
case 122: {
attachment_ = input.readBytes();
bitField0_ |= 0x00001000;
break;
} // case 122
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int senderCase_ = 0;
private java.lang.Object sender_;
public SenderCase
getSenderCase() {
return SenderCase.forNumber(
senderCase_);
}
public Builder clearSender() {
senderCase_ = 0;
sender_ = null;
onChanged();
return this;
}
private int bitField0_;
private int chainId_ ;
/**
* int32 chain_id = 1;
* @return The chainId.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 chain_id = 1;
* @return This builder for chaining.
*/
public Builder clearChainId() {
bitField0_ = (bitField0_ & ~0x00000001);
chainId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString matcherPublicKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes matcher_public_key = 3;
* @return The matcherPublicKey.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes matcher_public_key = 3;
* @return This builder for chaining.
*/
public Builder clearMatcherPublicKey() {
bitField0_ = (bitField0_ & ~0x00000002);
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 ((bitField0_ & 0x00000004) != 0);
}
/**
* .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;
} else {
assetPairBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder setAssetPair(
com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder builderForValue) {
if (assetPairBuilder_ == null) {
assetPair_ = builderForValue.build();
} else {
assetPairBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder mergeAssetPair(com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair value) {
if (assetPairBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
assetPair_ != null &&
assetPair_ != com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.getDefaultInstance()) {
getAssetPairBuilder().mergeFrom(value);
} else {
assetPair_ = value;
}
} else {
assetPairBuilder_.mergeFrom(value);
}
if (assetPair_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public Builder clearAssetPair() {
bitField0_ = (bitField0_ & ~0x00000004);
assetPair_ = null;
if (assetPairBuilder_ != null) {
assetPairBuilder_.dispose();
assetPairBuilder_ = null;
}
onChanged();
return this;
}
/**
* .waves.AssetPair asset_pair = 4;
*/
public com.wavesplatform.protobuf.order.OrderOuterClass.AssetPair.Builder getAssetPairBuilder() {
bitField0_ |= 0x00000004;
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.
*/
@java.lang.Override 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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .waves.Order.Side order_side = 5;
* @return The orderSide.
*/
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side getOrderSide() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.Side.forNumber(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();
}
bitField0_ |= 0x00000008;
orderSide_ = value.getNumber();
onChanged();
return this;
}
/**
* .waves.Order.Side order_side = 5;
* @return This builder for chaining.
*/
public Builder clearOrderSide() {
bitField0_ = (bitField0_ & ~0x00000008);
orderSide_ = 0;
onChanged();
return this;
}
private long amount_ ;
/**
* int64 amount = 6;
* @return The amount.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 amount = 6;
* @return This builder for chaining.
*/
public Builder clearAmount() {
bitField0_ = (bitField0_ & ~0x00000010);
amount_ = 0L;
onChanged();
return this;
}
private long price_ ;
/**
* int64 price = 7;
* @return The price.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 price = 7;
* @return This builder for chaining.
*/
public Builder clearPrice() {
bitField0_ = (bitField0_ & ~0x00000020);
price_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* int64 timestamp = 8;
* @return The timestamp.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* int64 timestamp = 8;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000040);
timestamp_ = 0L;
onChanged();
return this;
}
private long expiration_ ;
/**
* int64 expiration = 9;
* @return The expiration.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* int64 expiration = 9;
* @return This builder for chaining.
*/
public Builder clearExpiration() {
bitField0_ = (bitField0_ & ~0x00000080);
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 ((bitField0_ & 0x00000100) != 0);
}
/**
* .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;
} else {
matcherFeeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder setMatcherFee(
com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder builderForValue) {
if (matcherFeeBuilder_ == null) {
matcherFee_ = builderForValue.build();
} else {
matcherFeeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder mergeMatcherFee(com.wavesplatform.protobuf.AmountOuterClass.Amount value) {
if (matcherFeeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
matcherFee_ != null &&
matcherFee_ != com.wavesplatform.protobuf.AmountOuterClass.Amount.getDefaultInstance()) {
getMatcherFeeBuilder().mergeFrom(value);
} else {
matcherFee_ = value;
}
} else {
matcherFeeBuilder_.mergeFrom(value);
}
if (matcherFee_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public Builder clearMatcherFee() {
bitField0_ = (bitField0_ & ~0x00000100);
matcherFee_ = null;
if (matcherFeeBuilder_ != null) {
matcherFeeBuilder_.dispose();
matcherFeeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .waves.Amount matcher_fee = 10;
*/
public com.wavesplatform.protobuf.AmountOuterClass.Amount.Builder getMatcherFeeBuilder() {
bitField0_ |= 0x00000100;
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.
*/
@java.lang.Override
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;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* int32 version = 11;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000200);
version_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufList proofs_ = emptyList(com.google.protobuf.ByteString.class);
private void ensureProofsIsMutable() {
if (!proofs_.isModifiable()) {
proofs_ = makeMutableCopy(proofs_);
}
bitField0_ |= 0x00000400;
}
/**
* repeated bytes proofs = 12;
* @return A list containing the proofs.
*/
public java.util.List
getProofsList() {
proofs_.makeImmutable();
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);
}
/**
* 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);
bitField0_ |= 0x00000400;
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);
bitField0_ |= 0x00000400;
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_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated bytes proofs = 12;
* @return This builder for chaining.
*/
public Builder clearProofs() {
proofs_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private int priceMode_ = 0;
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The enum numeric value on the wire for priceMode.
*/
@java.lang.Override public int getPriceModeValue() {
return priceMode_;
}
/**
* .waves.Order.PriceMode price_mode = 14;
* @param value The enum numeric value on the wire for priceMode to set.
* @return This builder for chaining.
*/
public Builder setPriceModeValue(int value) {
priceMode_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* .waves.Order.PriceMode price_mode = 14;
* @return The priceMode.
*/
@java.lang.Override
public com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode getPriceMode() {
com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode result = com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.forNumber(priceMode_);
return result == null ? com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode.UNRECOGNIZED : result;
}
/**
* .waves.Order.PriceMode price_mode = 14;
* @param value The priceMode to set.
* @return This builder for chaining.
*/
public Builder setPriceMode(com.wavesplatform.protobuf.order.OrderOuterClass.Order.PriceMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
priceMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .waves.Order.PriceMode price_mode = 14;
* @return This builder for chaining.
*/
public Builder clearPriceMode() {
bitField0_ = (bitField0_ & ~0x00000800);
priceMode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString attachment_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes attachment = 15;
* @return The attachment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAttachment() {
return attachment_;
}
/**
* bytes attachment = 15;
* @param value The attachment to set.
* @return This builder for chaining.
*/
public Builder setAttachment(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
attachment_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* bytes attachment = 15;
* @return This builder for chaining.
*/
public Builder clearAttachment() {
bitField0_ = (bitField0_ & ~0x00001000);
attachment_ = getDefaultInstance().getAttachment();
onChanged();
return this;
}
/**
* bytes sender_public_key = 2;
* @return Whether the senderPublicKey field is set.
*/
public boolean hasSenderPublicKey() {
return senderCase_ == 2;
}
/**
* bytes sender_public_key = 2;
* @return The senderPublicKey.
*/
public com.google.protobuf.ByteString getSenderPublicKey() {
if (senderCase_ == 2) {
return (com.google.protobuf.ByteString) sender_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* 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(); }
senderCase_ = 2;
sender_ = value;
onChanged();
return this;
}
/**
* bytes sender_public_key = 2;
* @return This builder for chaining.
*/
public Builder clearSenderPublicKey() {
if (senderCase_ == 2) {
senderCase_ = 0;
sender_ = null;
onChanged();
}
return this;
}
/**
* bytes eip712_signature = 13;
* @return Whether the eip712Signature field is set.
*/
public boolean hasEip712Signature() {
return senderCase_ == 13;
}
/**
* bytes eip712_signature = 13;
* @return The eip712Signature.
*/
public com.google.protobuf.ByteString getEip712Signature() {
if (senderCase_ == 13) {
return (com.google.protobuf.ByteString) sender_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes eip712_signature = 13;
* @param value The eip712Signature to set.
* @return This builder for chaining.
*/
public Builder setEip712Signature(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
senderCase_ = 13;
sender_ = value;
onChanged();
return this;
}
/**
* bytes eip712_signature = 13;
* @return This builder for chaining.
*/
public Builder clearEip712Signature() {
if (senderCase_ == 13) {
senderCase_ = 0;
sender_ = null;
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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wavesplatform.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\"\355\003\n\005Order\022\020" +
"\n\010chain_id\030\001 \001(\005\022\032\n\022matcher_public_key\030\003" +
" \001(\014\022$\n\nasset_pair\030\004 \001(\0132\020.waves.AssetPa" +
"ir\022%\n\norder_side\030\005 \001(\0162\021.waves.Order.Sid" +
"e\022\016\n\006amount\030\006 \001(\003\022\r\n\005price\030\007 \001(\003\022\021\n\ttime" +
"stamp\030\010 \001(\003\022\022\n\nexpiration\030\t \001(\003\022\"\n\013match" +
"er_fee\030\n \001(\0132\r.waves.Amount\022\017\n\007version\030\013" +
" \001(\005\022\016\n\006proofs\030\014 \003(\014\022*\n\nprice_mode\030\016 \001(\016" +
"2\026.waves.Order.PriceMode\022\022\n\nattachment\030\017" +
" \001(\014\022\033\n\021sender_public_key\030\002 \001(\014H\000\022\032\n\020eip" +
"712_signature\030\r \001(\014H\000\"\031\n\004Side\022\007\n\003BUY\020\000\022\010" +
"\n\004SELL\020\001\"@\n\tPriceMode\022\013\n\007DEFAULT\020\000\022\022\n\016FI" +
"XED_DECIMALS\020\001\022\022\n\016ASSET_DECIMALS\020\002B\010\n\006se" +
"nderBe\n com.wavesplatform.protobuf.order" +
"Z9github.com/wavesplatform/gowaves/pkg/g" +
"rpc/generated/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", "MatcherPublicKey", "AssetPair", "OrderSide", "Amount", "Price", "Timestamp", "Expiration", "MatcherFee", "Version", "Proofs", "PriceMode", "Attachment", "SenderPublicKey", "Eip712Signature", "Sender", });
com.wavesplatform.protobuf.AmountOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy