Beispiel #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: {
                    VesselId = input.ReadString();
                    break;
                }

                case 18: {
                    if (generalizedForce_ == null)
                    {
                        GeneralizedForce = new global::Gemini.Forcecontrol.GeneralizedForce();
                    }
                    input.ReadMessage(GeneralizedForce);
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(ForceRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.VesselId.Length != 0)
     {
         VesselId = other.VesselId;
     }
     if (other.generalizedForce_ != null)
     {
         if (generalizedForce_ == null)
         {
             GeneralizedForce = new global::Gemini.Forcecontrol.GeneralizedForce();
         }
         GeneralizedForce.MergeFrom(other.GeneralizedForce);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }