public static final class Model.MagicItemResource extends com.google.protobuf.GeneratedMessageLite<Model.MagicItemResource,Model.MagicItemResource.Builder> implements Model.MagicItemResourceOrBuilder
ca.isupeene.charactersheet.cdk.MagicItemResource| Modifier and Type | Class and Description |
|---|---|
static class |
Model.MagicItemResource.Builder
Protobuf type
ca.isupeene.charactersheet.cdk.MagicItemResource |
static class |
Model.MagicItemResource.RecoveryType
TODO: Handle Cloak of Invisibility style of recovery
|
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MergeFromVisitor, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm, com.google.protobuf.GeneratedMessageLite.Visitor| Modifier and Type | Field and Description |
|---|---|
static int |
CHARGES_FIELD_NUMBER |
static int |
CORRELATION_KEY_FIELD_NUMBER |
static int |
RECOVERY_DIE_FIELD_NUMBER |
static int |
RECOVERY_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1) |
int |
getCharges()
optional int32 charges = 1; |
java.lang.String |
getCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
com.google.protobuf.ByteString |
getCorrelationKeyBytes()
If present, this key must correlate to an ItemEnchantment of type EFFECT
to indicate which effect is activated by a use of this resource.
|
static Model.MagicItemResource |
getDefaultInstance() |
int |
getRecoveryDie()
Used for DIE recovery type.
|
Model.MagicItemResource.RecoveryType |
getRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
int |
getRecoveryTypeValue()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2; |
int |
getSerializedSize() |
static Model.MagicItemResource.Builder |
newBuilder() |
static Model.MagicItemResource.Builder |
newBuilder(Model.MagicItemResource prototype) |
static Model.MagicItemResource |
parseDelimitedFrom(java.io.InputStream input) |
static Model.MagicItemResource |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.MagicItemResource |
parseFrom(byte[] data) |
static Model.MagicItemResource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.MagicItemResource |
parseFrom(com.google.protobuf.ByteString data) |
static Model.MagicItemResource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.MagicItemResource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Model.MagicItemResource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.MagicItemResource |
parseFrom(java.io.InputStream input) |
static Model.MagicItemResource |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Model.MagicItemResource> |
parser() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int CHARGES_FIELD_NUMBER
public static final int RECOVERY_TYPE_FIELD_NUMBER
public static final int RECOVERY_DIE_FIELD_NUMBER
public static final int CORRELATION_KEY_FIELD_NUMBER
public int getCharges()
optional int32 charges = 1;getCharges in interface Model.MagicItemResourceOrBuilderpublic int getRecoveryTypeValue()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;getRecoveryTypeValue in interface Model.MagicItemResourceOrBuilderpublic Model.MagicItemResource.RecoveryType getRecoveryType()
optional .ca.isupeene.charactersheet.cdk.MagicItemResource.RecoveryType recovery_type = 2;getRecoveryType in interface Model.MagicItemResourceOrBuilderpublic int getRecoveryDie()
Used for DIE recovery type. This is allowed to be a number like d3 (1d6 / 2)
optional int32 recovery_die = 3;getRecoveryDie in interface Model.MagicItemResourceOrBuilderpublic java.lang.String getCorrelationKey()
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;getCorrelationKey in interface Model.MagicItemResourceOrBuilderpublic com.google.protobuf.ByteString getCorrelationKeyBytes()
If present, this key must correlate to an ItemEnchantment of type EFFECT to indicate which effect is activated by a use of this resource. If it's empty, it's presumed that the effect is of type "OTHER" TODO: Figure it if correlation to the OTHER effect is needed, and if so, how to implement
optional string correlation_key = 4;getCorrelationKeyBytes in interface Model.MagicItemResourceOrBuilderpublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitepublic static Model.MagicItemResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.MagicItemResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.MagicItemResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.MagicItemResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.MagicItemResource parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.MagicItemResource.Builder newBuilder()
public static Model.MagicItemResource.Builder newBuilder(Model.MagicItemResource prototype)
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Model.MagicItemResource,Model.MagicItemResource.Builder>public static Model.MagicItemResource getDefaultInstance()
public static com.google.protobuf.Parser<Model.MagicItemResource> parser()