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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (header_ == null)
                    {
                        Header = new global::TrdCommon.TrdHeader();
                    }
                    input.ReadMessage(Header);
                    break;
                }

                case 18: {
                    if (filterConditions_ == null)
                    {
                        FilterConditions = new global::TrdCommon.TrdFilterConditions();
                    }
                    input.ReadMessage(FilterConditions);
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(C2S other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::TrdCommon.TrdHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.filterConditions_ != null)
     {
         if (filterConditions_ == null)
         {
             FilterConditions = new global::TrdCommon.TrdFilterConditions();
         }
         FilterConditions.MergeFrom(other.FilterConditions);
     }
     filterStatusList_.Add(other.filterStatusList_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#3
0
 public void MergeFrom(C2S other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             Header = new global::TrdCommon.TrdHeader();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.filterConditions_ != null)
     {
         if (filterConditions_ == null)
         {
             FilterConditions = new global::TrdCommon.TrdFilterConditions();
         }
         FilterConditions.MergeFrom(other.FilterConditions);
     }
     if (other.FilterPLRatioMin != 0D)
     {
         FilterPLRatioMin = other.FilterPLRatioMin;
     }
     if (other.FilterPLRatioMax != 0D)
     {
         FilterPLRatioMax = other.FilterPLRatioMax;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }