/game_server/src/com/jediflasher/game_server/messages/ServiceMethodMovement.java
http://mmorpg-client-server-learning.googlecode.com/ · Java · 119 lines · 99 code · 16 blank · 4 comment · 3 complexity · 3eeb57fb4b89657b6bd04974e1983f4b MD5 · raw file
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: ServiceMethodMovement.proto
- package com.jediflasher.game_server.messages;
- public final class ServiceMethodMovement {
- private ServiceMethodMovement() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public enum MethodMovement
- implements com.google.protobuf.ProtocolMessageEnum {
- WORLD_INFO(0, 1),
- USERS_ADD(1, 2),
- USERS_REMOVE(2, 3),
- CHARACTER_INFO(3, 4),
- CHARACTER_MOVE(4, 5),
- ;
-
- public static final int WORLD_INFO_VALUE = 1;
- public static final int USERS_ADD_VALUE = 2;
- public static final int USERS_REMOVE_VALUE = 3;
- public static final int CHARACTER_INFO_VALUE = 4;
- public static final int CHARACTER_MOVE_VALUE = 5;
-
-
- public final int getNumber() { return value; }
-
- public static MethodMovement valueOf(int value) {
- switch (value) {
- case 1: return WORLD_INFO;
- case 2: return USERS_ADD;
- case 3: return USERS_REMOVE;
- case 4: return CHARACTER_INFO;
- case 5: return CHARACTER_MOVE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<MethodMovement>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<MethodMovement>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<MethodMovement>() {
- public MethodMovement findValueByNumber(int number) {
- return MethodMovement.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return com.jediflasher.game_server.messages.ServiceMethodMovement.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final MethodMovement[] VALUES = {
- WORLD_INFO, USERS_ADD, USERS_REMOVE, CHARACTER_INFO, CHARACTER_MOVE,
- };
-
- public static MethodMovement valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private MethodMovement(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:MethodMovement)
- }
-
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\033ServiceMethodMovement.proto*i\n\016MethodM" +
- "ovement\022\016\n\nWORLD_INFO\020\001\022\r\n\tUSERS_ADD\020\002\022\020" +
- "\n\014USERS_REMOVE\020\003\022\022\n\016CHARACTER_INFO\020\004\022\022\n\016" +
- "CHARACTER_MOVE\020\005B&\n$com.jediflasher.game" +
- "_server.messages"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@protoc_insertion_point(outer_class_scope)
- }