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 81: {
                    Double10 = input.ReadDouble();
                    break;
                }

                case 93: {
                    Float11 = input.ReadFloat();
                    break;
                }

                case 168: {
                    Int3221 = input.ReadInt32();
                    break;
                }

                case 176: {
                    Int6422 = input.ReadInt64();
                    break;
                }

                case 240: {
                    Uint3230 = input.ReadUInt32();
                    break;
                }

                case 248: {
                    Uint6431 = input.ReadUInt64();
                    break;
                }

                case 280: {
                    Sint3235 = input.ReadSInt32();
                    break;
                }

                case 288: {
                    Sint6436 = input.ReadSInt64();
                    break;
                }

                case 325: {
                    Fixed3240 = input.ReadFixed32();
                    break;
                }

                case 329: {
                    Fixed6441 = input.ReadFixed64();
                    break;
                }

                case 365: {
                    Sfixed3245 = input.ReadSFixed32();
                    break;
                }

                case 369: {
                    Sfixed6446 = input.ReadSFixed64();
                    break;
                }

                case 560: {
                    Bool70 = input.ReadBool();
                    break;
                }

                case 570: {
                    String71 = input.ReadString();
                    break;
                }

                case 578: {
                    Bytes72 = input.ReadBytes();
                    break;
                }

                case 640: {
                    Type80 = (global::GServices.EType)input.ReadEnum();
                    break;
                }

                case 802: {
                    map100_.AddEntriesFrom(input, _map_map100_codec);
                    break;
                }

                case 810: {
                    stringList101_.AddEntriesFrom(input, _repeated_stringList101_codec);
                    break;
                }

                case 818:
                case 816: {
                    int32List102_.AddEntriesFrom(input, _repeated_int32List102_codec);
                    break;
                }

                case 882: {
                    map110_.AddEntriesFrom(input, _map_map110_codec);
                    break;
                }

                case 1042: {
                    if (user_ == null)
                    {
                        User = new global::GServices.User();
                    }
                    input.ReadMessage(User);
                    break;
                }

                case 1050: {
                    users_.AddEntriesFrom(input, _repeated_users_codec);
                    break;
                }

                case 1058: {
                    map132_.AddEntriesFrom(input, _map_map132_codec);
                    break;
                }

                case 2402: {
                    OfName300 = input.ReadString();
                    break;
                }

                case 2410: {
                    OfName2301 = input.ReadString();
                    break;
                }
                }
            }
        }
Beispiel #2
0
        public void MergeFrom(GReq other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Double10 != 0D)
            {
                Double10 = other.Double10;
            }
            if (other.Float11 != 0F)
            {
                Float11 = other.Float11;
            }
            if (other.Int3221 != 0)
            {
                Int3221 = other.Int3221;
            }
            if (other.Int6422 != 0L)
            {
                Int6422 = other.Int6422;
            }
            if (other.Uint3230 != 0)
            {
                Uint3230 = other.Uint3230;
            }
            if (other.Uint6431 != 0UL)
            {
                Uint6431 = other.Uint6431;
            }
            if (other.Sint3235 != 0)
            {
                Sint3235 = other.Sint3235;
            }
            if (other.Sint6436 != 0L)
            {
                Sint6436 = other.Sint6436;
            }
            if (other.Fixed3240 != 0)
            {
                Fixed3240 = other.Fixed3240;
            }
            if (other.Fixed6441 != 0UL)
            {
                Fixed6441 = other.Fixed6441;
            }
            if (other.Sfixed3245 != 0)
            {
                Sfixed3245 = other.Sfixed3245;
            }
            if (other.Sfixed6446 != 0L)
            {
                Sfixed6446 = other.Sfixed6446;
            }
            if (other.Bool70 != false)
            {
                Bool70 = other.Bool70;
            }
            if (other.String71.Length != 0)
            {
                String71 = other.String71;
            }
            if (other.Bytes72.Length != 0)
            {
                Bytes72 = other.Bytes72;
            }
            if (other.Type80 != 0)
            {
                Type80 = other.Type80;
            }
            map100_.Add(other.map100_);
            stringList101_.Add(other.stringList101_);
            int32List102_.Add(other.int32List102_);
            map110_.Add(other.map110_);
            if (other.user_ != null)
            {
                if (user_ == null)
                {
                    User = new global::GServices.User();
                }
                User.MergeFrom(other.User);
            }
            users_.Add(other.users_);
            map132_.Add(other.map132_);
            switch (other.TestOneofCase)
            {
            case TestOneofOneofCase.OfName300:
                OfName300 = other.OfName300;
                break;

            case TestOneofOneofCase.OfName2301:
                OfName2301 = other.OfName2301;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }