PageRenderTime 53ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/server/app/controllers/DataTransferProtocol.java

http://parent-guard.googlecode.com/
Java | 1429 lines | 1307 code | 90 blank | 32 comment | 209 complexity | c92d64215da01c0caeec68bb87521d58 MD5 | raw file
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: data_transfer_protocol.proto
  3. package controllers;
  4. public final class DataTransferProtocol {
  5. private DataTransferProtocol() {}
  6. public static void registerAllExtensions(
  7. com.google.protobuf.ExtensionRegistry registry) {
  8. }
  9. public interface AppPropertyOrBuilder
  10. extends com.google.protobuf.MessageOrBuilder {
  11. // optional string app_package_name = 1;
  12. boolean hasAppPackageName();
  13. String getAppPackageName();
  14. // optional string app_activity_name = 2;
  15. boolean hasAppActivityName();
  16. String getAppActivityName();
  17. // optional string app_name = 3;
  18. boolean hasAppName();
  19. String getAppName();
  20. // optional bool is_restricted = 4;
  21. boolean hasIsRestricted();
  22. boolean getIsRestricted();
  23. }
  24. public static final class AppProperty extends
  25. com.google.protobuf.GeneratedMessage
  26. implements AppPropertyOrBuilder {
  27. // Use AppProperty.newBuilder() to construct.
  28. private AppProperty(Builder builder) {
  29. super(builder);
  30. }
  31. private AppProperty(boolean noInit) {}
  32. private static final AppProperty defaultInstance;
  33. public static AppProperty getDefaultInstance() {
  34. return defaultInstance;
  35. }
  36. public AppProperty getDefaultInstanceForType() {
  37. return defaultInstance;
  38. }
  39. public static final com.google.protobuf.Descriptors.Descriptor
  40. getDescriptor() {
  41. return DataTransferProtocol.internal_static_AppProperty_descriptor;
  42. }
  43. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  44. internalGetFieldAccessorTable() {
  45. return DataTransferProtocol.internal_static_AppProperty_fieldAccessorTable;
  46. }
  47. private int bitField0_;
  48. // optional string app_package_name = 1;
  49. public static final int APP_PACKAGE_NAME_FIELD_NUMBER = 1;
  50. private java.lang.Object appPackageName_;
  51. public boolean hasAppPackageName() {
  52. return ((bitField0_ & 0x00000001) == 0x00000001);
  53. }
  54. public String getAppPackageName() {
  55. java.lang.Object ref = appPackageName_;
  56. if (ref instanceof String) {
  57. return (String) ref;
  58. } else {
  59. com.google.protobuf.ByteString bs =
  60. (com.google.protobuf.ByteString) ref;
  61. String s = bs.toStringUtf8();
  62. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  63. appPackageName_ = s;
  64. }
  65. return s;
  66. }
  67. }
  68. private com.google.protobuf.ByteString getAppPackageNameBytes() {
  69. java.lang.Object ref = appPackageName_;
  70. if (ref instanceof String) {
  71. com.google.protobuf.ByteString b =
  72. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  73. appPackageName_ = b;
  74. return b;
  75. } else {
  76. return (com.google.protobuf.ByteString) ref;
  77. }
  78. }
  79. // optional string app_activity_name = 2;
  80. public static final int APP_ACTIVITY_NAME_FIELD_NUMBER = 2;
  81. private java.lang.Object appActivityName_;
  82. public boolean hasAppActivityName() {
  83. return ((bitField0_ & 0x00000002) == 0x00000002);
  84. }
  85. public String getAppActivityName() {
  86. java.lang.Object ref = appActivityName_;
  87. if (ref instanceof String) {
  88. return (String) ref;
  89. } else {
  90. com.google.protobuf.ByteString bs =
  91. (com.google.protobuf.ByteString) ref;
  92. String s = bs.toStringUtf8();
  93. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  94. appActivityName_ = s;
  95. }
  96. return s;
  97. }
  98. }
  99. private com.google.protobuf.ByteString getAppActivityNameBytes() {
  100. java.lang.Object ref = appActivityName_;
  101. if (ref instanceof String) {
  102. com.google.protobuf.ByteString b =
  103. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  104. appActivityName_ = b;
  105. return b;
  106. } else {
  107. return (com.google.protobuf.ByteString) ref;
  108. }
  109. }
  110. // optional string app_name = 3;
  111. public static final int APP_NAME_FIELD_NUMBER = 3;
  112. private java.lang.Object appName_;
  113. public boolean hasAppName() {
  114. return ((bitField0_ & 0x00000004) == 0x00000004);
  115. }
  116. public String getAppName() {
  117. java.lang.Object ref = appName_;
  118. if (ref instanceof String) {
  119. return (String) ref;
  120. } else {
  121. com.google.protobuf.ByteString bs =
  122. (com.google.protobuf.ByteString) ref;
  123. String s = bs.toStringUtf8();
  124. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  125. appName_ = s;
  126. }
  127. return s;
  128. }
  129. }
  130. private com.google.protobuf.ByteString getAppNameBytes() {
  131. java.lang.Object ref = appName_;
  132. if (ref instanceof String) {
  133. com.google.protobuf.ByteString b =
  134. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  135. appName_ = b;
  136. return b;
  137. } else {
  138. return (com.google.protobuf.ByteString) ref;
  139. }
  140. }
  141. // optional bool is_restricted = 4;
  142. public static final int IS_RESTRICTED_FIELD_NUMBER = 4;
  143. private boolean isRestricted_;
  144. public boolean hasIsRestricted() {
  145. return ((bitField0_ & 0x00000008) == 0x00000008);
  146. }
  147. public boolean getIsRestricted() {
  148. return isRestricted_;
  149. }
  150. private void initFields() {
  151. appPackageName_ = "";
  152. appActivityName_ = "";
  153. appName_ = "";
  154. isRestricted_ = false;
  155. }
  156. private byte memoizedIsInitialized = -1;
  157. public final boolean isInitialized() {
  158. byte isInitialized = memoizedIsInitialized;
  159. if (isInitialized != -1) return isInitialized == 1;
  160. memoizedIsInitialized = 1;
  161. return true;
  162. }
  163. public void writeTo(com.google.protobuf.CodedOutputStream output)
  164. throws java.io.IOException {
  165. getSerializedSize();
  166. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  167. output.writeBytes(1, getAppPackageNameBytes());
  168. }
  169. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  170. output.writeBytes(2, getAppActivityNameBytes());
  171. }
  172. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  173. output.writeBytes(3, getAppNameBytes());
  174. }
  175. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  176. output.writeBool(4, isRestricted_);
  177. }
  178. getUnknownFields().writeTo(output);
  179. }
  180. private int memoizedSerializedSize = -1;
  181. public int getSerializedSize() {
  182. int size = memoizedSerializedSize;
  183. if (size != -1) return size;
  184. size = 0;
  185. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  186. size += com.google.protobuf.CodedOutputStream
  187. .computeBytesSize(1, getAppPackageNameBytes());
  188. }
  189. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  190. size += com.google.protobuf.CodedOutputStream
  191. .computeBytesSize(2, getAppActivityNameBytes());
  192. }
  193. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  194. size += com.google.protobuf.CodedOutputStream
  195. .computeBytesSize(3, getAppNameBytes());
  196. }
  197. if (((bitField0_ & 0x00000008) == 0x00000008)) {
  198. size += com.google.protobuf.CodedOutputStream
  199. .computeBoolSize(4, isRestricted_);
  200. }
  201. size += getUnknownFields().getSerializedSize();
  202. memoizedSerializedSize = size;
  203. return size;
  204. }
  205. private static final long serialVersionUID = 0L;
  206. @java.lang.Override
  207. protected java.lang.Object writeReplace()
  208. throws java.io.ObjectStreamException {
  209. return super.writeReplace();
  210. }
  211. public static DataTransferProtocol.AppProperty parseFrom(
  212. com.google.protobuf.ByteString data)
  213. throws com.google.protobuf.InvalidProtocolBufferException {
  214. return newBuilder().mergeFrom(data).buildParsed();
  215. }
  216. public static DataTransferProtocol.AppProperty parseFrom(
  217. com.google.protobuf.ByteString data,
  218. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  219. throws com.google.protobuf.InvalidProtocolBufferException {
  220. return newBuilder().mergeFrom(data, extensionRegistry)
  221. .buildParsed();
  222. }
  223. public static DataTransferProtocol.AppProperty parseFrom(byte[] data)
  224. throws com.google.protobuf.InvalidProtocolBufferException {
  225. return newBuilder().mergeFrom(data).buildParsed();
  226. }
  227. public static DataTransferProtocol.AppProperty parseFrom(
  228. byte[] data,
  229. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  230. throws com.google.protobuf.InvalidProtocolBufferException {
  231. return newBuilder().mergeFrom(data, extensionRegistry)
  232. .buildParsed();
  233. }
  234. public static DataTransferProtocol.AppProperty parseFrom(java.io.InputStream input)
  235. throws java.io.IOException {
  236. return newBuilder().mergeFrom(input).buildParsed();
  237. }
  238. public static DataTransferProtocol.AppProperty parseFrom(
  239. java.io.InputStream input,
  240. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  241. throws java.io.IOException {
  242. return newBuilder().mergeFrom(input, extensionRegistry)
  243. .buildParsed();
  244. }
  245. public static DataTransferProtocol.AppProperty parseDelimitedFrom(java.io.InputStream input)
  246. throws java.io.IOException {
  247. Builder builder = newBuilder();
  248. if (builder.mergeDelimitedFrom(input)) {
  249. return builder.buildParsed();
  250. } else {
  251. return null;
  252. }
  253. }
  254. public static DataTransferProtocol.AppProperty parseDelimitedFrom(
  255. java.io.InputStream input,
  256. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  257. throws java.io.IOException {
  258. Builder builder = newBuilder();
  259. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  260. return builder.buildParsed();
  261. } else {
  262. return null;
  263. }
  264. }
  265. public static DataTransferProtocol.AppProperty parseFrom(
  266. com.google.protobuf.CodedInputStream input)
  267. throws java.io.IOException {
  268. return newBuilder().mergeFrom(input).buildParsed();
  269. }
  270. public static DataTransferProtocol.AppProperty parseFrom(
  271. com.google.protobuf.CodedInputStream input,
  272. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  273. throws java.io.IOException {
  274. return newBuilder().mergeFrom(input, extensionRegistry)
  275. .buildParsed();
  276. }
  277. public static Builder newBuilder() { return Builder.create(); }
  278. public Builder newBuilderForType() { return newBuilder(); }
  279. public static Builder newBuilder(DataTransferProtocol.AppProperty prototype) {
  280. return newBuilder().mergeFrom(prototype);
  281. }
  282. public Builder toBuilder() { return newBuilder(this); }
  283. @java.lang.Override
  284. protected Builder newBuilderForType(
  285. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  286. Builder builder = new Builder(parent);
  287. return builder;
  288. }
  289. public static final class Builder extends
  290. com.google.protobuf.GeneratedMessage.Builder<Builder>
  291. implements DataTransferProtocol.AppPropertyOrBuilder {
  292. public static final com.google.protobuf.Descriptors.Descriptor
  293. getDescriptor() {
  294. return DataTransferProtocol.internal_static_AppProperty_descriptor;
  295. }
  296. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  297. internalGetFieldAccessorTable() {
  298. return DataTransferProtocol.internal_static_AppProperty_fieldAccessorTable;
  299. }
  300. // Construct using DataTransferProtocol.AppProperty.newBuilder()
  301. private Builder() {
  302. maybeForceBuilderInitialization();
  303. }
  304. private Builder(BuilderParent parent) {
  305. super(parent);
  306. maybeForceBuilderInitialization();
  307. }
  308. private void maybeForceBuilderInitialization() {
  309. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  310. }
  311. }
  312. private static Builder create() {
  313. return new Builder();
  314. }
  315. public Builder clear() {
  316. super.clear();
  317. appPackageName_ = "";
  318. bitField0_ = (bitField0_ & ~0x00000001);
  319. appActivityName_ = "";
  320. bitField0_ = (bitField0_ & ~0x00000002);
  321. appName_ = "";
  322. bitField0_ = (bitField0_ & ~0x00000004);
  323. isRestricted_ = false;
  324. bitField0_ = (bitField0_ & ~0x00000008);
  325. return this;
  326. }
  327. public Builder clone() {
  328. return create().mergeFrom(buildPartial());
  329. }
  330. public com.google.protobuf.Descriptors.Descriptor
  331. getDescriptorForType() {
  332. return DataTransferProtocol.AppProperty.getDescriptor();
  333. }
  334. public DataTransferProtocol.AppProperty getDefaultInstanceForType() {
  335. return DataTransferProtocol.AppProperty.getDefaultInstance();
  336. }
  337. public DataTransferProtocol.AppProperty build() {
  338. DataTransferProtocol.AppProperty result = buildPartial();
  339. if (!result.isInitialized()) {
  340. throw newUninitializedMessageException(result);
  341. }
  342. return result;
  343. }
  344. private DataTransferProtocol.AppProperty buildParsed()
  345. throws com.google.protobuf.InvalidProtocolBufferException {
  346. DataTransferProtocol.AppProperty result = buildPartial();
  347. if (!result.isInitialized()) {
  348. throw newUninitializedMessageException(
  349. result).asInvalidProtocolBufferException();
  350. }
  351. return result;
  352. }
  353. public DataTransferProtocol.AppProperty buildPartial() {
  354. DataTransferProtocol.AppProperty result = new DataTransferProtocol.AppProperty(this);
  355. int from_bitField0_ = bitField0_;
  356. int to_bitField0_ = 0;
  357. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  358. to_bitField0_ |= 0x00000001;
  359. }
  360. result.appPackageName_ = appPackageName_;
  361. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  362. to_bitField0_ |= 0x00000002;
  363. }
  364. result.appActivityName_ = appActivityName_;
  365. if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
  366. to_bitField0_ |= 0x00000004;
  367. }
  368. result.appName_ = appName_;
  369. if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
  370. to_bitField0_ |= 0x00000008;
  371. }
  372. result.isRestricted_ = isRestricted_;
  373. result.bitField0_ = to_bitField0_;
  374. onBuilt();
  375. return result;
  376. }
  377. public Builder mergeFrom(com.google.protobuf.Message other) {
  378. if (other instanceof DataTransferProtocol.AppProperty) {
  379. return mergeFrom((DataTransferProtocol.AppProperty)other);
  380. } else {
  381. super.mergeFrom(other);
  382. return this;
  383. }
  384. }
  385. public Builder mergeFrom(DataTransferProtocol.AppProperty other) {
  386. if (other == DataTransferProtocol.AppProperty.getDefaultInstance()) return this;
  387. if (other.hasAppPackageName()) {
  388. setAppPackageName(other.getAppPackageName());
  389. }
  390. if (other.hasAppActivityName()) {
  391. setAppActivityName(other.getAppActivityName());
  392. }
  393. if (other.hasAppName()) {
  394. setAppName(other.getAppName());
  395. }
  396. if (other.hasIsRestricted()) {
  397. setIsRestricted(other.getIsRestricted());
  398. }
  399. this.mergeUnknownFields(other.getUnknownFields());
  400. return this;
  401. }
  402. public final boolean isInitialized() {
  403. return true;
  404. }
  405. public Builder mergeFrom(
  406. com.google.protobuf.CodedInputStream input,
  407. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  408. throws java.io.IOException {
  409. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  410. com.google.protobuf.UnknownFieldSet.newBuilder(
  411. this.getUnknownFields());
  412. while (true) {
  413. int tag = input.readTag();
  414. switch (tag) {
  415. case 0:
  416. this.setUnknownFields(unknownFields.build());
  417. onChanged();
  418. return this;
  419. default: {
  420. if (!parseUnknownField(input, unknownFields,
  421. extensionRegistry, tag)) {
  422. this.setUnknownFields(unknownFields.build());
  423. onChanged();
  424. return this;
  425. }
  426. break;
  427. }
  428. case 10: {
  429. bitField0_ |= 0x00000001;
  430. appPackageName_ = input.readBytes();
  431. break;
  432. }
  433. case 18: {
  434. bitField0_ |= 0x00000002;
  435. appActivityName_ = input.readBytes();
  436. break;
  437. }
  438. case 26: {
  439. bitField0_ |= 0x00000004;
  440. appName_ = input.readBytes();
  441. break;
  442. }
  443. case 32: {
  444. bitField0_ |= 0x00000008;
  445. isRestricted_ = input.readBool();
  446. break;
  447. }
  448. }
  449. }
  450. }
  451. private int bitField0_;
  452. // optional string app_package_name = 1;
  453. private java.lang.Object appPackageName_ = "";
  454. public boolean hasAppPackageName() {
  455. return ((bitField0_ & 0x00000001) == 0x00000001);
  456. }
  457. public String getAppPackageName() {
  458. java.lang.Object ref = appPackageName_;
  459. if (!(ref instanceof String)) {
  460. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  461. appPackageName_ = s;
  462. return s;
  463. } else {
  464. return (String) ref;
  465. }
  466. }
  467. public Builder setAppPackageName(String value) {
  468. if (value == null) {
  469. throw new NullPointerException();
  470. }
  471. bitField0_ |= 0x00000001;
  472. appPackageName_ = value;
  473. onChanged();
  474. return this;
  475. }
  476. public Builder clearAppPackageName() {
  477. bitField0_ = (bitField0_ & ~0x00000001);
  478. appPackageName_ = getDefaultInstance().getAppPackageName();
  479. onChanged();
  480. return this;
  481. }
  482. void setAppPackageName(com.google.protobuf.ByteString value) {
  483. bitField0_ |= 0x00000001;
  484. appPackageName_ = value;
  485. onChanged();
  486. }
  487. // optional string app_activity_name = 2;
  488. private java.lang.Object appActivityName_ = "";
  489. public boolean hasAppActivityName() {
  490. return ((bitField0_ & 0x00000002) == 0x00000002);
  491. }
  492. public String getAppActivityName() {
  493. java.lang.Object ref = appActivityName_;
  494. if (!(ref instanceof String)) {
  495. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  496. appActivityName_ = s;
  497. return s;
  498. } else {
  499. return (String) ref;
  500. }
  501. }
  502. public Builder setAppActivityName(String value) {
  503. if (value == null) {
  504. throw new NullPointerException();
  505. }
  506. bitField0_ |= 0x00000002;
  507. appActivityName_ = value;
  508. onChanged();
  509. return this;
  510. }
  511. public Builder clearAppActivityName() {
  512. bitField0_ = (bitField0_ & ~0x00000002);
  513. appActivityName_ = getDefaultInstance().getAppActivityName();
  514. onChanged();
  515. return this;
  516. }
  517. void setAppActivityName(com.google.protobuf.ByteString value) {
  518. bitField0_ |= 0x00000002;
  519. appActivityName_ = value;
  520. onChanged();
  521. }
  522. // optional string app_name = 3;
  523. private java.lang.Object appName_ = "";
  524. public boolean hasAppName() {
  525. return ((bitField0_ & 0x00000004) == 0x00000004);
  526. }
  527. public String getAppName() {
  528. java.lang.Object ref = appName_;
  529. if (!(ref instanceof String)) {
  530. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  531. appName_ = s;
  532. return s;
  533. } else {
  534. return (String) ref;
  535. }
  536. }
  537. public Builder setAppName(String value) {
  538. if (value == null) {
  539. throw new NullPointerException();
  540. }
  541. bitField0_ |= 0x00000004;
  542. appName_ = value;
  543. onChanged();
  544. return this;
  545. }
  546. public Builder clearAppName() {
  547. bitField0_ = (bitField0_ & ~0x00000004);
  548. appName_ = getDefaultInstance().getAppName();
  549. onChanged();
  550. return this;
  551. }
  552. void setAppName(com.google.protobuf.ByteString value) {
  553. bitField0_ |= 0x00000004;
  554. appName_ = value;
  555. onChanged();
  556. }
  557. // optional bool is_restricted = 4;
  558. private boolean isRestricted_ ;
  559. public boolean hasIsRestricted() {
  560. return ((bitField0_ & 0x00000008) == 0x00000008);
  561. }
  562. public boolean getIsRestricted() {
  563. return isRestricted_;
  564. }
  565. public Builder setIsRestricted(boolean value) {
  566. bitField0_ |= 0x00000008;
  567. isRestricted_ = value;
  568. onChanged();
  569. return this;
  570. }
  571. public Builder clearIsRestricted() {
  572. bitField0_ = (bitField0_ & ~0x00000008);
  573. isRestricted_ = false;
  574. onChanged();
  575. return this;
  576. }
  577. // @@protoc_insertion_point(builder_scope:AppProperty)
  578. }
  579. static {
  580. defaultInstance = new AppProperty(true);
  581. defaultInstance.initFields();
  582. }
  583. // @@protoc_insertion_point(class_scope:AppProperty)
  584. }
  585. public interface AppRequestOrBuilder
  586. extends com.google.protobuf.MessageOrBuilder {
  587. // optional string device_Id = 1 [default = "-1"];
  588. boolean hasDeviceId();
  589. String getDeviceId();
  590. // optional string child_birth = 2;
  591. boolean hasChildBirth();
  592. String getChildBirth();
  593. // repeated .AppProperty apps = 3;
  594. java.util.List<DataTransferProtocol.AppProperty>
  595. getAppsList();
  596. DataTransferProtocol.AppProperty getApps(int index);
  597. int getAppsCount();
  598. java.util.List<? extends DataTransferProtocol.AppPropertyOrBuilder>
  599. getAppsOrBuilderList();
  600. DataTransferProtocol.AppPropertyOrBuilder getAppsOrBuilder(
  601. int index);
  602. }
  603. public static final class AppRequest extends
  604. com.google.protobuf.GeneratedMessage
  605. implements AppRequestOrBuilder {
  606. // Use AppRequest.newBuilder() to construct.
  607. private AppRequest(Builder builder) {
  608. super(builder);
  609. }
  610. private AppRequest(boolean noInit) {}
  611. private static final AppRequest defaultInstance;
  612. public static AppRequest getDefaultInstance() {
  613. return defaultInstance;
  614. }
  615. public AppRequest getDefaultInstanceForType() {
  616. return defaultInstance;
  617. }
  618. public static final com.google.protobuf.Descriptors.Descriptor
  619. getDescriptor() {
  620. return DataTransferProtocol.internal_static_AppRequest_descriptor;
  621. }
  622. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  623. internalGetFieldAccessorTable() {
  624. return DataTransferProtocol.internal_static_AppRequest_fieldAccessorTable;
  625. }
  626. private int bitField0_;
  627. // optional string device_Id = 1 [default = "-1"];
  628. public static final int DEVICE_ID_FIELD_NUMBER = 1;
  629. private java.lang.Object deviceId_;
  630. public boolean hasDeviceId() {
  631. return ((bitField0_ & 0x00000001) == 0x00000001);
  632. }
  633. public String getDeviceId() {
  634. java.lang.Object ref = deviceId_;
  635. if (ref instanceof String) {
  636. return (String) ref;
  637. } else {
  638. com.google.protobuf.ByteString bs =
  639. (com.google.protobuf.ByteString) ref;
  640. String s = bs.toStringUtf8();
  641. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  642. deviceId_ = s;
  643. }
  644. return s;
  645. }
  646. }
  647. private com.google.protobuf.ByteString getDeviceIdBytes() {
  648. java.lang.Object ref = deviceId_;
  649. if (ref instanceof String) {
  650. com.google.protobuf.ByteString b =
  651. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  652. deviceId_ = b;
  653. return b;
  654. } else {
  655. return (com.google.protobuf.ByteString) ref;
  656. }
  657. }
  658. // optional string child_birth = 2;
  659. public static final int CHILD_BIRTH_FIELD_NUMBER = 2;
  660. private java.lang.Object childBirth_;
  661. public boolean hasChildBirth() {
  662. return ((bitField0_ & 0x00000002) == 0x00000002);
  663. }
  664. public String getChildBirth() {
  665. java.lang.Object ref = childBirth_;
  666. if (ref instanceof String) {
  667. return (String) ref;
  668. } else {
  669. com.google.protobuf.ByteString bs =
  670. (com.google.protobuf.ByteString) ref;
  671. String s = bs.toStringUtf8();
  672. if (com.google.protobuf.Internal.isValidUtf8(bs)) {
  673. childBirth_ = s;
  674. }
  675. return s;
  676. }
  677. }
  678. private com.google.protobuf.ByteString getChildBirthBytes() {
  679. java.lang.Object ref = childBirth_;
  680. if (ref instanceof String) {
  681. com.google.protobuf.ByteString b =
  682. com.google.protobuf.ByteString.copyFromUtf8((String) ref);
  683. childBirth_ = b;
  684. return b;
  685. } else {
  686. return (com.google.protobuf.ByteString) ref;
  687. }
  688. }
  689. // repeated .AppProperty apps = 3;
  690. public static final int APPS_FIELD_NUMBER = 3;
  691. private java.util.List<DataTransferProtocol.AppProperty> apps_;
  692. public java.util.List<DataTransferProtocol.AppProperty> getAppsList() {
  693. return apps_;
  694. }
  695. public java.util.List<? extends DataTransferProtocol.AppPropertyOrBuilder>
  696. getAppsOrBuilderList() {
  697. return apps_;
  698. }
  699. public int getAppsCount() {
  700. return apps_.size();
  701. }
  702. public DataTransferProtocol.AppProperty getApps(int index) {
  703. return apps_.get(index);
  704. }
  705. public DataTransferProtocol.AppPropertyOrBuilder getAppsOrBuilder(
  706. int index) {
  707. return apps_.get(index);
  708. }
  709. private void initFields() {
  710. deviceId_ = "-1";
  711. childBirth_ = "";
  712. apps_ = java.util.Collections.emptyList();
  713. }
  714. private byte memoizedIsInitialized = -1;
  715. public final boolean isInitialized() {
  716. byte isInitialized = memoizedIsInitialized;
  717. if (isInitialized != -1) return isInitialized == 1;
  718. memoizedIsInitialized = 1;
  719. return true;
  720. }
  721. public void writeTo(com.google.protobuf.CodedOutputStream output)
  722. throws java.io.IOException {
  723. getSerializedSize();
  724. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  725. output.writeBytes(1, getDeviceIdBytes());
  726. }
  727. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  728. output.writeBytes(2, getChildBirthBytes());
  729. }
  730. for (int i = 0; i < apps_.size(); i++) {
  731. output.writeMessage(3, apps_.get(i));
  732. }
  733. getUnknownFields().writeTo(output);
  734. }
  735. private int memoizedSerializedSize = -1;
  736. public int getSerializedSize() {
  737. int size = memoizedSerializedSize;
  738. if (size != -1) return size;
  739. size = 0;
  740. if (((bitField0_ & 0x00000001) == 0x00000001)) {
  741. size += com.google.protobuf.CodedOutputStream
  742. .computeBytesSize(1, getDeviceIdBytes());
  743. }
  744. if (((bitField0_ & 0x00000002) == 0x00000002)) {
  745. size += com.google.protobuf.CodedOutputStream
  746. .computeBytesSize(2, getChildBirthBytes());
  747. }
  748. for (int i = 0; i < apps_.size(); i++) {
  749. size += com.google.protobuf.CodedOutputStream
  750. .computeMessageSize(3, apps_.get(i));
  751. }
  752. size += getUnknownFields().getSerializedSize();
  753. memoizedSerializedSize = size;
  754. return size;
  755. }
  756. private static final long serialVersionUID = 0L;
  757. @java.lang.Override
  758. protected java.lang.Object writeReplace()
  759. throws java.io.ObjectStreamException {
  760. return super.writeReplace();
  761. }
  762. public static DataTransferProtocol.AppRequest parseFrom(
  763. com.google.protobuf.ByteString data)
  764. throws com.google.protobuf.InvalidProtocolBufferException {
  765. return newBuilder().mergeFrom(data).buildParsed();
  766. }
  767. public static DataTransferProtocol.AppRequest parseFrom(
  768. com.google.protobuf.ByteString data,
  769. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  770. throws com.google.protobuf.InvalidProtocolBufferException {
  771. return newBuilder().mergeFrom(data, extensionRegistry)
  772. .buildParsed();
  773. }
  774. public static DataTransferProtocol.AppRequest parseFrom(byte[] data)
  775. throws com.google.protobuf.InvalidProtocolBufferException {
  776. return newBuilder().mergeFrom(data).buildParsed();
  777. }
  778. public static DataTransferProtocol.AppRequest parseFrom(
  779. byte[] data,
  780. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  781. throws com.google.protobuf.InvalidProtocolBufferException {
  782. return newBuilder().mergeFrom(data, extensionRegistry)
  783. .buildParsed();
  784. }
  785. public static DataTransferProtocol.AppRequest parseFrom(java.io.InputStream input)
  786. throws java.io.IOException {
  787. return newBuilder().mergeFrom(input).buildParsed();
  788. }
  789. public static DataTransferProtocol.AppRequest parseFrom(
  790. java.io.InputStream input,
  791. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  792. throws java.io.IOException {
  793. return newBuilder().mergeFrom(input, extensionRegistry)
  794. .buildParsed();
  795. }
  796. public static DataTransferProtocol.AppRequest parseDelimitedFrom(java.io.InputStream input)
  797. throws java.io.IOException {
  798. Builder builder = newBuilder();
  799. if (builder.mergeDelimitedFrom(input)) {
  800. return builder.buildParsed();
  801. } else {
  802. return null;
  803. }
  804. }
  805. public static DataTransferProtocol.AppRequest parseDelimitedFrom(
  806. java.io.InputStream input,
  807. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  808. throws java.io.IOException {
  809. Builder builder = newBuilder();
  810. if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
  811. return builder.buildParsed();
  812. } else {
  813. return null;
  814. }
  815. }
  816. public static DataTransferProtocol.AppRequest parseFrom(
  817. com.google.protobuf.CodedInputStream input)
  818. throws java.io.IOException {
  819. return newBuilder().mergeFrom(input).buildParsed();
  820. }
  821. public static DataTransferProtocol.AppRequest parseFrom(
  822. com.google.protobuf.CodedInputStream input,
  823. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  824. throws java.io.IOException {
  825. return newBuilder().mergeFrom(input, extensionRegistry)
  826. .buildParsed();
  827. }
  828. public static Builder newBuilder() { return Builder.create(); }
  829. public Builder newBuilderForType() { return newBuilder(); }
  830. public static Builder newBuilder(DataTransferProtocol.AppRequest prototype) {
  831. return newBuilder().mergeFrom(prototype);
  832. }
  833. public Builder toBuilder() { return newBuilder(this); }
  834. @java.lang.Override
  835. protected Builder newBuilderForType(
  836. com.google.protobuf.GeneratedMessage.BuilderParent parent) {
  837. Builder builder = new Builder(parent);
  838. return builder;
  839. }
  840. public static final class Builder extends
  841. com.google.protobuf.GeneratedMessage.Builder<Builder>
  842. implements DataTransferProtocol.AppRequestOrBuilder {
  843. public static final com.google.protobuf.Descriptors.Descriptor
  844. getDescriptor() {
  845. return DataTransferProtocol.internal_static_AppRequest_descriptor;
  846. }
  847. protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
  848. internalGetFieldAccessorTable() {
  849. return DataTransferProtocol.internal_static_AppRequest_fieldAccessorTable;
  850. }
  851. // Construct using DataTransferProtocol.AppRequest.newBuilder()
  852. private Builder() {
  853. maybeForceBuilderInitialization();
  854. }
  855. private Builder(BuilderParent parent) {
  856. super(parent);
  857. maybeForceBuilderInitialization();
  858. }
  859. private void maybeForceBuilderInitialization() {
  860. if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
  861. getAppsFieldBuilder();
  862. }
  863. }
  864. private static Builder create() {
  865. return new Builder();
  866. }
  867. public Builder clear() {
  868. super.clear();
  869. deviceId_ = "-1";
  870. bitField0_ = (bitField0_ & ~0x00000001);
  871. childBirth_ = "";
  872. bitField0_ = (bitField0_ & ~0x00000002);
  873. if (appsBuilder_ == null) {
  874. apps_ = java.util.Collections.emptyList();
  875. bitField0_ = (bitField0_ & ~0x00000004);
  876. } else {
  877. appsBuilder_.clear();
  878. }
  879. return this;
  880. }
  881. public Builder clone() {
  882. return create().mergeFrom(buildPartial());
  883. }
  884. public com.google.protobuf.Descriptors.Descriptor
  885. getDescriptorForType() {
  886. return DataTransferProtocol.AppRequest.getDescriptor();
  887. }
  888. public DataTransferProtocol.AppRequest getDefaultInstanceForType() {
  889. return DataTransferProtocol.AppRequest.getDefaultInstance();
  890. }
  891. public DataTransferProtocol.AppRequest build() {
  892. DataTransferProtocol.AppRequest result = buildPartial();
  893. if (!result.isInitialized()) {
  894. throw newUninitializedMessageException(result);
  895. }
  896. return result;
  897. }
  898. private DataTransferProtocol.AppRequest buildParsed()
  899. throws com.google.protobuf.InvalidProtocolBufferException {
  900. DataTransferProtocol.AppRequest result = buildPartial();
  901. if (!result.isInitialized()) {
  902. throw newUninitializedMessageException(
  903. result).asInvalidProtocolBufferException();
  904. }
  905. return result;
  906. }
  907. public DataTransferProtocol.AppRequest buildPartial() {
  908. DataTransferProtocol.AppRequest result = new DataTransferProtocol.AppRequest(this);
  909. int from_bitField0_ = bitField0_;
  910. int to_bitField0_ = 0;
  911. if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
  912. to_bitField0_ |= 0x00000001;
  913. }
  914. result.deviceId_ = deviceId_;
  915. if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
  916. to_bitField0_ |= 0x00000002;
  917. }
  918. result.childBirth_ = childBirth_;
  919. if (appsBuilder_ == null) {
  920. if (((bitField0_ & 0x00000004) == 0x00000004)) {
  921. apps_ = java.util.Collections.unmodifiableList(apps_);
  922. bitField0_ = (bitField0_ & ~0x00000004);
  923. }
  924. result.apps_ = apps_;
  925. } else {
  926. result.apps_ = appsBuilder_.build();
  927. }
  928. result.bitField0_ = to_bitField0_;
  929. onBuilt();
  930. return result;
  931. }
  932. public Builder mergeFrom(com.google.protobuf.Message other) {
  933. if (other instanceof DataTransferProtocol.AppRequest) {
  934. return mergeFrom((DataTransferProtocol.AppRequest)other);
  935. } else {
  936. super.mergeFrom(other);
  937. return this;
  938. }
  939. }
  940. public Builder mergeFrom(DataTransferProtocol.AppRequest other) {
  941. if (other == DataTransferProtocol.AppRequest.getDefaultInstance()) return this;
  942. if (other.hasDeviceId()) {
  943. setDeviceId(other.getDeviceId());
  944. }
  945. if (other.hasChildBirth()) {
  946. setChildBirth(other.getChildBirth());
  947. }
  948. if (appsBuilder_ == null) {
  949. if (!other.apps_.isEmpty()) {
  950. if (apps_.isEmpty()) {
  951. apps_ = other.apps_;
  952. bitField0_ = (bitField0_ & ~0x00000004);
  953. } else {
  954. ensureAppsIsMutable();
  955. apps_.addAll(other.apps_);
  956. }
  957. onChanged();
  958. }
  959. } else {
  960. if (!other.apps_.isEmpty()) {
  961. if (appsBuilder_.isEmpty()) {
  962. appsBuilder_.dispose();
  963. appsBuilder_ = null;
  964. apps_ = other.apps_;
  965. bitField0_ = (bitField0_ & ~0x00000004);
  966. appsBuilder_ =
  967. com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
  968. getAppsFieldBuilder() : null;
  969. } else {
  970. appsBuilder_.addAllMessages(other.apps_);
  971. }
  972. }
  973. }
  974. this.mergeUnknownFields(other.getUnknownFields());
  975. return this;
  976. }
  977. public final boolean isInitialized() {
  978. return true;
  979. }
  980. public Builder mergeFrom(
  981. com.google.protobuf.CodedInputStream input,
  982. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  983. throws java.io.IOException {
  984. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  985. com.google.protobuf.UnknownFieldSet.newBuilder(
  986. this.getUnknownFields());
  987. while (true) {
  988. int tag = input.readTag();
  989. switch (tag) {
  990. case 0:
  991. this.setUnknownFields(unknownFields.build());
  992. onChanged();
  993. return this;
  994. default: {
  995. if (!parseUnknownField(input, unknownFields,
  996. extensionRegistry, tag)) {
  997. this.setUnknownFields(unknownFields.build());
  998. onChanged();
  999. return this;
  1000. }
  1001. break;
  1002. }
  1003. case 10: {
  1004. bitField0_ |= 0x00000001;
  1005. deviceId_ = input.readBytes();
  1006. break;
  1007. }
  1008. case 18: {
  1009. bitField0_ |= 0x00000002;
  1010. childBirth_ = input.readBytes();
  1011. break;
  1012. }
  1013. case 26: {
  1014. DataTransferProtocol.AppProperty.Builder subBuilder = DataTransferProtocol.AppProperty.newBuilder();
  1015. input.readMessage(subBuilder, extensionRegistry);
  1016. addApps(subBuilder.buildPartial());
  1017. break;
  1018. }
  1019. }
  1020. }
  1021. }
  1022. private int bitField0_;
  1023. // optional string device_Id = 1 [default = "-1"];
  1024. private java.lang.Object deviceId_ = "-1";
  1025. public boolean hasDeviceId() {
  1026. return ((bitField0_ & 0x00000001) == 0x00000001);
  1027. }
  1028. public String getDeviceId() {
  1029. java.lang.Object ref = deviceId_;
  1030. if (!(ref instanceof String)) {
  1031. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  1032. deviceId_ = s;
  1033. return s;
  1034. } else {
  1035. return (String) ref;
  1036. }
  1037. }
  1038. public Builder setDeviceId(String value) {
  1039. if (value == null) {
  1040. throw new NullPointerException();
  1041. }
  1042. bitField0_ |= 0x00000001;
  1043. deviceId_ = value;
  1044. onChanged();
  1045. return this;
  1046. }
  1047. public Builder clearDeviceId() {
  1048. bitField0_ = (bitField0_ & ~0x00000001);
  1049. deviceId_ = getDefaultInstance().getDeviceId();
  1050. onChanged();
  1051. return this;
  1052. }
  1053. void setDeviceId(com.google.protobuf.ByteString value) {
  1054. bitField0_ |= 0x00000001;
  1055. deviceId_ = value;
  1056. onChanged();
  1057. }
  1058. // optional string child_birth = 2;
  1059. private java.lang.Object childBirth_ = "";
  1060. public boolean hasChildBirth() {
  1061. return ((bitField0_ & 0x00000002) == 0x00000002);
  1062. }
  1063. public String getChildBirth() {
  1064. java.lang.Object ref = childBirth_;
  1065. if (!(ref instanceof String)) {
  1066. String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
  1067. childBirth_ = s;
  1068. return s;
  1069. } else {
  1070. return (String) ref;
  1071. }
  1072. }
  1073. public Builder setChildBirth(String value) {
  1074. if (value == null) {
  1075. throw new NullPointerException();
  1076. }
  1077. bitField0_ |= 0x00000002;
  1078. childBirth_ = value;
  1079. onChanged();
  1080. return this;
  1081. }
  1082. public Builder clearChildBirth() {
  1083. bitField0_ = (bitField0_ & ~0x00000002);
  1084. childBirth_ = getDefaultInstance().getChildBirth();
  1085. onChanged();
  1086. return this;
  1087. }
  1088. void setChildBirth(com.google.protobuf.ByteString value) {
  1089. bitField0_ |= 0x00000002;
  1090. childBirth_ = value;
  1091. onChanged();
  1092. }
  1093. // repeated .AppProperty apps = 3;
  1094. private java.util.List<DataTransferProtocol.AppProperty> apps_ =
  1095. java.util.Collections.emptyList();
  1096. private void ensureAppsIsMutable() {
  1097. if (!((bitField0_ & 0x00000004) == 0x00000004)) {
  1098. apps_ = new java.util.ArrayList<DataTransferProtocol.AppProperty>(apps_);
  1099. bitField0_ |= 0x00000004;
  1100. }
  1101. }
  1102. private com.google.protobuf.RepeatedFieldBuilder<
  1103. DataTransferProtocol.AppProperty, DataTransferProtocol.AppProperty.Builder, DataTransferProtocol.AppPropertyOrBuilder> appsBuilder_;
  1104. public java.util.List<DataTransferProtocol.AppProperty> getAppsList() {
  1105. if (appsBuilder_ == null) {
  1106. return java.util.Collections.unmodifiableList(apps_);
  1107. } else {
  1108. return appsBuilder_.getMessageList();
  1109. }
  1110. }
  1111. public int getAppsCount() {
  1112. if (appsBuilder_ == null) {
  1113. return apps_.size();
  1114. } else {
  1115. return appsBuilder_.getCount();
  1116. }
  1117. }
  1118. public DataTransferProtocol.AppProperty getApps(int index) {
  1119. if (appsBuilder_ == null) {
  1120. return apps_.get(index);
  1121. } else {
  1122. return appsBuilder_.getMessage(index);
  1123. }
  1124. }
  1125. public Builder setApps(
  1126. int index, DataTransferProtocol.AppProperty value) {
  1127. if (appsBuilder_ == null) {
  1128. if (value == null) {
  1129. throw new NullPointerException();
  1130. }
  1131. ensureAppsIsMutable();
  1132. apps_.set(index, value);
  1133. onChanged();
  1134. } else {
  1135. appsBuilder_.setMessage(index, value);
  1136. }
  1137. return this;
  1138. }
  1139. public Builder setApps(
  1140. int index, DataTransferProtocol.AppProperty.Builder builderForValue) {
  1141. if (appsBuilder_ == null) {
  1142. ensureAppsIsMutable();
  1143. apps_.set(index, builderForValue.build());
  1144. onChanged();
  1145. } else {
  1146. appsBuilder_.setMessage(index, builderForValue.build());
  1147. }
  1148. return this;
  1149. }
  1150. public Builder addApps(DataTransferProtocol.AppProperty value) {
  1151. if (appsBuilder_ == null) {
  1152. if (value == null) {
  1153. throw new NullPointerException();
  1154. }
  1155. ensureAppsIsMutable();
  1156. apps_.add(value);
  1157. onChanged();
  1158. } else {
  1159. appsBuilder_.addMessage(value);
  1160. }
  1161. return this;
  1162. }
  1163. public Builder addApps(
  1164. int index, DataTransferProtocol.AppProperty value) {
  1165. if (appsBuilder_ == null) {
  1166. if (value == null) {
  1167. throw new NullPointerException();
  1168. }
  1169. ensureAppsIsMutable();
  1170. apps_.add(index, value);
  1171. onChanged();
  1172. } else {
  1173. appsBuilder_.addMessage(index, value);
  1174. }
  1175. return this;
  1176. }
  1177. public Builder addApps(
  1178. DataTransferProtocol.AppProperty.Builder builderForValue) {
  1179. if (appsBuilder_ == null) {
  1180. ensureAppsIsMutable();
  1181. apps_.add(builderForValue.build());
  1182. onChanged();
  1183. } else {
  1184. appsBuilder_.addMessage(builderForValue.build());
  1185. }
  1186. return this;
  1187. }
  1188. public Builder addApps(
  1189. int index, DataTransferProtocol.AppProperty.Builder builderForValue) {
  1190. if (appsBuilder_ == null) {
  1191. ensureAppsIsMutable();
  1192. apps_.add(index, builderForValue.build());
  1193. onChanged();
  1194. } else {
  1195. appsBuilder_.addMessage(index, builderForValue.build());
  1196. }
  1197. return this;
  1198. }
  1199. public Builder addAllApps(
  1200. java.lang.Iterable<? extends DataTransferProtocol.AppProperty> values) {
  1201. if (appsBuilder_ == null) {
  1202. ensureAppsIsMutable();
  1203. super.addAll(values, apps_);
  1204. onChanged();
  1205. } else {
  1206. appsBuilder_.addAllMessages(values);
  1207. }
  1208. return this;
  1209. }
  1210. public Builder clearApps() {
  1211. if (appsBuilder_ == null) {
  1212. apps_ = java.util.Collections.emptyList();
  1213. bitField0_ = (bitField0_ & ~0x00000004);
  1214. onChanged();
  1215. } else {
  1216. appsBuilder_.clear();
  1217. }
  1218. return this;
  1219. }
  1220. public Builder removeApps(int index) {
  1221. if (appsBuilder_ == null) {
  1222. ensureAppsIsMutable();
  1223. apps_.remove(index);
  1224. onChanged();
  1225. } else {
  1226. appsBuilder_.remove(index);
  1227. }
  1228. return this;
  1229. }
  1230. public DataTransferProtocol.AppProperty.Builder getAppsBuilder(
  1231. int index) {
  1232. return getAppsFieldBuilder().getBuilder(index);
  1233. }
  1234. public DataTransferProtocol.AppPropertyOrBuilder getAppsOrBuilder(
  1235. int index) {
  1236. if (appsBuilder_ == null) {
  1237. return apps_.get(index); } else {
  1238. return appsBuilder_.getMessageOrBuilder(index);
  1239. }
  1240. }
  1241. public java.util.List<? extends DataTransferProtocol.AppPropertyOrBuilder>
  1242. getAppsOrBuilderList() {
  1243. if (appsBuilder_ != null) {
  1244. return appsBuilder_.getMessageOrBuilderList();
  1245. } else {
  1246. return java.util.Collections.unmodifiableList(apps_);
  1247. }
  1248. }
  1249. public DataTransferProtocol.AppProperty.Builder addAppsBuilder() {
  1250. return getAppsFieldBuilder().addBuilder(
  1251. DataTransferProtocol.AppProperty.getDefaultInstance());
  1252. }
  1253. public DataTransferProtocol.AppProperty.Builder addAppsBuilder(
  1254. int index) {
  1255. return getAppsFieldBuilder().addBuilder(
  1256. index, DataTransferProtocol.AppProperty.getDefaultInstance());
  1257. }
  1258. public java.util.List<DataTransferProtocol.AppProperty.Builder>
  1259. getAppsBuilderList() {
  1260. return getAppsFieldBuilder().getBuilderList();
  1261. }
  1262. private com.google.protobuf.RepeatedFieldBuilder<
  1263. DataTransferProtocol.AppProperty, DataTransferProtocol.AppProperty.Builder, DataTransferProtocol.AppPropertyOrBuilder>
  1264. getAppsFieldBuilder() {
  1265. if (appsBuilder_ == null) {
  1266. appsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
  1267. DataTransferProtocol.AppProperty, DataTransferProtocol.AppProperty.Builder, DataTransferProtocol.AppPropertyOrBuilder>(
  1268. apps_,
  1269. ((bitField0_ & 0x00000004) == 0x00000004),
  1270. getParentForChildren(),
  1271. isClean());
  1272. apps_ = null;
  1273. }
  1274. return appsBuilder_;
  1275. }
  1276. // @@protoc_insertion_point(builder_scope:AppRequest)
  1277. }
  1278. static {
  1279. defaultInstance = new AppRequest(true);
  1280. defaultInstance.initFields();
  1281. }
  1282. // @@protoc_insertion_point(class_scope:AppRequest)
  1283. }
  1284. private static com.google.protobuf.Descriptors.Descriptor
  1285. internal_static_AppProperty_descriptor;
  1286. private static
  1287. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1288. internal_static_AppProperty_fieldAccessorTable;
  1289. private static com.google.protobuf.Descriptors.Descriptor
  1290. internal_static_AppRequest_descriptor;
  1291. private static
  1292. com.google.protobuf.GeneratedMessage.FieldAccessorTable
  1293. internal_static_AppRequest_fieldAccessorTable;
  1294. public static com.google.protobuf.Descriptors.FileDescriptor
  1295. getDescriptor() {
  1296. return descriptor;
  1297. }
  1298. private static com.google.protobuf.Descriptors.FileDescriptor
  1299. descriptor;
  1300. static {
  1301. java.lang.String[] descriptorData = {
  1302. "\n\034data_transfer_protocol.proto\"k\n\013AppPro" +
  1303. "perty\022\030\n\020app_package_name\030\001 \001(\t\022\031\n\021app_a" +
  1304. "ctivity_name\030\002 \001(\t\022\020\n\010app_name\030\003 \001(\t\022\025\n\r" +
  1305. "is_restricted\030\004 \001(\010\"T\n\nAppRequest\022\025\n\tdev" +
  1306. "ice_Id\030\001 \001(\t:\002-1\022\023\n\013child_birth\030\002 \001(\t\022\032\n" +
  1307. "\004apps\030\003 \003(\0132\014.AppProperty"
  1308. };
  1309. com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
  1310. new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
  1311. public com.google.protobuf.ExtensionRegistry assignDescriptors(
  1312. com.google.protobuf.Descriptors.FileDescriptor root) {
  1313. descriptor = root;
  1314. internal_static_AppProperty_descriptor =
  1315. getDescriptor().getMessageTypes().get(0);
  1316. internal_static_AppProperty_fieldAccessorTable = new
  1317. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1318. internal_static_AppProperty_descriptor,
  1319. new java.lang.String[] { "AppPackageName", "AppActivityName", "AppName", "IsRestricted", },
  1320. DataTransferProtocol.AppProperty.class,
  1321. DataTransferProtocol.AppProperty.Builder.class);
  1322. internal_static_AppRequest_descriptor =
  1323. getDescriptor().getMessageTypes().get(1);
  1324. internal_static_AppRequest_fieldAccessorTable = new
  1325. com.google.protobuf.GeneratedMessage.FieldAccessorTable(
  1326. internal_static_AppRequest_descriptor,
  1327. new java.lang.String[] { "DeviceId", "ChildBirth", "Apps", },
  1328. DataTransferProtocol.AppRequest.class,
  1329. DataTransferProtocol.AppRequest.Builder.class);
  1330. return null;
  1331. }
  1332. };
  1333. com.google.protobuf.Descriptors.FileDescriptor
  1334. .internalBuildGeneratedFileFrom(descriptorData,
  1335. new com.google.protobuf.Descriptors.FileDescriptor[] {
  1336. }, assigner);
  1337. }
  1338. // @@protoc_insertion_point(outer_class_scope)
  1339. }