PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/src/bnet/protocol/Descriptor.java

https://github.com/plutonium/hydra
Java | 379 lines | 334 code | 36 blank | 9 comment | 30 complexity | c2e659555db00b20ad9caff4c9409785 MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: lib/protocol/descriptor.proto
  3. package bnet.protocol;
  4. public final class Descriptor {
  5. private Descriptor() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class Path extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use Path.newBuilder() to construct.
  12. private Path() {
  13. initFields();
  14. }
  15. private Path(boolean noInit) {}
  16. private static final Path defaultInstance;
  17. public static Path getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public Path getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return bnet.protocol.Descriptor.internal_static_bnet_protocol_Path_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return bnet.protocol.Descriptor.internal_static_bnet_protocol_Path_fieldAccessorTable;
  30. }
  31. // repeated uint32 ordinal = 1;
  32. public static final int ORDINAL_FIELD_NUMBER = 1;
  33. private java.util.List<java.lang.Integer> ordinal_ =
  34. java.util.Collections.emptyList();
  35. public java.util.List<java.lang.Integer> getOrdinalList() {
  36. return ordinal_;
  37. }
  38. public int getOrdinalCount() { return ordinal_.size(); }
  39. public int getOrdinal(int index) {
  40. return ordinal_.get(index);
  41. }
  42. private void initFields() {
  43. }
  44. public final boolean isInitialized() {
  45. return true;
  46. }
  47. public void writeTo(com.google.protobuf.CodedOutputStream output)
  48. throws java.io.IOException {
  49. getSerializedSize();
  50. for (int element : getOrdinalList()) {
  51. output.writeUInt32(1, element);
  52. }
  53. getUnknownFields().writeTo(output);
  54. }
  55. private int memoizedSerializedSize = -1;
  56. public int getSerializedSize() {
  57. int size = memoizedSerializedSize;
  58. if (size != -1) return size;
  59. size = 0;
  60. {
  61. int dataSize = 0;
  62. for (int element : getOrdinalList()) {
  63. dataSize += com.google.protobuf.CodedOutputStream
  64. .computeUInt32SizeNoTag(element);
  65. }
  66. size += dataSize;
  67. size += 1 * getOrdinalList().size();
  68. }
  69. size += getUnknownFields().getSerializedSize();
  70. memoizedSerializedSize = size;
  71. return size;
  72. }
  73. public static bnet.protocol.Descriptor.Path parseFrom(
  74. com.google.protobuf.ByteString data)
  75. throws com.google.protobuf.InvalidProtocolBufferException {
  76. return newBuilder().mergeFrom(data).buildParsed();
  77. }
  78. public static bnet.protocol.Descriptor.Path parseFrom(
  79. com.google.protobuf.ByteString data,
  80. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  81. throws com.google.protobuf.InvalidProtocolBufferException {
  82. return newBuilder().mergeFrom(data, extensionRegistry)
  83. .buildParsed();
  84. }
  85. public static bnet.protocol.Descriptor.Path parseFrom(byte[] data)
  86. throws com.google.protobuf.InvalidProtocolBufferException {
  87. return newBuilder().mergeFrom(data).buildParsed();
  88. }
  89. public static bnet.protocol.Descriptor.Path parseFrom(
  90. byte[] data,
  91. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  92. throws com.google.protobuf.InvalidProtocolBufferException {
  93. return newBuilder().mergeFrom(data, extensionRegistry)
  94. .buildParsed();
  95. }
  96. public static bnet.protocol.Descriptor.Path parseFrom(java.io.InputStream input)
  97. throws java.io.IOException {
  98. return newBuilder().mergeFrom(input).buildParsed();
  99. }
  100. public static bnet.protocol.Descriptor.Path parseFrom(
  101. java.io.InputStream input,
  102. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  103. throws java.io.IOException {
  104. return newBuilder().mergeFrom(input, extensionRegistry)
  105. .buildParsed();
  106. }
  107. public static bnet.protocol.Descriptor.Path parseDelimitedFrom(java.io.InputStream input)
  108. throws java.io.IOException {
  109. Builder builder = newBuilder();
  110. if (builder.mergeDelimitedFrom(input)) {
  111. return builder.buildParsed();
  112. } else {
  113. return null;
  114. }
  115. }
  116. public static bnet.protocol.Descriptor.Path parseDelimitedFrom(
  117. java.io.InputStream input,
  118. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  119. throws java.io.IOException {
  120. Builder builder = newBuilder();
  121. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  122. return builder.buildParsed();
  123. } else {
  124. return null;
  125. }
  126. }
  127. public static bnet.protocol.Descriptor.Path parseFrom(
  128. com.google.protobuf.CodedInputStream input)
  129. throws java.io.IOException {
  130. return newBuilder().mergeFrom(input).buildParsed();
  131. }
  132. public static bnet.protocol.Descriptor.Path parseFrom(
  133. com.google.protobuf.CodedInputStream input,
  134. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  135. throws java.io.IOException {
  136. return newBuilder().mergeFrom(input, extensionRegistry)
  137. .buildParsed();
  138. }
  139. public static Builder newBuilder() { return Builder.create(); }
  140. public Builder newBuilderForType() { return newBuilder(); }
  141. public static Builder newBuilder(bnet.protocol.Descriptor.Path prototype) {
  142. return newBuilder().mergeFrom(prototype);
  143. }
  144. public Builder toBuilder() { return newBuilder(this); }
  145. public static final class Builder extends
  146. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  147. private bnet.protocol.Descriptor.Path result;
  148. // Construct using bnet.protocol.Descriptor.Path.newBuilder()
  149. private Builder() {}
  150. private static Builder create() {
  151. Builder builder = new Builder();
  152. builder.result = new bnet.protocol.Descriptor.Path();
  153. return builder;
  154. }
  155. protected bnet.protocol.Descriptor.Path internalGetResult() {
  156. return result;
  157. }
  158. public Builder clear() {
  159. if (result == null) {
  160. throw new IllegalStateException(
  161. "Cannot call clear() after build().");
  162. }
  163. result = new bnet.protocol.Descriptor.Path();
  164. return this;
  165. }
  166. public Builder clone() {
  167. return create().mergeFrom(result);
  168. }
  169. public com.google.protobuf.Descriptors.Descriptor
  170. getDescriptorForType() {
  171. return bnet.protocol.Descriptor.Path.getDescriptor();
  172. }
  173. public bnet.protocol.Descriptor.Path getDefaultInstanceForType() {
  174. return bnet.protocol.Descriptor.Path.getDefaultInstance();
  175. }
  176. public boolean isInitialized() {
  177. return result.isInitialized();
  178. }
  179. public bnet.protocol.Descriptor.Path build() {
  180. if (result != null && !isInitialized()) {
  181. throw newUninitializedMessageException(result);
  182. }
  183. return buildPartial();
  184. }
  185. private bnet.protocol.Descriptor.Path buildParsed()
  186. throws com.google.protobuf.InvalidProtocolBufferException {
  187. if (!isInitialized()) {
  188. throw newUninitializedMessageException(
  189. result).asInvalidProtocolBufferException();
  190. }
  191. return buildPartial();
  192. }
  193. public bnet.protocol.Descriptor.Path buildPartial() {
  194. if (result == null) {
  195. throw new IllegalStateException(
  196. "build() has already been called on this Builder.");
  197. }
  198. if (result.ordinal_ != java.util.Collections.EMPTY_LIST) {
  199. result.ordinal_ =
  200. java.util.Collections.unmodifiableList(result.ordinal_);
  201. }
  202. bnet.protocol.Descriptor.Path returnMe = result;
  203. result = null;
  204. return returnMe;
  205. }
  206. public Builder mergeFrom(com.google.protobuf.Message other) {
  207. if (other instanceof bnet.protocol.Descriptor.Path) {
  208. return mergeFrom((bnet.protocol.Descriptor.Path)other);
  209. } else {
  210. super.mergeFrom(other);
  211. return this;
  212. }
  213. }
  214. public Builder mergeFrom(bnet.protocol.Descriptor.Path other) {
  215. if (other == bnet.protocol.Descriptor.Path.getDefaultInstance()) return this;
  216. if (!other.ordinal_.isEmpty()) {
  217. if (result.ordinal_.isEmpty()) {
  218. result.ordinal_ = new java.util.ArrayList<java.lang.Integer>();
  219. }
  220. result.ordinal_.addAll(other.ordinal_);
  221. }
  222. this.mergeUnknownFields(other.getUnknownFields());
  223. return this;
  224. }
  225. public Builder mergeFrom(
  226. com.google.protobuf.CodedInputStream input,
  227. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  228. throws java.io.IOException {
  229. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  230. com.google.protobuf.UnknownFieldSet.newBuilder(
  231. this.getUnknownFields());
  232. while (true) {
  233. int tag = input.readTag();
  234. switch (tag) {
  235. case 0:
  236. this.setUnknownFields(unknownFields.build());
  237. return this;
  238. default: {
  239. if (!parseUnknownField(input, unknownFields,
  240. extensionRegistry, tag)) {
  241. this.setUnknownFields(unknownFields.build());
  242. return this;
  243. }
  244. break;
  245. }
  246. case 8: {
  247. addOrdinal(input.readUInt32());
  248. break;
  249. }
  250. case 10: {
  251. int length = input.readRawVarint32();
  252. int limit = input.pushLimit(length);
  253. while (input.getBytesUntilLimit() > 0) {
  254. addOrdinal(input.readUInt32());
  255. }
  256. input.popLimit(limit);
  257. break;
  258. }
  259. }
  260. }
  261. }
  262. // repeated uint32 ordinal = 1;
  263. public java.util.List<java.lang.Integer> getOrdinalList() {
  264. return java.util.Collections.unmodifiableList(result.ordinal_);
  265. }
  266. public int getOrdinalCount() {
  267. return result.getOrdinalCount();
  268. }
  269. public int getOrdinal(int index) {
  270. return result.getOrdinal(index);
  271. }
  272. public Builder setOrdinal(int index, int value) {
  273. result.ordinal_.set(index, value);
  274. return this;
  275. }
  276. public Builder addOrdinal(int value) {
  277. if (result.ordinal_.isEmpty()) {
  278. result.ordinal_ = new java.util.ArrayList<java.lang.Integer>();
  279. }
  280. result.ordinal_.add(value);
  281. return this;
  282. }
  283. public Builder addAllOrdinal(
  284. java.lang.Iterable<? extends java.lang.Integer> values) {
  285. if (result.ordinal_.isEmpty()) {
  286. result.ordinal_ = new java.util.ArrayList<java.lang.Integer>();
  287. }
  288. super.addAll(values, result.ordinal_);
  289. return this;
  290. }
  291. public Builder clearOrdinal() {
  292. result.ordinal_ = java.util.Collections.emptyList();
  293. return this;
  294. }
  295. // @@protoc_insertion_point(builder_scope:bnet.protocol.Path)
  296. }
  297. static {
  298. defaultInstance = new Path(true);
  299. bnet.protocol.Descriptor.internalForceInit();
  300. defaultInstance.initFields();
  301. }
  302. // @@protoc_insertion_point(class_scope:bnet.protocol.Path)
  303. }
  304. private static com.google.protobuf.Descriptors.Descriptor
  305. internal_static_bnet_protocol_Path_descriptor;
  306. private static
  307. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  308. internal_static_bnet_protocol_Path_fieldAccessorTable;
  309. public static com.google.protobuf.Descriptors.FileDescriptor
  310. getDescriptor() {
  311. return descriptor;
  312. }
  313. private static com.google.protobuf.Descriptors.FileDescriptor
  314. descriptor;
  315. static {
  316. java.lang.String[] descriptorData = {
  317. "\n\035lib/protocol/descriptor.proto\022\rbnet.pr" +
  318. "otocol\"\027\n\004Path\022\017\n\007ordinal\030\001 \003(\r"
  319. };
  320. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  321. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  322. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  323. com.google.protobuf.Descriptors.FileDescriptor root) {
  324. descriptor = root;
  325. internal_static_bnet_protocol_Path_descriptor =
  326. getDescriptor().getMessageTypes().get(0);
  327. internal_static_bnet_protocol_Path_fieldAccessorTable = new
  328. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  329. internal_static_bnet_protocol_Path_descriptor,
  330. new java.lang.String[] { "Ordinal", },
  331. bnet.protocol.Descriptor.Path.class,
  332. bnet.protocol.Descriptor.Path.Builder.class);
  333. return null;
  334. }
  335. };
  336. com.google.protobuf.Descriptors.FileDescriptor
  337. .internalBuildGeneratedFileFrom(descriptorData,
  338. new com.google.protobuf.Descriptors.FileDescriptor[] {
  339. }, assigner);
  340. }
  341. public static void internalForceInit() {}
  342. // @@protoc_insertion_point(outer_class_scope)
  343. }