123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: taihe_register.proto
- package com.ywt.gapi.taihe.register;
- /**
- * Protobuf type {@code com.ywt.gapi.taihe.register.CreateMedicalCardRequest}
- */
- public final class CreateMedicalCardRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
- CreateMedicalCardRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use CreateMedicalCardRequest.newBuilder() to construct.
- private CreateMedicalCardRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private CreateMedicalCardRequest() {
- phoneNo_ = "";
- idNo_ = "";
- patientName_ = "";
- city_ = "";
- address_ = "";
- isInsu_ = "";
- hospitalId_ = 0;
- userId_ = 0;
- relationship_ = 0;
- }
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CreateMedicalCardRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownFieldProto3(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
- phoneNo_ = s;
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
- idNo_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
- patientName_ = s;
- break;
- }
- case 34: {
- java.lang.String s = input.readStringRequireUtf8();
- city_ = s;
- break;
- }
- case 42: {
- java.lang.String s = input.readStringRequireUtf8();
- address_ = s;
- break;
- }
- case 50: {
- java.lang.String s = input.readStringRequireUtf8();
- isInsu_ = s;
- break;
- }
- case 56: {
- hospitalId_ = input.readInt32();
- break;
- }
- case 64: {
- userId_ = input.readInt32();
- break;
- }
- case 72: {
- relationship_ = input.readInt32();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
- }
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest.class, com.ywt.gapi.taihe.register.CreateMedicalCardRequest.Builder.class);
- }
- public static final int PHONENO_FIELD_NUMBER = 1;
- private volatile java.lang.Object phoneNo_;
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public java.lang.String getPhoneNo() {
- java.lang.Object ref = phoneNo_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- phoneNo_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public com.google.protobuf.ByteString
- getPhoneNoBytes() {
- java.lang.Object ref = phoneNo_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- phoneNo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int IDNO_FIELD_NUMBER = 2;
- private volatile java.lang.Object idNo_;
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public java.lang.String getIdNo() {
- java.lang.Object ref = idNo_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- idNo_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public com.google.protobuf.ByteString
- getIdNoBytes() {
- java.lang.Object ref = idNo_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- idNo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int PATIENTNAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object patientName_;
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public java.lang.String getPatientName() {
- java.lang.Object ref = patientName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- patientName_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public com.google.protobuf.ByteString
- getPatientNameBytes() {
- java.lang.Object ref = patientName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- patientName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int CITY_FIELD_NUMBER = 4;
- private volatile java.lang.Object city_;
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public java.lang.String getCity() {
- java.lang.Object ref = city_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- city_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public com.google.protobuf.ByteString
- getCityBytes() {
- java.lang.Object ref = city_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- city_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int ADDRESS_FIELD_NUMBER = 5;
- private volatile java.lang.Object address_;
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public java.lang.String getAddress() {
- java.lang.Object ref = address_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- address_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public com.google.protobuf.ByteString
- getAddressBytes() {
- java.lang.Object ref = address_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- address_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int ISINSU_FIELD_NUMBER = 6;
- private volatile java.lang.Object isInsu_;
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public java.lang.String getIsInsu() {
- java.lang.Object ref = isInsu_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- isInsu_ = s;
- return s;
- }
- }
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public com.google.protobuf.ByteString
- getIsInsuBytes() {
- java.lang.Object ref = isInsu_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- isInsu_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- public static final int HOSPITALID_FIELD_NUMBER = 7;
- private int hospitalId_;
- /**
- * <code>int32 hospitalId = 7;</code>
- */
- public int getHospitalId() {
- return hospitalId_;
- }
- public static final int USERID_FIELD_NUMBER = 8;
- private int userId_;
- /**
- * <code>int32 userId = 8;</code>
- */
- public int getUserId() {
- return userId_;
- }
- public static final int RELATIONSHIP_FIELD_NUMBER = 9;
- private int relationship_;
- /**
- * <pre>
- * 关系:1-本人,6-父母,7-子女,5-其他
- * </pre>
- *
- * <code>int32 relationship = 9;</code>
- */
- public int getRelationship() {
- return relationship_;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getPhoneNoBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phoneNo_);
- }
- if (!getIdNoBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idNo_);
- }
- if (!getPatientNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patientName_);
- }
- if (!getCityBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, city_);
- }
- if (!getAddressBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, address_);
- }
- if (!getIsInsuBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, isInsu_);
- }
- if (hospitalId_ != 0) {
- output.writeInt32(7, hospitalId_);
- }
- if (userId_ != 0) {
- output.writeInt32(8, userId_);
- }
- if (relationship_ != 0) {
- output.writeInt32(9, relationship_);
- }
- unknownFields.writeTo(output);
- }
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
- size = 0;
- if (!getPhoneNoBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phoneNo_);
- }
- if (!getIdNoBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, idNo_);
- }
- if (!getPatientNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patientName_);
- }
- if (!getCityBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, city_);
- }
- if (!getAddressBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, address_);
- }
- if (!getIsInsuBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, isInsu_);
- }
- if (hospitalId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(7, hospitalId_);
- }
- if (userId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(8, userId_);
- }
- if (relationship_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(9, relationship_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.ywt.gapi.taihe.register.CreateMedicalCardRequest)) {
- return super.equals(obj);
- }
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest other = (com.ywt.gapi.taihe.register.CreateMedicalCardRequest) obj;
- boolean result = true;
- result = result && getPhoneNo()
- .equals(other.getPhoneNo());
- result = result && getIdNo()
- .equals(other.getIdNo());
- result = result && getPatientName()
- .equals(other.getPatientName());
- result = result && getCity()
- .equals(other.getCity());
- result = result && getAddress()
- .equals(other.getAddress());
- result = result && getIsInsu()
- .equals(other.getIsInsu());
- result = result && (getHospitalId()
- == other.getHospitalId());
- result = result && (getUserId()
- == other.getUserId());
- result = result && (getRelationship()
- == other.getRelationship());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + PHONENO_FIELD_NUMBER;
- hash = (53 * hash) + getPhoneNo().hashCode();
- hash = (37 * hash) + IDNO_FIELD_NUMBER;
- hash = (53 * hash) + getIdNo().hashCode();
- hash = (37 * hash) + PATIENTNAME_FIELD_NUMBER;
- hash = (53 * hash) + getPatientName().hashCode();
- hash = (37 * hash) + CITY_FIELD_NUMBER;
- hash = (53 * hash) + getCity().hashCode();
- hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
- hash = (53 * hash) + getAddress().hashCode();
- hash = (37 * hash) + ISINSU_FIELD_NUMBER;
- hash = (53 * hash) + getIsInsu().hashCode();
- hash = (37 * hash) + HOSPITALID_FIELD_NUMBER;
- hash = (53 * hash) + getHospitalId();
- hash = (37 * hash) + USERID_FIELD_NUMBER;
- hash = (53 * hash) + getUserId();
- hash = (37 * hash) + RELATIONSHIP_FIELD_NUMBER;
- hash = (53 * hash) + getRelationship();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.ywt.gapi.taihe.register.CreateMedicalCardRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code com.ywt.gapi.taihe.register.CreateMedicalCardRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
- com.ywt.gapi.taihe.register.CreateMedicalCardRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
- }
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest.class, com.ywt.gapi.taihe.register.CreateMedicalCardRequest.Builder.class);
- }
- // Construct using com.ywt.gapi.taihe.register.CreateMedicalCardRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- phoneNo_ = "";
- idNo_ = "";
- patientName_ = "";
- city_ = "";
- address_ = "";
- isInsu_ = "";
- hospitalId_ = 0;
- userId_ = 0;
- relationship_ = 0;
- return this;
- }
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.ywt.gapi.taihe.register.TaiheRegister.internal_static_com_ywt_gapi_taihe_register_CreateMedicalCardRequest_descriptor;
- }
- public com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstanceForType() {
- return com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance();
- }
- public com.ywt.gapi.taihe.register.CreateMedicalCardRequest build() {
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
- public com.ywt.gapi.taihe.register.CreateMedicalCardRequest buildPartial() {
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest result = new com.ywt.gapi.taihe.register.CreateMedicalCardRequest(this);
- result.phoneNo_ = phoneNo_;
- result.idNo_ = idNo_;
- result.patientName_ = patientName_;
- result.city_ = city_;
- result.address_ = address_;
- result.isInsu_ = isInsu_;
- result.hospitalId_ = hospitalId_;
- result.userId_ = userId_;
- result.relationship_ = relationship_;
- onBuilt();
- return result;
- }
- public Builder clone() {
- return (Builder) super.clone();
- }
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.setField(field, value);
- }
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return (Builder) super.clearField(field);
- }
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return (Builder) super.clearOneof(oneof);
- }
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return (Builder) super.setRepeatedField(field, index, value);
- }
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return (Builder) super.addRepeatedField(field, value);
- }
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.ywt.gapi.taihe.register.CreateMedicalCardRequest) {
- return mergeFrom((com.ywt.gapi.taihe.register.CreateMedicalCardRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
- public Builder mergeFrom(com.ywt.gapi.taihe.register.CreateMedicalCardRequest other) {
- if (other == com.ywt.gapi.taihe.register.CreateMedicalCardRequest.getDefaultInstance()) return this;
- if (!other.getPhoneNo().isEmpty()) {
- phoneNo_ = other.phoneNo_;
- onChanged();
- }
- if (!other.getIdNo().isEmpty()) {
- idNo_ = other.idNo_;
- onChanged();
- }
- if (!other.getPatientName().isEmpty()) {
- patientName_ = other.patientName_;
- onChanged();
- }
- if (!other.getCity().isEmpty()) {
- city_ = other.city_;
- onChanged();
- }
- if (!other.getAddress().isEmpty()) {
- address_ = other.address_;
- onChanged();
- }
- if (!other.getIsInsu().isEmpty()) {
- isInsu_ = other.isInsu_;
- onChanged();
- }
- if (other.getHospitalId() != 0) {
- setHospitalId(other.getHospitalId());
- }
- if (other.getUserId() != 0) {
- setUserId(other.getUserId());
- }
- if (other.getRelationship() != 0) {
- setRelationship(other.getRelationship());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
- public final boolean isInitialized() {
- return true;
- }
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.ywt.gapi.taihe.register.CreateMedicalCardRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.ywt.gapi.taihe.register.CreateMedicalCardRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private java.lang.Object phoneNo_ = "";
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public java.lang.String getPhoneNo() {
- java.lang.Object ref = phoneNo_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- phoneNo_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public com.google.protobuf.ByteString
- getPhoneNoBytes() {
- java.lang.Object ref = phoneNo_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- phoneNo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public Builder setPhoneNo(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- phoneNo_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public Builder clearPhoneNo() {
-
- phoneNo_ = getDefaultInstance().getPhoneNo();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *手机号
- * </pre>
- *
- * <code>string phoneNo = 1;</code>
- */
- public Builder setPhoneNoBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- phoneNo_ = value;
- onChanged();
- return this;
- }
- private java.lang.Object idNo_ = "";
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public java.lang.String getIdNo() {
- java.lang.Object ref = idNo_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- idNo_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public com.google.protobuf.ByteString
- getIdNoBytes() {
- java.lang.Object ref = idNo_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- idNo_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public Builder setIdNo(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- idNo_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public Builder clearIdNo() {
-
- idNo_ = getDefaultInstance().getIdNo();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *身份证号
- * </pre>
- *
- * <code>string idNo = 2;</code>
- */
- public Builder setIdNoBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- idNo_ = value;
- onChanged();
- return this;
- }
- private java.lang.Object patientName_ = "";
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public java.lang.String getPatientName() {
- java.lang.Object ref = patientName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- patientName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public com.google.protobuf.ByteString
- getPatientNameBytes() {
- java.lang.Object ref = patientName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- patientName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public Builder setPatientName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- patientName_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public Builder clearPatientName() {
-
- patientName_ = getDefaultInstance().getPatientName();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *患者姓名
- * </pre>
- *
- * <code>string patientName = 3;</code>
- */
- public Builder setPatientNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- patientName_ = value;
- onChanged();
- return this;
- }
- private java.lang.Object city_ = "";
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public java.lang.String getCity() {
- java.lang.Object ref = city_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- city_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public com.google.protobuf.ByteString
- getCityBytes() {
- java.lang.Object ref = city_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- city_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public Builder setCity(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- city_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public Builder clearCity() {
-
- city_ = getDefaultInstance().getCity();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *在线建卡市区
- * </pre>
- *
- * <code>string city = 4;</code>
- */
- public Builder setCityBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- city_ = value;
- onChanged();
- return this;
- }
- private java.lang.Object address_ = "";
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public java.lang.String getAddress() {
- java.lang.Object ref = address_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- address_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public com.google.protobuf.ByteString
- getAddressBytes() {
- java.lang.Object ref = address_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- address_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public Builder setAddress(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- address_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public Builder clearAddress() {
-
- address_ = getDefaultInstance().getAddress();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *详细地址
- * </pre>
- *
- * <code>string address = 5;</code>
- */
- public Builder setAddressBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- address_ = value;
- onChanged();
- return this;
- }
- private java.lang.Object isInsu_ = "";
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public java.lang.String getIsInsu() {
- java.lang.Object ref = isInsu_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- isInsu_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public com.google.protobuf.ByteString
- getIsInsuBytes() {
- java.lang.Object ref = isInsu_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- isInsu_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public Builder setIsInsu(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- isInsu_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public Builder clearIsInsu() {
-
- isInsu_ = getDefaultInstance().getIsInsu();
- onChanged();
- return this;
- }
- /**
- * <pre>
- *建卡患者是否是医保 1 :广州医保 空值:非医保
- * </pre>
- *
- * <code>string isInsu = 6;</code>
- */
- public Builder setIsInsuBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- isInsu_ = value;
- onChanged();
- return this;
- }
- private int hospitalId_ ;
- /**
- * <code>int32 hospitalId = 7;</code>
- */
- public int getHospitalId() {
- return hospitalId_;
- }
- /**
- * <code>int32 hospitalId = 7;</code>
- */
- public Builder setHospitalId(int value) {
-
- hospitalId_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 hospitalId = 7;</code>
- */
- public Builder clearHospitalId() {
-
- hospitalId_ = 0;
- onChanged();
- return this;
- }
- private int userId_ ;
- /**
- * <code>int32 userId = 8;</code>
- */
- public int getUserId() {
- return userId_;
- }
- /**
- * <code>int32 userId = 8;</code>
- */
- public Builder setUserId(int value) {
-
- userId_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 userId = 8;</code>
- */
- public Builder clearUserId() {
-
- userId_ = 0;
- onChanged();
- return this;
- }
- private int relationship_ ;
- /**
- * <pre>
- * 关系:1-本人,6-父母,7-子女,5-其他
- * </pre>
- *
- * <code>int32 relationship = 9;</code>
- */
- public int getRelationship() {
- return relationship_;
- }
- /**
- * <pre>
- * 关系:1-本人,6-父母,7-子女,5-其他
- * </pre>
- *
- * <code>int32 relationship = 9;</code>
- */
- public Builder setRelationship(int value) {
-
- relationship_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- * 关系:1-本人,6-父母,7-子女,5-其他
- * </pre>
- *
- * <code>int32 relationship = 9;</code>
- */
- public Builder clearRelationship() {
-
- relationship_ = 0;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
- // @@protoc_insertion_point(builder_scope:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
- }
- // @@protoc_insertion_point(class_scope:com.ywt.gapi.taihe.register.CreateMedicalCardRequest)
- private static final com.ywt.gapi.taihe.register.CreateMedicalCardRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.ywt.gapi.taihe.register.CreateMedicalCardRequest();
- }
- public static com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
- private static final com.google.protobuf.Parser<CreateMedicalCardRequest>
- PARSER = new com.google.protobuf.AbstractParser<CreateMedicalCardRequest>() {
- public CreateMedicalCardRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new CreateMedicalCardRequest(input, extensionRegistry);
- }
- };
- public static com.google.protobuf.Parser<CreateMedicalCardRequest> parser() {
- return PARSER;
- }
- @java.lang.Override
- public com.google.protobuf.Parser<CreateMedicalCardRequest> getParserForType() {
- return PARSER;
- }
- public com.ywt.gapi.taihe.register.CreateMedicalCardRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
- }
|