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

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

                case 10: {
                    if (field_ == null)
                    {
                        field_ = new Bgs.Protocol.Presence.V1.Field();
                    }
                    input.ReadMessage(field_);
                    break;
                }

                case 16: {
                    operation_ = (Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(FieldOperation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.field_ != null)
     {
         if (field_ == null)
         {
             field_ = new Bgs.Protocol.Presence.V1.Field();
         }
         Field.MergeFrom(other.Field);
     }
     if (other.Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET)
     {
         Operation = other.Operation;
     }
 }