PageRenderTime 123ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/protostuff-benchmark/src/main/java/com/dyuproject/protostuff/benchmark/V2CodeSizeMedia.java

http://protostuff.googlecode.com/
Java | 1349 lines | 1171 code | 125 blank | 53 comment | 80 complexity | be336db4375c17cedda7f39fa5d4465c MD5 | raw file
Possible License(s): Apache-2.0
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: src/main/resources/media.proto
  3. package com.dyuproject.protostuff.benchmark;
  4. public final class V2CodeSizeMedia {
  5. private V2CodeSizeMedia() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public static final class Image extends
  10. com.google.protobuf.GeneratedMessage {
  11. // Use Image.newBuilder() to construct.
  12. private Image() {
  13. initFields();
  14. }
  15. private Image(boolean noInit) {}
  16. private static final Image defaultInstance;
  17. public static Image getDefaultInstance() {
  18. return defaultInstance;
  19. }
  20. public Image getDefaultInstanceForType() {
  21. return defaultInstance;
  22. }
  23. public static final com.google.protobuf.Descriptors.Descriptor
  24. getDescriptor() {
  25. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_Image_descriptor;
  26. }
  27. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  28. internalGetFieldAccessorTable() {
  29. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_Image_fieldAccessorTable;
  30. }
  31. public enum Size
  32. implements com.google.protobuf.ProtocolMessageEnum {
  33. SMALL(0, 0),
  34. LARGE(1, 1),
  35. ;
  36. public final int getNumber() { return value; }
  37. public static Size valueOf(int value) {
  38. switch (value) {
  39. case 0: return SMALL;
  40. case 1: return LARGE;
  41. default: return null;
  42. }
  43. }
  44. public static com.google.protobuf.Internal.EnumLiteMap<Size>
  45. internalGetValueMap() {
  46. return internalValueMap;
  47. }
  48. private static com.google.protobuf.Internal.EnumLiteMap<Size>
  49. internalValueMap =
  50. new com.google.protobuf.Internal.EnumLiteMap<Size>() {
  51. public Size findValueByNumber(int number) {
  52. return Size.valueOf(number)
  53. ; }
  54. };
  55. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  56. getValueDescriptor() {
  57. return getDescriptor().getValues().get(index);
  58. }
  59. public final com.google.protobuf.Descriptors.EnumDescriptor
  60. getDescriptorForType() {
  61. return getDescriptor();
  62. }
  63. public static final com.google.protobuf.Descriptors.EnumDescriptor
  64. getDescriptor() {
  65. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.getDescriptor().getEnumTypes().get(0);
  66. }
  67. private static final Size[] VALUES = {
  68. SMALL, LARGE,
  69. };
  70. public static Size valueOf(
  71. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  72. if (desc.getType() != getDescriptor()) {
  73. throw new java.lang.IllegalArgumentException(
  74. "EnumValueDescriptor is not for this type.");
  75. }
  76. return VALUES[desc.getIndex()];
  77. }
  78. private final int index;
  79. private final int value;
  80. private Size(int index, int value) {
  81. this.index = index;
  82. this.value = value;
  83. }
  84. static {
  85. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.getDescriptor();
  86. }
  87. // @@protoc_insertion_point(enum_scope:serializers.protobuf.media.Image.Size)
  88. }
  89. // required string uri = 1;
  90. public static final int URI_FIELD_NUMBER = 1;
  91. private boolean hasUri;
  92. private java.lang.String uri_ = "";
  93. public boolean hasUri() { return hasUri; }
  94. public java.lang.String getUri() { return uri_; }
  95. // optional string title = 2;
  96. public static final int TITLE_FIELD_NUMBER = 2;
  97. private boolean hasTitle;
  98. private java.lang.String title_ = "";
  99. public boolean hasTitle() { return hasTitle; }
  100. public java.lang.String getTitle() { return title_; }
  101. // required int32 width = 3;
  102. public static final int WIDTH_FIELD_NUMBER = 3;
  103. private boolean hasWidth;
  104. private int width_ = 0;
  105. public boolean hasWidth() { return hasWidth; }
  106. public int getWidth() { return width_; }
  107. // required int32 height = 4;
  108. public static final int HEIGHT_FIELD_NUMBER = 4;
  109. private boolean hasHeight;
  110. private int height_ = 0;
  111. public boolean hasHeight() { return hasHeight; }
  112. public int getHeight() { return height_; }
  113. // required .serializers.protobuf.media.Image.Size size = 5;
  114. public static final int SIZE_FIELD_NUMBER = 5;
  115. private boolean hasSize;
  116. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size size_;
  117. public boolean hasSize() { return hasSize; }
  118. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size getSize() { return size_; }
  119. private void initFields() {
  120. size_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size.SMALL;
  121. }
  122. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  123. com.google.protobuf.ByteString data)
  124. throws com.google.protobuf.InvalidProtocolBufferException {
  125. return newBuilder().mergeFrom(data).buildParsed();
  126. }
  127. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  128. com.google.protobuf.ByteString data,
  129. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  130. throws com.google.protobuf.InvalidProtocolBufferException {
  131. return newBuilder().mergeFrom(data, extensionRegistry)
  132. .buildParsed();
  133. }
  134. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(byte[] data)
  135. throws com.google.protobuf.InvalidProtocolBufferException {
  136. return newBuilder().mergeFrom(data).buildParsed();
  137. }
  138. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  139. byte[] data,
  140. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  141. throws com.google.protobuf.InvalidProtocolBufferException {
  142. return newBuilder().mergeFrom(data, extensionRegistry)
  143. .buildParsed();
  144. }
  145. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(java.io.InputStream input)
  146. throws java.io.IOException {
  147. return newBuilder().mergeFrom(input).buildParsed();
  148. }
  149. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  150. java.io.InputStream input,
  151. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  152. throws java.io.IOException {
  153. return newBuilder().mergeFrom(input, extensionRegistry)
  154. .buildParsed();
  155. }
  156. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseDelimitedFrom(java.io.InputStream input)
  157. throws java.io.IOException {
  158. Builder builder = newBuilder();
  159. if (builder.mergeDelimitedFrom(input)) {
  160. return builder.buildParsed();
  161. } else {
  162. return null;
  163. }
  164. }
  165. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseDelimitedFrom(
  166. java.io.InputStream input,
  167. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  168. throws java.io.IOException {
  169. Builder builder = newBuilder();
  170. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  171. return builder.buildParsed();
  172. } else {
  173. return null;
  174. }
  175. }
  176. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  177. com.google.protobuf.CodedInputStream input)
  178. throws java.io.IOException {
  179. return newBuilder().mergeFrom(input).buildParsed();
  180. }
  181. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image parseFrom(
  182. com.google.protobuf.CodedInputStream input,
  183. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  184. throws java.io.IOException {
  185. return newBuilder().mergeFrom(input, extensionRegistry)
  186. .buildParsed();
  187. }
  188. public static Builder newBuilder() { return Builder.create(); }
  189. public Builder newBuilderForType() { return newBuilder(); }
  190. public static Builder newBuilder(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image prototype) {
  191. return newBuilder().mergeFrom(prototype);
  192. }
  193. public Builder toBuilder() { return newBuilder(this); }
  194. public static final class Builder extends
  195. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  196. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image result;
  197. // Construct using com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.newBuilder()
  198. private Builder() {}
  199. private static Builder create() {
  200. Builder builder = new Builder();
  201. builder.result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image();
  202. return builder;
  203. }
  204. protected com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image internalGetResult() {
  205. return result;
  206. }
  207. public Builder clear() {
  208. if (result == null) {
  209. throw new IllegalStateException(
  210. "Cannot call clear() after build().");
  211. }
  212. result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image();
  213. return this;
  214. }
  215. public Builder clone() {
  216. return create().mergeFrom(result);
  217. }
  218. public com.google.protobuf.Descriptors.Descriptor
  219. getDescriptorForType() {
  220. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.getDescriptor();
  221. }
  222. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image getDefaultInstanceForType() {
  223. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.getDefaultInstance();
  224. }
  225. public boolean isInitialized() {
  226. return result.isInitialized();
  227. }
  228. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image build() {
  229. if (result != null && !isInitialized()) {
  230. throw newUninitializedMessageException(result);
  231. }
  232. return buildPartial();
  233. }
  234. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image buildParsed()
  235. throws com.google.protobuf.InvalidProtocolBufferException {
  236. if (!isInitialized()) {
  237. throw newUninitializedMessageException(
  238. result).asInvalidProtocolBufferException();
  239. }
  240. return buildPartial();
  241. }
  242. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image buildPartial() {
  243. if (result == null) {
  244. throw new IllegalStateException(
  245. "build() has already been called on this Builder.");
  246. }
  247. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image returnMe = result;
  248. result = null;
  249. return returnMe;
  250. }
  251. // required string uri = 1;
  252. public boolean hasUri() {
  253. return result.hasUri();
  254. }
  255. public java.lang.String getUri() {
  256. return result.getUri();
  257. }
  258. public Builder setUri(java.lang.String value) {
  259. if (value == null) {
  260. throw new NullPointerException();
  261. }
  262. result.hasUri = true;
  263. result.uri_ = value;
  264. return this;
  265. }
  266. public Builder clearUri() {
  267. result.hasUri = false;
  268. result.uri_ = getDefaultInstance().getUri();
  269. return this;
  270. }
  271. // optional string title = 2;
  272. public boolean hasTitle() {
  273. return result.hasTitle();
  274. }
  275. public java.lang.String getTitle() {
  276. return result.getTitle();
  277. }
  278. public Builder setTitle(java.lang.String value) {
  279. if (value == null) {
  280. throw new NullPointerException();
  281. }
  282. result.hasTitle = true;
  283. result.title_ = value;
  284. return this;
  285. }
  286. public Builder clearTitle() {
  287. result.hasTitle = false;
  288. result.title_ = getDefaultInstance().getTitle();
  289. return this;
  290. }
  291. // required int32 width = 3;
  292. public boolean hasWidth() {
  293. return result.hasWidth();
  294. }
  295. public int getWidth() {
  296. return result.getWidth();
  297. }
  298. public Builder setWidth(int value) {
  299. result.hasWidth = true;
  300. result.width_ = value;
  301. return this;
  302. }
  303. public Builder clearWidth() {
  304. result.hasWidth = false;
  305. result.width_ = 0;
  306. return this;
  307. }
  308. // required int32 height = 4;
  309. public boolean hasHeight() {
  310. return result.hasHeight();
  311. }
  312. public int getHeight() {
  313. return result.getHeight();
  314. }
  315. public Builder setHeight(int value) {
  316. result.hasHeight = true;
  317. result.height_ = value;
  318. return this;
  319. }
  320. public Builder clearHeight() {
  321. result.hasHeight = false;
  322. result.height_ = 0;
  323. return this;
  324. }
  325. // required .serializers.protobuf.media.Image.Size size = 5;
  326. public boolean hasSize() {
  327. return result.hasSize();
  328. }
  329. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size getSize() {
  330. return result.getSize();
  331. }
  332. public Builder setSize(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size value) {
  333. if (value == null) {
  334. throw new NullPointerException();
  335. }
  336. result.hasSize = true;
  337. result.size_ = value;
  338. return this;
  339. }
  340. public Builder clearSize() {
  341. result.hasSize = false;
  342. result.size_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Size.SMALL;
  343. return this;
  344. }
  345. // @@protoc_insertion_point(builder_scope:serializers.protobuf.media.Image)
  346. }
  347. static {
  348. defaultInstance = new Image(true);
  349. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internalForceInit();
  350. defaultInstance.initFields();
  351. }
  352. // @@protoc_insertion_point(class_scope:serializers.protobuf.media.Image)
  353. }
  354. public static final class Media extends
  355. com.google.protobuf.GeneratedMessage {
  356. // Use Media.newBuilder() to construct.
  357. private Media() {
  358. initFields();
  359. }
  360. private Media(boolean noInit) {}
  361. private static final Media defaultInstance;
  362. public static Media getDefaultInstance() {
  363. return defaultInstance;
  364. }
  365. public Media getDefaultInstanceForType() {
  366. return defaultInstance;
  367. }
  368. public static final com.google.protobuf.Descriptors.Descriptor
  369. getDescriptor() {
  370. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_Media_descriptor;
  371. }
  372. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  373. internalGetFieldAccessorTable() {
  374. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_Media_fieldAccessorTable;
  375. }
  376. public enum Player
  377. implements com.google.protobuf.ProtocolMessageEnum {
  378. JAVA(0, 0),
  379. FLASH(1, 1),
  380. ;
  381. public final int getNumber() { return value; }
  382. public static Player valueOf(int value) {
  383. switch (value) {
  384. case 0: return JAVA;
  385. case 1: return FLASH;
  386. default: return null;
  387. }
  388. }
  389. public static com.google.protobuf.Internal.EnumLiteMap<Player>
  390. internalGetValueMap() {
  391. return internalValueMap;
  392. }
  393. private static com.google.protobuf.Internal.EnumLiteMap<Player>
  394. internalValueMap =
  395. new com.google.protobuf.Internal.EnumLiteMap<Player>() {
  396. public Player findValueByNumber(int number) {
  397. return Player.valueOf(number)
  398. ; }
  399. };
  400. public final com.google.protobuf.Descriptors.EnumValueDescriptor
  401. getValueDescriptor() {
  402. return getDescriptor().getValues().get(index);
  403. }
  404. public final com.google.protobuf.Descriptors.EnumDescriptor
  405. getDescriptorForType() {
  406. return getDescriptor();
  407. }
  408. public static final com.google.protobuf.Descriptors.EnumDescriptor
  409. getDescriptor() {
  410. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDescriptor().getEnumTypes().get(0);
  411. }
  412. private static final Player[] VALUES = {
  413. JAVA, FLASH,
  414. };
  415. public static Player valueOf(
  416. com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
  417. if (desc.getType() != getDescriptor()) {
  418. throw new java.lang.IllegalArgumentException(
  419. "EnumValueDescriptor is not for this type.");
  420. }
  421. return VALUES[desc.getIndex()];
  422. }
  423. private final int index;
  424. private final int value;
  425. private Player(int index, int value) {
  426. this.index = index;
  427. this.value = value;
  428. }
  429. static {
  430. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.getDescriptor();
  431. }
  432. // @@protoc_insertion_point(enum_scope:serializers.protobuf.media.Media.Player)
  433. }
  434. // required string uri = 1;
  435. public static final int URI_FIELD_NUMBER = 1;
  436. private boolean hasUri;
  437. private java.lang.String uri_ = "";
  438. public boolean hasUri() { return hasUri; }
  439. public java.lang.String getUri() { return uri_; }
  440. // optional string title = 2;
  441. public static final int TITLE_FIELD_NUMBER = 2;
  442. private boolean hasTitle;
  443. private java.lang.String title_ = "";
  444. public boolean hasTitle() { return hasTitle; }
  445. public java.lang.String getTitle() { return title_; }
  446. // required int32 width = 3;
  447. public static final int WIDTH_FIELD_NUMBER = 3;
  448. private boolean hasWidth;
  449. private int width_ = 0;
  450. public boolean hasWidth() { return hasWidth; }
  451. public int getWidth() { return width_; }
  452. // required int32 height = 4;
  453. public static final int HEIGHT_FIELD_NUMBER = 4;
  454. private boolean hasHeight;
  455. private int height_ = 0;
  456. public boolean hasHeight() { return hasHeight; }
  457. public int getHeight() { return height_; }
  458. // required string format = 5;
  459. public static final int FORMAT_FIELD_NUMBER = 5;
  460. private boolean hasFormat;
  461. private java.lang.String format_ = "";
  462. public boolean hasFormat() { return hasFormat; }
  463. public java.lang.String getFormat() { return format_; }
  464. // required int64 duration = 6;
  465. public static final int DURATION_FIELD_NUMBER = 6;
  466. private boolean hasDuration;
  467. private long duration_ = 0L;
  468. public boolean hasDuration() { return hasDuration; }
  469. public long getDuration() { return duration_; }
  470. // required int64 size = 7;
  471. public static final int SIZE_FIELD_NUMBER = 7;
  472. private boolean hasSize;
  473. private long size_ = 0L;
  474. public boolean hasSize() { return hasSize; }
  475. public long getSize() { return size_; }
  476. // optional int32 bitrate = 8;
  477. public static final int BITRATE_FIELD_NUMBER = 8;
  478. private boolean hasBitrate;
  479. private int bitrate_ = 0;
  480. public boolean hasBitrate() { return hasBitrate; }
  481. public int getBitrate() { return bitrate_; }
  482. // repeated string person = 9;
  483. public static final int PERSON_FIELD_NUMBER = 9;
  484. private java.util.List<java.lang.String> person_ =
  485. java.util.Collections.emptyList();
  486. public java.util.List<java.lang.String> getPersonList() {
  487. return person_;
  488. }
  489. public int getPersonCount() { return person_.size(); }
  490. public java.lang.String getPerson(int index) {
  491. return person_.get(index);
  492. }
  493. // required .serializers.protobuf.media.Media.Player player = 10;
  494. public static final int PLAYER_FIELD_NUMBER = 10;
  495. private boolean hasPlayer;
  496. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player player_;
  497. public boolean hasPlayer() { return hasPlayer; }
  498. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player getPlayer() { return player_; }
  499. // optional string copyright = 11;
  500. public static final int COPYRIGHT_FIELD_NUMBER = 11;
  501. private boolean hasCopyright;
  502. private java.lang.String copyright_ = "";
  503. public boolean hasCopyright() { return hasCopyright; }
  504. public java.lang.String getCopyright() { return copyright_; }
  505. private void initFields() {
  506. player_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player.JAVA;
  507. }
  508. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  509. com.google.protobuf.ByteString data)
  510. throws com.google.protobuf.InvalidProtocolBufferException {
  511. return newBuilder().mergeFrom(data).buildParsed();
  512. }
  513. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  514. com.google.protobuf.ByteString data,
  515. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  516. throws com.google.protobuf.InvalidProtocolBufferException {
  517. return newBuilder().mergeFrom(data, extensionRegistry)
  518. .buildParsed();
  519. }
  520. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(byte[] data)
  521. throws com.google.protobuf.InvalidProtocolBufferException {
  522. return newBuilder().mergeFrom(data).buildParsed();
  523. }
  524. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  525. byte[] data,
  526. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  527. throws com.google.protobuf.InvalidProtocolBufferException {
  528. return newBuilder().mergeFrom(data, extensionRegistry)
  529. .buildParsed();
  530. }
  531. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(java.io.InputStream input)
  532. throws java.io.IOException {
  533. return newBuilder().mergeFrom(input).buildParsed();
  534. }
  535. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  536. java.io.InputStream input,
  537. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  538. throws java.io.IOException {
  539. return newBuilder().mergeFrom(input, extensionRegistry)
  540. .buildParsed();
  541. }
  542. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseDelimitedFrom(java.io.InputStream input)
  543. throws java.io.IOException {
  544. Builder builder = newBuilder();
  545. if (builder.mergeDelimitedFrom(input)) {
  546. return builder.buildParsed();
  547. } else {
  548. return null;
  549. }
  550. }
  551. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseDelimitedFrom(
  552. java.io.InputStream input,
  553. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  554. throws java.io.IOException {
  555. Builder builder = newBuilder();
  556. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  557. return builder.buildParsed();
  558. } else {
  559. return null;
  560. }
  561. }
  562. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  563. com.google.protobuf.CodedInputStream input)
  564. throws java.io.IOException {
  565. return newBuilder().mergeFrom(input).buildParsed();
  566. }
  567. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media parseFrom(
  568. com.google.protobuf.CodedInputStream input,
  569. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  570. throws java.io.IOException {
  571. return newBuilder().mergeFrom(input, extensionRegistry)
  572. .buildParsed();
  573. }
  574. public static Builder newBuilder() { return Builder.create(); }
  575. public Builder newBuilderForType() { return newBuilder(); }
  576. public static Builder newBuilder(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media prototype) {
  577. return newBuilder().mergeFrom(prototype);
  578. }
  579. public Builder toBuilder() { return newBuilder(this); }
  580. public static final class Builder extends
  581. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  582. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media result;
  583. // Construct using com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.newBuilder()
  584. private Builder() {}
  585. private static Builder create() {
  586. Builder builder = new Builder();
  587. builder.result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media();
  588. return builder;
  589. }
  590. protected com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media internalGetResult() {
  591. return result;
  592. }
  593. public Builder clear() {
  594. if (result == null) {
  595. throw new IllegalStateException(
  596. "Cannot call clear() after build().");
  597. }
  598. result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media();
  599. return this;
  600. }
  601. public Builder clone() {
  602. return create().mergeFrom(result);
  603. }
  604. public com.google.protobuf.Descriptors.Descriptor
  605. getDescriptorForType() {
  606. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDescriptor();
  607. }
  608. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media getDefaultInstanceForType() {
  609. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDefaultInstance();
  610. }
  611. public boolean isInitialized() {
  612. return result.isInitialized();
  613. }
  614. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media build() {
  615. if (result != null && !isInitialized()) {
  616. throw newUninitializedMessageException(result);
  617. }
  618. return buildPartial();
  619. }
  620. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media buildParsed()
  621. throws com.google.protobuf.InvalidProtocolBufferException {
  622. if (!isInitialized()) {
  623. throw newUninitializedMessageException(
  624. result).asInvalidProtocolBufferException();
  625. }
  626. return buildPartial();
  627. }
  628. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media buildPartial() {
  629. if (result == null) {
  630. throw new IllegalStateException(
  631. "build() has already been called on this Builder.");
  632. }
  633. if (result.person_ != java.util.Collections.EMPTY_LIST) {
  634. result.person_ =
  635. java.util.Collections.unmodifiableList(result.person_);
  636. }
  637. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media returnMe = result;
  638. result = null;
  639. return returnMe;
  640. }
  641. // required string uri = 1;
  642. public boolean hasUri() {
  643. return result.hasUri();
  644. }
  645. public java.lang.String getUri() {
  646. return result.getUri();
  647. }
  648. public Builder setUri(java.lang.String value) {
  649. if (value == null) {
  650. throw new NullPointerException();
  651. }
  652. result.hasUri = true;
  653. result.uri_ = value;
  654. return this;
  655. }
  656. public Builder clearUri() {
  657. result.hasUri = false;
  658. result.uri_ = getDefaultInstance().getUri();
  659. return this;
  660. }
  661. // optional string title = 2;
  662. public boolean hasTitle() {
  663. return result.hasTitle();
  664. }
  665. public java.lang.String getTitle() {
  666. return result.getTitle();
  667. }
  668. public Builder setTitle(java.lang.String value) {
  669. if (value == null) {
  670. throw new NullPointerException();
  671. }
  672. result.hasTitle = true;
  673. result.title_ = value;
  674. return this;
  675. }
  676. public Builder clearTitle() {
  677. result.hasTitle = false;
  678. result.title_ = getDefaultInstance().getTitle();
  679. return this;
  680. }
  681. // required int32 width = 3;
  682. public boolean hasWidth() {
  683. return result.hasWidth();
  684. }
  685. public int getWidth() {
  686. return result.getWidth();
  687. }
  688. public Builder setWidth(int value) {
  689. result.hasWidth = true;
  690. result.width_ = value;
  691. return this;
  692. }
  693. public Builder clearWidth() {
  694. result.hasWidth = false;
  695. result.width_ = 0;
  696. return this;
  697. }
  698. // required int32 height = 4;
  699. public boolean hasHeight() {
  700. return result.hasHeight();
  701. }
  702. public int getHeight() {
  703. return result.getHeight();
  704. }
  705. public Builder setHeight(int value) {
  706. result.hasHeight = true;
  707. result.height_ = value;
  708. return this;
  709. }
  710. public Builder clearHeight() {
  711. result.hasHeight = false;
  712. result.height_ = 0;
  713. return this;
  714. }
  715. // required string format = 5;
  716. public boolean hasFormat() {
  717. return result.hasFormat();
  718. }
  719. public java.lang.String getFormat() {
  720. return result.getFormat();
  721. }
  722. public Builder setFormat(java.lang.String value) {
  723. if (value == null) {
  724. throw new NullPointerException();
  725. }
  726. result.hasFormat = true;
  727. result.format_ = value;
  728. return this;
  729. }
  730. public Builder clearFormat() {
  731. result.hasFormat = false;
  732. result.format_ = getDefaultInstance().getFormat();
  733. return this;
  734. }
  735. // required int64 duration = 6;
  736. public boolean hasDuration() {
  737. return result.hasDuration();
  738. }
  739. public long getDuration() {
  740. return result.getDuration();
  741. }
  742. public Builder setDuration(long value) {
  743. result.hasDuration = true;
  744. result.duration_ = value;
  745. return this;
  746. }
  747. public Builder clearDuration() {
  748. result.hasDuration = false;
  749. result.duration_ = 0L;
  750. return this;
  751. }
  752. // required int64 size = 7;
  753. public boolean hasSize() {
  754. return result.hasSize();
  755. }
  756. public long getSize() {
  757. return result.getSize();
  758. }
  759. public Builder setSize(long value) {
  760. result.hasSize = true;
  761. result.size_ = value;
  762. return this;
  763. }
  764. public Builder clearSize() {
  765. result.hasSize = false;
  766. result.size_ = 0L;
  767. return this;
  768. }
  769. // optional int32 bitrate = 8;
  770. public boolean hasBitrate() {
  771. return result.hasBitrate();
  772. }
  773. public int getBitrate() {
  774. return result.getBitrate();
  775. }
  776. public Builder setBitrate(int value) {
  777. result.hasBitrate = true;
  778. result.bitrate_ = value;
  779. return this;
  780. }
  781. public Builder clearBitrate() {
  782. result.hasBitrate = false;
  783. result.bitrate_ = 0;
  784. return this;
  785. }
  786. // repeated string person = 9;
  787. public java.util.List<java.lang.String> getPersonList() {
  788. return java.util.Collections.unmodifiableList(result.person_);
  789. }
  790. public int getPersonCount() {
  791. return result.getPersonCount();
  792. }
  793. public java.lang.String getPerson(int index) {
  794. return result.getPerson(index);
  795. }
  796. public Builder setPerson(int index, java.lang.String value) {
  797. if (value == null) {
  798. throw new NullPointerException();
  799. }
  800. result.person_.set(index, value);
  801. return this;
  802. }
  803. public Builder addPerson(java.lang.String value) {
  804. if (value == null) {
  805. throw new NullPointerException();
  806. }
  807. if (result.person_.isEmpty()) {
  808. result.person_ = new java.util.ArrayList<java.lang.String>();
  809. }
  810. result.person_.add(value);
  811. return this;
  812. }
  813. public Builder addAllPerson(
  814. java.lang.Iterable<? extends java.lang.String> values) {
  815. if (result.person_.isEmpty()) {
  816. result.person_ = new java.util.ArrayList<java.lang.String>();
  817. }
  818. super.addAll(values, result.person_);
  819. return this;
  820. }
  821. public Builder clearPerson() {
  822. result.person_ = java.util.Collections.emptyList();
  823. return this;
  824. }
  825. // required .serializers.protobuf.media.Media.Player player = 10;
  826. public boolean hasPlayer() {
  827. return result.hasPlayer();
  828. }
  829. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player getPlayer() {
  830. return result.getPlayer();
  831. }
  832. public Builder setPlayer(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player value) {
  833. if (value == null) {
  834. throw new NullPointerException();
  835. }
  836. result.hasPlayer = true;
  837. result.player_ = value;
  838. return this;
  839. }
  840. public Builder clearPlayer() {
  841. result.hasPlayer = false;
  842. result.player_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Player.JAVA;
  843. return this;
  844. }
  845. // optional string copyright = 11;
  846. public boolean hasCopyright() {
  847. return result.hasCopyright();
  848. }
  849. public java.lang.String getCopyright() {
  850. return result.getCopyright();
  851. }
  852. public Builder setCopyright(java.lang.String value) {
  853. if (value == null) {
  854. throw new NullPointerException();
  855. }
  856. result.hasCopyright = true;
  857. result.copyright_ = value;
  858. return this;
  859. }
  860. public Builder clearCopyright() {
  861. result.hasCopyright = false;
  862. result.copyright_ = getDefaultInstance().getCopyright();
  863. return this;
  864. }
  865. // @@protoc_insertion_point(builder_scope:serializers.protobuf.media.Media)
  866. }
  867. static {
  868. defaultInstance = new Media(true);
  869. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internalForceInit();
  870. defaultInstance.initFields();
  871. }
  872. // @@protoc_insertion_point(class_scope:serializers.protobuf.media.Media)
  873. }
  874. public static final class MediaContent extends
  875. com.google.protobuf.GeneratedMessage {
  876. // Use MediaContent.newBuilder() to construct.
  877. private MediaContent() {
  878. initFields();
  879. }
  880. private MediaContent(boolean noInit) {}
  881. private static final MediaContent defaultInstance;
  882. public static MediaContent getDefaultInstance() {
  883. return defaultInstance;
  884. }
  885. public MediaContent getDefaultInstanceForType() {
  886. return defaultInstance;
  887. }
  888. public static final com.google.protobuf.Descriptors.Descriptor
  889. getDescriptor() {
  890. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_MediaContent_descriptor;
  891. }
  892. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  893. internalGetFieldAccessorTable() {
  894. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internal_static_serializers_protobuf_media_MediaContent_fieldAccessorTable;
  895. }
  896. // repeated .serializers.protobuf.media.Image image = 1;
  897. public static final int IMAGE_FIELD_NUMBER = 1;
  898. private java.util.List<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image> image_ =
  899. java.util.Collections.emptyList();
  900. public java.util.List<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image> getImageList() {
  901. return image_;
  902. }
  903. public int getImageCount() { return image_.size(); }
  904. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image getImage(int index) {
  905. return image_.get(index);
  906. }
  907. // required .serializers.protobuf.media.Media media = 2;
  908. public static final int MEDIA_FIELD_NUMBER = 2;
  909. private boolean hasMedia;
  910. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media media_;
  911. public boolean hasMedia() { return hasMedia; }
  912. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media getMedia() { return media_; }
  913. private void initFields() {
  914. media_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDefaultInstance();
  915. }
  916. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  917. com.google.protobuf.ByteString data)
  918. throws com.google.protobuf.InvalidProtocolBufferException {
  919. return newBuilder().mergeFrom(data).buildParsed();
  920. }
  921. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  922. com.google.protobuf.ByteString data,
  923. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  924. throws com.google.protobuf.InvalidProtocolBufferException {
  925. return newBuilder().mergeFrom(data, extensionRegistry)
  926. .buildParsed();
  927. }
  928. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(byte[] data)
  929. throws com.google.protobuf.InvalidProtocolBufferException {
  930. return newBuilder().mergeFrom(data).buildParsed();
  931. }
  932. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  933. byte[] data,
  934. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  935. throws com.google.protobuf.InvalidProtocolBufferException {
  936. return newBuilder().mergeFrom(data, extensionRegistry)
  937. .buildParsed();
  938. }
  939. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(java.io.InputStream input)
  940. throws java.io.IOException {
  941. return newBuilder().mergeFrom(input).buildParsed();
  942. }
  943. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  944. java.io.InputStream input,
  945. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  946. throws java.io.IOException {
  947. return newBuilder().mergeFrom(input, extensionRegistry)
  948. .buildParsed();
  949. }
  950. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseDelimitedFrom(java.io.InputStream input)
  951. throws java.io.IOException {
  952. Builder builder = newBuilder();
  953. if (builder.mergeDelimitedFrom(input)) {
  954. return builder.buildParsed();
  955. } else {
  956. return null;
  957. }
  958. }
  959. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseDelimitedFrom(
  960. java.io.InputStream input,
  961. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  962. throws java.io.IOException {
  963. Builder builder = newBuilder();
  964. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  965. return builder.buildParsed();
  966. } else {
  967. return null;
  968. }
  969. }
  970. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  971. com.google.protobuf.CodedInputStream input)
  972. throws java.io.IOException {
  973. return newBuilder().mergeFrom(input).buildParsed();
  974. }
  975. public static com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent parseFrom(
  976. com.google.protobuf.CodedInputStream input,
  977. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  978. throws java.io.IOException {
  979. return newBuilder().mergeFrom(input, extensionRegistry)
  980. .buildParsed();
  981. }
  982. public static Builder newBuilder() { return Builder.create(); }
  983. public Builder newBuilderForType() { return newBuilder(); }
  984. public static Builder newBuilder(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent prototype) {
  985. return newBuilder().mergeFrom(prototype);
  986. }
  987. public Builder toBuilder() { return newBuilder(this); }
  988. public static final class Builder extends
  989. com.google.protobuf.GeneratedMessage.Builder<Builder> {
  990. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent result;
  991. // Construct using com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent.newBuilder()
  992. private Builder() {}
  993. private static Builder create() {
  994. Builder builder = new Builder();
  995. builder.result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent();
  996. return builder;
  997. }
  998. protected com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent internalGetResult() {
  999. return result;
  1000. }
  1001. public Builder clear() {
  1002. if (result == null) {
  1003. throw new IllegalStateException(
  1004. "Cannot call clear() after build().");
  1005. }
  1006. result = new com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent();
  1007. return this;
  1008. }
  1009. public Builder clone() {
  1010. return create().mergeFrom(result);
  1011. }
  1012. public com.google.protobuf.Descriptors.Descriptor
  1013. getDescriptorForType() {
  1014. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent.getDescriptor();
  1015. }
  1016. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent getDefaultInstanceForType() {
  1017. return com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent.getDefaultInstance();
  1018. }
  1019. public boolean isInitialized() {
  1020. return result.isInitialized();
  1021. }
  1022. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent build() {
  1023. if (result != null && !isInitialized()) {
  1024. throw newUninitializedMessageException(result);
  1025. }
  1026. return buildPartial();
  1027. }
  1028. private com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent buildParsed()
  1029. throws com.google.protobuf.InvalidProtocolBufferException {
  1030. if (!isInitialized()) {
  1031. throw newUninitializedMessageException(
  1032. result).asInvalidProtocolBufferException();
  1033. }
  1034. return buildPartial();
  1035. }
  1036. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent buildPartial() {
  1037. if (result == null) {
  1038. throw new IllegalStateException(
  1039. "build() has already been called on this Builder.");
  1040. }
  1041. if (result.image_ != java.util.Collections.EMPTY_LIST) {
  1042. result.image_ =
  1043. java.util.Collections.unmodifiableList(result.image_);
  1044. }
  1045. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent returnMe = result;
  1046. result = null;
  1047. return returnMe;
  1048. }
  1049. // repeated .serializers.protobuf.media.Image image = 1;
  1050. public java.util.List<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image> getImageList() {
  1051. return java.util.Collections.unmodifiableList(result.image_);
  1052. }
  1053. public int getImageCount() {
  1054. return result.getImageCount();
  1055. }
  1056. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image getImage(int index) {
  1057. return result.getImage(index);
  1058. }
  1059. public Builder setImage(int index, com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image value) {
  1060. if (value == null) {
  1061. throw new NullPointerException();
  1062. }
  1063. result.image_.set(index, value);
  1064. return this;
  1065. }
  1066. public Builder setImage(int index, com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Builder builderForValue) {
  1067. result.image_.set(index, builderForValue.build());
  1068. return this;
  1069. }
  1070. public Builder addImage(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image value) {
  1071. if (value == null) {
  1072. throw new NullPointerException();
  1073. }
  1074. if (result.image_.isEmpty()) {
  1075. result.image_ = new java.util.ArrayList<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image>();
  1076. }
  1077. result.image_.add(value);
  1078. return this;
  1079. }
  1080. public Builder addImage(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Builder builderForValue) {
  1081. if (result.image_.isEmpty()) {
  1082. result.image_ = new java.util.ArrayList<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image>();
  1083. }
  1084. result.image_.add(builderForValue.build());
  1085. return this;
  1086. }
  1087. public Builder addAllImage(
  1088. java.lang.Iterable<? extends com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image> values) {
  1089. if (result.image_.isEmpty()) {
  1090. result.image_ = new java.util.ArrayList<com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image>();
  1091. }
  1092. super.addAll(values, result.image_);
  1093. return this;
  1094. }
  1095. public Builder clearImage() {
  1096. result.image_ = java.util.Collections.emptyList();
  1097. return this;
  1098. }
  1099. // required .serializers.protobuf.media.Media media = 2;
  1100. public boolean hasMedia() {
  1101. return result.hasMedia();
  1102. }
  1103. public com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media getMedia() {
  1104. return result.getMedia();
  1105. }
  1106. public Builder setMedia(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media value) {
  1107. if (value == null) {
  1108. throw new NullPointerException();
  1109. }
  1110. result.hasMedia = true;
  1111. result.media_ = value;
  1112. return this;
  1113. }
  1114. public Builder setMedia(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Builder builderForValue) {
  1115. result.hasMedia = true;
  1116. result.media_ = builderForValue.build();
  1117. return this;
  1118. }
  1119. public Builder mergeMedia(com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media value) {
  1120. if (result.hasMedia() &&
  1121. result.media_ != com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDefaultInstance()) {
  1122. result.media_ =
  1123. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.newBuilder(result.media_).mergeFrom(value).buildPartial();
  1124. } else {
  1125. result.media_ = value;
  1126. }
  1127. result.hasMedia = true;
  1128. return this;
  1129. }
  1130. public Builder clearMedia() {
  1131. result.hasMedia = false;
  1132. result.media_ = com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.getDefaultInstance();
  1133. return this;
  1134. }
  1135. // @@protoc_insertion_point(builder_scope:serializers.protobuf.media.MediaContent)
  1136. }
  1137. static {
  1138. defaultInstance = new MediaContent(true);
  1139. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.internalForceInit();
  1140. defaultInstance.initFields();
  1141. }
  1142. // @@protoc_insertion_point(class_scope:serializers.protobuf.media.MediaContent)
  1143. }
  1144. private static com.google.protobuf.Descriptors.Descriptor
  1145. internal_static_serializers_protobuf_media_Image_descriptor;
  1146. private static
  1147. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1148. internal_static_serializers_protobuf_media_Image_fieldAccessorTable;
  1149. private static com.google.protobuf.Descriptors.Descriptor
  1150. internal_static_serializers_protobuf_media_Media_descriptor;
  1151. private static
  1152. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1153. internal_static_serializers_protobuf_media_Media_fieldAccessorTable;
  1154. private static com.google.protobuf.Descriptors.Descriptor
  1155. internal_static_serializers_protobuf_media_MediaContent_descriptor;
  1156. private static
  1157. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1158. internal_static_serializers_protobuf_media_MediaContent_fieldAccessorTable;
  1159. public static com.google.protobuf.Descriptors.FileDescriptor
  1160. getDescriptor() {
  1161. return descriptor;
  1162. }
  1163. private static com.google.protobuf.Descriptors.FileDescriptor
  1164. descriptor;
  1165. static {
  1166. java.lang.String[] descriptorData = {
  1167. "\n\036src/main/resources/media.proto\022\032serial" +
  1168. "izers.protobuf.media\"\226\001\n\005Image\022\013\n\003uri\030\001 " +
  1169. "\002(\t\022\r\n\005title\030\002 \001(\t\022\r\n\005width\030\003 \002(\005\022\016\n\006hei" +
  1170. "ght\030\004 \002(\005\0224\n\004size\030\005 \002(\0162&.serializers.pr" +
  1171. "otobuf.media.Image.Size\"\034\n\004Size\022\t\n\005SMALL" +
  1172. "\020\000\022\t\n\005LARGE\020\001\"\377\001\n\005Media\022\013\n\003uri\030\001 \002(\t\022\r\n\005" +
  1173. "title\030\002 \001(\t\022\r\n\005width\030\003 \002(\005\022\016\n\006height\030\004 \002" +
  1174. "(\005\022\016\n\006format\030\005 \002(\t\022\020\n\010duration\030\006 \002(\003\022\014\n\004" +
  1175. "size\030\007 \002(\003\022\017\n\007bitrate\030\010 \001(\005\022\016\n\006person\030\t " +
  1176. "\003(\t\0228\n\006player\030\n \002(\0162(.serializers.protob",
  1177. "uf.media.Media.Player\022\021\n\tcopyright\030\013 \001(\t" +
  1178. "\"\035\n\006Player\022\010\n\004JAVA\020\000\022\t\n\005FLASH\020\001\"r\n\014Media" +
  1179. "Content\0220\n\005image\030\001 \003(\0132!.serializers.pro" +
  1180. "tobuf.media.Image\0220\n\005media\030\002 \002(\0132!.seria" +
  1181. "lizers.protobuf.media.MediaB8\n#com.dyupr" +
  1182. "oject.protostuff.benchmarkB\017V2CodeSizeMe" +
  1183. "diaH\002"
  1184. };
  1185. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  1186. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  1187. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  1188. com.google.protobuf.Descriptors.FileDescriptor root) {
  1189. descriptor = root;
  1190. internal_static_serializers_protobuf_media_Image_descriptor =
  1191. getDescriptor().getMessageTypes().get(0);
  1192. internal_static_serializers_protobuf_media_Image_fieldAccessorTable = new
  1193. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1194. internal_static_serializers_protobuf_media_Image_descriptor,
  1195. new java.lang.String[] { "Uri", "Title", "Width", "Height", "Size", },
  1196. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.class,
  1197. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Image.Builder.class);
  1198. internal_static_serializers_protobuf_media_Media_descriptor =
  1199. getDescriptor().getMessageTypes().get(1);
  1200. internal_static_serializers_protobuf_media_Media_fieldAccessorTable = new
  1201. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1202. internal_static_serializers_protobuf_media_Media_descriptor,
  1203. new java.lang.String[] { "Uri", "Title", "Width", "Height", "Format", "Duration", "Size", "Bitrate", "Person", "Player", "Copyright", },
  1204. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.class,
  1205. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.Media.Builder.class);
  1206. internal_static_serializers_protobuf_media_MediaContent_descriptor =
  1207. getDescriptor().getMessageTypes().get(2);
  1208. internal_static_serializers_protobuf_media_MediaContent_fieldAccessorTable = new
  1209. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1210. internal_static_serializers_protobuf_media_MediaContent_descriptor,
  1211. new java.lang.String[] { "Image", "Media", },
  1212. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent.class,
  1213. com.dyuproject.protostuff.benchmark.V2CodeSizeMedia.MediaContent.Builder.class);
  1214. return null;
  1215. }
  1216. };
  1217. com.google.protobuf.Descriptors.FileDescriptor
  1218. .internalBuildGeneratedFileFrom(descriptorData,
  1219. new com.google.protobuf.Descriptors.FileDescriptor[] {
  1220. }, assigner);
  1221. }
  1222. public static void internalForceInit() {}
  1223. // @@protoc_insertion_point(outer_class_scope)
  1224. }