CreateMedicalCardRequest.java 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: taihe_register.proto
  3. package com.ywt.gapi.taihe.register;
  4. /**
  5. * Protobuf type {@code com.ywt.gapi.taihe.register.CreateMedicalCardRequest}
  6. */
  7. public final class CreateMedicalCardRequest extends
  8. com.google.protobuf.GeneratedMessageV3 implements
  9. // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
  10. CreateMedicalCardRequestOrBuilder {
  11. private static final long serialVersionUID = 0L;
  12. // Use CreateMedicalCardRequest.newBuilder() to construct.
  13. private CreateMedicalCardRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
  14. super(builder);
  15. }
  16. private CreateMedicalCardRequest() {
  17. phoneNo_ = "";
  18. idNo_ = "";
  19. patientName_ = "";
  20. city_ = "";
  21. address_ = "";
  22. isInsu_ = "";
  23. hospitalId_ = 0;
  24. userId_ = 0;
  25. relationship_ = 0;
  26. }
  27. @java.lang.Override
  28. public final com.google.protobuf.UnknownFieldSet
  29. getUnknownFields() {
  30. return this.unknownFields;
  31. }
  32. private CreateMedicalCardRequest(
  33. com.google.protobuf.CodedInputStream input,
  34. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  35. throws com.google.protobuf.InvalidProtocolBufferException {
  36. this();
  37. if (extensionRegistry == null) {
  38. throw new java.lang.NullPointerException();
  39. }
  40. int mutable_bitField0_ = 0;
  41. com.google.protobuf.UnknownFieldSet.Builder unknownFields =
  42. com.google.protobuf.UnknownFieldSet.newBuilder();
  43. try {
  44. boolean done = false;
  45. while (!done) {
  46. int tag = input.readTag();
  47. switch (tag) {
  48. case 0:
  49. done = true;
  50. break;
  51. default: {
  52. if (!parseUnknownFieldProto3(
  53. input, unknownFields, extensionRegistry, tag)) {
  54. done = true;
  55. }
  56. break;
  57. }
  58. case 10: {
  59. java.lang.String s = input.readStringRequireUtf8();
  60. phoneNo_ = s;
  61. break;
  62. }
  63. case 18: {
  64. java.lang.String s = input.readStringRequireUtf8();
  65. idNo_ = s;
  66. break;
  67. }
  68. case 26: {
  69. java.lang.String s = input.readStringRequireUtf8();
  70. patientName_ = s;
  71. break;
  72. }
  73. case 34: {
  74. java.lang.String s = input.readStringRequireUtf8();
  75. city_ = s;
  76. break;
  77. }
  78. case 42: {
  79. java.lang.String s = input.readStringRequireUtf8();
  80. address_ = s;
  81. break;
  82. }
  83. case 50: {
  84. java.lang.String s = input.readStringRequireUtf8();
  85. isInsu_ = s;
  86. break;
  87. }
  88. case 56: {
  89. hospitalId_ = input.readInt32();
  90. break;
  91. }
  92. case 64: {
  93. userId_ = input.readInt32();
  94. break;
  95. }
  96. case 72: {
  97. relationship_ = input.readInt32();
  98. break;
  99. }
  100. }
  101. }
  102. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  103. throw e.setUnfinishedMessage(this);
  104. } catch (java.io.IOException e) {
  105. throw new com.google.protobuf.InvalidProtocolBufferException(
  106. e).setUnfinishedMessage(this);
  107. } finally {
  108. this.unknownFields = unknownFields.build();
  109. makeExtensionsImmutable();
  110. }
  111. }
  112. public static final com.google.protobuf.Descriptors.Descriptor
  113. getDescriptor() {
  114. return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
  115. }
  116. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  117. internalGetFieldAccessorTable() {
  118. return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_fieldAccessorTable
  119. .ensureFieldAccessorsInitialized(
  120. com.ywt.gapi.taihe.register.CreateMedicalCardRequest.class, com.ywt.gapi.taihe.register.CreateMedicalCardRequest.Builder.class);
  121. }
  122. public static final int PHONENO_FIELD_NUMBER = 1;
  123. private volatile java.lang.Object phoneNo_;
  124. /**
  125. * <pre>
  126. *手机号
  127. * </pre>
  128. *
  129. * <code>string phoneNo = 1;</code>
  130. */
  131. public java.lang.String getPhoneNo() {
  132. java.lang.Object ref = phoneNo_;
  133. if (ref instanceof java.lang.String) {
  134. return (java.lang.String) ref;
  135. } else {
  136. com.google.protobuf.ByteString bs =
  137. (com.google.protobuf.ByteString) ref;
  138. java.lang.String s = bs.toStringUtf8();
  139. phoneNo_ = s;
  140. return s;
  141. }
  142. }
  143. /**
  144. * <pre>
  145. *手机号
  146. * </pre>
  147. *
  148. * <code>string phoneNo = 1;</code>
  149. */
  150. public com.google.protobuf.ByteString
  151. getPhoneNoBytes() {
  152. java.lang.Object ref = phoneNo_;
  153. if (ref instanceof java.lang.String) {
  154. com.google.protobuf.ByteString b =
  155. com.google.protobuf.ByteString.copyFromUtf8(
  156. (java.lang.String) ref);
  157. phoneNo_ = b;
  158. return b;
  159. } else {
  160. return (com.google.protobuf.ByteString) ref;
  161. }
  162. }
  163. public static final int IDNO_FIELD_NUMBER = 2;
  164. private volatile java.lang.Object idNo_;
  165. /**
  166. * <pre>
  167. *身份证号
  168. * </pre>
  169. *
  170. * <code>string idNo = 2;</code>
  171. */
  172. public java.lang.String getIdNo() {
  173. java.lang.Object ref = idNo_;
  174. if (ref instanceof java.lang.String) {
  175. return (java.lang.String) ref;
  176. } else {
  177. com.google.protobuf.ByteString bs =
  178. (com.google.protobuf.ByteString) ref;
  179. java.lang.String s = bs.toStringUtf8();
  180. idNo_ = s;
  181. return s;
  182. }
  183. }
  184. /**
  185. * <pre>
  186. *身份证号
  187. * </pre>
  188. *
  189. * <code>string idNo = 2;</code>
  190. */
  191. public com.google.protobuf.ByteString
  192. getIdNoBytes() {
  193. java.lang.Object ref = idNo_;
  194. if (ref instanceof java.lang.String) {
  195. com.google.protobuf.ByteString b =
  196. com.google.protobuf.ByteString.copyFromUtf8(
  197. (java.lang.String) ref);
  198. idNo_ = b;
  199. return b;
  200. } else {
  201. return (com.google.protobuf.ByteString) ref;
  202. }
  203. }
  204. public static final int PATIENTNAME_FIELD_NUMBER = 3;
  205. private volatile java.lang.Object patientName_;
  206. /**
  207. * <pre>
  208. *患者姓名
  209. * </pre>
  210. *
  211. * <code>string patientName = 3;</code>
  212. */
  213. public java.lang.String getPatientName() {
  214. java.lang.Object ref = patientName_;
  215. if (ref instanceof java.lang.String) {
  216. return (java.lang.String) ref;
  217. } else {
  218. com.google.protobuf.ByteString bs =
  219. (com.google.protobuf.ByteString) ref;
  220. java.lang.String s = bs.toStringUtf8();
  221. patientName_ = s;
  222. return s;
  223. }
  224. }
  225. /**
  226. * <pre>
  227. *患者姓名
  228. * </pre>
  229. *
  230. * <code>string patientName = 3;</code>
  231. */
  232. public com.google.protobuf.ByteString
  233. getPatientNameBytes() {
  234. java.lang.Object ref = patientName_;
  235. if (ref instanceof java.lang.String) {
  236. com.google.protobuf.ByteString b =
  237. com.google.protobuf.ByteString.copyFromUtf8(
  238. (java.lang.String) ref);
  239. patientName_ = b;
  240. return b;
  241. } else {
  242. return (com.google.protobuf.ByteString) ref;
  243. }
  244. }
  245. public static final int CITY_FIELD_NUMBER = 4;
  246. private volatile java.lang.Object city_;
  247. /**
  248. * <pre>
  249. *在线建卡市区
  250. * </pre>
  251. *
  252. * <code>string city = 4;</code>
  253. */
  254. public java.lang.String getCity() {
  255. java.lang.Object ref = city_;
  256. if (ref instanceof java.lang.String) {
  257. return (java.lang.String) ref;
  258. } else {
  259. com.google.protobuf.ByteString bs =
  260. (com.google.protobuf.ByteString) ref;
  261. java.lang.String s = bs.toStringUtf8();
  262. city_ = s;
  263. return s;
  264. }
  265. }
  266. /**
  267. * <pre>
  268. *在线建卡市区
  269. * </pre>
  270. *
  271. * <code>string city = 4;</code>
  272. */
  273. public com.google.protobuf.ByteString
  274. getCityBytes() {
  275. java.lang.Object ref = city_;
  276. if (ref instanceof java.lang.String) {
  277. com.google.protobuf.ByteString b =
  278. com.google.protobuf.ByteString.copyFromUtf8(
  279. (java.lang.String) ref);
  280. city_ = b;
  281. return b;
  282. } else {
  283. return (com.google.protobuf.ByteString) ref;
  284. }
  285. }
  286. public static final int ADDRESS_FIELD_NUMBER = 5;
  287. private volatile java.lang.Object address_;
  288. /**
  289. * <pre>
  290. *详细地址
  291. * </pre>
  292. *
  293. * <code>string address = 5;</code>
  294. */
  295. public java.lang.String getAddress() {
  296. java.lang.Object ref = address_;
  297. if (ref instanceof java.lang.String) {
  298. return (java.lang.String) ref;
  299. } else {
  300. com.google.protobuf.ByteString bs =
  301. (com.google.protobuf.ByteString) ref;
  302. java.lang.String s = bs.toStringUtf8();
  303. address_ = s;
  304. return s;
  305. }
  306. }
  307. /**
  308. * <pre>
  309. *详细地址
  310. * </pre>
  311. *
  312. * <code>string address = 5;</code>
  313. */
  314. public com.google.protobuf.ByteString
  315. getAddressBytes() {
  316. java.lang.Object ref = address_;
  317. if (ref instanceof java.lang.String) {
  318. com.google.protobuf.ByteString b =
  319. com.google.protobuf.ByteString.copyFromUtf8(
  320. (java.lang.String) ref);
  321. address_ = b;
  322. return b;
  323. } else {
  324. return (com.google.protobuf.ByteString) ref;
  325. }
  326. }
  327. public static final int ISINSU_FIELD_NUMBER = 6;
  328. private volatile java.lang.Object isInsu_;
  329. /**
  330. * <pre>
  331. *建卡患者是否是医保 1 :广州医保 空值:非医保
  332. * </pre>
  333. *
  334. * <code>string isInsu = 6;</code>
  335. */
  336. public java.lang.String getIsInsu() {
  337. java.lang.Object ref = isInsu_;
  338. if (ref instanceof java.lang.String) {
  339. return (java.lang.String) ref;
  340. } else {
  341. com.google.protobuf.ByteString bs =
  342. (com.google.protobuf.ByteString) ref;
  343. java.lang.String s = bs.toStringUtf8();
  344. isInsu_ = s;
  345. return s;
  346. }
  347. }
  348. /**
  349. * <pre>
  350. *建卡患者是否是医保 1 :广州医保 空值:非医保
  351. * </pre>
  352. *
  353. * <code>string isInsu = 6;</code>
  354. */
  355. public com.google.protobuf.ByteString
  356. getIsInsuBytes() {
  357. java.lang.Object ref = isInsu_;
  358. if (ref instanceof java.lang.String) {
  359. com.google.protobuf.ByteString b =
  360. com.google.protobuf.ByteString.copyFromUtf8(
  361. (java.lang.String) ref);
  362. isInsu_ = b;
  363. return b;
  364. } else {
  365. return (com.google.protobuf.ByteString) ref;
  366. }
  367. }
  368. public static final int HOSPITALID_FIELD_NUMBER = 7;
  369. private int hospitalId_;
  370. /**
  371. * <code>int32 hospitalId = 7;</code>
  372. */
  373. public int getHospitalId() {
  374. return hospitalId_;
  375. }
  376. public static final int USERID_FIELD_NUMBER = 8;
  377. private int userId_;
  378. /**
  379. * <code>int32 userId = 8;</code>
  380. */
  381. public int getUserId() {
  382. return userId_;
  383. }
  384. public static final int RELATIONSHIP_FIELD_NUMBER = 9;
  385. private int relationship_;
  386. /**
  387. * <pre>
  388. * 关系:1-本人,6-父母,7-子女,5-其他
  389. * </pre>
  390. *
  391. * <code>int32 relationship = 9;</code>
  392. */
  393. public int getRelationship() {
  394. return relationship_;
  395. }
  396. private byte memoizedIsInitialized = -1;
  397. public final boolean isInitialized() {
  398. byte isInitialized = memoizedIsInitialized;
  399. if (isInitialized == 1) return true;
  400. if (isInitialized == 0) return false;
  401. memoizedIsInitialized = 1;
  402. return true;
  403. }
  404. public void writeTo(com.google.protobuf.CodedOutputStream output)
  405. throws java.io.IOException {
  406. if (!getPhoneNoBytes().isEmpty()) {
  407. com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNo_);
  408. }
  409. if (!getIdNoBytes().isEmpty()) {
  410. com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idNo_);
  411. }
  412. if (!getPatientNameBytes().isEmpty()) {
  413. com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientName_);
  414. }
  415. if (!getCityBytes().isEmpty()) {
  416. com.google.protobuf.GeneratedMessageV3.writeString(output, 4, city_);
  417. }
  418. if (!getAddressBytes().isEmpty()) {
  419. com.google.protobuf.GeneratedMessageV3.writeString(output, 5, address_);
  420. }
  421. if (!getIsInsuBytes().isEmpty()) {
  422. com.google.protobuf.GeneratedMessageV3.writeString(output, 6, isInsu_);
  423. }
  424. if (hospitalId_ != 0) {
  425. output.writeInt32(7, hospitalId_);
  426. }
  427. if (userId_ != 0) {
  428. output.writeInt32(8, userId_);
  429. }
  430. if (relationship_ != 0) {
  431. output.writeInt32(9, relationship_);
  432. }
  433. unknownFields.writeTo(output);
  434. }
  435. public int getSerializedSize() {
  436. int size = memoizedSize;
  437. if (size != -1) return size;
  438. size = 0;
  439. if (!getPhoneNoBytes().isEmpty()) {
  440. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNo_);
  441. }
  442. if (!getIdNoBytes().isEmpty()) {
  443. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, idNo_);
  444. }
  445. if (!getPatientNameBytes().isEmpty()) {
  446. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientName_);
  447. }
  448. if (!getCityBytes().isEmpty()) {
  449. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, city_);
  450. }
  451. if (!getAddressBytes().isEmpty()) {
  452. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, address_);
  453. }
  454. if (!getIsInsuBytes().isEmpty()) {
  455. size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, isInsu_);
  456. }
  457. if (hospitalId_ != 0) {
  458. size += com.google.protobuf.CodedOutputStream
  459. .computeInt32Size(7, hospitalId_);
  460. }
  461. if (userId_ != 0) {
  462. size += com.google.protobuf.CodedOutputStream
  463. .computeInt32Size(8, userId_);
  464. }
  465. if (relationship_ != 0) {
  466. size += com.google.protobuf.CodedOutputStream
  467. .computeInt32Size(9, relationship_);
  468. }
  469. size += unknownFields.getSerializedSize();
  470. memoizedSize = size;
  471. return size;
  472. }
  473. @java.lang.Override
  474. public boolean equals(final java.lang.Object obj) {
  475. if (obj == this) {
  476. return true;
  477. }
  478. if (!(obj instanceof com.ywt.gapi.taihe.register.CreateMedicalCardRequest)) {
  479. return super.equals(obj);
  480. }
  481. com.ywt.gapi.taihe.register.CreateMedicalCardRequest other = (com.ywt.gapi.taihe.register.CreateMedicalCardRequest) obj;
  482. boolean result = true;
  483. result = result && getPhoneNo()
  484. .equals(other.getPhoneNo());
  485. result = result && getIdNo()
  486. .equals(other.getIdNo());
  487. result = result && getPatientName()
  488. .equals(other.getPatientName());
  489. result = result && getCity()
  490. .equals(other.getCity());
  491. result = result && getAddress()
  492. .equals(other.getAddress());
  493. result = result && getIsInsu()
  494. .equals(other.getIsInsu());
  495. result = result && (getHospitalId()
  496. == other.getHospitalId());
  497. result = result && (getUserId()
  498. == other.getUserId());
  499. result = result && (getRelationship()
  500. == other.getRelationship());
  501. result = result && unknownFields.equals(other.unknownFields);
  502. return result;
  503. }
  504. @java.lang.Override
  505. public int hashCode() {
  506. if (memoizedHashCode != 0) {
  507. return memoizedHashCode;
  508. }
  509. int hash = 41;
  510. hash = (19 * hash) + getDescriptor().hashCode();
  511. hash = (37 * hash) + PHONENO_FIELD_NUMBER;
  512. hash = (53 * hash) + getPhoneNo().hashCode();
  513. hash = (37 * hash) + IDNO_FIELD_NUMBER;
  514. hash = (53 * hash) + getIdNo().hashCode();
  515. hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
  516. hash = (53 * hash) + getPatientName().hashCode();
  517. hash = (37 * hash) + CITY_FIELD_NUMBER;
  518. hash = (53 * hash) + getCity().hashCode();
  519. hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
  520. hash = (53 * hash) + getAddress().hashCode();
  521. hash = (37 * hash) + ISINSU_FIELD_NUMBER;
  522. hash = (53 * hash) + getIsInsu().hashCode();
  523. hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
  524. hash = (53 * hash) + getHospitalId();
  525. hash = (37 * hash) + USERID_FIELD_NUMBER;
  526. hash = (53 * hash) + getUserId();
  527. hash = (37 * hash) + RELATIONSHIP_FIELD_NUMBER;
  528. hash = (53 * hash) + getRelationship();
  529. hash = (29 * hash) + unknownFields.hashCode();
  530. memoizedHashCode = hash;
  531. return hash;
  532. }
  533. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  534. java.nio.ByteBuffer data)
  535. throws com.google.protobuf.InvalidProtocolBufferException {
  536. return PARSER.parseFrom(data);
  537. }
  538. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  539. java.nio.ByteBuffer data,
  540. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  541. throws com.google.protobuf.InvalidProtocolBufferException {
  542. return PARSER.parseFrom(data, extensionRegistry);
  543. }
  544. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  545. com.google.protobuf.ByteString data)
  546. throws com.google.protobuf.InvalidProtocolBufferException {
  547. return PARSER.parseFrom(data);
  548. }
  549. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  550. com.google.protobuf.ByteString data,
  551. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  552. throws com.google.protobuf.InvalidProtocolBufferException {
  553. return PARSER.parseFrom(data, extensionRegistry);
  554. }
  555. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(byte[] data)
  556. throws com.google.protobuf.InvalidProtocolBufferException {
  557. return PARSER.parseFrom(data);
  558. }
  559. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  560. byte[] data,
  561. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  562. throws com.google.protobuf.InvalidProtocolBufferException {
  563. return PARSER.parseFrom(data, extensionRegistry);
  564. }
  565. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(java.io.InputStream input)
  566. throws java.io.IOException {
  567. return com.google.protobuf.GeneratedMessageV3
  568. .parseWithIOException(PARSER, input);
  569. }
  570. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  571. java.io.InputStream input,
  572. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  573. throws java.io.IOException {
  574. return com.google.protobuf.GeneratedMessageV3
  575. .parseWithIOException(PARSER, input, extensionRegistry);
  576. }
  577. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseDelimitedFrom(java.io.InputStream input)
  578. throws java.io.IOException {
  579. return com.google.protobuf.GeneratedMessageV3
  580. .parseDelimitedWithIOException(PARSER, input);
  581. }
  582. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseDelimitedFrom(
  583. java.io.InputStream input,
  584. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  585. throws java.io.IOException {
  586. return com.google.protobuf.GeneratedMessageV3
  587. .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  588. }
  589. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  590. com.google.protobuf.CodedInputStream input)
  591. throws java.io.IOException {
  592. return com.google.protobuf.GeneratedMessageV3
  593. .parseWithIOException(PARSER, input);
  594. }
  595. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
  596. com.google.protobuf.CodedInputStream input,
  597. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  598. throws java.io.IOException {
  599. return com.google.protobuf.GeneratedMessageV3
  600. .parseWithIOException(PARSER, input, extensionRegistry);
  601. }
  602. public Builder newBuilderForType() { return newBuilder(); }
  603. public static Builder newBuilder() {
  604. return DEFAULT_INSTANCE.toBuilder();
  605. }
  606. public static Builder newBuilder(com.ywt.gapi.taihe.register.CreateMedicalCardRequest prototype) {
  607. return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  608. }
  609. public Builder toBuilder() {
  610. return this == DEFAULT_INSTANCE
  611. ? new Builder() : new Builder().mergeFrom(this);
  612. }
  613. @java.lang.Override
  614. protected Builder newBuilderForType(
  615. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  616. Builder builder = new Builder(parent);
  617. return builder;
  618. }
  619. /**
  620. * Protobuf type {@code com.ywt.gapi.taihe.register.CreateMedicalCardRequest}
  621. */
  622. public static final class Builder extends
  623. com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
  624. // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
  625. com.ywt.gapi.taihe.register.CreateMedicalCardRequestOrBuilder {
  626. public static final com.google.protobuf.Descriptors.Descriptor
  627. getDescriptor() {
  628. return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
  629. }
  630. protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
  631. internalGetFieldAccessorTable() {
  632. return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_fieldAccessorTable
  633. .ensureFieldAccessorsInitialized(
  634. com.ywt.gapi.taihe.register.CreateMedicalCardRequest.class, com.ywt.gapi.taihe.register.CreateMedicalCardRequest.Builder.class);
  635. }
  636. // Construct using com.ywt.gapi.taihe.register.CreateMedicalCardRequest.newBuilder()
  637. private Builder() {
  638. maybeForceBuilderInitialization();
  639. }
  640. private Builder(
  641. com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
  642. super(parent);
  643. maybeForceBuilderInitialization();
  644. }
  645. private void maybeForceBuilderInitialization() {
  646. if (com.google.protobuf.GeneratedMessageV3
  647. .alwaysUseFieldBuilders) {
  648. }
  649. }
  650. public Builder clear() {
  651. super.clear();
  652. phoneNo_ = "";
  653. idNo_ = "";
  654. patientName_ = "";
  655. city_ = "";
  656. address_ = "";
  657. isInsu_ = "";
  658. hospitalId_ = 0;
  659. userId_ = 0;
  660. relationship_ = 0;
  661. return this;
  662. }
  663. public com.google.protobuf.Descriptors.Descriptor
  664. getDescriptorForType() {
  665. return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
  666. }
  667. public com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstanceForType() {
  668. return com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance();
  669. }
  670. public com.ywt.gapi.taihe.register.CreateMedicalCardRequest build() {
  671. com.ywt.gapi.taihe.register.CreateMedicalCardRequest result = buildPartial();
  672. if (!result.isInitialized()) {
  673. throw newUninitializedMessageException(result);
  674. }
  675. return result;
  676. }
  677. public com.ywt.gapi.taihe.register.CreateMedicalCardRequest buildPartial() {
  678. com.ywt.gapi.taihe.register.CreateMedicalCardRequest result = new com.ywt.gapi.taihe.register.CreateMedicalCardRequest(this);
  679. result.phoneNo_ = phoneNo_;
  680. result.idNo_ = idNo_;
  681. result.patientName_ = patientName_;
  682. result.city_ = city_;
  683. result.address_ = address_;
  684. result.isInsu_ = isInsu_;
  685. result.hospitalId_ = hospitalId_;
  686. result.userId_ = userId_;
  687. result.relationship_ = relationship_;
  688. onBuilt();
  689. return result;
  690. }
  691. public Builder clone() {
  692. return (Builder) super.clone();
  693. }
  694. public Builder setField(
  695. com.google.protobuf.Descriptors.FieldDescriptor field,
  696. java.lang.Object value) {
  697. return (Builder) super.setField(field, value);
  698. }
  699. public Builder clearField(
  700. com.google.protobuf.Descriptors.FieldDescriptor field) {
  701. return (Builder) super.clearField(field);
  702. }
  703. public Builder clearOneof(
  704. com.google.protobuf.Descriptors.OneofDescriptor oneof) {
  705. return (Builder) super.clearOneof(oneof);
  706. }
  707. public Builder setRepeatedField(
  708. com.google.protobuf.Descriptors.FieldDescriptor field,
  709. int index, java.lang.Object value) {
  710. return (Builder) super.setRepeatedField(field, index, value);
  711. }
  712. public Builder addRepeatedField(
  713. com.google.protobuf.Descriptors.FieldDescriptor field,
  714. java.lang.Object value) {
  715. return (Builder) super.addRepeatedField(field, value);
  716. }
  717. public Builder mergeFrom(com.google.protobuf.Message other) {
  718. if (other instanceof com.ywt.gapi.taihe.register.CreateMedicalCardRequest) {
  719. return mergeFrom((com.ywt.gapi.taihe.register.CreateMedicalCardRequest)other);
  720. } else {
  721. super.mergeFrom(other);
  722. return this;
  723. }
  724. }
  725. public Builder mergeFrom(com.ywt.gapi.taihe.register.CreateMedicalCardRequest other) {
  726. if (other == com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance()) return this;
  727. if (!other.getPhoneNo().isEmpty()) {
  728. phoneNo_ = other.phoneNo_;
  729. onChanged();
  730. }
  731. if (!other.getIdNo().isEmpty()) {
  732. idNo_ = other.idNo_;
  733. onChanged();
  734. }
  735. if (!other.getPatientName().isEmpty()) {
  736. patientName_ = other.patientName_;
  737. onChanged();
  738. }
  739. if (!other.getCity().isEmpty()) {
  740. city_ = other.city_;
  741. onChanged();
  742. }
  743. if (!other.getAddress().isEmpty()) {
  744. address_ = other.address_;
  745. onChanged();
  746. }
  747. if (!other.getIsInsu().isEmpty()) {
  748. isInsu_ = other.isInsu_;
  749. onChanged();
  750. }
  751. if (other.getHospitalId() != 0) {
  752. setHospitalId(other.getHospitalId());
  753. }
  754. if (other.getUserId() != 0) {
  755. setUserId(other.getUserId());
  756. }
  757. if (other.getRelationship() != 0) {
  758. setRelationship(other.getRelationship());
  759. }
  760. this.mergeUnknownFields(other.unknownFields);
  761. onChanged();
  762. return this;
  763. }
  764. public final boolean isInitialized() {
  765. return true;
  766. }
  767. public Builder mergeFrom(
  768. com.google.protobuf.CodedInputStream input,
  769. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  770. throws java.io.IOException {
  771. com.ywt.gapi.taihe.register.CreateMedicalCardRequest parsedMessage = null;
  772. try {
  773. parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
  774. } catch (com.google.protobuf.InvalidProtocolBufferException e) {
  775. parsedMessage = (com.ywt.gapi.taihe.register.CreateMedicalCardRequest) e.getUnfinishedMessage();
  776. throw e.unwrapIOException();
  777. } finally {
  778. if (parsedMessage != null) {
  779. mergeFrom(parsedMessage);
  780. }
  781. }
  782. return this;
  783. }
  784. private java.lang.Object phoneNo_ = "";
  785. /**
  786. * <pre>
  787. *手机号
  788. * </pre>
  789. *
  790. * <code>string phoneNo = 1;</code>
  791. */
  792. public java.lang.String getPhoneNo() {
  793. java.lang.Object ref = phoneNo_;
  794. if (!(ref instanceof java.lang.String)) {
  795. com.google.protobuf.ByteString bs =
  796. (com.google.protobuf.ByteString) ref;
  797. java.lang.String s = bs.toStringUtf8();
  798. phoneNo_ = s;
  799. return s;
  800. } else {
  801. return (java.lang.String) ref;
  802. }
  803. }
  804. /**
  805. * <pre>
  806. *手机号
  807. * </pre>
  808. *
  809. * <code>string phoneNo = 1;</code>
  810. */
  811. public com.google.protobuf.ByteString
  812. getPhoneNoBytes() {
  813. java.lang.Object ref = phoneNo_;
  814. if (ref instanceof String) {
  815. com.google.protobuf.ByteString b =
  816. com.google.protobuf.ByteString.copyFromUtf8(
  817. (java.lang.String) ref);
  818. phoneNo_ = b;
  819. return b;
  820. } else {
  821. return (com.google.protobuf.ByteString) ref;
  822. }
  823. }
  824. /**
  825. * <pre>
  826. *手机号
  827. * </pre>
  828. *
  829. * <code>string phoneNo = 1;</code>
  830. */
  831. public Builder setPhoneNo(
  832. java.lang.String value) {
  833. if (value == null) {
  834. throw new NullPointerException();
  835. }
  836. phoneNo_ = value;
  837. onChanged();
  838. return this;
  839. }
  840. /**
  841. * <pre>
  842. *手机号
  843. * </pre>
  844. *
  845. * <code>string phoneNo = 1;</code>
  846. */
  847. public Builder clearPhoneNo() {
  848. phoneNo_ = getDefaultInstance().getPhoneNo();
  849. onChanged();
  850. return this;
  851. }
  852. /**
  853. * <pre>
  854. *手机号
  855. * </pre>
  856. *
  857. * <code>string phoneNo = 1;</code>
  858. */
  859. public Builder setPhoneNoBytes(
  860. com.google.protobuf.ByteString value) {
  861. if (value == null) {
  862. throw new NullPointerException();
  863. }
  864. checkByteStringIsUtf8(value);
  865. phoneNo_ = value;
  866. onChanged();
  867. return this;
  868. }
  869. private java.lang.Object idNo_ = "";
  870. /**
  871. * <pre>
  872. *身份证号
  873. * </pre>
  874. *
  875. * <code>string idNo = 2;</code>
  876. */
  877. public java.lang.String getIdNo() {
  878. java.lang.Object ref = idNo_;
  879. if (!(ref instanceof java.lang.String)) {
  880. com.google.protobuf.ByteString bs =
  881. (com.google.protobuf.ByteString) ref;
  882. java.lang.String s = bs.toStringUtf8();
  883. idNo_ = s;
  884. return s;
  885. } else {
  886. return (java.lang.String) ref;
  887. }
  888. }
  889. /**
  890. * <pre>
  891. *身份证号
  892. * </pre>
  893. *
  894. * <code>string idNo = 2;</code>
  895. */
  896. public com.google.protobuf.ByteString
  897. getIdNoBytes() {
  898. java.lang.Object ref = idNo_;
  899. if (ref instanceof String) {
  900. com.google.protobuf.ByteString b =
  901. com.google.protobuf.ByteString.copyFromUtf8(
  902. (java.lang.String) ref);
  903. idNo_ = b;
  904. return b;
  905. } else {
  906. return (com.google.protobuf.ByteString) ref;
  907. }
  908. }
  909. /**
  910. * <pre>
  911. *身份证号
  912. * </pre>
  913. *
  914. * <code>string idNo = 2;</code>
  915. */
  916. public Builder setIdNo(
  917. java.lang.String value) {
  918. if (value == null) {
  919. throw new NullPointerException();
  920. }
  921. idNo_ = value;
  922. onChanged();
  923. return this;
  924. }
  925. /**
  926. * <pre>
  927. *身份证号
  928. * </pre>
  929. *
  930. * <code>string idNo = 2;</code>
  931. */
  932. public Builder clearIdNo() {
  933. idNo_ = getDefaultInstance().getIdNo();
  934. onChanged();
  935. return this;
  936. }
  937. /**
  938. * <pre>
  939. *身份证号
  940. * </pre>
  941. *
  942. * <code>string idNo = 2;</code>
  943. */
  944. public Builder setIdNoBytes(
  945. com.google.protobuf.ByteString value) {
  946. if (value == null) {
  947. throw new NullPointerException();
  948. }
  949. checkByteStringIsUtf8(value);
  950. idNo_ = value;
  951. onChanged();
  952. return this;
  953. }
  954. private java.lang.Object patientName_ = "";
  955. /**
  956. * <pre>
  957. *患者姓名
  958. * </pre>
  959. *
  960. * <code>string patientName = 3;</code>
  961. */
  962. public java.lang.String getPatientName() {
  963. java.lang.Object ref = patientName_;
  964. if (!(ref instanceof java.lang.String)) {
  965. com.google.protobuf.ByteString bs =
  966. (com.google.protobuf.ByteString) ref;
  967. java.lang.String s = bs.toStringUtf8();
  968. patientName_ = s;
  969. return s;
  970. } else {
  971. return (java.lang.String) ref;
  972. }
  973. }
  974. /**
  975. * <pre>
  976. *患者姓名
  977. * </pre>
  978. *
  979. * <code>string patientName = 3;</code>
  980. */
  981. public com.google.protobuf.ByteString
  982. getPatientNameBytes() {
  983. java.lang.Object ref = patientName_;
  984. if (ref instanceof String) {
  985. com.google.protobuf.ByteString b =
  986. com.google.protobuf.ByteString.copyFromUtf8(
  987. (java.lang.String) ref);
  988. patientName_ = b;
  989. return b;
  990. } else {
  991. return (com.google.protobuf.ByteString) ref;
  992. }
  993. }
  994. /**
  995. * <pre>
  996. *患者姓名
  997. * </pre>
  998. *
  999. * <code>string patientName = 3;</code>
  1000. */
  1001. public Builder setPatientName(
  1002. java.lang.String value) {
  1003. if (value == null) {
  1004. throw new NullPointerException();
  1005. }
  1006. patientName_ = value;
  1007. onChanged();
  1008. return this;
  1009. }
  1010. /**
  1011. * <pre>
  1012. *患者姓名
  1013. * </pre>
  1014. *
  1015. * <code>string patientName = 3;</code>
  1016. */
  1017. public Builder clearPatientName() {
  1018. patientName_ = getDefaultInstance().getPatientName();
  1019. onChanged();
  1020. return this;
  1021. }
  1022. /**
  1023. * <pre>
  1024. *患者姓名
  1025. * </pre>
  1026. *
  1027. * <code>string patientName = 3;</code>
  1028. */
  1029. public Builder setPatientNameBytes(
  1030. com.google.protobuf.ByteString value) {
  1031. if (value == null) {
  1032. throw new NullPointerException();
  1033. }
  1034. checkByteStringIsUtf8(value);
  1035. patientName_ = value;
  1036. onChanged();
  1037. return this;
  1038. }
  1039. private java.lang.Object city_ = "";
  1040. /**
  1041. * <pre>
  1042. *在线建卡市区
  1043. * </pre>
  1044. *
  1045. * <code>string city = 4;</code>
  1046. */
  1047. public java.lang.String getCity() {
  1048. java.lang.Object ref = city_;
  1049. if (!(ref instanceof java.lang.String)) {
  1050. com.google.protobuf.ByteString bs =
  1051. (com.google.protobuf.ByteString) ref;
  1052. java.lang.String s = bs.toStringUtf8();
  1053. city_ = s;
  1054. return s;
  1055. } else {
  1056. return (java.lang.String) ref;
  1057. }
  1058. }
  1059. /**
  1060. * <pre>
  1061. *在线建卡市区
  1062. * </pre>
  1063. *
  1064. * <code>string city = 4;</code>
  1065. */
  1066. public com.google.protobuf.ByteString
  1067. getCityBytes() {
  1068. java.lang.Object ref = city_;
  1069. if (ref instanceof String) {
  1070. com.google.protobuf.ByteString b =
  1071. com.google.protobuf.ByteString.copyFromUtf8(
  1072. (java.lang.String) ref);
  1073. city_ = b;
  1074. return b;
  1075. } else {
  1076. return (com.google.protobuf.ByteString) ref;
  1077. }
  1078. }
  1079. /**
  1080. * <pre>
  1081. *在线建卡市区
  1082. * </pre>
  1083. *
  1084. * <code>string city = 4;</code>
  1085. */
  1086. public Builder setCity(
  1087. java.lang.String value) {
  1088. if (value == null) {
  1089. throw new NullPointerException();
  1090. }
  1091. city_ = value;
  1092. onChanged();
  1093. return this;
  1094. }
  1095. /**
  1096. * <pre>
  1097. *在线建卡市区
  1098. * </pre>
  1099. *
  1100. * <code>string city = 4;</code>
  1101. */
  1102. public Builder clearCity() {
  1103. city_ = getDefaultInstance().getCity();
  1104. onChanged();
  1105. return this;
  1106. }
  1107. /**
  1108. * <pre>
  1109. *在线建卡市区
  1110. * </pre>
  1111. *
  1112. * <code>string city = 4;</code>
  1113. */
  1114. public Builder setCityBytes(
  1115. com.google.protobuf.ByteString value) {
  1116. if (value == null) {
  1117. throw new NullPointerException();
  1118. }
  1119. checkByteStringIsUtf8(value);
  1120. city_ = value;
  1121. onChanged();
  1122. return this;
  1123. }
  1124. private java.lang.Object address_ = "";
  1125. /**
  1126. * <pre>
  1127. *详细地址
  1128. * </pre>
  1129. *
  1130. * <code>string address = 5;</code>
  1131. */
  1132. public java.lang.String getAddress() {
  1133. java.lang.Object ref = address_;
  1134. if (!(ref instanceof java.lang.String)) {
  1135. com.google.protobuf.ByteString bs =
  1136. (com.google.protobuf.ByteString) ref;
  1137. java.lang.String s = bs.toStringUtf8();
  1138. address_ = s;
  1139. return s;
  1140. } else {
  1141. return (java.lang.String) ref;
  1142. }
  1143. }
  1144. /**
  1145. * <pre>
  1146. *详细地址
  1147. * </pre>
  1148. *
  1149. * <code>string address = 5;</code>
  1150. */
  1151. public com.google.protobuf.ByteString
  1152. getAddressBytes() {
  1153. java.lang.Object ref = address_;
  1154. if (ref instanceof String) {
  1155. com.google.protobuf.ByteString b =
  1156. com.google.protobuf.ByteString.copyFromUtf8(
  1157. (java.lang.String) ref);
  1158. address_ = b;
  1159. return b;
  1160. } else {
  1161. return (com.google.protobuf.ByteString) ref;
  1162. }
  1163. }
  1164. /**
  1165. * <pre>
  1166. *详细地址
  1167. * </pre>
  1168. *
  1169. * <code>string address = 5;</code>
  1170. */
  1171. public Builder setAddress(
  1172. java.lang.String value) {
  1173. if (value == null) {
  1174. throw new NullPointerException();
  1175. }
  1176. address_ = value;
  1177. onChanged();
  1178. return this;
  1179. }
  1180. /**
  1181. * <pre>
  1182. *详细地址
  1183. * </pre>
  1184. *
  1185. * <code>string address = 5;</code>
  1186. */
  1187. public Builder clearAddress() {
  1188. address_ = getDefaultInstance().getAddress();
  1189. onChanged();
  1190. return this;
  1191. }
  1192. /**
  1193. * <pre>
  1194. *详细地址
  1195. * </pre>
  1196. *
  1197. * <code>string address = 5;</code>
  1198. */
  1199. public Builder setAddressBytes(
  1200. com.google.protobuf.ByteString value) {
  1201. if (value == null) {
  1202. throw new NullPointerException();
  1203. }
  1204. checkByteStringIsUtf8(value);
  1205. address_ = value;
  1206. onChanged();
  1207. return this;
  1208. }
  1209. private java.lang.Object isInsu_ = "";
  1210. /**
  1211. * <pre>
  1212. *建卡患者是否是医保 1 :广州医保 空值:非医保
  1213. * </pre>
  1214. *
  1215. * <code>string isInsu = 6;</code>
  1216. */
  1217. public java.lang.String getIsInsu() {
  1218. java.lang.Object ref = isInsu_;
  1219. if (!(ref instanceof java.lang.String)) {
  1220. com.google.protobuf.ByteString bs =
  1221. (com.google.protobuf.ByteString) ref;
  1222. java.lang.String s = bs.toStringUtf8();
  1223. isInsu_ = s;
  1224. return s;
  1225. } else {
  1226. return (java.lang.String) ref;
  1227. }
  1228. }
  1229. /**
  1230. * <pre>
  1231. *建卡患者是否是医保 1 :广州医保 空值:非医保
  1232. * </pre>
  1233. *
  1234. * <code>string isInsu = 6;</code>
  1235. */
  1236. public com.google.protobuf.ByteString
  1237. getIsInsuBytes() {
  1238. java.lang.Object ref = isInsu_;
  1239. if (ref instanceof String) {
  1240. com.google.protobuf.ByteString b =
  1241. com.google.protobuf.ByteString.copyFromUtf8(
  1242. (java.lang.String) ref);
  1243. isInsu_ = b;
  1244. return b;
  1245. } else {
  1246. return (com.google.protobuf.ByteString) ref;
  1247. }
  1248. }
  1249. /**
  1250. * <pre>
  1251. *建卡患者是否是医保 1 :广州医保 空值:非医保
  1252. * </pre>
  1253. *
  1254. * <code>string isInsu = 6;</code>
  1255. */
  1256. public Builder setIsInsu(
  1257. java.lang.String value) {
  1258. if (value == null) {
  1259. throw new NullPointerException();
  1260. }
  1261. isInsu_ = value;
  1262. onChanged();
  1263. return this;
  1264. }
  1265. /**
  1266. * <pre>
  1267. *建卡患者是否是医保 1 :广州医保 空值:非医保
  1268. * </pre>
  1269. *
  1270. * <code>string isInsu = 6;</code>
  1271. */
  1272. public Builder clearIsInsu() {
  1273. isInsu_ = getDefaultInstance().getIsInsu();
  1274. onChanged();
  1275. return this;
  1276. }
  1277. /**
  1278. * <pre>
  1279. *建卡患者是否是医保 1 :广州医保 空值:非医保
  1280. * </pre>
  1281. *
  1282. * <code>string isInsu = 6;</code>
  1283. */
  1284. public Builder setIsInsuBytes(
  1285. com.google.protobuf.ByteString value) {
  1286. if (value == null) {
  1287. throw new NullPointerException();
  1288. }
  1289. checkByteStringIsUtf8(value);
  1290. isInsu_ = value;
  1291. onChanged();
  1292. return this;
  1293. }
  1294. private int hospitalId_ ;
  1295. /**
  1296. * <code>int32 hospitalId = 7;</code>
  1297. */
  1298. public int getHospitalId() {
  1299. return hospitalId_;
  1300. }
  1301. /**
  1302. * <code>int32 hospitalId = 7;</code>
  1303. */
  1304. public Builder setHospitalId(int value) {
  1305. hospitalId_ = value;
  1306. onChanged();
  1307. return this;
  1308. }
  1309. /**
  1310. * <code>int32 hospitalId = 7;</code>
  1311. */
  1312. public Builder clearHospitalId() {
  1313. hospitalId_ = 0;
  1314. onChanged();
  1315. return this;
  1316. }
  1317. private int userId_ ;
  1318. /**
  1319. * <code>int32 userId = 8;</code>
  1320. */
  1321. public int getUserId() {
  1322. return userId_;
  1323. }
  1324. /**
  1325. * <code>int32 userId = 8;</code>
  1326. */
  1327. public Builder setUserId(int value) {
  1328. userId_ = value;
  1329. onChanged();
  1330. return this;
  1331. }
  1332. /**
  1333. * <code>int32 userId = 8;</code>
  1334. */
  1335. public Builder clearUserId() {
  1336. userId_ = 0;
  1337. onChanged();
  1338. return this;
  1339. }
  1340. private int relationship_ ;
  1341. /**
  1342. * <pre>
  1343. * 关系:1-本人,6-父母,7-子女,5-其他
  1344. * </pre>
  1345. *
  1346. * <code>int32 relationship = 9;</code>
  1347. */
  1348. public int getRelationship() {
  1349. return relationship_;
  1350. }
  1351. /**
  1352. * <pre>
  1353. * 关系:1-本人,6-父母,7-子女,5-其他
  1354. * </pre>
  1355. *
  1356. * <code>int32 relationship = 9;</code>
  1357. */
  1358. public Builder setRelationship(int value) {
  1359. relationship_ = value;
  1360. onChanged();
  1361. return this;
  1362. }
  1363. /**
  1364. * <pre>
  1365. * 关系:1-本人,6-父母,7-子女,5-其他
  1366. * </pre>
  1367. *
  1368. * <code>int32 relationship = 9;</code>
  1369. */
  1370. public Builder clearRelationship() {
  1371. relationship_ = 0;
  1372. onChanged();
  1373. return this;
  1374. }
  1375. public final Builder setUnknownFields(
  1376. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1377. return super.setUnknownFieldsProto3(unknownFields);
  1378. }
  1379. public final Builder mergeUnknownFields(
  1380. final com.google.protobuf.UnknownFieldSet unknownFields) {
  1381. return super.mergeUnknownFields(unknownFields);
  1382. }
  1383. // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
  1384. }
  1385. // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
  1386. private static final com.ywt.gapi.taihe.register.CreateMedicalCardRequest DEFAULT_INSTANCE;
  1387. static {
  1388. DEFAULT_INSTANCE = new com.ywt.gapi.taihe.register.CreateMedicalCardRequest();
  1389. }
  1390. public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstance() {
  1391. return DEFAULT_INSTANCE;
  1392. }
  1393. private static final com.google.protobuf.Parser<CreateMedicalCardRequest>
  1394. PARSER = new com.google.protobuf.AbstractParser<CreateMedicalCardRequest>() {
  1395. public CreateMedicalCardRequest parsePartialFrom(
  1396. com.google.protobuf.CodedInputStream input,
  1397. com.google.protobuf.ExtensionRegistryLite extensionRegistry)
  1398. throws com.google.protobuf.InvalidProtocolBufferException {
  1399. return new CreateMedicalCardRequest(input, extensionRegistry);
  1400. }
  1401. };
  1402. public static com.google.protobuf.Parser<CreateMedicalCardRequest> parser() {
  1403. return PARSER;
  1404. }
  1405. @java.lang.Override
  1406. public com.google.protobuf.Parser<CreateMedicalCardRequest> getParserForType() {
  1407. return PARSER;
  1408. }
  1409. public com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstanceForType() {
  1410. return DEFAULT_INSTANCE;
  1411. }
  1412. }