/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

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: ServiceMethodMovement.proto
  3. package com.jediflasher.game_server.messages;
  4. public final class ServiceMethodMovement {
  5. private ServiceMethodMovement() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public enum MethodMovement
  10. implements com.google.protobuf.ProtocolMessageEnum {
  11. WORLD_INFO(0, 1),
  12. USERS_ADD(1, 2),
  13. USERS_REMOVE(2, 3),
  14. CHARACTER_INFO(3, 4),
  15. CHARACTER_MOVE(4, 5),
  16. ;
  17. public static final int WORLD_INFO_VALUE = 1;
  18. public static final int USERS_ADD_VALUE = 2;
  19. public static final int USERS_REMOVE_VALUE = 3;
  20. public static final int CHARACTER_INFO_VALUE = 4;
  21. public static final int CHARACTER_MOVE_VALUE = 5;
  22. public final int getNumber() { return value; }
  23. public static MethodMovement valueOf(int value) {
  24. switch (value) {
  25. case 1: return WORLD_INFO;
  26. case 2: return USERS_ADD;
  27. case 3: return USERS_REMOVE;
  28. case 4: return CHARACTER_INFO;
  29. case 5: return CHARACTER_MOVE;
  30. default: return null;
  31. }
  32. }
  33. public static com.google.protobuf.Internal.EnumLiteMap<MethodMovement>
  34. internalGetValueMap() {
  35. return internalValueMap;
  36. }
  37. private static com.google.protobuf.Internal.EnumLiteMap<MethodMovement>
  38. internalValueMap =
  39. new com.google.protobuf.Internal.EnumLiteMap<MethodMovement>() {
  40. public MethodMovement findValueByNumber(int number) {
  41. return MethodMovement.valueOf(number);
  42. }
  43. };
  44. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  45. getValueDescriptor() {
  46. return getDescriptor().getValues().get(index);
  47. }
  48. public final com.google.protobuf.Descriptors.EnumDescriptor
  49. getDescriptorForType() {
  50. return getDescriptor();
  51. }
  52. public static final com.google.protobuf.Descriptors.EnumDescriptor
  53. getDescriptor() {
  54. return com.jediflasher.game_server.messages.ServiceMethodMovement.getDescriptor().getEnumTypes().get(0);
  55. }
  56. private static final MethodMovement[] VALUES = {
  57. WORLD_INFO, USERS_ADD, USERS_REMOVE, CHARACTER_INFO, CHARACTER_MOVE,
  58. };
  59. public static MethodMovement valueOf(
  60. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  61. if (desc.getType() != getDescriptor()) {
  62. throw new java.lang.IllegalArgumentException(
  63. "EnumValueDescriptor is not for this type.");
  64. }
  65. return VALUES[desc.getIndex()];
  66. }
  67. private final int index;
  68. private final int value;
  69. private MethodMovement(int index, int value) {
  70. this.index = index;
  71. this.value = value;
  72. }
  73. // @@protoc_insertion_point(enum_scope:MethodMovement)
  74. }
  75. public static com.google.protobuf.Descriptors.FileDescriptor
  76. getDescriptor() {
  77. return descriptor;
  78. }
  79. private static com.google.protobuf.Descriptors.FileDescriptor
  80. descriptor;
  81. static {
  82. java.lang.String[] descriptorData = {
  83. "\n\033ServiceMethodMovement.proto*i\n\016MethodM" +
  84. "ovement\022\016\n\nWORLD_INFO\020\001\022\r\n\tUSERS_ADD\020\002\022\020" +
  85. "\n\014USERS_REMOVE\020\003\022\022\n\016CHARACTER_INFO\020\004\022\022\n\016" +
  86. "CHARACTER_MOVE\020\005B&\n$com.jediflasher.game" +
  87. "_server.messages"
  88. };
  89. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  90. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  91. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  92. com.google.protobuf.Descriptors.FileDescriptor root) {
  93. descriptor = root;
  94. return null;
  95. }
  96. };
  97. com.google.protobuf.Descriptors.FileDescriptor
  98. .internalBuildGeneratedFileFrom(descriptorData,
  99. new com.google.protobuf.Descriptors.FileDescriptor[] {
  100. }, assigner);
  101. }
  102. // @@protoc_insertion_point(outer_class_scope)
  103. }