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

            string[] field_names = _pathFieldNames;
            if (ordinal_.Count > 0)
            {
                output.WritePackedUInt32Array(1, field_names[0], ordinalMemoizedSerializedSize, ordinal_);
            }
            UnknownFields.WriteTo(output);
        }
Example #2
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _blockedEntityFieldNames;
            if (hasId)
            {
                output.WriteMessage(1, field_names[0], Id);
            }
            if (hasName)
            {
                output.WriteString(2, field_names[1], Name);
            }
            if (role_.Count > 0)
            {
                output.WritePackedUInt32Array(3, field_names[3], roleMemoizedSerializedSize, role_);
            }
            if (hasPrivileges)
            {
                output.WriteUInt64(4, field_names[2], Privileges);
            }
            UnknownFields.WriteTo(output);
        }