예제 #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 (clientInfo_ == null)
                {
                    clientInfo_ = new global::ClientInfo();
                }
                input.ReadMessage(clientInfo_);
                break;
            }

            case 18: {
                if (position_ == null)
                {
                    position_ = new global::Position();
                }
                input.ReadMessage(position_);
                break;
            }
            }
        }
    }
예제 #2
0
 public void MergeFrom(RobotData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.clientInfo_ != null)
     {
         if (clientInfo_ == null)
         {
             clientInfo_ = new global::ClientInfo();
         }
         ClientInfo.MergeFrom(other.ClientInfo);
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             position_ = new global::Position();
         }
         Position.MergeFrom(other.Position);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }