PageRenderTime 67ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/hardware_ril/mock-ril/src/generated/java/com/android/internal/telephony/ril_proto/RilCmds.java

https://code.google.com/
Java | 2107 lines | 1876 code | 167 blank | 64 comment | 146 complexity | 4a486da51c286d1b58041d0edce98bac MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.0, LGPL-2.1, CC0-1.0

Large files files are truncated, but you can click here to view the full file

  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. package com.android.internal.telephony.ril_proto;
  3. public final class RilCmds {
  4. private RilCmds() {}
  5. // enum RadioState
  6. public static final int RADIOSTATE_OFF = 0;
  7. public static final int RADIOSTATE_UNAVAILABLE = 1;
  8. public static final int RADIOSTATE_SIM_NOT_READY = 2;
  9. public static final int RADIOSTATE_SIM_LOCKED_OR_ABSENT = 3;
  10. public static final int RADIOSTATE_SIM_READY = 4;
  11. public static final int RADIOSTATE_RUIM_NOT_READY = 5;
  12. public static final int RADIOSTATE_RUIM_READY = 6;
  13. public static final int RADIOSTATE_RUIM_LOCKED_OR_ABSENT = 7;
  14. public static final int RADIOSTATE_NV_NOT_READY = 8;
  15. public static final int RADIOSTATE_NV_READY = 9;
  16. // enum RilCardState
  17. public static final int CARDSTATE_ABSENT = 0;
  18. public static final int CARDSTATE_PRESENT = 1;
  19. public static final int CARDSTATE_ERROR = 2;
  20. // enum RilPersoSubstate
  21. public static final int PERSOSUBSTATE_UNKNOWN = 0;
  22. public static final int PERSOSUBSTATE_IN_PROGRESS = 1;
  23. public static final int PERSOSUBSTATE_READY = 2;
  24. public static final int PERSOSUBSTATE_SIM_NETWORK = 3;
  25. public static final int PERSOSUBSTATE_SIM_NETWORK_SUBSET = 4;
  26. public static final int PERSOSUBSTATE_SIM_CORPORATE = 5;
  27. public static final int PERSOSUBSTATE_SIM_SERVICE_PROVIDER = 6;
  28. public static final int PERSOSUBSTATE_SIM_SIM = 7;
  29. public static final int PERSOSUBSTATE_SIM_NETWORK_PUK = 8;
  30. public static final int PERSOSUBSTATE_SIM_NETWORK_SUBSET_PUK = 9;
  31. public static final int PERSOSUBSTATE_SIM_CORPORATE_PUK = 10;
  32. public static final int PERSOSUBSTATE_SIM_SERVICE_PROVIDER_PUK = 11;
  33. public static final int PERSOSUBSTATE_SIM_SIM_PUK = 12;
  34. public static final int PERSOSUBSTATE_RUIM_NETWORK1 = 13;
  35. public static final int PERSOSUBSTATE_RUIM_NETWORK2 = 14;
  36. public static final int PERSOSUBSTATE_RUIM_HRPD = 15;
  37. public static final int PERSOSUBSTATE_RUIM_CORPORATE = 16;
  38. public static final int PERSOSUBSTATE_RUIM_SERVICE_PROVIDER = 17;
  39. public static final int PERSOSUBSTATE_RUIM_RUIM = 18;
  40. public static final int PERSOSUBSTATE_RUIM_NETWORK1_PUK = 19;
  41. public static final int PERSOSUBSTATE_RUIM_NETWORK2_PUK = 20;
  42. public static final int PERSOSUBSTATE_RUIM_HRPD_PUK = 21;
  43. public static final int PERSOSUBSTATE_RUIM_CORPORATE_PUK = 22;
  44. public static final int PERSOSUBSTATE_RUIM_SERVICE_PROVIDER_PUK = 23;
  45. public static final int PERSOSUBSTATE_RUIM_RUIM_PUK = 24;
  46. // enum RilAppState
  47. public static final int APPSTATE_UNKNOWN = 0;
  48. public static final int APPSTATE_DETECTED = 1;
  49. public static final int APPSTATE_PIN = 2;
  50. public static final int APPSTATE_PUK = 3;
  51. public static final int APPSTATE_SUBSCRIPTION_PERSO = 4;
  52. public static final int APPSTATE_READY = 5;
  53. // enum RilPinState
  54. public static final int PINSTATE_UNKNOWN = 0;
  55. public static final int PINSTATE_ENABLED_NOT_VERIFIED = 1;
  56. public static final int PINSTATE_ENABLED_VERIFIED = 2;
  57. public static final int PINSTATE_DISABLED = 3;
  58. public static final int PINSTATE_ENABLED_BLOCKED = 4;
  59. public static final int PINSTATE_ENABLED_PERM_BLOCKED = 5;
  60. // enum RilAppType
  61. public static final int APPTYPE_UNKNOWN = 0;
  62. public static final int APPTYPE_SIM = 1;
  63. public static final int APPTYPE_USIM = 2;
  64. public static final int APPTYPE_RUIM = 3;
  65. public static final int APPTYPE_CSIM = 4;
  66. // enum RilUusType
  67. public static final int RILUUSTYPE1_IMPLICIT = 0;
  68. public static final int RILUUSTYPE1_REQUIRED = 1;
  69. public static final int RILUUSTYPE1_NOT_REQUIRED = 2;
  70. public static final int RILUUSTYPE2_REQUIRED = 3;
  71. public static final int RILUUSTYPE2_NOT_REQUIRED = 4;
  72. public static final int RILUUSTYPE3_REQUIRED = 5;
  73. public static final int RILUUSTYPE3_NOT_REQUIRED = 6;
  74. // enum RilUusDcs
  75. public static final int RILUUSDCS_USP = 0;
  76. public static final int RILUUSDCS_OSIHLP = 1;
  77. public static final int RILUUSDCS_X244 = 2;
  78. public static final int RILUUSDCS_RMCF = 3;
  79. public static final int RILUUSDCS_IA5c = 4;
  80. // enum RilCallState
  81. public static final int CALLSTATE_ACTIVE = 0;
  82. public static final int CALLSTATE_HOLDING = 1;
  83. public static final int CALLSTATE_DIALING = 2;
  84. public static final int CALLSTATE_ALERTING = 3;
  85. public static final int CALLSTATE_INCOMING = 4;
  86. public static final int CALLSTATE_WAITING = 5;
  87. public static final class RilAppStatus extends
  88. com.google.protobuf.micro.MessageMicro {
  89. public RilAppStatus() {}
  90. // optional .ril_proto.RilAppType app_type = 1;
  91. public static final int APP_TYPE_FIELD_NUMBER = 1;
  92. private boolean hasAppType;
  93. private int appType_ = com.android.internal.telephony.ril_proto.RilCmds.APPTYPE_UNKNOWN;
  94. public boolean hasAppType() { return hasAppType; }
  95. public int getAppType() { return appType_; }
  96. public RilAppStatus setAppType(int value) {
  97. hasAppType = true;
  98. appType_ = value;
  99. return this;
  100. }
  101. public RilAppStatus clearAppType() {
  102. hasAppType = false;
  103. appType_ = com.android.internal.telephony.ril_proto.RilCmds.APPTYPE_UNKNOWN;
  104. return this;
  105. }
  106. // optional .ril_proto.RilAppState app_state = 2;
  107. public static final int APP_STATE_FIELD_NUMBER = 2;
  108. private boolean hasAppState;
  109. private int appState_ = com.android.internal.telephony.ril_proto.RilCmds.APPSTATE_UNKNOWN;
  110. public boolean hasAppState() { return hasAppState; }
  111. public int getAppState() { return appState_; }
  112. public RilAppStatus setAppState(int value) {
  113. hasAppState = true;
  114. appState_ = value;
  115. return this;
  116. }
  117. public RilAppStatus clearAppState() {
  118. hasAppState = false;
  119. appState_ = com.android.internal.telephony.ril_proto.RilCmds.APPSTATE_UNKNOWN;
  120. return this;
  121. }
  122. // optional .ril_proto.RilPersoSubstate perso_substate = 3;
  123. public static final int PERSO_SUBSTATE_FIELD_NUMBER = 3;
  124. private boolean hasPersoSubstate;
  125. private int persoSubstate_ = com.android.internal.telephony.ril_proto.RilCmds.PERSOSUBSTATE_UNKNOWN;
  126. public boolean hasPersoSubstate() { return hasPersoSubstate; }
  127. public int getPersoSubstate() { return persoSubstate_; }
  128. public RilAppStatus setPersoSubstate(int value) {
  129. hasPersoSubstate = true;
  130. persoSubstate_ = value;
  131. return this;
  132. }
  133. public RilAppStatus clearPersoSubstate() {
  134. hasPersoSubstate = false;
  135. persoSubstate_ = com.android.internal.telephony.ril_proto.RilCmds.PERSOSUBSTATE_UNKNOWN;
  136. return this;
  137. }
  138. // optional string aid = 4;
  139. public static final int AID_FIELD_NUMBER = 4;
  140. private boolean hasAid;
  141. private java.lang.String aid_ = "";
  142. public java.lang.String getAid() { return aid_; }
  143. public boolean hasAid() { return hasAid; }
  144. public RilAppStatus setAid(java.lang.String value) {
  145. hasAid = true;
  146. aid_ = value;
  147. return this;
  148. }
  149. public RilAppStatus clearAid() {
  150. hasAid = false;
  151. aid_ = "";
  152. return this;
  153. }
  154. // optional string app_label = 5;
  155. public static final int APP_LABEL_FIELD_NUMBER = 5;
  156. private boolean hasAppLabel;
  157. private java.lang.String appLabel_ = "";
  158. public java.lang.String getAppLabel() { return appLabel_; }
  159. public boolean hasAppLabel() { return hasAppLabel; }
  160. public RilAppStatus setAppLabel(java.lang.String value) {
  161. hasAppLabel = true;
  162. appLabel_ = value;
  163. return this;
  164. }
  165. public RilAppStatus clearAppLabel() {
  166. hasAppLabel = false;
  167. appLabel_ = "";
  168. return this;
  169. }
  170. // optional int32 pin1_replaced = 6;
  171. public static final int PIN1_REPLACED_FIELD_NUMBER = 6;
  172. private boolean hasPin1Replaced;
  173. private int pin1Replaced_ = 0;
  174. public int getPin1Replaced() { return pin1Replaced_; }
  175. public boolean hasPin1Replaced() { return hasPin1Replaced; }
  176. public RilAppStatus setPin1Replaced(int value) {
  177. hasPin1Replaced = true;
  178. pin1Replaced_ = value;
  179. return this;
  180. }
  181. public RilAppStatus clearPin1Replaced() {
  182. hasPin1Replaced = false;
  183. pin1Replaced_ = 0;
  184. return this;
  185. }
  186. // optional .ril_proto.RilPinState pin1 = 7;
  187. public static final int PIN1_FIELD_NUMBER = 7;
  188. private boolean hasPin1;
  189. private int pin1_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  190. public boolean hasPin1() { return hasPin1; }
  191. public int getPin1() { return pin1_; }
  192. public RilAppStatus setPin1(int value) {
  193. hasPin1 = true;
  194. pin1_ = value;
  195. return this;
  196. }
  197. public RilAppStatus clearPin1() {
  198. hasPin1 = false;
  199. pin1_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  200. return this;
  201. }
  202. // optional .ril_proto.RilPinState pin2 = 8;
  203. public static final int PIN2_FIELD_NUMBER = 8;
  204. private boolean hasPin2;
  205. private int pin2_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  206. public boolean hasPin2() { return hasPin2; }
  207. public int getPin2() { return pin2_; }
  208. public RilAppStatus setPin2(int value) {
  209. hasPin2 = true;
  210. pin2_ = value;
  211. return this;
  212. }
  213. public RilAppStatus clearPin2() {
  214. hasPin2 = false;
  215. pin2_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  216. return this;
  217. }
  218. public final RilAppStatus clear() {
  219. clearAppType();
  220. clearAppState();
  221. clearPersoSubstate();
  222. clearAid();
  223. clearAppLabel();
  224. clearPin1Replaced();
  225. clearPin1();
  226. clearPin2();
  227. cachedSize = -1;
  228. return this;
  229. }
  230. public final boolean isInitialized() {
  231. return true;
  232. }
  233. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  234. throws java.io.IOException {
  235. if (hasAppType()) {
  236. output.writeInt32(1, getAppType());
  237. }
  238. if (hasAppState()) {
  239. output.writeInt32(2, getAppState());
  240. }
  241. if (hasPersoSubstate()) {
  242. output.writeInt32(3, getPersoSubstate());
  243. }
  244. if (hasAid()) {
  245. output.writeString(4, getAid());
  246. }
  247. if (hasAppLabel()) {
  248. output.writeString(5, getAppLabel());
  249. }
  250. if (hasPin1Replaced()) {
  251. output.writeInt32(6, getPin1Replaced());
  252. }
  253. if (hasPin1()) {
  254. output.writeInt32(7, getPin1());
  255. }
  256. if (hasPin2()) {
  257. output.writeInt32(8, getPin2());
  258. }
  259. }
  260. private int cachedSize = -1;
  261. public int getCachedSize() {
  262. if (cachedSize < 0) {
  263. // getSerializedSize sets cachedSize
  264. getSerializedSize();
  265. }
  266. return cachedSize;
  267. }
  268. public int getSerializedSize() {
  269. int size = 0;
  270. if (hasAppType()) {
  271. size += com.google.protobuf.micro.CodedOutputStreamMicro
  272. .computeInt32Size(1, getAppType());
  273. }
  274. if (hasAppState()) {
  275. size += com.google.protobuf.micro.CodedOutputStreamMicro
  276. .computeInt32Size(2, getAppState());
  277. }
  278. if (hasPersoSubstate()) {
  279. size += com.google.protobuf.micro.CodedOutputStreamMicro
  280. .computeInt32Size(3, getPersoSubstate());
  281. }
  282. if (hasAid()) {
  283. size += com.google.protobuf.micro.CodedOutputStreamMicro
  284. .computeStringSize(4, getAid());
  285. }
  286. if (hasAppLabel()) {
  287. size += com.google.protobuf.micro.CodedOutputStreamMicro
  288. .computeStringSize(5, getAppLabel());
  289. }
  290. if (hasPin1Replaced()) {
  291. size += com.google.protobuf.micro.CodedOutputStreamMicro
  292. .computeInt32Size(6, getPin1Replaced());
  293. }
  294. if (hasPin1()) {
  295. size += com.google.protobuf.micro.CodedOutputStreamMicro
  296. .computeInt32Size(7, getPin1());
  297. }
  298. if (hasPin2()) {
  299. size += com.google.protobuf.micro.CodedOutputStreamMicro
  300. .computeInt32Size(8, getPin2());
  301. }
  302. cachedSize = size;
  303. return size;
  304. }
  305. public RilAppStatus mergeFrom(
  306. com.google.protobuf.micro.CodedInputStreamMicro input)
  307. throws java.io.IOException {
  308. while (true) {
  309. int tag = input.readTag();
  310. switch (tag) {
  311. case 0:
  312. return this;
  313. default: {
  314. if (!parseUnknownField(input, tag)) {
  315. return this;
  316. }
  317. break;
  318. }
  319. case 8: {
  320. setAppType(input.readInt32());
  321. break;
  322. }
  323. case 16: {
  324. setAppState(input.readInt32());
  325. break;
  326. }
  327. case 24: {
  328. setPersoSubstate(input.readInt32());
  329. break;
  330. }
  331. case 34: {
  332. setAid(input.readString());
  333. break;
  334. }
  335. case 42: {
  336. setAppLabel(input.readString());
  337. break;
  338. }
  339. case 48: {
  340. setPin1Replaced(input.readInt32());
  341. break;
  342. }
  343. case 56: {
  344. setPin1(input.readInt32());
  345. break;
  346. }
  347. case 64: {
  348. setPin2(input.readInt32());
  349. break;
  350. }
  351. }
  352. }
  353. }
  354. public static RilAppStatus parseFrom(byte[] data)
  355. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  356. return (RilAppStatus) (new RilAppStatus().mergeFrom(data));
  357. }
  358. public static RilAppStatus parseFrom(
  359. com.google.protobuf.micro.CodedInputStreamMicro input)
  360. throws java.io.IOException {
  361. return (RilAppStatus) (new RilAppStatus().mergeFrom(input));
  362. }
  363. }
  364. public static final class RilCardStatus extends
  365. com.google.protobuf.micro.MessageMicro {
  366. public RilCardStatus() {}
  367. // optional .ril_proto.RilCardState card_state = 1;
  368. public static final int CARD_STATE_FIELD_NUMBER = 1;
  369. private boolean hasCardState;
  370. private int cardState_ = com.android.internal.telephony.ril_proto.RilCmds.CARDSTATE_ABSENT;
  371. public boolean hasCardState() { return hasCardState; }
  372. public int getCardState() { return cardState_; }
  373. public RilCardStatus setCardState(int value) {
  374. hasCardState = true;
  375. cardState_ = value;
  376. return this;
  377. }
  378. public RilCardStatus clearCardState() {
  379. hasCardState = false;
  380. cardState_ = com.android.internal.telephony.ril_proto.RilCmds.CARDSTATE_ABSENT;
  381. return this;
  382. }
  383. // optional .ril_proto.RilPinState universal_pin_state = 2;
  384. public static final int UNIVERSAL_PIN_STATE_FIELD_NUMBER = 2;
  385. private boolean hasUniversalPinState;
  386. private int universalPinState_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  387. public boolean hasUniversalPinState() { return hasUniversalPinState; }
  388. public int getUniversalPinState() { return universalPinState_; }
  389. public RilCardStatus setUniversalPinState(int value) {
  390. hasUniversalPinState = true;
  391. universalPinState_ = value;
  392. return this;
  393. }
  394. public RilCardStatus clearUniversalPinState() {
  395. hasUniversalPinState = false;
  396. universalPinState_ = com.android.internal.telephony.ril_proto.RilCmds.PINSTATE_UNKNOWN;
  397. return this;
  398. }
  399. // optional int32 gsm_umts_subscription_app_index = 3;
  400. public static final int GSM_UMTS_SUBSCRIPTION_APP_INDEX_FIELD_NUMBER = 3;
  401. private boolean hasGsmUmtsSubscriptionAppIndex;
  402. private int gsmUmtsSubscriptionAppIndex_ = 0;
  403. public int getGsmUmtsSubscriptionAppIndex() { return gsmUmtsSubscriptionAppIndex_; }
  404. public boolean hasGsmUmtsSubscriptionAppIndex() { return hasGsmUmtsSubscriptionAppIndex; }
  405. public RilCardStatus setGsmUmtsSubscriptionAppIndex(int value) {
  406. hasGsmUmtsSubscriptionAppIndex = true;
  407. gsmUmtsSubscriptionAppIndex_ = value;
  408. return this;
  409. }
  410. public RilCardStatus clearGsmUmtsSubscriptionAppIndex() {
  411. hasGsmUmtsSubscriptionAppIndex = false;
  412. gsmUmtsSubscriptionAppIndex_ = 0;
  413. return this;
  414. }
  415. // optional int32 cdma_subscription_app_index = 4;
  416. public static final int CDMA_SUBSCRIPTION_APP_INDEX_FIELD_NUMBER = 4;
  417. private boolean hasCdmaSubscriptionAppIndex;
  418. private int cdmaSubscriptionAppIndex_ = 0;
  419. public int getCdmaSubscriptionAppIndex() { return cdmaSubscriptionAppIndex_; }
  420. public boolean hasCdmaSubscriptionAppIndex() { return hasCdmaSubscriptionAppIndex; }
  421. public RilCardStatus setCdmaSubscriptionAppIndex(int value) {
  422. hasCdmaSubscriptionAppIndex = true;
  423. cdmaSubscriptionAppIndex_ = value;
  424. return this;
  425. }
  426. public RilCardStatus clearCdmaSubscriptionAppIndex() {
  427. hasCdmaSubscriptionAppIndex = false;
  428. cdmaSubscriptionAppIndex_ = 0;
  429. return this;
  430. }
  431. // optional int32 num_applications = 5;
  432. public static final int NUM_APPLICATIONS_FIELD_NUMBER = 5;
  433. private boolean hasNumApplications;
  434. private int numApplications_ = 0;
  435. public int getNumApplications() { return numApplications_; }
  436. public boolean hasNumApplications() { return hasNumApplications; }
  437. public RilCardStatus setNumApplications(int value) {
  438. hasNumApplications = true;
  439. numApplications_ = value;
  440. return this;
  441. }
  442. public RilCardStatus clearNumApplications() {
  443. hasNumApplications = false;
  444. numApplications_ = 0;
  445. return this;
  446. }
  447. // repeated .ril_proto.RilAppStatus applications = 6;
  448. public static final int APPLICATIONS_FIELD_NUMBER = 6;
  449. private java.util.List<com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus> applications_ =
  450. java.util.Collections.emptyList();
  451. public java.util.List<com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus> getApplicationsList() {
  452. return applications_;
  453. }
  454. public int getApplicationsCount() { return applications_.size(); }
  455. public com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus getApplications(int index) {
  456. return applications_.get(index);
  457. }
  458. public RilCardStatus setApplications(int index, com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus value) {
  459. if (value == null) {
  460. throw new NullPointerException();
  461. }
  462. applications_.set(index, value);
  463. return this;
  464. }
  465. public RilCardStatus addApplications(com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus value) {
  466. if (value == null) {
  467. throw new NullPointerException();
  468. }
  469. if (applications_.isEmpty()) {
  470. applications_ = new java.util.ArrayList<com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus>();
  471. }
  472. applications_.add(value);
  473. return this;
  474. }
  475. public RilCardStatus clearApplications() {
  476. applications_ = java.util.Collections.emptyList();
  477. return this;
  478. }
  479. public final RilCardStatus clear() {
  480. clearCardState();
  481. clearUniversalPinState();
  482. clearGsmUmtsSubscriptionAppIndex();
  483. clearCdmaSubscriptionAppIndex();
  484. clearNumApplications();
  485. clearApplications();
  486. cachedSize = -1;
  487. return this;
  488. }
  489. public final boolean isInitialized() {
  490. return true;
  491. }
  492. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  493. throws java.io.IOException {
  494. if (hasCardState()) {
  495. output.writeInt32(1, getCardState());
  496. }
  497. if (hasUniversalPinState()) {
  498. output.writeInt32(2, getUniversalPinState());
  499. }
  500. if (hasGsmUmtsSubscriptionAppIndex()) {
  501. output.writeInt32(3, getGsmUmtsSubscriptionAppIndex());
  502. }
  503. if (hasCdmaSubscriptionAppIndex()) {
  504. output.writeInt32(4, getCdmaSubscriptionAppIndex());
  505. }
  506. if (hasNumApplications()) {
  507. output.writeInt32(5, getNumApplications());
  508. }
  509. for (com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus element : getApplicationsList()) {
  510. output.writeMessage(6, element);
  511. }
  512. }
  513. private int cachedSize = -1;
  514. public int getCachedSize() {
  515. if (cachedSize < 0) {
  516. // getSerializedSize sets cachedSize
  517. getSerializedSize();
  518. }
  519. return cachedSize;
  520. }
  521. public int getSerializedSize() {
  522. int size = 0;
  523. if (hasCardState()) {
  524. size += com.google.protobuf.micro.CodedOutputStreamMicro
  525. .computeInt32Size(1, getCardState());
  526. }
  527. if (hasUniversalPinState()) {
  528. size += com.google.protobuf.micro.CodedOutputStreamMicro
  529. .computeInt32Size(2, getUniversalPinState());
  530. }
  531. if (hasGsmUmtsSubscriptionAppIndex()) {
  532. size += com.google.protobuf.micro.CodedOutputStreamMicro
  533. .computeInt32Size(3, getGsmUmtsSubscriptionAppIndex());
  534. }
  535. if (hasCdmaSubscriptionAppIndex()) {
  536. size += com.google.protobuf.micro.CodedOutputStreamMicro
  537. .computeInt32Size(4, getCdmaSubscriptionAppIndex());
  538. }
  539. if (hasNumApplications()) {
  540. size += com.google.protobuf.micro.CodedOutputStreamMicro
  541. .computeInt32Size(5, getNumApplications());
  542. }
  543. for (com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus element : getApplicationsList()) {
  544. size += com.google.protobuf.micro.CodedOutputStreamMicro
  545. .computeMessageSize(6, element);
  546. }
  547. cachedSize = size;
  548. return size;
  549. }
  550. public RilCardStatus mergeFrom(
  551. com.google.protobuf.micro.CodedInputStreamMicro input)
  552. throws java.io.IOException {
  553. while (true) {
  554. int tag = input.readTag();
  555. switch (tag) {
  556. case 0:
  557. return this;
  558. default: {
  559. if (!parseUnknownField(input, tag)) {
  560. return this;
  561. }
  562. break;
  563. }
  564. case 8: {
  565. setCardState(input.readInt32());
  566. break;
  567. }
  568. case 16: {
  569. setUniversalPinState(input.readInt32());
  570. break;
  571. }
  572. case 24: {
  573. setGsmUmtsSubscriptionAppIndex(input.readInt32());
  574. break;
  575. }
  576. case 32: {
  577. setCdmaSubscriptionAppIndex(input.readInt32());
  578. break;
  579. }
  580. case 40: {
  581. setNumApplications(input.readInt32());
  582. break;
  583. }
  584. case 50: {
  585. com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus value = new com.android.internal.telephony.ril_proto.RilCmds.RilAppStatus();
  586. input.readMessage(value);
  587. addApplications(value);
  588. break;
  589. }
  590. }
  591. }
  592. }
  593. public static RilCardStatus parseFrom(byte[] data)
  594. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  595. return (RilCardStatus) (new RilCardStatus().mergeFrom(data));
  596. }
  597. public static RilCardStatus parseFrom(
  598. com.google.protobuf.micro.CodedInputStreamMicro input)
  599. throws java.io.IOException {
  600. return (RilCardStatus) (new RilCardStatus().mergeFrom(input));
  601. }
  602. }
  603. public static final class RilUusInfo extends
  604. com.google.protobuf.micro.MessageMicro {
  605. public RilUusInfo() {}
  606. // optional .ril_proto.RilUusType uus_type = 1;
  607. public static final int UUS_TYPE_FIELD_NUMBER = 1;
  608. private boolean hasUusType;
  609. private int uusType_ = com.android.internal.telephony.ril_proto.RilCmds.RILUUSTYPE1_IMPLICIT;
  610. public boolean hasUusType() { return hasUusType; }
  611. public int getUusType() { return uusType_; }
  612. public RilUusInfo setUusType(int value) {
  613. hasUusType = true;
  614. uusType_ = value;
  615. return this;
  616. }
  617. public RilUusInfo clearUusType() {
  618. hasUusType = false;
  619. uusType_ = com.android.internal.telephony.ril_proto.RilCmds.RILUUSTYPE1_IMPLICIT;
  620. return this;
  621. }
  622. // optional .ril_proto.RilUusDcs uus_dcs = 2;
  623. public static final int UUS_DCS_FIELD_NUMBER = 2;
  624. private boolean hasUusDcs;
  625. private int uusDcs_ = com.android.internal.telephony.ril_proto.RilCmds.RILUUSDCS_USP;
  626. public boolean hasUusDcs() { return hasUusDcs; }
  627. public int getUusDcs() { return uusDcs_; }
  628. public RilUusInfo setUusDcs(int value) {
  629. hasUusDcs = true;
  630. uusDcs_ = value;
  631. return this;
  632. }
  633. public RilUusInfo clearUusDcs() {
  634. hasUusDcs = false;
  635. uusDcs_ = com.android.internal.telephony.ril_proto.RilCmds.RILUUSDCS_USP;
  636. return this;
  637. }
  638. // optional int32 uus_length = 3;
  639. public static final int UUS_LENGTH_FIELD_NUMBER = 3;
  640. private boolean hasUusLength;
  641. private int uusLength_ = 0;
  642. public int getUusLength() { return uusLength_; }
  643. public boolean hasUusLength() { return hasUusLength; }
  644. public RilUusInfo setUusLength(int value) {
  645. hasUusLength = true;
  646. uusLength_ = value;
  647. return this;
  648. }
  649. public RilUusInfo clearUusLength() {
  650. hasUusLength = false;
  651. uusLength_ = 0;
  652. return this;
  653. }
  654. // optional string uus_data = 4;
  655. public static final int UUS_DATA_FIELD_NUMBER = 4;
  656. private boolean hasUusData;
  657. private java.lang.String uusData_ = "";
  658. public java.lang.String getUusData() { return uusData_; }
  659. public boolean hasUusData() { return hasUusData; }
  660. public RilUusInfo setUusData(java.lang.String value) {
  661. hasUusData = true;
  662. uusData_ = value;
  663. return this;
  664. }
  665. public RilUusInfo clearUusData() {
  666. hasUusData = false;
  667. uusData_ = "";
  668. return this;
  669. }
  670. public final RilUusInfo clear() {
  671. clearUusType();
  672. clearUusDcs();
  673. clearUusLength();
  674. clearUusData();
  675. cachedSize = -1;
  676. return this;
  677. }
  678. public final boolean isInitialized() {
  679. return true;
  680. }
  681. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  682. throws java.io.IOException {
  683. if (hasUusType()) {
  684. output.writeInt32(1, getUusType());
  685. }
  686. if (hasUusDcs()) {
  687. output.writeInt32(2, getUusDcs());
  688. }
  689. if (hasUusLength()) {
  690. output.writeInt32(3, getUusLength());
  691. }
  692. if (hasUusData()) {
  693. output.writeString(4, getUusData());
  694. }
  695. }
  696. private int cachedSize = -1;
  697. public int getCachedSize() {
  698. if (cachedSize < 0) {
  699. // getSerializedSize sets cachedSize
  700. getSerializedSize();
  701. }
  702. return cachedSize;
  703. }
  704. public int getSerializedSize() {
  705. int size = 0;
  706. if (hasUusType()) {
  707. size += com.google.protobuf.micro.CodedOutputStreamMicro
  708. .computeInt32Size(1, getUusType());
  709. }
  710. if (hasUusDcs()) {
  711. size += com.google.protobuf.micro.CodedOutputStreamMicro
  712. .computeInt32Size(2, getUusDcs());
  713. }
  714. if (hasUusLength()) {
  715. size += com.google.protobuf.micro.CodedOutputStreamMicro
  716. .computeInt32Size(3, getUusLength());
  717. }
  718. if (hasUusData()) {
  719. size += com.google.protobuf.micro.CodedOutputStreamMicro
  720. .computeStringSize(4, getUusData());
  721. }
  722. cachedSize = size;
  723. return size;
  724. }
  725. public RilUusInfo mergeFrom(
  726. com.google.protobuf.micro.CodedInputStreamMicro input)
  727. throws java.io.IOException {
  728. while (true) {
  729. int tag = input.readTag();
  730. switch (tag) {
  731. case 0:
  732. return this;
  733. default: {
  734. if (!parseUnknownField(input, tag)) {
  735. return this;
  736. }
  737. break;
  738. }
  739. case 8: {
  740. setUusType(input.readInt32());
  741. break;
  742. }
  743. case 16: {
  744. setUusDcs(input.readInt32());
  745. break;
  746. }
  747. case 24: {
  748. setUusLength(input.readInt32());
  749. break;
  750. }
  751. case 34: {
  752. setUusData(input.readString());
  753. break;
  754. }
  755. }
  756. }
  757. }
  758. public static RilUusInfo parseFrom(byte[] data)
  759. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  760. return (RilUusInfo) (new RilUusInfo().mergeFrom(data));
  761. }
  762. public static RilUusInfo parseFrom(
  763. com.google.protobuf.micro.CodedInputStreamMicro input)
  764. throws java.io.IOException {
  765. return (RilUusInfo) (new RilUusInfo().mergeFrom(input));
  766. }
  767. }
  768. public static final class RilCall extends
  769. com.google.protobuf.micro.MessageMicro {
  770. public RilCall() {}
  771. // optional .ril_proto.RilCallState state = 1;
  772. public static final int STATE_FIELD_NUMBER = 1;
  773. private boolean hasState;
  774. private int state_ = com.android.internal.telephony.ril_proto.RilCmds.CALLSTATE_ACTIVE;
  775. public boolean hasState() { return hasState; }
  776. public int getState() { return state_; }
  777. public RilCall setState(int value) {
  778. hasState = true;
  779. state_ = value;
  780. return this;
  781. }
  782. public RilCall clearState() {
  783. hasState = false;
  784. state_ = com.android.internal.telephony.ril_proto.RilCmds.CALLSTATE_ACTIVE;
  785. return this;
  786. }
  787. // optional int32 index = 2;
  788. public static final int INDEX_FIELD_NUMBER = 2;
  789. private boolean hasIndex;
  790. private int index_ = 0;
  791. public int getIndex() { return index_; }
  792. public boolean hasIndex() { return hasIndex; }
  793. public RilCall setIndex(int value) {
  794. hasIndex = true;
  795. index_ = value;
  796. return this;
  797. }
  798. public RilCall clearIndex() {
  799. hasIndex = false;
  800. index_ = 0;
  801. return this;
  802. }
  803. // optional int32 toa = 3;
  804. public static final int TOA_FIELD_NUMBER = 3;
  805. private boolean hasToa;
  806. private int toa_ = 0;
  807. public int getToa() { return toa_; }
  808. public boolean hasToa() { return hasToa; }
  809. public RilCall setToa(int value) {
  810. hasToa = true;
  811. toa_ = value;
  812. return this;
  813. }
  814. public RilCall clearToa() {
  815. hasToa = false;
  816. toa_ = 0;
  817. return this;
  818. }
  819. // optional bool is_mpty = 4;
  820. public static final int IS_MPTY_FIELD_NUMBER = 4;
  821. private boolean hasIsMpty;
  822. private boolean isMpty_ = false;
  823. public boolean getIsMpty() { return isMpty_; }
  824. public boolean hasIsMpty() { return hasIsMpty; }
  825. public RilCall setIsMpty(boolean value) {
  826. hasIsMpty = true;
  827. isMpty_ = value;
  828. return this;
  829. }
  830. public RilCall clearIsMpty() {
  831. hasIsMpty = false;
  832. isMpty_ = false;
  833. return this;
  834. }
  835. // optional bool is_mt = 5;
  836. public static final int IS_MT_FIELD_NUMBER = 5;
  837. private boolean hasIsMt;
  838. private boolean isMt_ = false;
  839. public boolean getIsMt() { return isMt_; }
  840. public boolean hasIsMt() { return hasIsMt; }
  841. public RilCall setIsMt(boolean value) {
  842. hasIsMt = true;
  843. isMt_ = value;
  844. return this;
  845. }
  846. public RilCall clearIsMt() {
  847. hasIsMt = false;
  848. isMt_ = false;
  849. return this;
  850. }
  851. // optional int32 als = 6;
  852. public static final int ALS_FIELD_NUMBER = 6;
  853. private boolean hasAls;
  854. private int als_ = 0;
  855. public int getAls() { return als_; }
  856. public boolean hasAls() { return hasAls; }
  857. public RilCall setAls(int value) {
  858. hasAls = true;
  859. als_ = value;
  860. return this;
  861. }
  862. public RilCall clearAls() {
  863. hasAls = false;
  864. als_ = 0;
  865. return this;
  866. }
  867. // optional bool is_voice = 7;
  868. public static final int IS_VOICE_FIELD_NUMBER = 7;
  869. private boolean hasIsVoice;
  870. private boolean isVoice_ = false;
  871. public boolean getIsVoice() { return isVoice_; }
  872. public boolean hasIsVoice() { return hasIsVoice; }
  873. public RilCall setIsVoice(boolean value) {
  874. hasIsVoice = true;
  875. isVoice_ = value;
  876. return this;
  877. }
  878. public RilCall clearIsVoice() {
  879. hasIsVoice = false;
  880. isVoice_ = false;
  881. return this;
  882. }
  883. // optional bool is_voice_privacy = 8;
  884. public static final int IS_VOICE_PRIVACY_FIELD_NUMBER = 8;
  885. private boolean hasIsVoicePrivacy;
  886. private boolean isVoicePrivacy_ = false;
  887. public boolean getIsVoicePrivacy() { return isVoicePrivacy_; }
  888. public boolean hasIsVoicePrivacy() { return hasIsVoicePrivacy; }
  889. public RilCall setIsVoicePrivacy(boolean value) {
  890. hasIsVoicePrivacy = true;
  891. isVoicePrivacy_ = value;
  892. return this;
  893. }
  894. public RilCall clearIsVoicePrivacy() {
  895. hasIsVoicePrivacy = false;
  896. isVoicePrivacy_ = false;
  897. return this;
  898. }
  899. // optional string number = 9;
  900. public static final int NUMBER_FIELD_NUMBER = 9;
  901. private boolean hasNumber;
  902. private java.lang.String number_ = "";
  903. public java.lang.String getNumber() { return number_; }
  904. public boolean hasNumber() { return hasNumber; }
  905. public RilCall setNumber(java.lang.String value) {
  906. hasNumber = true;
  907. number_ = value;
  908. return this;
  909. }
  910. public RilCall clearNumber() {
  911. hasNumber = false;
  912. number_ = "";
  913. return this;
  914. }
  915. // optional int32 number_presentation = 10;
  916. public static final int NUMBER_PRESENTATION_FIELD_NUMBER = 10;
  917. private boolean hasNumberPresentation;
  918. private int numberPresentation_ = 0;
  919. public int getNumberPresentation() { return numberPresentation_; }
  920. public boolean hasNumberPresentation() { return hasNumberPresentation; }
  921. public RilCall setNumberPresentation(int value) {
  922. hasNumberPresentation = true;
  923. numberPresentation_ = value;
  924. return this;
  925. }
  926. public RilCall clearNumberPresentation() {
  927. hasNumberPresentation = false;
  928. numberPresentation_ = 0;
  929. return this;
  930. }
  931. // optional string name = 11;
  932. public static final int NAME_FIELD_NUMBER = 11;
  933. private boolean hasName;
  934. private java.lang.String name_ = "";
  935. public java.lang.String getName() { return name_; }
  936. public boolean hasName() { return hasName; }
  937. public RilCall setName(java.lang.String value) {
  938. hasName = true;
  939. name_ = value;
  940. return this;
  941. }
  942. public RilCall clearName() {
  943. hasName = false;
  944. name_ = "";
  945. return this;
  946. }
  947. // optional int32 name_presentation = 12;
  948. public static final int NAME_PRESENTATION_FIELD_NUMBER = 12;
  949. private boolean hasNamePresentation;
  950. private int namePresentation_ = 0;
  951. public int getNamePresentation() { return namePresentation_; }
  952. public boolean hasNamePresentation() { return hasNamePresentation; }
  953. public RilCall setNamePresentation(int value) {
  954. hasNamePresentation = true;
  955. namePresentation_ = value;
  956. return this;
  957. }
  958. public RilCall clearNamePresentation() {
  959. hasNamePresentation = false;
  960. namePresentation_ = 0;
  961. return this;
  962. }
  963. // optional .ril_proto.RilUusInfo uus_info = 13;
  964. public static final int UUS_INFO_FIELD_NUMBER = 13;
  965. private boolean hasUusInfo;
  966. private com.android.internal.telephony.ril_proto.RilCmds.RilUusInfo uusInfo_ = null;
  967. public boolean hasUusInfo() { return hasUusInfo; }
  968. public com.android.internal.telephony.ril_proto.RilCmds.RilUusInfo getUusInfo() { return uusInfo_; }
  969. public RilCall setUusInfo(com.android.internal.telephony.ril_proto.RilCmds.RilUusInfo value) {
  970. if (value == null) {
  971. throw new NullPointerException();
  972. }
  973. hasUusInfo = true;
  974. uusInfo_ = value;
  975. return this;
  976. }
  977. public RilCall clearUusInfo() {
  978. hasUusInfo = false;
  979. uusInfo_ = null;
  980. return this;
  981. }
  982. public final RilCall clear() {
  983. clearState();
  984. clearIndex();
  985. clearToa();
  986. clearIsMpty();
  987. clearIsMt();
  988. clearAls();
  989. clearIsVoice();
  990. clearIsVoicePrivacy();
  991. clearNumber();
  992. clearNumberPresentation();
  993. clearName();
  994. clearNamePresentation();
  995. clearUusInfo();
  996. cachedSize = -1;
  997. return this;
  998. }
  999. public final boolean isInitialized() {
  1000. return true;
  1001. }
  1002. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  1003. throws java.io.IOException {
  1004. if (hasState()) {
  1005. output.writeInt32(1, getState());
  1006. }
  1007. if (hasIndex()) {
  1008. output.writeInt32(2, getIndex());
  1009. }
  1010. if (hasToa()) {
  1011. output.writeInt32(3, getToa());
  1012. }
  1013. if (hasIsMpty()) {
  1014. output.writeBool(4, getIsMpty());
  1015. }
  1016. if (hasIsMt()) {
  1017. output.writeBool(5, getIsMt());
  1018. }
  1019. if (hasAls()) {
  1020. output.writeInt32(6, getAls());
  1021. }
  1022. if (hasIsVoice()) {
  1023. output.writeBool(7, getIsVoice());
  1024. }
  1025. if (hasIsVoicePrivacy()) {
  1026. output.writeBool(8, getIsVoicePrivacy());
  1027. }
  1028. if (hasNumber()) {
  1029. output.writeString(9, getNumber());
  1030. }
  1031. if (hasNumberPresentation()) {
  1032. output.writeInt32(10, getNumberPresentation());
  1033. }
  1034. if (hasName()) {
  1035. output.writeString(11, getName());
  1036. }
  1037. if (hasNamePresentation()) {
  1038. output.writeInt32(12, getNamePresentation());
  1039. }
  1040. if (hasUusInfo()) {
  1041. output.writeMessage(13, getUusInfo());
  1042. }
  1043. }
  1044. private int cachedSize = -1;
  1045. public int getCachedSize() {
  1046. if (cachedSize < 0) {
  1047. // getSerializedSize sets cachedSize
  1048. getSerializedSize();
  1049. }
  1050. return cachedSize;
  1051. }
  1052. public int getSerializedSize() {
  1053. int size = 0;
  1054. if (hasState()) {
  1055. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1056. .computeInt32Size(1, getState());
  1057. }
  1058. if (hasIndex()) {
  1059. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1060. .computeInt32Size(2, getIndex());
  1061. }
  1062. if (hasToa()) {
  1063. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1064. .computeInt32Size(3, getToa());
  1065. }
  1066. if (hasIsMpty()) {
  1067. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1068. .computeBoolSize(4, getIsMpty());
  1069. }
  1070. if (hasIsMt()) {
  1071. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1072. .computeBoolSize(5, getIsMt());
  1073. }
  1074. if (hasAls()) {
  1075. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1076. .computeInt32Size(6, getAls());
  1077. }
  1078. if (hasIsVoice()) {
  1079. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1080. .computeBoolSize(7, getIsVoice());
  1081. }
  1082. if (hasIsVoicePrivacy()) {
  1083. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1084. .computeBoolSize(8, getIsVoicePrivacy());
  1085. }
  1086. if (hasNumber()) {
  1087. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1088. .computeStringSize(9, getNumber());
  1089. }
  1090. if (hasNumberPresentation()) {
  1091. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1092. .computeInt32Size(10, getNumberPresentation());
  1093. }
  1094. if (hasName()) {
  1095. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1096. .computeStringSize(11, getName());
  1097. }
  1098. if (hasNamePresentation()) {
  1099. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1100. .computeInt32Size(12, getNamePresentation());
  1101. }
  1102. if (hasUusInfo()) {
  1103. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1104. .computeMessageSize(13, getUusInfo());
  1105. }
  1106. cachedSize = size;
  1107. return size;
  1108. }
  1109. public RilCall mergeFrom(
  1110. com.google.protobuf.micro.CodedInputStreamMicro input)
  1111. throws java.io.IOException {
  1112. while (true) {
  1113. int tag = input.readTag();
  1114. switch (tag) {
  1115. case 0:
  1116. return this;
  1117. default: {
  1118. if (!parseUnknownField(input, tag)) {
  1119. return this;
  1120. }
  1121. break;
  1122. }
  1123. case 8: {
  1124. setState(input.readInt32());
  1125. break;
  1126. }
  1127. case 16: {
  1128. setIndex(input.readInt32());
  1129. break;
  1130. }
  1131. case 24: {
  1132. setToa(input.readInt32());
  1133. break;
  1134. }
  1135. case 32: {
  1136. setIsMpty(input.readBool());
  1137. break;
  1138. }
  1139. case 40: {
  1140. setIsMt(input.readBool());
  1141. break;
  1142. }
  1143. case 48: {
  1144. setAls(input.readInt32());
  1145. break;
  1146. }
  1147. case 56: {
  1148. setIsVoice(input.readBool());
  1149. break;
  1150. }
  1151. case 64: {
  1152. setIsVoicePrivacy(input.readBool());
  1153. break;
  1154. }
  1155. case 74: {
  1156. setNumber(input.readString());
  1157. break;
  1158. }
  1159. case 80: {
  1160. setNumberPresentation(input.readInt32());
  1161. break;
  1162. }
  1163. case 90: {
  1164. setName(input.readString());
  1165. break;
  1166. }
  1167. case 96: {
  1168. setNamePresentation(input.readInt32());
  1169. break;
  1170. }
  1171. case 106: {
  1172. com.android.internal.telephony.ril_proto.RilCmds.RilUusInfo value = new com.android.internal.telephony.ril_proto.RilCmds.RilUusInfo();
  1173. input.readMessage(value);
  1174. setUusInfo(value);
  1175. break;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. public static RilCall parseFrom(byte[] data)
  1181. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  1182. return (RilCall) (new RilCall().mergeFrom(data));
  1183. }
  1184. public static RilCall parseFrom(
  1185. com.google.protobuf.micro.CodedInputStreamMicro input)
  1186. throws java.io.IOException {
  1187. return (RilCall) (new RilCall().mergeFrom(input));
  1188. }
  1189. }
  1190. public static final class RILGWSignalStrength extends
  1191. com.google.protobuf.micro.MessageMicro {
  1192. public RILGWSignalStrength() {}
  1193. // optional int32 signal_strength = 1;
  1194. public static final int SIGNAL_STRENGTH_FIELD_NUMBER = 1;
  1195. private boolean hasSignalStrength;
  1196. private int signalStrength_ = 0;
  1197. public int getSignalStrength() { return signalStrength_; }
  1198. public boolean hasSignalStrength() { return hasSignalStrength; }
  1199. public RILGWSignalStrength setSignalStrength(int value) {
  1200. hasSignalStrength = true;
  1201. signalStrength_ = value;
  1202. return this;
  1203. }
  1204. public RILGWSignalStrength clearSignalStrength() {
  1205. hasSignalStrength = false;
  1206. signalStrength_ = 0;
  1207. return this;
  1208. }
  1209. // optional int32 bit_error_rate = 2;
  1210. public static final int BIT_ERROR_RATE_FIELD_NUMBER = 2;
  1211. private boolean hasBitErrorRate;
  1212. private int bitErrorRate_ = 0;
  1213. public int getBitErrorRate() { return bitErrorRate_; }
  1214. public boolean hasBitErrorRate() { return hasBitErrorRate; }
  1215. public RILGWSignalStrength setBitErrorRate(int value) {
  1216. hasBitErrorRate = true;
  1217. bitErrorRate_ = value;
  1218. return this;
  1219. }
  1220. public RILGWSignalStrength clearBitErrorRate() {
  1221. hasBitErrorRate = false;
  1222. bitErrorRate_ = 0;
  1223. return this;
  1224. }
  1225. public final RILGWSignalStrength clear() {
  1226. clearSignalStrength();
  1227. clearBitErrorRate();
  1228. cachedSize = -1;
  1229. return this;
  1230. }
  1231. public final boolean isInitialized() {
  1232. return true;
  1233. }
  1234. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  1235. throws java.io.IOException {
  1236. if (hasSignalStrength()) {
  1237. output.writeInt32(1, getSignalStrength());
  1238. }
  1239. if (hasBitErrorRate()) {
  1240. output.writeInt32(2, getBitErrorRate());
  1241. }
  1242. }
  1243. private int cachedSize = -1;
  1244. public int getCachedSize() {
  1245. if (cachedSize < 0) {
  1246. // getSerializedSize sets cachedSize
  1247. getSerializedSize();
  1248. }
  1249. return cachedSize;
  1250. }
  1251. public int getSerializedSize() {
  1252. int size = 0;
  1253. if (hasSignalStrength()) {
  1254. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1255. .computeInt32Size(1, getSignalStrength());
  1256. }
  1257. if (hasBitErrorRate()) {
  1258. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1259. .computeInt32Size(2, getBitErrorRate());
  1260. }
  1261. cachedSize = size;
  1262. return size;
  1263. }
  1264. public RILGWSignalStrength mergeFrom(
  1265. com.google.protobuf.micro.CodedInputStreamMicro input)
  1266. throws java.io.IOException {
  1267. while (true) {
  1268. int tag = input.readTag();
  1269. switch (tag) {
  1270. case 0:
  1271. return this;
  1272. default: {
  1273. if (!parseUnknownField(input, tag)) {
  1274. return this;
  1275. }
  1276. break;
  1277. }
  1278. case 8: {
  1279. setSignalStrength(input.readInt32());
  1280. break;
  1281. }
  1282. case 16: {
  1283. setBitErrorRate(input.readInt32());
  1284. break;
  1285. }
  1286. }
  1287. }
  1288. }
  1289. public static RILGWSignalStrength parseFrom(byte[] data)
  1290. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  1291. return (RILGWSignalStrength) (new RILGWSignalStrength().mergeFrom(data));
  1292. }
  1293. public static RILGWSignalStrength parseFrom(
  1294. com.google.protobuf.micro.CodedInputStreamMicro input)
  1295. throws java.io.IOException {
  1296. return (RILGWSignalStrength) (new RILGWSignalStrength().mergeFrom(input));
  1297. }
  1298. }
  1299. public static final class RILCDMASignalStrength extends
  1300. com.google.protobuf.micro.MessageMicro {
  1301. public RILCDMASignalStrength() {}
  1302. // optional int32 dbm = 1;
  1303. public static final int DBM_FIELD_NUMBER = 1;
  1304. private boolean hasDbm;
  1305. private int dbm_ = 0;
  1306. public int getDbm() { return dbm_; }
  1307. public boolean hasDbm() { return hasDbm; }
  1308. public RILCDMASignalStrength setDbm(int value) {
  1309. hasDbm = true;
  1310. dbm_ = value;
  1311. return this;
  1312. }
  1313. public RILCDMASignalStrength clearDbm() {
  1314. hasDbm = false;
  1315. dbm_ = 0;
  1316. return this;
  1317. }
  1318. // optional int32 ecio = 2;
  1319. public static final int ECIO_FIELD_NUMBER = 2;
  1320. private boolean hasEcio;
  1321. private int ecio_ = 0;
  1322. public int getEcio() { return ecio_; }
  1323. public boolean hasEcio() { return hasEcio; }
  1324. public RILCDMASignalStrength setEcio(int value) {
  1325. hasEcio = true;
  1326. ecio_ = value;
  1327. return this;
  1328. }
  1329. public RILCDMASignalStrength clearEcio() {
  1330. hasEcio = false;
  1331. ecio_ = 0;
  1332. return this;
  1333. }
  1334. public final RILCDMASignalStrength clear() {
  1335. clearDbm();
  1336. clearEcio();
  1337. cachedSize = -1;
  1338. return this;
  1339. }
  1340. public final boolean isInitialized() {
  1341. return true;
  1342. }
  1343. public void writeTo(com.google.protobuf.micro.CodedOutputStreamMicro output)
  1344. throws java.io.IOException {
  1345. if (hasDbm()) {
  1346. output.writeInt32(1, getDbm());
  1347. }
  1348. if (hasEcio()) {
  1349. output.writeInt32(2, getEcio());
  1350. }
  1351. }
  1352. private int cachedSize = -1;
  1353. public int getCachedSize() {
  1354. if (cachedSize < 0) {
  1355. // getSerializedSize sets cachedSize
  1356. getSerializedSize();
  1357. }
  1358. return cachedSize;
  1359. }
  1360. public int getSerializedSize() {
  1361. int size = 0;
  1362. if (hasDbm()) {
  1363. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1364. .computeInt32Size(1, getDbm());
  1365. }
  1366. if (hasEcio()) {
  1367. size += com.google.protobuf.micro.CodedOutputStreamMicro
  1368. .computeInt32Size(2, getEcio());
  1369. }
  1370. cachedSize = size;
  1371. return size;
  1372. }
  1373. public RILCDMASignalStrength mergeFrom(
  1374. com.google.protobuf.micro.CodedInputStreamMicro input)
  1375. throws java.io.IOException {
  1376. while (true) {
  1377. int tag = input.readTag();
  1378. switch (tag) {
  1379. case 0:
  1380. return this;
  1381. default: {
  1382. if (!parseUnknownField(input, tag)) {
  1383. return this;
  1384. }
  1385. break;
  1386. }
  1387. case 8: {
  1388. setDbm(input.readInt32());
  1389. break;
  1390. }
  1391. case 16: {
  1392. setEcio(input.readInt32());
  1393. break;
  1394. }
  1395. }
  1396. }
  1397. }
  1398. public static RILCDMASignalStrength parseFrom(byte[] data)
  1399. throws com.google.protobuf.micro.InvalidProtocolBufferMicroException {
  1400. return (RILCDMASignalStrength) (new RILCDMASignalStrength().mergeFrom(data));
  1401. }
  1402. public static RILCDMASignalStrength parseFrom(
  1403. com.google.protobuf.micro.CodedInputStreamMicro input)
  1404. throws java.io.IOException {
  1405. return (RILCDMASignalStrength) (new RILCDMASignalStrength().mergeFrom(input));
  1406. }
  1407. }
  1408. public static final class RILEVDOSignalStrength extends
  1409. com.google.protobuf.micro.MessageMicro {
  1410. public RILEVDOSignalStrength() {}
  1411. // optional int32 dbm = 1;
  1412. public static final int DBM_FIELD_NUMBER = 1;
  1413. private boolean hasDbm;
  1414. private int dbm_ = 0;
  1415. public int getDbm() { return dbm_; }
  1416. public boolean hasDbm() { return hasDbm; }
  1417. public RILEVDOSignalStrength setDbm(int value) {
  1418. hasDbm = true;
  1419. dbm_ = value;
  1420. return this;
  1421. }
  1422. public RILEVDOSignalStrength clearDbm() {
  1423. hasDbm = false;
  1424. dbm_ = 0;
  1425. return this;
  1426. }
  1427. // optional int32 ecio = 2;
  1428. public static final int ECIO_FIELD_NUMBER = 2;
  1429. private boolean hasEcio;
  1430. private int ecio_ = 0;
  1431. public int getEcio() { return ecio_; }
  1432. public boolean hasEcio() { return hasEcio; }
  1433. public RILEVDOSignalStrength setEcio(int value) {
  1434. hasEcio = true;
  1435. ecio_ = value;
  1436. return this;
  1437. }
  1438. public RILEVDOSignalStrength clearEcio() {
  1439. hasEcio = false;
  1440. ecio_ = 0;
  1441. return this;
  1442. }
  1443. // optional int32 signal_noise_ratio = 3;
  1444. public static final int SIGNAL_NOISE_RATIO_FIELD_NUMBER = 3;
  1445. private boolean hasSignalNoiseRatio;
  1446. private int signalNoiseRatio_ = 0;
  1447. public int getSignalNoiseRatio() { return signalNoiseRatio_; }
  1448. public boolean hasSignalNoiseRatio() { return hasSignalNoiseRatio; }
  1449. public RILEVDOSignalStrength setSignalNoiseRatio(int value) {
  1450. hasSignalNoiseRatio = true;
  1451. signalNoiseRatio_ = value;
  1452. return this;
  1453. }
  1454. public RILEVD

Large files files are truncated, but you can click here to view the full file