Example #1
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _channelStateFieldNames;
            if (hasIdentity)
            {
                output.WriteString(1, field_names[1], Identity);
            }
            if (hasProgram)
            {
                output.WriteFixed32(2, field_names[3], Program);
            }
            if (hasLocale)
            {
                output.WriteFixed32(3, field_names[2], Locale);
            }
            if (hasPublic)
            {
                output.WriteBool(4, field_names[4], Public);
            }
            if (hasBucketIndex)
            {
                output.WriteUInt32(5, field_names[0], BucketIndex);
            }
            UnknownFields.WriteTo(output);
        }
Example #2
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _recentPlayerFieldNames;
            if (hasEntity)
            {
                output.WriteMessage(1, field_names[2], Entity);
            }
            if (hasProgramId)
            {
                output.WriteString(2, field_names[4], ProgramId);
            }
            if (hasTimestampPlayed)
            {
                output.WriteFixed64(3, field_names[5], TimestampPlayed);
            }
            if (attributes_.Count > 0)
            {
                output.WriteMessageArray(4, field_names[0], attributes_);
            }
            if (hasId)
            {
                output.WriteFixed32(5, field_names[3], Id);
            }
            if (hasCounter)
            {
                output.WriteFixed32(6, field_names[1], Counter);
            }
            UnknownFields.WriteTo(output);
        }
Example #3
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _gamePropertiesFieldNames;
            if (creationAttributes_.Count > 0)
            {
                output.WriteMessageArray(1, field_names[1], creationAttributes_);
            }
            if (hasFilter)
            {
                output.WriteMessage(2, field_names[2], Filter);
            }
            if (hasCreate)
            {
                output.WriteBool(3, field_names[0], Create);
            }
            if (hasOpen)
            {
                output.WriteBool(4, field_names[3], Open);
            }
            if (hasProgramId)
            {
                output.WriteFixed32(5, field_names[4], ProgramId);
            }
            UnknownFields.WriteTo(output);
        }
Example #4
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _contentHandleFieldNames;
            if (hasRegion)
            {
                output.WriteFixed32(1, field_names[1], Region);
            }
            if (hasUsage)
            {
                output.WriteFixed32(2, field_names[2], Usage);
            }
            if (hasHash)
            {
                output.WriteBytes(3, field_names[0], Hash);
            }
            UnknownFields.WriteTo(output);
        }
Example #5
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _contentHandleRequestFieldNames;
            if (hasProgramId)
            {
                output.WriteFixed32(1, field_names[1], ProgramId);
            }
            if (hasStreamId)
            {
                output.WriteFixed32(2, field_names[2], StreamId);
            }
            if (hasLocale)
            {
                output.WriteFixed32(3, field_names[0], Locale);
            }
            UnknownFields.WriteTo(output);
        }
Example #6
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _accountInfoFieldNames;
            if (hasAccountPaid)
            {
                output.WriteBool(1, field_names[0], AccountPaid);
            }
            if (hasCountryId)
            {
                output.WriteFixed32(2, field_names[1], CountryId);
            }
            UnknownFields.WriteTo(output);
        }
Example #7
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _toonHandleFieldNames;
            if (hasId)
            {
                output.WriteFixed64(1, field_names[0], Id);
            }
            if (hasProgram)
            {
                output.WriteFixed32(2, field_names[1], Program);
            }
            if (hasRegion)
            {
                output.WriteUInt32(3, field_names[3], Region);
            }
            if (hasRealm)
            {
                output.WriteUInt32(4, field_names[2], Realm);
            }
            UnknownFields.WriteTo(output);
        }