PageRenderTime 26ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/nfs-rpc-common/src/main/java/code/google/nfs/rpc/benchmark/PB.java

http://nfs-rpc.googlecode.com/
Java | 764 lines | 671 code | 76 blank | 17 comment | 64 complexity | 6cb8f7a9aefed4b8ca5fc6d017e33b0a MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: Test.proto
  3. package code.google.nfs.rpc.benchmark;
  4. public final class PB {
  5. private PB() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public interface RequestObjectOrBuilder
  10. extends com.google.protobuf.MessageOrBuilder {
  11. // required bytes bytesObject = 1;
  12. boolean hasBytesObject();
  13. com.google.protobuf.ByteString getBytesObject();
  14. }
  15. public static final class RequestObject extends
  16. com.google.protobuf.GeneratedMessage
  17. implements RequestObjectOrBuilder {
  18. // Use RequestObject.newBuilder() to construct.
  19. private RequestObject(Builder builder) {
  20. super(builder);
  21. }
  22. private RequestObject(boolean noInit) {}
  23. private static final RequestObject defaultInstance;
  24. public static RequestObject getDefaultInstance() {
  25. return defaultInstance;
  26. }
  27. public RequestObject getDefaultInstanceForType() {
  28. return defaultInstance;
  29. }
  30. public static final com.google.protobuf.Descriptors.Descriptor
  31. getDescriptor() {
  32. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_RequestObject_descriptor;
  33. }
  34. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  35. internalGetFieldAccessorTable() {
  36. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_RequestObject_fieldAccessorTable;
  37. }
  38. private int bitField0_;
  39. // required bytes bytesObject = 1;
  40. public static final int BYTESOBJECT_FIELD_NUMBER = 1;
  41. private com.google.protobuf.ByteString bytesObject_;
  42. public boolean hasBytesObject() {
  43. return ((bitField0_ & 0x00000001) == 0x00000001);
  44. }
  45. public com.google.protobuf.ByteString getBytesObject() {
  46. return bytesObject_;
  47. }
  48. private void initFields() {
  49. bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  50. }
  51. private byte memoizedIsInitialized = -1;
  52. public final boolean isInitialized() {
  53. byte isInitialized = memoizedIsInitialized;
  54. if (isInitialized != -1) return isInitialized == 1;
  55. if (!hasBytesObject()) {
  56. memoizedIsInitialized = 0;
  57. return false;
  58. }
  59. memoizedIsInitialized = 1;
  60. return true;
  61. }
  62. public void writeTo(com.google.protobuf.CodedOutputStream output)
  63. throws java.io.IOException {
  64. getSerializedSize();
  65. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  66. output.writeBytes(1, bytesObject_);
  67. }
  68. getUnknownFields().writeTo(output);
  69. }
  70. private int memoizedSerializedSize = -1;
  71. public int getSerializedSize() {
  72. int size = memoizedSerializedSize;
  73. if (size != -1) return size;
  74. size = 0;
  75. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  76. size += com.google.protobuf.CodedOutputStream
  77. .computeBytesSize(1, bytesObject_);
  78. }
  79. size += getUnknownFields().getSerializedSize();
  80. memoizedSerializedSize = size;
  81. return size;
  82. }
  83. private static final long serialVersionUID = 0L;
  84. @java.lang.Override
  85. protected java.lang.Object writeReplace()
  86. throws java.io.ObjectStreamException {
  87. return super.writeReplace();
  88. }
  89. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  90. com.google.protobuf.ByteString data)
  91. throws com.google.protobuf.InvalidProtocolBufferException {
  92. return newBuilder().mergeFrom(data).buildParsed();
  93. }
  94. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  95. com.google.protobuf.ByteString data,
  96. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  97. throws com.google.protobuf.InvalidProtocolBufferException {
  98. return newBuilder().mergeFrom(data, extensionRegistry)
  99. .buildParsed();
  100. }
  101. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(byte[] data)
  102. throws com.google.protobuf.InvalidProtocolBufferException {
  103. return newBuilder().mergeFrom(data).buildParsed();
  104. }
  105. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  106. byte[] data,
  107. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  108. throws com.google.protobuf.InvalidProtocolBufferException {
  109. return newBuilder().mergeFrom(data, extensionRegistry)
  110. .buildParsed();
  111. }
  112. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(java.io.InputStream input)
  113. throws java.io.IOException {
  114. return newBuilder().mergeFrom(input).buildParsed();
  115. }
  116. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  117. java.io.InputStream input,
  118. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  119. throws java.io.IOException {
  120. return newBuilder().mergeFrom(input, extensionRegistry)
  121. .buildParsed();
  122. }
  123. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseDelimitedFrom(java.io.InputStream input)
  124. throws java.io.IOException {
  125. Builder builder = newBuilder();
  126. if (builder.mergeDelimitedFrom(input)) {
  127. return builder.buildParsed();
  128. } else {
  129. return null;
  130. }
  131. }
  132. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseDelimitedFrom(
  133. java.io.InputStream input,
  134. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  135. throws java.io.IOException {
  136. Builder builder = newBuilder();
  137. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  138. return builder.buildParsed();
  139. } else {
  140. return null;
  141. }
  142. }
  143. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  144. com.google.protobuf.CodedInputStream input)
  145. throws java.io.IOException {
  146. return newBuilder().mergeFrom(input).buildParsed();
  147. }
  148. public static code.google.nfs.rpc.benchmark.PB.RequestObject parseFrom(
  149. com.google.protobuf.CodedInputStream input,
  150. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  151. throws java.io.IOException {
  152. return newBuilder().mergeFrom(input, extensionRegistry)
  153. .buildParsed();
  154. }
  155. public static Builder newBuilder() { return Builder.create(); }
  156. public Builder newBuilderForType() { return newBuilder(); }
  157. public static Builder newBuilder(code.google.nfs.rpc.benchmark.PB.RequestObject prototype) {
  158. return newBuilder().mergeFrom(prototype);
  159. }
  160. public Builder toBuilder() { return newBuilder(this); }
  161. @java.lang.Override
  162. protected Builder newBuilderForType(
  163. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  164. Builder builder = new Builder(parent);
  165. return builder;
  166. }
  167. public static final class Builder extends
  168. com.google.protobuf.GeneratedMessage.Builder<Builder>
  169. implements code.google.nfs.rpc.benchmark.PB.RequestObjectOrBuilder {
  170. public static final com.google.protobuf.Descriptors.Descriptor
  171. getDescriptor() {
  172. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_RequestObject_descriptor;
  173. }
  174. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  175. internalGetFieldAccessorTable() {
  176. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_RequestObject_fieldAccessorTable;
  177. }
  178. // Construct using code.google.nfs.rpc.benchmark.PB.RequestObject.newBuilder()
  179. private Builder() {
  180. maybeForceBuilderInitialization();
  181. }
  182. private Builder(BuilderParent parent) {
  183. super(parent);
  184. maybeForceBuilderInitialization();
  185. }
  186. private void maybeForceBuilderInitialization() {
  187. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  188. }
  189. }
  190. private static Builder create() {
  191. return new Builder();
  192. }
  193. public Builder clear() {
  194. super.clear();
  195. bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  196. bitField0_ = (bitField0_ & ~0x00000001);
  197. return this;
  198. }
  199. public Builder clone() {
  200. return create().mergeFrom(buildPartial());
  201. }
  202. public com.google.protobuf.Descriptors.Descriptor
  203. getDescriptorForType() {
  204. return code.google.nfs.rpc.benchmark.PB.RequestObject.getDescriptor();
  205. }
  206. public code.google.nfs.rpc.benchmark.PB.RequestObject getDefaultInstanceForType() {
  207. return code.google.nfs.rpc.benchmark.PB.RequestObject.getDefaultInstance();
  208. }
  209. public code.google.nfs.rpc.benchmark.PB.RequestObject build() {
  210. code.google.nfs.rpc.benchmark.PB.RequestObject result = buildPartial();
  211. if (!result.isInitialized()) {
  212. throw newUninitializedMessageException(result);
  213. }
  214. return result;
  215. }
  216. private code.google.nfs.rpc.benchmark.PB.RequestObject buildParsed()
  217. throws com.google.protobuf.InvalidProtocolBufferException {
  218. code.google.nfs.rpc.benchmark.PB.RequestObject result = buildPartial();
  219. if (!result.isInitialized()) {
  220. throw newUninitializedMessageException(
  221. result).asInvalidProtocolBufferException();
  222. }
  223. return result;
  224. }
  225. public code.google.nfs.rpc.benchmark.PB.RequestObject buildPartial() {
  226. code.google.nfs.rpc.benchmark.PB.RequestObject result = new code.google.nfs.rpc.benchmark.PB.RequestObject(this);
  227. int from_bitField0_ = bitField0_;
  228. int to_bitField0_ = 0;
  229. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  230. to_bitField0_ |= 0x00000001;
  231. }
  232. result.bytesObject_ = bytesObject_;
  233. result.bitField0_ = to_bitField0_;
  234. onBuilt();
  235. return result;
  236. }
  237. public Builder mergeFrom(com.google.protobuf.Message other) {
  238. if (other instanceof code.google.nfs.rpc.benchmark.PB.RequestObject) {
  239. return mergeFrom((code.google.nfs.rpc.benchmark.PB.RequestObject)other);
  240. } else {
  241. super.mergeFrom(other);
  242. return this;
  243. }
  244. }
  245. public Builder mergeFrom(code.google.nfs.rpc.benchmark.PB.RequestObject other) {
  246. if (other == code.google.nfs.rpc.benchmark.PB.RequestObject.getDefaultInstance()) return this;
  247. if (other.hasBytesObject()) {
  248. setBytesObject(other.getBytesObject());
  249. }
  250. this.mergeUnknownFields(other.getUnknownFields());
  251. return this;
  252. }
  253. public final boolean isInitialized() {
  254. if (!hasBytesObject()) {
  255. return false;
  256. }
  257. return true;
  258. }
  259. public Builder mergeFrom(
  260. com.google.protobuf.CodedInputStream input,
  261. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  262. throws java.io.IOException {
  263. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  264. com.google.protobuf.UnknownFieldSet.newBuilder(
  265. this.getUnknownFields());
  266. while (true) {
  267. int tag = input.readTag();
  268. switch (tag) {
  269. case 0:
  270. this.setUnknownFields(unknownFields.build());
  271. onChanged();
  272. return this;
  273. default: {
  274. if (!parseUnknownField(input, unknownFields,
  275. extensionRegistry, tag)) {
  276. this.setUnknownFields(unknownFields.build());
  277. onChanged();
  278. return this;
  279. }
  280. break;
  281. }
  282. case 10: {
  283. bitField0_ |= 0x00000001;
  284. bytesObject_ = input.readBytes();
  285. break;
  286. }
  287. }
  288. }
  289. }
  290. private int bitField0_;
  291. // required bytes bytesObject = 1;
  292. private com.google.protobuf.ByteString bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  293. public boolean hasBytesObject() {
  294. return ((bitField0_ & 0x00000001) == 0x00000001);
  295. }
  296. public com.google.protobuf.ByteString getBytesObject() {
  297. return bytesObject_;
  298. }
  299. public Builder setBytesObject(com.google.protobuf.ByteString value) {
  300. if (value == null) {
  301. throw new NullPointerException();
  302. }
  303. bitField0_ |= 0x00000001;
  304. bytesObject_ = value;
  305. onChanged();
  306. return this;
  307. }
  308. public Builder clearBytesObject() {
  309. bitField0_ = (bitField0_ & ~0x00000001);
  310. bytesObject_ = getDefaultInstance().getBytesObject();
  311. onChanged();
  312. return this;
  313. }
  314. // @@protoc_insertion_point(builder_scope:com.bluedavy.RequestObject)
  315. }
  316. static {
  317. defaultInstance = new RequestObject(true);
  318. defaultInstance.initFields();
  319. }
  320. // @@protoc_insertion_point(class_scope:com.bluedavy.RequestObject)
  321. }
  322. public interface ResponseObjectOrBuilder
  323. extends com.google.protobuf.MessageOrBuilder {
  324. // required bytes bytesObject = 1;
  325. boolean hasBytesObject();
  326. com.google.protobuf.ByteString getBytesObject();
  327. }
  328. public static final class ResponseObject extends
  329. com.google.protobuf.GeneratedMessage
  330. implements ResponseObjectOrBuilder {
  331. // Use ResponseObject.newBuilder() to construct.
  332. private ResponseObject(Builder builder) {
  333. super(builder);
  334. }
  335. private ResponseObject(boolean noInit) {}
  336. private static final ResponseObject defaultInstance;
  337. public static ResponseObject getDefaultInstance() {
  338. return defaultInstance;
  339. }
  340. public ResponseObject getDefaultInstanceForType() {
  341. return defaultInstance;
  342. }
  343. public static final com.google.protobuf.Descriptors.Descriptor
  344. getDescriptor() {
  345. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_ResponseObject_descriptor;
  346. }
  347. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  348. internalGetFieldAccessorTable() {
  349. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_ResponseObject_fieldAccessorTable;
  350. }
  351. private int bitField0_;
  352. // required bytes bytesObject = 1;
  353. public static final int BYTESOBJECT_FIELD_NUMBER = 1;
  354. private com.google.protobuf.ByteString bytesObject_;
  355. public boolean hasBytesObject() {
  356. return ((bitField0_ & 0x00000001) == 0x00000001);
  357. }
  358. public com.google.protobuf.ByteString getBytesObject() {
  359. return bytesObject_;
  360. }
  361. private void initFields() {
  362. bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  363. }
  364. private byte memoizedIsInitialized = -1;
  365. public final boolean isInitialized() {
  366. byte isInitialized = memoizedIsInitialized;
  367. if (isInitialized != -1) return isInitialized == 1;
  368. if (!hasBytesObject()) {
  369. memoizedIsInitialized = 0;
  370. return false;
  371. }
  372. memoizedIsInitialized = 1;
  373. return true;
  374. }
  375. public void writeTo(com.google.protobuf.CodedOutputStream output)
  376. throws java.io.IOException {
  377. getSerializedSize();
  378. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  379. output.writeBytes(1, bytesObject_);
  380. }
  381. getUnknownFields().writeTo(output);
  382. }
  383. private int memoizedSerializedSize = -1;
  384. public int getSerializedSize() {
  385. int size = memoizedSerializedSize;
  386. if (size != -1) return size;
  387. size = 0;
  388. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  389. size += com.google.protobuf.CodedOutputStream
  390. .computeBytesSize(1, bytesObject_);
  391. }
  392. size += getUnknownFields().getSerializedSize();
  393. memoizedSerializedSize = size;
  394. return size;
  395. }
  396. private static final long serialVersionUID = 0L;
  397. @java.lang.Override
  398. protected java.lang.Object writeReplace()
  399. throws java.io.ObjectStreamException {
  400. return super.writeReplace();
  401. }
  402. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  403. com.google.protobuf.ByteString data)
  404. throws com.google.protobuf.InvalidProtocolBufferException {
  405. return newBuilder().mergeFrom(data).buildParsed();
  406. }
  407. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  408. com.google.protobuf.ByteString data,
  409. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  410. throws com.google.protobuf.InvalidProtocolBufferException {
  411. return newBuilder().mergeFrom(data, extensionRegistry)
  412. .buildParsed();
  413. }
  414. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(byte[] data)
  415. throws com.google.protobuf.InvalidProtocolBufferException {
  416. return newBuilder().mergeFrom(data).buildParsed();
  417. }
  418. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  419. byte[] data,
  420. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  421. throws com.google.protobuf.InvalidProtocolBufferException {
  422. return newBuilder().mergeFrom(data, extensionRegistry)
  423. .buildParsed();
  424. }
  425. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(java.io.InputStream input)
  426. throws java.io.IOException {
  427. return newBuilder().mergeFrom(input).buildParsed();
  428. }
  429. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  430. java.io.InputStream input,
  431. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  432. throws java.io.IOException {
  433. return newBuilder().mergeFrom(input, extensionRegistry)
  434. .buildParsed();
  435. }
  436. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseDelimitedFrom(java.io.InputStream input)
  437. throws java.io.IOException {
  438. Builder builder = newBuilder();
  439. if (builder.mergeDelimitedFrom(input)) {
  440. return builder.buildParsed();
  441. } else {
  442. return null;
  443. }
  444. }
  445. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseDelimitedFrom(
  446. java.io.InputStream input,
  447. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  448. throws java.io.IOException {
  449. Builder builder = newBuilder();
  450. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  451. return builder.buildParsed();
  452. } else {
  453. return null;
  454. }
  455. }
  456. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  457. com.google.protobuf.CodedInputStream input)
  458. throws java.io.IOException {
  459. return newBuilder().mergeFrom(input).buildParsed();
  460. }
  461. public static code.google.nfs.rpc.benchmark.PB.ResponseObject parseFrom(
  462. com.google.protobuf.CodedInputStream input,
  463. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  464. throws java.io.IOException {
  465. return newBuilder().mergeFrom(input, extensionRegistry)
  466. .buildParsed();
  467. }
  468. public static Builder newBuilder() { return Builder.create(); }
  469. public Builder newBuilderForType() { return newBuilder(); }
  470. public static Builder newBuilder(code.google.nfs.rpc.benchmark.PB.ResponseObject prototype) {
  471. return newBuilder().mergeFrom(prototype);
  472. }
  473. public Builder toBuilder() { return newBuilder(this); }
  474. @java.lang.Override
  475. protected Builder newBuilderForType(
  476. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  477. Builder builder = new Builder(parent);
  478. return builder;
  479. }
  480. public static final class Builder extends
  481. com.google.protobuf.GeneratedMessage.Builder<Builder>
  482. implements code.google.nfs.rpc.benchmark.PB.ResponseObjectOrBuilder {
  483. public static final com.google.protobuf.Descriptors.Descriptor
  484. getDescriptor() {
  485. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_ResponseObject_descriptor;
  486. }
  487. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  488. internalGetFieldAccessorTable() {
  489. return code.google.nfs.rpc.benchmark.PB.internal_static_com_bluedavy_ResponseObject_fieldAccessorTable;
  490. }
  491. // Construct using code.google.nfs.rpc.benchmark.PB.ResponseObject.newBuilder()
  492. private Builder() {
  493. maybeForceBuilderInitialization();
  494. }
  495. private Builder(BuilderParent parent) {
  496. super(parent);
  497. maybeForceBuilderInitialization();
  498. }
  499. private void maybeForceBuilderInitialization() {
  500. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  501. }
  502. }
  503. private static Builder create() {
  504. return new Builder();
  505. }
  506. public Builder clear() {
  507. super.clear();
  508. bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  509. bitField0_ = (bitField0_ & ~0x00000001);
  510. return this;
  511. }
  512. public Builder clone() {
  513. return create().mergeFrom(buildPartial());
  514. }
  515. public com.google.protobuf.Descriptors.Descriptor
  516. getDescriptorForType() {
  517. return code.google.nfs.rpc.benchmark.PB.ResponseObject.getDescriptor();
  518. }
  519. public code.google.nfs.rpc.benchmark.PB.ResponseObject getDefaultInstanceForType() {
  520. return code.google.nfs.rpc.benchmark.PB.ResponseObject.getDefaultInstance();
  521. }
  522. public code.google.nfs.rpc.benchmark.PB.ResponseObject build() {
  523. code.google.nfs.rpc.benchmark.PB.ResponseObject result = buildPartial();
  524. if (!result.isInitialized()) {
  525. throw newUninitializedMessageException(result);
  526. }
  527. return result;
  528. }
  529. private code.google.nfs.rpc.benchmark.PB.ResponseObject buildParsed()
  530. throws com.google.protobuf.InvalidProtocolBufferException {
  531. code.google.nfs.rpc.benchmark.PB.ResponseObject result = buildPartial();
  532. if (!result.isInitialized()) {
  533. throw newUninitializedMessageException(
  534. result).asInvalidProtocolBufferException();
  535. }
  536. return result;
  537. }
  538. public code.google.nfs.rpc.benchmark.PB.ResponseObject buildPartial() {
  539. code.google.nfs.rpc.benchmark.PB.ResponseObject result = new code.google.nfs.rpc.benchmark.PB.ResponseObject(this);
  540. int from_bitField0_ = bitField0_;
  541. int to_bitField0_ = 0;
  542. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  543. to_bitField0_ |= 0x00000001;
  544. }
  545. result.bytesObject_ = bytesObject_;
  546. result.bitField0_ = to_bitField0_;
  547. onBuilt();
  548. return result;
  549. }
  550. public Builder mergeFrom(com.google.protobuf.Message other) {
  551. if (other instanceof code.google.nfs.rpc.benchmark.PB.ResponseObject) {
  552. return mergeFrom((code.google.nfs.rpc.benchmark.PB.ResponseObject)other);
  553. } else {
  554. super.mergeFrom(other);
  555. return this;
  556. }
  557. }
  558. public Builder mergeFrom(code.google.nfs.rpc.benchmark.PB.ResponseObject other) {
  559. if (other == code.google.nfs.rpc.benchmark.PB.ResponseObject.getDefaultInstance()) return this;
  560. if (other.hasBytesObject()) {
  561. setBytesObject(other.getBytesObject());
  562. }
  563. this.mergeUnknownFields(other.getUnknownFields());
  564. return this;
  565. }
  566. public final boolean isInitialized() {
  567. if (!hasBytesObject()) {
  568. return false;
  569. }
  570. return true;
  571. }
  572. public Builder mergeFrom(
  573. com.google.protobuf.CodedInputStream input,
  574. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  575. throws java.io.IOException {
  576. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  577. com.google.protobuf.UnknownFieldSet.newBuilder(
  578. this.getUnknownFields());
  579. while (true) {
  580. int tag = input.readTag();
  581. switch (tag) {
  582. case 0:
  583. this.setUnknownFields(unknownFields.build());
  584. onChanged();
  585. return this;
  586. default: {
  587. if (!parseUnknownField(input, unknownFields,
  588. extensionRegistry, tag)) {
  589. this.setUnknownFields(unknownFields.build());
  590. onChanged();
  591. return this;
  592. }
  593. break;
  594. }
  595. case 10: {
  596. bitField0_ |= 0x00000001;
  597. bytesObject_ = input.readBytes();
  598. break;
  599. }
  600. }
  601. }
  602. }
  603. private int bitField0_;
  604. // required bytes bytesObject = 1;
  605. private com.google.protobuf.ByteString bytesObject_ = com.google.protobuf.ByteString.EMPTY;
  606. public boolean hasBytesObject() {
  607. return ((bitField0_ & 0x00000001) == 0x00000001);
  608. }
  609. public com.google.protobuf.ByteString getBytesObject() {
  610. return bytesObject_;
  611. }
  612. public Builder setBytesObject(com.google.protobuf.ByteString value) {
  613. if (value == null) {
  614. throw new NullPointerException();
  615. }
  616. bitField0_ |= 0x00000001;
  617. bytesObject_ = value;
  618. onChanged();
  619. return this;
  620. }
  621. public Builder clearBytesObject() {
  622. bitField0_ = (bitField0_ & ~0x00000001);
  623. bytesObject_ = getDefaultInstance().getBytesObject();
  624. onChanged();
  625. return this;
  626. }
  627. // @@protoc_insertion_point(builder_scope:com.bluedavy.ResponseObject)
  628. }
  629. static {
  630. defaultInstance = new ResponseObject(true);
  631. defaultInstance.initFields();
  632. }
  633. // @@protoc_insertion_point(class_scope:com.bluedavy.ResponseObject)
  634. }
  635. private static com.google.protobuf.Descriptors.Descriptor
  636. internal_static_com_bluedavy_RequestObject_descriptor;
  637. private static
  638. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  639. internal_static_com_bluedavy_RequestObject_fieldAccessorTable;
  640. private static com.google.protobuf.Descriptors.Descriptor
  641. internal_static_com_bluedavy_ResponseObject_descriptor;
  642. private static
  643. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  644. internal_static_com_bluedavy_ResponseObject_fieldAccessorTable;
  645. public static com.google.protobuf.Descriptors.FileDescriptor
  646. getDescriptor() {
  647. return descriptor;
  648. }
  649. private static com.google.protobuf.Descriptors.FileDescriptor
  650. descriptor;
  651. static {
  652. java.lang.String[] descriptorData = {
  653. "\n\nTest.proto\022\014com.bluedavy\"$\n\rRequestObj" +
  654. "ect\022\023\n\013bytesObject\030\001 \002(\014\"%\n\016ResponseObje" +
  655. "ct\022\023\n\013bytesObject\030\001 \002(\014B#\n\035code.google.n" +
  656. "fs.rpc.benchmarkB\002PB"
  657. };
  658. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  659. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  660. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  661. com.google.protobuf.Descriptors.FileDescriptor root) {
  662. descriptor = root;
  663. internal_static_com_bluedavy_RequestObject_descriptor =
  664. getDescriptor().getMessageTypes().get(0);
  665. internal_static_com_bluedavy_RequestObject_fieldAccessorTable = new
  666. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  667. internal_static_com_bluedavy_RequestObject_descriptor,
  668. new java.lang.String[] { "BytesObject", },
  669. code.google.nfs.rpc.benchmark.PB.RequestObject.class,
  670. code.google.nfs.rpc.benchmark.PB.RequestObject.Builder.class);
  671. internal_static_com_bluedavy_ResponseObject_descriptor =
  672. getDescriptor().getMessageTypes().get(1);
  673. internal_static_com_bluedavy_ResponseObject_fieldAccessorTable = new
  674. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  675. internal_static_com_bluedavy_ResponseObject_descriptor,
  676. new java.lang.String[] { "BytesObject", },
  677. code.google.nfs.rpc.benchmark.PB.ResponseObject.class,
  678. code.google.nfs.rpc.benchmark.PB.ResponseObject.Builder.class);
  679. return null;
  680. }
  681. };
  682. com.google.protobuf.Descriptors.FileDescriptor
  683. .internalBuildGeneratedFileFrom(descriptorData,
  684. new com.google.protobuf.Descriptors.FileDescriptor[] {
  685. }, assigner);
  686. }
  687. // @@protoc_insertion_point(outer_class_scope)
  688. }