Example #1
0
 public void MergeFrom(QosProfile other)
 {
     if (other == null)
     {
         return;
     }
     if (other.History != 0)
     {
         History = other.History;
     }
     if (other.Depth != 0)
     {
         Depth = other.Depth;
     }
     if (other.Mps != 0)
     {
         Mps = other.Mps;
     }
     if (other.Reliability != 0)
     {
         Reliability = other.Reliability;
     }
     if (other.Durability != 0)
     {
         Durability = other.Durability;
     }
 }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    history_ = (global::Apollo.Cyber.Proto.QosHistoryPolicy)input.ReadEnum();
                    break;
                }

                case 16: {
                    Depth = input.ReadUInt32();
                    break;
                }

                case 24: {
                    Mps = input.ReadUInt32();
                    break;
                }

                case 32: {
                    reliability_ = (global::Apollo.Cyber.Proto.QosReliabilityPolicy)input.ReadEnum();
                    break;
                }

                case 40: {
                    durability_ = (global::Apollo.Cyber.Proto.QosDurabilityPolicy)input.ReadEnum();
                    break;
                }
                }
            }
        }