All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.identity.ids.PrescriptionID Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019, Momentum Ideas, Co. All rights reserved.
 *
 * Source and object computer code contained herein is the private intellectual
 * property of Momentum Ideas Co., a Delaware Corporation. Use of this
 * code in source form requires permission in writing before use or the
 * assembly, distribution, or publishing of derivative works, for commercial
 * purposes or any other purpose, from a duly authorized officer of Momentum
 * Ideas Co.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: identity/ids/UserDoctorRec.proto

package io.bloombox.schema.identity.ids;

public final class PrescriptionID {
  private PrescriptionID() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface UserDoctorRecOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bloombox.identity.ids.UserDoctorRec)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID number/unique code.
     * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ java.lang.String getId(); /** *
     * ID number/unique code.
     * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ boolean hasExpirationDate(); /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ io.opencannabis.schema.temporal.TemporalDate.Date getExpirationDate(); /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getExpirationDateOrBuilder(); /** *
     * Raw barcode value.
     * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ java.lang.String getBarcode(); /** *
     * Raw barcode value.
     * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ com.google.protobuf.ByteString getBarcodeBytes(); /** *
     * US state where the recommendation is valid.
     * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ int getStateValue(); /** *
     * US state where the recommendation is valid.
     * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ io.opencannabis.schema.geo.usa.USState getState(); /** *
     * Country for the recommendation.
     * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ java.lang.String getCountry(); /** *
     * Country for the recommendation.
     * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ com.google.protobuf.ByteString getCountryBytes(); /** *
     * Doctor's unique ID.
     * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ java.lang.String getDoctorId(); /** *
     * Doctor's unique ID.
     * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ com.google.protobuf.ByteString getDoctorIdBytes(); /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ boolean hasDoctor(); /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ io.opencannabis.schema.person.Person getDoctor(); /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ io.opencannabis.schema.person.PersonOrBuilder getDoctorOrBuilder(); } /** *
   * Doctor recommendation to allow a consumer to purchase cannabis in a restricted market.
   * 
* * Protobuf type {@code bloombox.identity.ids.UserDoctorRec} */ public static final class UserDoctorRec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:bloombox.identity.ids.UserDoctorRec) UserDoctorRecOrBuilder { private static final long serialVersionUID = 0L; // Use UserDoctorRec.newBuilder() to construct. private UserDoctorRec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UserDoctorRec() { id_ = ""; barcode_ = ""; state_ = 0; country_ = ""; doctorId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserDoctorRec( 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; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { io.opencannabis.schema.temporal.TemporalDate.Date.Builder subBuilder = null; if (expirationDate_ != null) { subBuilder = expirationDate_.toBuilder(); } expirationDate_ = input.readMessage(io.opencannabis.schema.temporal.TemporalDate.Date.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationDate_); expirationDate_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); barcode_ = s; break; } case 32: { int rawValue = input.readEnum(); state_ = rawValue; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); country_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); doctorId_ = s; break; } case 58: { io.opencannabis.schema.person.Person.Builder subBuilder = null; if (doctor_ != null) { subBuilder = doctor_.toBuilder(); } doctor_ = input.readMessage(io.opencannabis.schema.person.Person.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(doctor_); doctor_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } 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 io.bloombox.schema.identity.ids.PrescriptionID.internal_static_bloombox_identity_ids_UserDoctorRec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.ids.PrescriptionID.internal_static_bloombox_identity_ids_UserDoctorRec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.class, io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID number/unique code.
     * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID number/unique code.
     * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXPIRATION_DATE_FIELD_NUMBER = 2; private io.opencannabis.schema.temporal.TemporalDate.Date expirationDate_; /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public boolean hasExpirationDate() { return expirationDate_ != null; } /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public io.opencannabis.schema.temporal.TemporalDate.Date getExpirationDate() { return expirationDate_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : expirationDate_; } /** *
     * Expiration date for the recommendation.
     * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getExpirationDateOrBuilder() { return getExpirationDate(); } public static final int BARCODE_FIELD_NUMBER = 3; private volatile java.lang.Object barcode_; /** *
     * Raw barcode value.
     * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public java.lang.String getBarcode() { java.lang.Object ref = barcode_; 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(); barcode_ = s; return s; } } /** *
     * Raw barcode value.
     * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public com.google.protobuf.ByteString getBarcodeBytes() { java.lang.Object ref = barcode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); barcode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATE_FIELD_NUMBER = 4; private int state_; /** *
     * US state where the recommendation is valid.
     * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public int getStateValue() { return state_; } /** *
     * US state where the recommendation is valid.
     * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public io.opencannabis.schema.geo.usa.USState getState() { @SuppressWarnings("deprecation") io.opencannabis.schema.geo.usa.USState result = io.opencannabis.schema.geo.usa.USState.valueOf(state_); return result == null ? io.opencannabis.schema.geo.usa.USState.UNRECOGNIZED : result; } public static final int COUNTRY_FIELD_NUMBER = 5; private volatile java.lang.Object country_; /** *
     * Country for the recommendation.
     * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public java.lang.String getCountry() { java.lang.Object ref = country_; 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(); country_ = s; return s; } } /** *
     * Country for the recommendation.
     * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public com.google.protobuf.ByteString getCountryBytes() { java.lang.Object ref = country_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); country_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCTOR_ID_FIELD_NUMBER = 6; private volatile java.lang.Object doctorId_; /** *
     * Doctor's unique ID.
     * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public java.lang.String getDoctorId() { java.lang.Object ref = doctorId_; 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(); doctorId_ = s; return s; } } /** *
     * Doctor's unique ID.
     * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public com.google.protobuf.ByteString getDoctorIdBytes() { java.lang.Object ref = doctorId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doctorId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCTOR_FIELD_NUMBER = 7; private io.opencannabis.schema.person.Person doctor_; /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public boolean hasDoctor() { return doctor_ != null; } /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public io.opencannabis.schema.person.Person getDoctor() { return doctor_ == null ? io.opencannabis.schema.person.Person.getDefaultInstance() : doctor_; } /** *
     * Personal information about the physician.
     * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public io.opencannabis.schema.person.PersonOrBuilder getDoctorOrBuilder() { return getDoctor(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (expirationDate_ != null) { output.writeMessage(2, getExpirationDate()); } if (!getBarcodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, barcode_); } if (state_ != io.opencannabis.schema.geo.usa.USState.UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!getCountryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, country_); } if (!getDoctorIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, doctorId_); } if (doctor_ != null) { output.writeMessage(7, getDoctor()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (expirationDate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpirationDate()); } if (!getBarcodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, barcode_); } if (state_ != io.opencannabis.schema.geo.usa.USState.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, state_); } if (!getCountryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, country_); } if (!getDoctorIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, doctorId_); } if (doctor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDoctor()); } 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 io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec)) { return super.equals(obj); } io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec other = (io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec) obj; if (!getId() .equals(other.getId())) return false; if (hasExpirationDate() != other.hasExpirationDate()) return false; if (hasExpirationDate()) { if (!getExpirationDate() .equals(other.getExpirationDate())) return false; } if (!getBarcode() .equals(other.getBarcode())) return false; if (state_ != other.state_) return false; if (!getCountry() .equals(other.getCountry())) return false; if (!getDoctorId() .equals(other.getDoctorId())) return false; if (hasDoctor() != other.hasDoctor()) return false; if (hasDoctor()) { if (!getDoctor() .equals(other.getDoctor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasExpirationDate()) { hash = (37 * hash) + EXPIRATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getExpirationDate().hashCode(); } hash = (37 * hash) + BARCODE_FIELD_NUMBER; hash = (53 * hash) + getBarcode().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + COUNTRY_FIELD_NUMBER; hash = (53 * hash) + getCountry().hashCode(); hash = (37 * hash) + DOCTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getDoctorId().hashCode(); if (hasDoctor()) { hash = (37 * hash) + DOCTOR_FIELD_NUMBER; hash = (53 * hash) + getDoctor().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec 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 io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec 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 io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** *
     * Doctor recommendation to allow a consumer to purchase cannabis in a restricted market.
     * 
* * Protobuf type {@code bloombox.identity.ids.UserDoctorRec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:bloombox.identity.ids.UserDoctorRec) io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.identity.ids.PrescriptionID.internal_static_bloombox_identity_ids_UserDoctorRec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.identity.ids.PrescriptionID.internal_static_bloombox_identity_ids_UserDoctorRec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.class, io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.Builder.class); } // Construct using io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; if (expirationDateBuilder_ == null) { expirationDate_ = null; } else { expirationDate_ = null; expirationDateBuilder_ = null; } barcode_ = ""; state_ = 0; country_ = ""; doctorId_ = ""; if (doctorBuilder_ == null) { doctor_ = null; } else { doctor_ = null; doctorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.identity.ids.PrescriptionID.internal_static_bloombox_identity_ids_UserDoctorRec_descriptor; } @java.lang.Override public io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec getDefaultInstanceForType() { return io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.getDefaultInstance(); } @java.lang.Override public io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec build() { io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec buildPartial() { io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec result = new io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec(this); result.id_ = id_; if (expirationDateBuilder_ == null) { result.expirationDate_ = expirationDate_; } else { result.expirationDate_ = expirationDateBuilder_.build(); } result.barcode_ = barcode_; result.state_ = state_; result.country_ = country_; result.doctorId_ = doctorId_; if (doctorBuilder_ == null) { result.doctor_ = doctor_; } else { result.doctor_ = doctorBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec) { return mergeFrom((io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec other) { if (other == io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasExpirationDate()) { mergeExpirationDate(other.getExpirationDate()); } if (!other.getBarcode().isEmpty()) { barcode_ = other.barcode_; onChanged(); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getCountry().isEmpty()) { country_ = other.country_; onChanged(); } if (!other.getDoctorId().isEmpty()) { doctorId_ = other.doctorId_; onChanged(); } if (other.hasDoctor()) { mergeDoctor(other.getDoctor()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID number/unique code.
       * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID number/unique code.
       * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID number/unique code.
       * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID number/unique code.
       * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID number/unique code.
       * 
* * string id = 1 [(.gen_bq_schema.description) = "ID number/unique code.", (.core.field) = { ... } */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private io.opencannabis.schema.temporal.TemporalDate.Date expirationDate_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalDate.Date, io.opencannabis.schema.temporal.TemporalDate.Date.Builder, io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder> expirationDateBuilder_; /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public boolean hasExpirationDate() { return expirationDateBuilder_ != null || expirationDate_ != null; } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public io.opencannabis.schema.temporal.TemporalDate.Date getExpirationDate() { if (expirationDateBuilder_ == null) { return expirationDate_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : expirationDate_; } else { return expirationDateBuilder_.getMessage(); } } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public Builder setExpirationDate(io.opencannabis.schema.temporal.TemporalDate.Date value) { if (expirationDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationDate_ = value; onChanged(); } else { expirationDateBuilder_.setMessage(value); } return this; } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public Builder setExpirationDate( io.opencannabis.schema.temporal.TemporalDate.Date.Builder builderForValue) { if (expirationDateBuilder_ == null) { expirationDate_ = builderForValue.build(); onChanged(); } else { expirationDateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public Builder mergeExpirationDate(io.opencannabis.schema.temporal.TemporalDate.Date value) { if (expirationDateBuilder_ == null) { if (expirationDate_ != null) { expirationDate_ = io.opencannabis.schema.temporal.TemporalDate.Date.newBuilder(expirationDate_).mergeFrom(value).buildPartial(); } else { expirationDate_ = value; } onChanged(); } else { expirationDateBuilder_.mergeFrom(value); } return this; } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public Builder clearExpirationDate() { if (expirationDateBuilder_ == null) { expirationDate_ = null; onChanged(); } else { expirationDate_ = null; expirationDateBuilder_ = null; } return this; } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public io.opencannabis.schema.temporal.TemporalDate.Date.Builder getExpirationDateBuilder() { onChanged(); return getExpirationDateFieldBuilder().getBuilder(); } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ public io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder getExpirationDateOrBuilder() { if (expirationDateBuilder_ != null) { return expirationDateBuilder_.getMessageOrBuilder(); } else { return expirationDate_ == null ? io.opencannabis.schema.temporal.TemporalDate.Date.getDefaultInstance() : expirationDate_; } } /** *
       * Expiration date for the recommendation.
       * 
* * .opencannabis.temporal.Date expiration_date = 2 [(.gen_bq_schema.description) = "Expiration date for the recommendation."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalDate.Date, io.opencannabis.schema.temporal.TemporalDate.Date.Builder, io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder> getExpirationDateFieldBuilder() { if (expirationDateBuilder_ == null) { expirationDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.temporal.TemporalDate.Date, io.opencannabis.schema.temporal.TemporalDate.Date.Builder, io.opencannabis.schema.temporal.TemporalDate.DateOrBuilder>( getExpirationDate(), getParentForChildren(), isClean()); expirationDate_ = null; } return expirationDateBuilder_; } private java.lang.Object barcode_ = ""; /** *
       * Raw barcode value.
       * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public java.lang.String getBarcode() { java.lang.Object ref = barcode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); barcode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Raw barcode value.
       * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public com.google.protobuf.ByteString getBarcodeBytes() { java.lang.Object ref = barcode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); barcode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Raw barcode value.
       * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public Builder setBarcode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } barcode_ = value; onChanged(); return this; } /** *
       * Raw barcode value.
       * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public Builder clearBarcode() { barcode_ = getDefaultInstance().getBarcode(); onChanged(); return this; } /** *
       * Raw barcode value.
       * 
* * string barcode = 3 [(.gen_bq_schema.description) = "Raw barcode value."]; */ public Builder setBarcodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); barcode_ = value; onChanged(); return this; } private int state_ = 0; /** *
       * US state where the recommendation is valid.
       * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public int getStateValue() { return state_; } /** *
       * US state where the recommendation is valid.
       * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** *
       * US state where the recommendation is valid.
       * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public io.opencannabis.schema.geo.usa.USState getState() { @SuppressWarnings("deprecation") io.opencannabis.schema.geo.usa.USState result = io.opencannabis.schema.geo.usa.USState.valueOf(state_); return result == null ? io.opencannabis.schema.geo.usa.USState.UNRECOGNIZED : result; } /** *
       * US state where the recommendation is valid.
       * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public Builder setState(io.opencannabis.schema.geo.usa.USState value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** *
       * US state where the recommendation is valid.
       * 
* * .opencannabis.geo.usa.USState state = 4 [(.gen_bq_schema.description) = "US state where the recommendation is valid."]; */ public Builder clearState() { state_ = 0; onChanged(); return this; } private java.lang.Object country_ = ""; /** *
       * Country for the recommendation.
       * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public java.lang.String getCountry() { java.lang.Object ref = country_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); country_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Country for the recommendation.
       * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public com.google.protobuf.ByteString getCountryBytes() { java.lang.Object ref = country_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); country_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Country for the recommendation.
       * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public Builder setCountry( java.lang.String value) { if (value == null) { throw new NullPointerException(); } country_ = value; onChanged(); return this; } /** *
       * Country for the recommendation.
       * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public Builder clearCountry() { country_ = getDefaultInstance().getCountry(); onChanged(); return this; } /** *
       * Country for the recommendation.
       * 
* * string country = 5 [(.gen_bq_schema.description) = "Country for the recommendation."]; */ public Builder setCountryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); country_ = value; onChanged(); return this; } private java.lang.Object doctorId_ = ""; /** *
       * Doctor's unique ID.
       * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public java.lang.String getDoctorId() { java.lang.Object ref = doctorId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); doctorId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Doctor's unique ID.
       * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public com.google.protobuf.ByteString getDoctorIdBytes() { java.lang.Object ref = doctorId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); doctorId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Doctor's unique ID.
       * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public Builder setDoctorId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } doctorId_ = value; onChanged(); return this; } /** *
       * Doctor's unique ID.
       * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public Builder clearDoctorId() { doctorId_ = getDefaultInstance().getDoctorId(); onChanged(); return this; } /** *
       * Doctor's unique ID.
       * 
* * string doctor_id = 6 [(.gen_bq_schema.description) = "Doctor\'s unique ID."]; */ public Builder setDoctorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); doctorId_ = value; onChanged(); return this; } private io.opencannabis.schema.person.Person doctor_; private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Person, io.opencannabis.schema.person.Person.Builder, io.opencannabis.schema.person.PersonOrBuilder> doctorBuilder_; /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public boolean hasDoctor() { return doctorBuilder_ != null || doctor_ != null; } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public io.opencannabis.schema.person.Person getDoctor() { if (doctorBuilder_ == null) { return doctor_ == null ? io.opencannabis.schema.person.Person.getDefaultInstance() : doctor_; } else { return doctorBuilder_.getMessage(); } } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public Builder setDoctor(io.opencannabis.schema.person.Person value) { if (doctorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } doctor_ = value; onChanged(); } else { doctorBuilder_.setMessage(value); } return this; } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public Builder setDoctor( io.opencannabis.schema.person.Person.Builder builderForValue) { if (doctorBuilder_ == null) { doctor_ = builderForValue.build(); onChanged(); } else { doctorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public Builder mergeDoctor(io.opencannabis.schema.person.Person value) { if (doctorBuilder_ == null) { if (doctor_ != null) { doctor_ = io.opencannabis.schema.person.Person.newBuilder(doctor_).mergeFrom(value).buildPartial(); } else { doctor_ = value; } onChanged(); } else { doctorBuilder_.mergeFrom(value); } return this; } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public Builder clearDoctor() { if (doctorBuilder_ == null) { doctor_ = null; onChanged(); } else { doctor_ = null; doctorBuilder_ = null; } return this; } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public io.opencannabis.schema.person.Person.Builder getDoctorBuilder() { onChanged(); return getDoctorFieldBuilder().getBuilder(); } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ public io.opencannabis.schema.person.PersonOrBuilder getDoctorOrBuilder() { if (doctorBuilder_ != null) { return doctorBuilder_.getMessageOrBuilder(); } else { return doctor_ == null ? io.opencannabis.schema.person.Person.getDefaultInstance() : doctor_; } } /** *
       * Personal information about the physician.
       * 
* * .opencannabis.person.Person doctor = 7 [(.gen_bq_schema.description) = "Personal information about the physician."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Person, io.opencannabis.schema.person.Person.Builder, io.opencannabis.schema.person.PersonOrBuilder> getDoctorFieldBuilder() { if (doctorBuilder_ == null) { doctorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencannabis.schema.person.Person, io.opencannabis.schema.person.Person.Builder, io.opencannabis.schema.person.PersonOrBuilder>( getDoctor(), getParentForChildren(), isClean()); doctor_ = null; } return doctorBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:bloombox.identity.ids.UserDoctorRec) } // @@protoc_insertion_point(class_scope:bloombox.identity.ids.UserDoctorRec) private static final io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec(); } public static io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UserDoctorRec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserDoctorRec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.bloombox.schema.identity.ids.PrescriptionID.UserDoctorRec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_bloombox_identity_ids_UserDoctorRec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_bloombox_identity_ids_UserDoctorRec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n identity/ids/UserDoctorRec.proto\022\025bloo" + "mbox.identity.ids\032\016bq_field.proto\032\024core/" + "Datamodel.proto\032\021geo/USState.proto\032\023pers" + "on/Person.proto\032\023temporal/Date.proto\"\337\003\n" + "\rUserDoctorRec\022+\n\002id\030\001 \001(\tB\037\302\265\003\002\010\002\212@\026ID " + "number/unique code.\022`\n\017expiration_date\030\002" + " \001(\0132\033.opencannabis.temporal.DateB*\212@\'Ex" + "piration date for the recommendation.\022&\n" + "\007barcode\030\003 \001(\tB\025\212@\022Raw barcode value.\022\\\n" + "\005state\030\004 \001(\0162\035.opencannabis.geo.usa.USSt" + "ateB.\212@+US state where the recommendatio" + "n is valid.\0223\n\007country\030\005 \001(\tB\"\212@\037Country" + " for the recommendation.\022)\n\tdoctor_id\030\006 " + "\001(\tB\026\212@\023Doctor\'s unique ID.\022Y\n\006doctor\030\007 " + "\001(\0132\033.opencannabis.person.PersonB,\212@)Per" + "sonal information about the physician.B;" + "\n\037io.bloombox.schema.identity.idsB\016Presc" + "riptionIDH\001P\000\242\002\003BBSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { gen_bq_schema.BqField.getDescriptor(), core.Datamodel.getDescriptor(), io.opencannabis.schema.geo.usa.USStateOuterClass.getDescriptor(), io.opencannabis.schema.person.PersonOuterClass.getDescriptor(), io.opencannabis.schema.temporal.TemporalDate.getDescriptor(), }, assigner); internal_static_bloombox_identity_ids_UserDoctorRec_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_bloombox_identity_ids_UserDoctorRec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_bloombox_identity_ids_UserDoctorRec_descriptor, new java.lang.String[] { "Id", "ExpirationDate", "Barcode", "State", "Country", "DoctorId", "Doctor", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(core.Datamodel.field); registry.add(gen_bq_schema.BqField.description); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); gen_bq_schema.BqField.getDescriptor(); core.Datamodel.getDescriptor(); io.opencannabis.schema.geo.usa.USStateOuterClass.getDescriptor(); io.opencannabis.schema.person.PersonOuterClass.getDescriptor(); io.opencannabis.schema.temporal.TemporalDate.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy