games.mythical.saga.sdk.proto.common.item.ItemState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saga-sdk-proto Show documentation
Show all versions of saga-sdk-proto Show documentation
Saga SDK for Java game servers
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common/item/definition.proto
package games.mythical.saga.sdk.proto.common.item;
/**
* Protobuf enum {@code saga.proto.common.item.ItemState}
*/
public enum ItemState
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Failed to perform current Item action
*
*
* FAILED = 0;
*/
FAILED(0),
/**
*
* Item issued successfully
*
*
* ISSUED = 1;
*/
ISSUED(1),
/**
*
* Item listed successfully
*
*
* LISTED = 2;
*/
LISTED(2),
/**
*
* Item transferred successfully
*
*
* TRANSFERRED = 3;
*/
TRANSFERRED(3),
/**
*
* item no longer exists on the blockchain so the API will have to keep track through transaction history
*
*
* BURNED = 4;
*/
BURNED(4),
/**
*
* Listing for Item is closed
*
*
* LISTING_CLOSED = 5;
*/
LISTING_CLOSED(5),
/**
*
* Item withdrawn successfully
*
*
* WITHDRAWN = 6 [deprecated = true];
*/
@java.lang.Deprecated
WITHDRAWN(6),
/**
*
* Item deposited successfully
*
*
* DEPOSITED = 7 [deprecated = true];
*/
@java.lang.Deprecated
DEPOSITED(7),
/**
* BRIDGED_FROM_MYTHICAL_CHAIN = 8;
*/
BRIDGED_FROM_MYTHICAL_CHAIN(8),
/**
* BRIDGED_TO_MYTHICAL_CHAIN = 9;
*/
BRIDGED_TO_MYTHICAL_CHAIN(9),
UNRECOGNIZED(-1),
;
/**
*
* Failed to perform current Item action
*
*
* FAILED = 0;
*/
public static final int FAILED_VALUE = 0;
/**
*
* Item issued successfully
*
*
* ISSUED = 1;
*/
public static final int ISSUED_VALUE = 1;
/**
*
* Item listed successfully
*
*
* LISTED = 2;
*/
public static final int LISTED_VALUE = 2;
/**
*
* Item transferred successfully
*
*
* TRANSFERRED = 3;
*/
public static final int TRANSFERRED_VALUE = 3;
/**
*
* item no longer exists on the blockchain so the API will have to keep track through transaction history
*
*
* BURNED = 4;
*/
public static final int BURNED_VALUE = 4;
/**
*
* Listing for Item is closed
*
*
* LISTING_CLOSED = 5;
*/
public static final int LISTING_CLOSED_VALUE = 5;
/**
*
* Item withdrawn successfully
*
*
* WITHDRAWN = 6 [deprecated = true];
*/
@java.lang.Deprecated public static final int WITHDRAWN_VALUE = 6;
/**
*
* Item deposited successfully
*
*
* DEPOSITED = 7 [deprecated = true];
*/
@java.lang.Deprecated public static final int DEPOSITED_VALUE = 7;
/**
* BRIDGED_FROM_MYTHICAL_CHAIN = 8;
*/
public static final int BRIDGED_FROM_MYTHICAL_CHAIN_VALUE = 8;
/**
* BRIDGED_TO_MYTHICAL_CHAIN = 9;
*/
public static final int BRIDGED_TO_MYTHICAL_CHAIN_VALUE = 9;
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 ItemState 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 ItemState forNumber(int value) {
switch (value) {
case 0: return FAILED;
case 1: return ISSUED;
case 2: return LISTED;
case 3: return TRANSFERRED;
case 4: return BURNED;
case 5: return LISTING_CLOSED;
case 6: return WITHDRAWN;
case 7: return DEPOSITED;
case 8: return BRIDGED_FROM_MYTHICAL_CHAIN;
case 9: return BRIDGED_TO_MYTHICAL_CHAIN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ItemState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ItemState findValueByNumber(int number) {
return ItemState.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 games.mythical.saga.sdk.proto.common.item.Definition.getDescriptor().getEnumTypes().get(0);
}
private static final ItemState[] VALUES = values();
public static ItemState 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 ItemState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:saga.proto.common.item.ItemState)
}