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

/NotifierLib/src/org/damazio/notifier/protocol/Commands.java

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