コード例 #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (id_ == null)
                    {
                        id_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(id_);
                    break;
                }

                case 18: {
                    PhoneNumber = input.ReadString();
                    break;
                }

                case 24: {
                    useCase_ = (global::HOLMS.Types.TenancyConfig.PhoneCodeUseCase)input.ReadEnum();
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(PhoneCode other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.PhoneNumber.Length != 0)
     {
         PhoneNumber = other.PhoneNumber;
     }
     if (other.UseCase != 0)
     {
         UseCase = other.UseCase;
     }
 }