Example #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 8: {
                GameId = input.ReadInt32();
                break;
            }

            case 18: {
                if (observation_ == null)
                {
                    observation_ = new global::Observation();
                }
                input.ReadMessage(observation_);
                break;
            }
            }
        }
    }
Example #2
0
 public void MergeFrom(CreateReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GameId != 0)
     {
         GameId = other.GameId;
     }
     if (other.observation_ != null)
     {
         if (observation_ == null)
         {
             observation_ = new global::Observation();
         }
         Observation.MergeFrom(other.Observation);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #3
0
 public void MergeFrom(MoveReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.GameHasEnded != false)
     {
         GameHasEnded = other.GameHasEnded;
     }
     if (other.WinningPlayer != 0)
     {
         WinningPlayer = other.WinningPlayer;
     }
     if (other.observation_ != null)
     {
         if (observation_ == null)
         {
             observation_ = new global::Observation();
         }
         Observation.MergeFrom(other.Observation);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }