public static final class Model.Resource extends com.google.protobuf.GeneratedMessageLite<Model.Resource,Model.Resource.Builder> implements Model.ResourceOrBuilder
ca.isupeene.charactersheet.cdk.Resource| Modifier and Type | Class and Description |
|---|---|
static class |
Model.Resource.Builder
Protobuf type
ca.isupeene.charactersheet.cdk.Resource |
static class |
Model.Resource.Quantity
Protobuf type
ca.isupeene.charactersheet.cdk.Resource.Quantity |
static interface |
Model.Resource.QuantityOrBuilder |
static class |
Model.Resource.Recovery
Protobuf enum
ca.isupeene.charactersheet.cdk.Resource.Recovery |
static class |
Model.Resource.ResourceDie
Protobuf type
ca.isupeene.charactersheet.cdk.Resource.ResourceDie |
static interface |
Model.Resource.ResourceDieOrBuilder |
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 |
CORRELATION_KEY_FIELD_NUMBER |
static int |
DIE_PROGRESSION_FIELD_NUMBER |
static int |
QUANTITY_FIELD_NUMBER |
static int |
RECOVERY_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) |
java.lang.String |
getCorrelationKey()
If not empty, corresponds to the correlation key in a SPELLS_KNOWN feature.
|
com.google.protobuf.ByteString |
getCorrelationKeyBytes()
If not empty, corresponds to the correlation key in a SPELLS_KNOWN feature.
|
static Model.Resource |
getDefaultInstance() |
Model.Resource.ResourceDie |
getDieProgression(int index)
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
|
int |
getDieProgressionCount()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
|
java.util.List<Model.Resource.ResourceDie> |
getDieProgressionList()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
|
Model.Resource.ResourceDieOrBuilder |
getDieProgressionOrBuilder(int index)
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
|
java.util.List<? extends Model.Resource.ResourceDieOrBuilder> |
getDieProgressionOrBuilderList()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
|
Model.Resource.Quantity |
getQuantity()
optional .ca.isupeene.charactersheet.cdk.Resource.Quantity quantity = 1; |
Model.Resource.Recovery |
getRecovery()
optional .ca.isupeene.charactersheet.cdk.Resource.Recovery recovery = 2; |
int |
getRecoveryValue()
optional .ca.isupeene.charactersheet.cdk.Resource.Recovery recovery = 2; |
int |
getSerializedSize() |
boolean |
hasQuantity()
optional .ca.isupeene.charactersheet.cdk.Resource.Quantity quantity = 1; |
static Model.Resource.Builder |
newBuilder() |
static Model.Resource.Builder |
newBuilder(Model.Resource prototype) |
static Model.Resource |
parseDelimitedFrom(java.io.InputStream input) |
static Model.Resource |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Resource |
parseFrom(byte[] data) |
static Model.Resource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Resource |
parseFrom(com.google.protobuf.ByteString data) |
static Model.Resource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Resource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Model.Resource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.Resource |
parseFrom(java.io.InputStream input) |
static Model.Resource |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Model.Resource> |
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 QUANTITY_FIELD_NUMBER
public static final int RECOVERY_FIELD_NUMBER
public static final int DIE_PROGRESSION_FIELD_NUMBER
public static final int CORRELATION_KEY_FIELD_NUMBER
public boolean hasQuantity()
optional .ca.isupeene.charactersheet.cdk.Resource.Quantity quantity = 1;hasQuantity in interface Model.ResourceOrBuilderpublic Model.Resource.Quantity getQuantity()
optional .ca.isupeene.charactersheet.cdk.Resource.Quantity quantity = 1;getQuantity in interface Model.ResourceOrBuilderpublic int getRecoveryValue()
optional .ca.isupeene.charactersheet.cdk.Resource.Recovery recovery = 2;getRecoveryValue in interface Model.ResourceOrBuilderpublic Model.Resource.Recovery getRecovery()
optional .ca.isupeene.charactersheet.cdk.Resource.Recovery recovery = 2;getRecovery in interface Model.ResourceOrBuilderpublic java.util.List<Model.Resource.ResourceDie> getDieProgressionList()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
repeated .ca.isupeene.charactersheet.cdk.Resource.ResourceDie die_progression = 3;getDieProgressionList in interface Model.ResourceOrBuilderpublic java.util.List<? extends Model.Resource.ResourceDieOrBuilder> getDieProgressionOrBuilderList()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
repeated .ca.isupeene.charactersheet.cdk.Resource.ResourceDie die_progression = 3;public int getDieProgressionCount()
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
repeated .ca.isupeene.charactersheet.cdk.Resource.ResourceDie die_progression = 3;getDieProgressionCount in interface Model.ResourceOrBuilderpublic Model.Resource.ResourceDie getDieProgression(int index)
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
repeated .ca.isupeene.charactersheet.cdk.Resource.ResourceDie die_progression = 3;getDieProgression in interface Model.ResourceOrBuilderpublic Model.Resource.ResourceDieOrBuilder getDieProgressionOrBuilder(int index)
Used if the resource is associated with a die such as Bardic Inspiration or Combat Superiority
repeated .ca.isupeene.charactersheet.cdk.Resource.ResourceDie die_progression = 3;public java.lang.String getCorrelationKey()
If not empty, corresponds to the correlation key in a SPELLS_KNOWN feature. This resource is used to cast the spell associated with this key, and the display name of the resource will change to the name of the spell selected via that feature. TODO: Use correlation key for other effects than casting a spell. e.g. rage effect?
optional string correlation_key = 4;getCorrelationKey in interface Model.ResourceOrBuilderpublic com.google.protobuf.ByteString getCorrelationKeyBytes()
If not empty, corresponds to the correlation key in a SPELLS_KNOWN feature. This resource is used to cast the spell associated with this key, and the display name of the resource will change to the name of the spell selected via that feature. TODO: Use correlation key for other effects than casting a spell. e.g. rage effect?
optional string correlation_key = 4;getCorrelationKeyBytes in interface Model.ResourceOrBuilderpublic 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.Resource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Resource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Resource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.Resource parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.Resource.Builder newBuilder()
public static Model.Resource.Builder newBuilder(Model.Resource 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.Resource,Model.Resource.Builder>public static Model.Resource getDefaultInstance()
public static com.google.protobuf.Parser<Model.Resource> parser()