Exemplo n.º 1
0
 public void MergeFrom(Face other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0L)
     {
         Id = other.Id;
     }
     if (other.Z != 0F)
     {
         Z = other.Z;
     }
     if (other.Speaking != 0)
     {
         Speaking = other.Speaking;
     }
     if (other.Data.Length != 0)
     {
         Data = other.Data;
     }
     if (other.rect_ != null)
     {
         if (rect_ == null)
         {
             rect_ = new global::SmartApp.HAL.Model.VideoDataPacket.Types.Rectangle();
         }
         Rect.MergeFrom(other.Rect);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
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: {
                            Id = input.ReadInt64();
                            break;
                        }

                        case 21: {
                            Z = input.ReadFloat();
                            break;
                        }

                        case 24: {
                            Speaking = input.ReadInt32();
                            break;
                        }

                        case 34: {
                            Data = input.ReadBytes();
                            break;
                        }

                        case 42: {
                            if (rect_ == null)
                            {
                                rect_ = new global::SmartApp.HAL.Model.VideoDataPacket.Types.Rectangle();
                            }
                            input.ReadMessage(rect_);
                            break;
                        }
                        }
                    }
                }