public static final class Model.ResourceState extends com.google.protobuf.GeneratedMessageLite<Model.ResourceState,Model.ResourceState.Builder> implements Model.ResourceStateOrBuilder
ca.isupeene.charactersheet.cdk.ResourceState| Modifier and Type | Class and Description |
|---|---|
static class |
Model.ResourceState.Builder
Protobuf type
ca.isupeene.charactersheet.cdk.ResourceState |
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 |
QUANTITY_FIELD_NUMBER |
static int |
SOURCE_ID_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) |
static Model.ResourceState |
getDefaultInstance() |
int |
getQuantity()
The current quantity of the resource remaining.
|
int |
getSerializedSize() |
Model.SourceId |
getSourceId()
Refers to the source_id of the corresponding RESOURCE feature.
|
boolean |
hasSourceId()
Refers to the source_id of the corresponding RESOURCE feature.
|
static Model.ResourceState.Builder |
newBuilder() |
static Model.ResourceState.Builder |
newBuilder(Model.ResourceState prototype) |
static Model.ResourceState |
parseDelimitedFrom(java.io.InputStream input) |
static Model.ResourceState |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.ResourceState |
parseFrom(byte[] data) |
static Model.ResourceState |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.ResourceState |
parseFrom(com.google.protobuf.ByteString data) |
static Model.ResourceState |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.ResourceState |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Model.ResourceState |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Model.ResourceState |
parseFrom(java.io.InputStream input) |
static Model.ResourceState |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Model.ResourceState> |
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 SOURCE_ID_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER
public boolean hasSourceId()
Refers to the source_id of the corresponding RESOURCE feature.
optional .ca.isupeene.charactersheet.cdk.SourceId source_id = 1;hasSourceId in interface Model.ResourceStateOrBuilderpublic Model.SourceId getSourceId()
Refers to the source_id of the corresponding RESOURCE feature.
optional .ca.isupeene.charactersheet.cdk.SourceId source_id = 1;getSourceId in interface Model.ResourceStateOrBuilderpublic int getQuantity()
The current quantity of the resource remaining.
optional int32 quantity = 2;getQuantity in interface Model.ResourceStateOrBuilderpublic 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.ResourceState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.ResourceState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.ResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.ResourceState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Model.ResourceState parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Model.ResourceState.Builder newBuilder()
public static Model.ResourceState.Builder newBuilder(Model.ResourceState 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.ResourceState,Model.ResourceState.Builder>public static Model.ResourceState getDefaultInstance()
public static com.google.protobuf.Parser<Model.ResourceState> parser()